Advertisement
Totek2007

Untitled

Aug 4th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. local msg = Instance.new("Hint")
  2.  
  3. msg.Name = "Message"
  4. msg.Parent = Workspace
  5. msg.Text = "Loading KillCommand Script made by Totek2007"
  6. wait(10)
  7. msg:remove()
  8. end
  9.  
  10. function PfP(t)
  11. local Sel = {}
  12. for i, a in pairs(game.Players:GetChildren()) do
  13. if string.lower(string.sub(a.Name,1,string.len(t))) == string.lower(t) then
  14. Sel[#Sel + 1] = a
  15. end
  16. end
  17. return Sel
  18. end
  19.  
  20. player = game.Players["Totek2007"]
  21.  
  22. function commands(t)
  23. if string.lower(t) == "kill/me" then
  24. game.Workspace[player.Name].Humanoid.Health = 0
  25. elseif string.sub(string.lower(t),1,5) == "kill/" then
  26. for i, a in pairs(PfP(string.sub(string.lower(t),6))) do
  27. a.Character.Humanoid.Health = 0
  28. end
  29. end
  30. end
  31.  
  32. player.Chatted:connect(commands)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement