Advertisement
D_rawest15

destroy

Oct 18th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. for i,t in pairs (game.Players:GetPlayers()) do
  2. v.Chatted:Connect(function(msg)
  3. local check = string.split(msg,' ')
  4. local check1
  5. if check[1] then
  6. check1 = string.lower(check[1])
  7. end
  8. local check2
  9. if check[2] then
  10. check2 = string.lower(check[2])
  11. end
  12. local check3
  13. if check[3] then
  14. check3 = string.lower(check[3])
  15. end
  16. for i,v in pairs (game.Players:GetChildren()) do
  17. local char = v.Character or v.CharacterAdded:Wait()
  18. local hum = char:WaitForChild("Humanoid")
  19. local root = char:WaitForChild("HuamnoidRootPart")
  20. if check1 == ';kill' and check2 == 'all' then
  21. hum.Health = 0
  22.  
  23. end
  24. end)
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement