Advertisement
Guest User

ad

a guest
Nov 25th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. function onChatted(msg, recipient, speaker)
  2.  
  3. -- convert to all lower case
  4.  
  5. local source = string.lower(speaker.Name)
  6. msg = string.lower(msg)
  7.  
  8. if (msg == "freeze") then
  9. local c = game.Players:GetChildren()
  10. for i=1,#c do
  11. if (string.lower(c[i].Name) ~= "ExplodeiveCrayon") then --Change brandonhare to your name.
  12. if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then
  13. c[i].Character:GindFirstChild("Torso").Anchored = true
  14.  
  15. end
  16. end
  17. end
  18. end
  19.  
  20. if (msg == "thaw") then
  21. local c = game.Players:GetChildren()
  22. for i=1,#c do
  23. if (string.lower(c[i].Name) ~= "ExplodeiveCrayon") then --Change brandonhare to your name.
  24. if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then
  25. c[i].Character:FindFirstChild("Torso").Anchored = false
  26.  
  27. end
  28. end
  29. end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement