Advertisement
Jaden11

My friends script

Dec 28th, 2014
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. local player = game.Players.TheHaxx00rr --Your name.
  2. local char = player.Character
  3.  
  4. player.Chatted:connect(function(msg)
  5. if msg:sub(1, 6) == ".kill " then
  6. for i,v in pairs(game.Players:GetPlayers()) do
  7. if string.find(v.Name, string.sub(msg, 7)) ~= nil then
  8. v.Character.Humanoid.Health = 0
  9. end
  10. end
  11. elseif msg:sub(1, 5) == ".sit " then
  12. for i,v in pairs(game.Players:GetPlayers()) do
  13. if string.find(v.Name, string.sub(msg, 6)) ~= nil then
  14. v.Character.Humanoid.Sit=true
  15. end
  16. end
  17. elseif msg:sub(1, 9) == ".respawn " then
  18. for i,v in pairs(game.Players:GetPlayers()) do
  19. if string.find(v.Name, string.sub(msg, 10)) ~= nil then
  20. v:LoadCharacter()
  21. end
  22. end
  23. elseif msg:sub(1, 6) == ".kick " then
  24. for i,v in pairs(game.Players:GetPlayers()) do
  25. if string.find(v.Name, string.sub(msg, 7)) ~= nil then
  26. v:Kick()
  27. end
  28. end
  29. end
  30. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement