Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Make certain user load certain character?

I'm currently trying to get it so where a certain user will have their own personal custom character loaded in game. I already have the character ready but I'm not sure how to get it to make it the user's character.

Here is the script I have so far.


--Player Stuff--
local player = game:GetService("Players").Screaming_Monkeys
local chara = player.Character




2 comments

0

and whare is the personal character?

0

I'm not sure where to put it, maybe serverstorage?

1 answer

use player:ClearCharacterAppearance() then player:LoadAppearance(playerId):

--Player Stuff--
local player = game:GetService("Players").Screaming_Monkeys
player:ClearCharacterAppearance() 
player:LoadCharacterAppearance(PLAYER ID YOU WANT) 

The playerId are numbers, you can get it in the link to someone profile (example: my profile is "https://www.roblox.com/users/2479393/profile", so my userId is 2479393), or if you want the if of someone ingame you can get the property userId or characterappearanceid of a player:

--Player Stuff--
local player = game:GetService("Players").Screaming_Monkeys
local id = game:GetService("Players").PLAYERNAME.UserId
player:ClearCharacterAppearance() 
player:LoadCharacterAppearance(id) 

2 comments

0

So would I use what you posted only or try and add it with the code I provided because I'm not sure where to put that code at.

0

i put the code on my answer so you can understand it better

This discussion is preserved as it was. New answers, comments, and votes are closed.