Advertisement
Guest User

Ice

a guest
Feb 7th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. P = game.Players.wetwummit
  2.  
  3. function onChatted(msg, recipient, speaker)
  4.  
  5. if (string.sub(string.lower(msg),1,7) == "freeze/") then
  6. ick = string.sub(msg,8)
  7. local c = game.Players:GetChildren()
  8. for i=1,#c do
  9. h = c[i]
  10. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  11. if h.className == "Player" then
  12. a1 = h.Character:FindFirstChild("Left Arm")
  13. if a1 ~= nil then
  14. a1.Anchored = true
  15. a1.Reflectance = 0.6
  16. end
  17. a2 = h.Character:FindFirstChild("Right Arm")
  18. if a2 ~= nil then
  19. a2.Anchored = true
  20. a2.Reflectance = 0.6
  21. end
  22. a3 = h.Character:FindFirstChild("Left Leg")
  23. if a3 ~= nil then
  24. a3.Anchored = true
  25. a3.Reflectance = 0.6
  26. end
  27. a4 = h.Character:FindFirstChild("Right Leg")
  28. if a4 ~= nil then
  29. a4.Anchored = true
  30. a4.Reflectance = 0.6
  31. end
  32. a5 = h.Character:FindFirstChild("Torso")
  33. if a5 ~= nil then
  34. a5.Anchored = true
  35. a5.Reflectance = 0.6
  36. end
  37. a6 = h.Character:FindFirstChild("Head")
  38. if a6 ~= nil then
  39. a6.Anchored = true
  40. a6.Reflectance = 0.6
  41. end
  42. end
  43. end
  44. end
  45. end
  46.  
  47. if (string.sub(string.lower(msg),1,5) == "unfreeze/") then
  48. ick = string.sub(msg,6)
  49. local c = game.Players:GetChildren()
  50. for i=1,#c do
  51. h = c[i]
  52. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  53. if h.className == "Player" then
  54. a1 = h.Character:FindFirstChild("Left Arm")
  55. if a1 ~= nil then
  56. a1.Anchored = false
  57. a1.Reflectance = 0
  58. end
  59. a2 = h.Character:FindFirstChild("Right Arm")
  60. if a2 ~= nil then
  61. a2.Anchored = false
  62. a2.Reflectance = 0
  63. end
  64. a3 = h.Character:FindFirstChild("Left Leg")
  65. if a3 ~= nil then
  66. a3.Anchored = false
  67. a3.Reflectance = 0
  68. end
  69. a4 = h.Character:FindFirstChild("Right Leg")
  70. if a4 ~= nil then
  71. a4.Anchored = false
  72. a4.Reflectance = 0
  73. end
  74. a5 = h.Character:FindFirstChild("Torso")
  75. if a5 ~= nil then
  76. a5.Anchored = false
  77. a5.Reflectance = 0
  78. end
  79. a6 = h.Character:FindFirstChild("Head")
  80. if a6 ~= nil then
  81. a6.Anchored = false
  82. a6.Reflectance = 0
  83. end
  84. end
  85. end
  86. end
  87. end
  88.  
  89.  
  90. P.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, speaker) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement