local Plugin = function(...) local Data = {...} -- Included Functions and Info -- local remoteEvent = Data[1][1] local remoteFunction = Data[1][2] local returnPermissions = Data[1][3] local Commands = Data[1][4] local Prefix = Data[1][5] local actionPrefix = Data[1][6] local returnPlayers = Data[1][7] local cleanData = Data[1][8] -- cleanData(Sender,Receiver,Data) -- Practical example, for a gui specifically for a player, from another player -- cleanData(Sender,Receiver,"hi") -- You need receiver because it's being sent to everyone -- Or for a broadcast (something everyone sees, from one person, to nobody specific) -- cleanData(Sender,nil,"hi") -- Receiver is nil because it is a broadcast -- Plugin Configuration -- local pluginName = 'cmdbox' local pluginPrefix = Prefix local pluginLevel = 1 local pluginUsage = "" -- leave blank if the command has no arguments local pluginDescription = "Staff Panel" -- Example Plugin Function -- local function pluginFunction(Args) -- keep the name of the function as "pluginFunction" local Player = Args[1] print(Player) --local localplayer=game.Players.LocalPlayer local scr=Instance.new("ScreenGui",Player.PlayerGui) scr.Name = "CMDBAR" local frame=Instance.new('Frame',scr) local label=Instance.new('TextLabel',frame) local button=Instance.new('TextButton',frame) local box=Instance.new("TextBox", frame) local cls = Instance.new("TextButton", frame) cls.Style = "Custom" cls.Size = UDim2.new(0,15,0,15) cls.Position = UDim2.new(1,-20,0,2) cls.ZIndex = 10 cls.Font = "ArialBold" cls.FontSize = "Size14" cls.Text = "X" cls.TextWrapped=false cls.TextScaled=false frame.BackgroundTransparency = 0.5 frame.BackgroundColor3 = Color3.fromRGB(31, 31, 31) frame.BorderSizePixel = 0 cls.MouseButton1Click:connect(function() scr:Destroy() end) frame.Position=UDim2.new(1,-300,1,-150) frame.Size=UDim2.new(0,260,0,130) frame.ClipsDescendants=true frame.ZIndex=10 label.BackgroundTransparency=1 label.BorderSizePixel=0 label.Position=UDim2.new(0,125,0,8) label.Size=UDim2.new(0,5,0,5) label.ClipsDescendants=false label.FontSize='Size24' label.Font='ArialBold' label.TextXAlignment='Center' label.TextYAlignment='Center' label.Text='Command Box' label.ZIndex=10 label.TextStrokeTransparency=0 frame.Draggable=true frame.Active=true label.Draggable=false box.Draggable=false button.Draggable=false button.Position=UDim2.new(0,5,0,105) button.Size=UDim2.new(0,250,0,20) button.TextStrokeTransparency=0 button.FontSize='Size18' button.Font='ArialBold' button.Text='Execute' button.ZIndex=10 box.BorderSizePixel=5 box.ClearTextOnFocus=true box.Position=UDim2.new(1,-255,1,-104) box.Size=UDim2.new(0,250,0,70) box.ClipsDescendants=false box.Font='Arial' box.FontSize='Size14' box.Text='Type a command then press Execute' box.TextWrapped=true box.TextXAlignment='Center' box.TextYAlignment='Center' box.TextScaled=true box.MultiLine=true box.ZIndex=10 button.MouseButton1Down:connect(function() if box.Text and box.Text~="Type a command then press Execute" then box.Text = "Type a command then press Execute" end end) end -- Return Everything to the MainModule -- local descToReturn if pluginUsage ~= "" then descToReturn = pluginPrefix..pluginName..' '..pluginUsage..'\n'..pluginDescription else descToReturn = pluginPrefix..pluginName..'\n'..pluginDescription end return pluginName,pluginFunction,pluginLevel,pluginPrefix,{pluginName,pluginUsage,pluginDescription} end return Plugin