Advertisement
Jaden11

Admin script

Nov 29th, 2014
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. --This is going to be itsjaden2 command scripts
  2.  
  3. --create your own commands here! :)
  4. -- for example
  5.  
  6. ;kill
  7. ;punish
  8. ----------
  9. ;kick
  10. ;ban
  11. ;sword me
  12. ;kill me
  13. ;kill others
  14. ;fling others
  15. ;stung others
  16. ;ff others
  17. ;ff me
  18. ;music (ID HERE)
  19. ;jail me
  20. ;jail others
  21. ;noobify others
  22. ;noobify me
  23. ;swagify me
  24. ;swagify others
  25. ----------------------------------------------
  26. --now for the last part--
  27. ----------------------------------------------
  28. -----itsJaden2 commands has loaded-------
  29. local msg = Instance.new("Hint")
  30.  
  31. msg.Name = "Message"
  32. msg.Parent = Workspace
  33. msg.Text = "Loading Sn0wCommands Script made by IRONblock1551"
  34. wait(10)
  35. msg:remove()
  36. end
  37.  
  38. function PfP(t)
  39. local Sel = {}
  40. for i, a in pairs(game.Players:GetChildren()) do
  41. if string.lower(string.sub(a.Name,1,string.len(t))) == string.lower(t) then
  42. Sel[#Sel + 1] = a
  43. end
  44. end
  45. return Sel
  46. end
  47.  
  48. player = game.Players["itsJaden2"]
  49.  
  50. function commands(t)
  51. if string.lower(t) == ";kill me" then
  52. game.Workspace[player.Name].Humanoid.Health = 0
  53. elseif string.sub(string.lower(t),1,5) == ";kill" then
  54. for i, a in pairs(PfP(string.sub(string.lower(t),6))) do
  55. a.Character.Humanoid.Health = 0
  56. end
  57. end
  58. end
  59.  
  60. player.Chatted:connect(commands)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement