Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to change a characters appearance using scripts?

Asked by 5 years ago

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.

0
are you sure 156 is a valid id? Most character appearance ids have multiple digits more than 3 for sure wwwdanielwww 5 — 5y
0
156 is the id for builder man. https://web.roblox.com/users/156/profile VoidKeyword 111 — 5y

1 answer

Log in to vote
0
Answered by
xPolarium 1388 Moderation Voter
5 years ago
Edited 5 years ago

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():

```lua 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.


Let me know if you need anything else or if I missed something.

0
Yes. Finally somebody who isn't stupid. DeceptiveCaster 3761 — 5y
0
Thanks! VoidKeyword 111 — 5y
Ad

Answer this question