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

Make certain user load certain character?

Asked by 5 years ago

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
0
and whare is the personal character? Luka_Gaming07 534 — 5y
0
I'm not sure where to put it, maybe serverstorage? Screaming_Monkeys 4 — 5y

1 answer

Log in to vote
0
Answered by
Dfzoz 489 Moderation Voter
5 years ago
Edited 5 years ago

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) 

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. Screaming_Monkeys 4 — 5y
0
i put the code on my answer so you can understand it better Dfzoz 489 — 5y
Ad

Answer this question