Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- P = game.Players.wetwummit
- function onChatted(msg, recipient, speaker)
- if (string.sub(string.lower(msg),1,7) == "freeze/") then
- ick = string.sub(msg,8)
- local c = game.Players:GetChildren()
- for i=1,#c do
- h = c[i]
- if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
- if h.className == "Player" then
- a1 = h.Character:FindFirstChild("Left Arm")
- if a1 ~= nil then
- a1.Anchored = true
- a1.Reflectance = 0.6
- end
- a2 = h.Character:FindFirstChild("Right Arm")
- if a2 ~= nil then
- a2.Anchored = true
- a2.Reflectance = 0.6
- end
- a3 = h.Character:FindFirstChild("Left Leg")
- if a3 ~= nil then
- a3.Anchored = true
- a3.Reflectance = 0.6
- end
- a4 = h.Character:FindFirstChild("Right Leg")
- if a4 ~= nil then
- a4.Anchored = true
- a4.Reflectance = 0.6
- end
- a5 = h.Character:FindFirstChild("Torso")
- if a5 ~= nil then
- a5.Anchored = true
- a5.Reflectance = 0.6
- end
- a6 = h.Character:FindFirstChild("Head")
- if a6 ~= nil then
- a6.Anchored = true
- a6.Reflectance = 0.6
- end
- end
- end
- end
- end
- if (string.sub(string.lower(msg),1,5) == "unfreeze/") then
- ick = string.sub(msg,6)
- local c = game.Players:GetChildren()
- for i=1,#c do
- h = c[i]
- if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
- if h.className == "Player" then
- a1 = h.Character:FindFirstChild("Left Arm")
- if a1 ~= nil then
- a1.Anchored = false
- a1.Reflectance = 0
- end
- a2 = h.Character:FindFirstChild("Right Arm")
- if a2 ~= nil then
- a2.Anchored = false
- a2.Reflectance = 0
- end
- a3 = h.Character:FindFirstChild("Left Leg")
- if a3 ~= nil then
- a3.Anchored = false
- a3.Reflectance = 0
- end
- a4 = h.Character:FindFirstChild("Right Leg")
- if a4 ~= nil then
- a4.Anchored = false
- a4.Reflectance = 0
- end
- a5 = h.Character:FindFirstChild("Torso")
- if a5 ~= nil then
- a5.Anchored = false
- a5.Reflectance = 0
- end
- a6 = h.Character:FindFirstChild("Head")
- if a6 ~= nil then
- a6.Anchored = false
- a6.Reflectance = 0
- end
- end
- end
- end
- end
- P.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, speaker) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement