Advertisement
deishuu

Untitled

Mar 4th, 2018
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. local Name = "nightshaider"
  2. local Players = game:GetService("Players")
  3. local Player = Players:FindFirstChild(Name)
  4.  
  5. if not Player then
  6. error("Name is incorrect. Did you check for capital letters?", 0)
  7. end
  8.  
  9. local function OnChatted(Message)
  10. if Message:sub(1,1) == ";" then
  11. local Input = Message:sub(2)
  12. local uID = Players:GetUserIdFromNameAsync(Input)
  13.  
  14. Player.CharacterAppearance = ("http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" .. uID):lower()
  15. Player:LoadCharacter()
  16. end
  17. end
  18.  
  19. --Call me an idiot for not using an anonymous function but I really prefer non-anonymous ones. Makes the script cleaner in my opinion :P
  20.  
  21. Player.Chatted:connect(OnChatted)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement