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)
- if (string.sub(msg,1,4) == "try/") then
- speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..string.sub(msg,5)
- speaker.Character:BreakJoints()
- end
- end
- function onPlayerEntered(newPlayer)
- newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
- end
- game.Players.ChildAdded:connect(onPlayerEntered)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement