I was trying to change the appearance of my player using a script. The code I used is right here.
game.Players.AJ_VEGAS.CharacterAppearanceId = 156
And for some reason, this didn't work, even if I reset.
I was trying to change the appearance of my player using a script. The code I used is right here.
game.Players.AJ_VEGAS.CharacterAppearanceId = 156
And for some reason, this didn't work, even if I reset.
The problem isn't really an issue but more like something you haven't done. You need to reload the character so that they can spawn as the new set CharacterAppearanceId.
This is easily done with Player:LoadCharacter():
local player = game.Players.xPolarium
--This would only get a player named "xPolarium". Can be nil if they don't exist in the server.
player.CharacterAppearanceId = 156
player:LoadCharacter()
Above is just an example and can be tested in solo-server mode using the output or something like a PlayerAdded event.
Yes. Finally somebody who isn't stupid.
Thanks!
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
are you sure 156 is a valid id? Most character appearance ids have multiple digits more than 3 for sure
156 is the id for builder man. https://web.roblox.com/users/156/profile