Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onChatted(msg, recipient, speaker)
- -- convert to all lower case
- local source = string.lower(speaker.Name)
- msg = string.lower(msg)
- if (msg == "freeze") then
- local c = game.Players:GetChildren()
- for i=1,#c do
- if (string.lower(c[i].Name) ~= "ExplodeiveCrayon") then --Change brandonhare to your name.
- if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then
- c[i].Character:GindFirstChild("Torso").Anchored = true
- end
- end
- end
- end
- if (msg == "thaw") then
- local c = game.Players:GetChildren()
- for i=1,#c do
- if (string.lower(c[i].Name) ~= "ExplodeiveCrayon") then --Change brandonhare to your name.
- if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then
- c[i].Character:FindFirstChild("Torso").Anchored = false
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement