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

How do I make someone look like another player?

Asked by 10 years ago

I'm trying to make a script in which rather than loading your character appearance, you load another player's.

Here's my script.

game.Players.PlayerAdded:connect(
function(p)
    p.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=247535&placeId=0"
end
)

1 answer

Log in to vote
1
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
10 years ago
game.Players.PlayerAdded:connect(function(p)
    repeat wait() until p.Character ~= nil
    repeat wait() until p.Character:FindFirstChild("Head")
    repeat wait() until p.Character:FindFirstChild("Torso") --Want to make sure the character is loaded enough.
    p.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=247535&placeId=0" --Change his looks.
    wait(1) --For some reason the player's character still wants to load so it should wait.
    p:LoadCharacter() --Player gets respawned.
end)
0
Thanks, it works great. xolbStudios 127 — 10y
Ad

Answer this question