Advertisement
Jaden11

itsJaden2 admin commands other one

Nov 25th, 2014
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. --create your own commands here! ;)
  2. --Here are my admin commands you may not use lolol
  3.  
  4. for example
  5. --[[
  6. ;kill itsJaden2
  7. ;punish itsJaden2
  8.  
  9. --]]
  10. commands pfp(t)
  11. game.Players["NAMEHERE"] --Only change the name here
  12.  
  13. end
  14. local msg.Instance.new("hi noob1")
  15. msg.Name = "Message"
  16. msg.Parent = workspace
  17. msg Text = "Loading itsJaden2 commands script made by itsJaden2"
  18. wait(8)
  19. msg:remove()
  20. end
  21. function PfP(t)
  22. local Sel = {}
  23. for i, a in pairs(game.Players:GetChildren())) do
  24. if.string.lower(string.sub(a.Name,1,string.len(t))) == string.lower(t) then
  25. Sel[# + 1 ] = a
  26. end
  27. end
  28. end
  29.  
  30. player = game.["YOURNAMEHERE"]
  31. function commands (t)
  32. if string.lower(t) == ";kill me" then
  33. game.Workspace.[player.Name].Humanoid.Health = 0
  34. else if string.sub(string.lower(t),1,5) == ";kill" then
  35. for i, a in pairs(PfP(string.sub(string.lower(t),6)))) do
  36. a.Character.Humanoid.Health = 0
  37. end
  38.  
  39. end
  40.  
  41. end
  42. player.Chatted:connect(commands)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement