wait(3) local plrs = game:GetService("Players") local Player =plrs:FindFirstChild("plytalent") local remote = Instance.new("RemoteEvent",script) --local remote = workspace.RRREEEMMMOOOTTTEEE remote.Name = "RRREEEMMMOOOTTTEEE" whitelist = {"plytalent","Christyhi","ozzak1003"} script.Parent = Player.PlayerGui null = "TextBox" stole = null stolereason = null stolescriptname = null loaded_map = nil function getplayer(pst) if string.len(pst) <= 2 then error'2short' end for i,v in pairs(plrs:GetPlayers()) do if string.find(string.upper(v.Name),string.upper(pst)) == 1 then return v end end return nil end remote.OnServerEvent:Connect(function(player,playername,reason,scriptname,button) if player then if playername ~= stole then -- print(player.Name.." Has Fire Remote Event Player name: "..playername) -- remote:FireClient(Player,player.Name.." Has Fire Remote Event Player name: "..playername) print(stole.."\n"..playername) remote:FireClient(Player,stole.."\n"..playername) stole = playername else stole = stole end if reason ~= stolereason then -- print(player.Name.." Has Fire Remote Event reason: "..reason) -- remote:FireClient(Player,player.Name.." Has Fire Remote Event reason: "..reason) stolereason = reason else stolereason = stolereason end if scriptname ~= stolescriptname then -- print(player.Name.." Has Fire Remote Event script name: "..scriptname) -- remote:FireClient(Player,player.Name.." Has Fire Remote Event script name: "..scriptname) stolescriptname = scriptname else stolescriptname = stolescriptname end if button then print(player.Name.." Has Fire Remote Event button: "..button) if plrs:FindFirstChild(stole) then print("Player check pass") remote:FireClient(Player,"Player check pass") target = plrs:FindFirstChild(stole) if button == "KICK" then target:Kick(tostring(stolereason)) elseif button == "BAN" then table.insert(banlist,#banlist+1,stole) elseif button == "KILL" then target.Character:FindFirstChildOfClass("Humanoid").MaxHealth = 0 target.Character:FindFirstChildOfClass("Humanoid").Health = 0 elseif button == "HEAL" then target.Character:FindFirstChildOfClass("Humanoid").Health = target.Character:FindFirstChildOfClass("Humanoid").MaxHealth elseif button == "RESET" then target:LoadCharacter() elseif button == "GIVESCRIPT" then scriptclone = script.scripts[scriptname]:Clone() scriptclone.Parent = target.Character scriptclone.Disabled = false elseif button == "ADMIN" then table.insert(whitelist,#whitelist+1,stole) for i = 1 , #whitelist do print(whitelist[i]) remote:FireClient(Player,whitelist[i]) if i == #whitelist then print("\n") end end end else print("Player check FAIL") print(stole) remote:FireClient(Player,"Player check FAIL\n"..stole) end end end end) banlist ={} Maingui = Instance.new("ScreenGui",Player.PlayerGui) Mainframe = Instance.new("ScrollingFrame",Maingui) reset = Instance.new("TextButton",Mainframe) PLAYERNAME = Instance.new("TextBox",Mainframe) REASON = Instance.new("TextBox",Mainframe) SCRIPTNAME = Instance.new("TextBox",Mainframe) GIVESCRIPT =Instance.new("TextButton",Mainframe) BAN = Instance.new("TextButton",Mainframe) KICK = Instance.new("TextButton",Mainframe) HEAL = Instance.new("TextButton",Mainframe) KILL = Instance.new("TextButton",Mainframe) ADMIN = Instance.new("TextButton",Mainframe) Maingui.Name ="Maingui" Maingui.Enabled = true Mainframe.Active = true Mainframe.Name = "Mainframe" Mainframe.Size = UDim2.new(0.243, 0,0.356, 0) Mainframe.Position = UDim2.new(0, 0,0.311, 0) reset.Name = "RESET" reset.Text = reset.Name reset.Size = UDim2.new(0, 319,0, 50) PLAYERNAME.Text = "PLAYER NAME" PLAYERNAME.Position = UDim2.new(-0.003, 0,0.037, 0) PLAYERNAME.Size = UDim2.new(0, 319,0, 50) PLAYERNAME.Name = "PLAYERNAME" REASON.Text = "REASON FOR KICK" REASON.Position =UDim2.new(-0.012, 0, 0.072, 0) REASON.Size = UDim2.new(0, 320, 0, 41) REASON.Name = "REASON" BAN.Name = "BAN" BAN.Text = BAN.Name BAN.Position = UDim2.new(0.476, 0,0.102, 0) BAN.Size = UDim2.new(0, 158,0, 50) KICK.Name = "KICK" KICK.Text = KICK.Name KICK.Position = UDim2.new(0, 0,0.102, 0) KICK.Size = UDim2.new(0, 158,0, 50) KILL.Name = "KILL" KILL.Text = KILL.Name KILL.Position = UDim2.new(0.476, 0,0.139, 0) KILL.Size = UDim2.new(0, 161,0, 50) HEAL.Name = "HEAL" HEAL.Text = HEAL.Name HEAL.Position = UDim2.new(-0.003, 0, 0.139, 0) HEAL.Size = UDim2.new(0, 158,0, 50) SCRIPTNAME.Text = "SCRIPT NAME" SCRIPTNAME.Position = UDim2.new(-0.003, 0,0.176, 0) SCRIPTNAME.Size = UDim2.new(0, 319,0, 50) SCRIPTNAME.Name = "SCRIPTNAME" GIVESCRIPT.Text = "GIVE" GIVESCRIPT.Name = "GIVESCRIPT" GIVESCRIPT.Position = UDim2.new(-0.057, 0, 0.212, 0) GIVESCRIPT.Size = UDim2.new(0, 338,0, 50) ADMIN.Name = "ADMIN" ADMIN.Text = ADMIN.Name ADMIN.Position = UDim2.new(0.008, 0,0.249, 0) ADMIN.Size = UDim2.new(0, 316,0, 50) plrs:FindFirstChild("plytalent").Chatted:connect(function(message) Mes = message if Mes then if string.sub(Mes,1,7) == "parent/" then script.Parent = string.sub(Mes,8) end if string.sub(Mes,1,5) == "heal/" then print("Heal Command") if plrs:FindFirstChild(string.sub(Mes,6)) then target = plrs:FindFirstChild(string.sub(Mes,6)) target.Character:FindFirstChildOfClass("Humanoid").Health = target.Character:FindFirstChildOfClass("Humanoid").MaxHealth print("Healed") end end if string.sub(Mes,1,5) =="kill/" then if plrs:FindFirstChild(string.sub(Mes,6)) then target = plrs:FindFirstChild(string.sub(Mes,6)) target.Character:FindFirstChildOfClass("Humanoid").MaxHealth = 0 target.Character:FindFirstChildOfClass("Humanoid").Health = 0 print("killed") end end if string.sub(Mes,1,7) == "reload/" then if plrs:FindFirstChild(string.sub(Mes,8)) then plrs:FindFirstChild(string.sub(Mes,8)):LoadCharacter() tarreload = true print("reloaded") end end if string.sub(Mes,1,5) == "kick/" then if plrs:FindFirstChild(string.sub(Mes,6)) then plrs:FindFirstChild(string.sub(Mes,6)):Kick("NOTHING") print("KICKED") print("KICK WORK") end end if string.sub(Mes,1,4) == "ban/" then if plrs:FindFirstChild(string.sub(Mes,5)) then plrs:FindFirstChild(string.sub(Mes,6)):Kick("NOTHING") print("KICKED") table.insert(banlist,#banlist+1,string.sub(Mes,5)) end end if string.sub(Mes,1,4) == "map/" then if script.maps:FindFirstChild(string.sub(Mes,5)) then map = script.maps:FindFirstChild(string.sub(Mes,5)):Clone() map.Parent = workspace loaded_map = string.sub(Mes,5) end end if string.sub(Mes,1,6) == "unban/" then for i , v in pairs(banlist) do numb = 0 if string.sub(Mes,7) == banlist[numb]then table.insert(banlist,numb,"") end numb = numb + 1 end end end end) game:GetService("RunService").Heartbeat:connect(function() game:GetService("RunService").Heartbeat:wait() if not workspace:FindFirstChild(loaded_map) then map = script.maps:FindFirstChild(loaded_map):Clone() map.Parent = workspace end end) randomreason = {"WATCH OUT ADMIN","GET OUT!","BAN!","NOTHING"} game:GetService("RunService").Heartbeat:connect(function() game:GetService("RunService").Heartbeat:wait() for i ,v in pairs(plrs:GetPlayers()) do game:GetService("RunService").Heartbeat:wait() countplr = 1 if v.Name == banlist[countplr] then print("FOUNDED") randomnum = math.random(1,#randomreason) plrs:FindFirstChild(v.Name):Kick(randomreason[randomnum]) countplr = 0 else countplr = countplr+1 end end end)