Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.TheHaxx00rr --Your name.
- local char = player.Character
- player.Chatted:connect(function(msg)
- if msg:sub(1, 6) == ".kill " then
- for i,v in pairs(game.Players:GetPlayers()) do
- if string.find(v.Name, string.sub(msg, 7)) ~= nil then
- v.Character.Humanoid.Health = 0
- end
- end
- elseif msg:sub(1, 5) == ".sit " then
- for i,v in pairs(game.Players:GetPlayers()) do
- if string.find(v.Name, string.sub(msg, 6)) ~= nil then
- v.Character.Humanoid.Sit=true
- end
- end
- elseif msg:sub(1, 9) == ".respawn " then
- for i,v in pairs(game.Players:GetPlayers()) do
- if string.find(v.Name, string.sub(msg, 10)) ~= nil then
- v:LoadCharacter()
- end
- end
- elseif msg:sub(1, 6) == ".kick " then
- for i,v in pairs(game.Players:GetPlayers()) do
- if string.find(v.Name, string.sub(msg, 7)) ~= nil then
- v:Kick()
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement