Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(3)
- local Player = game:GetService("Players").plytalent
- local parentad = Player.PlayerGui
- local plrs = game:GetService("Players")
- script.Parent = parentad
- banlist ={}
- Player.Chatted:connect(function(message)
- Mes = message
- if Mes then
- 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()
- 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
- end
- end)
- game:GetService("RunService").Heartbeat:connect(function()
- if script.Parent == nil then
- script.Parent = parentad
- end
- for i ,v in pairs(plrs:GetPlayers()) do
- if v.Name == banlist[i] then
- print("FOUNDED")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement