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

Help with character appearance?

the script doesnt work in studio, but in servers it automatically crashes the game.

game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=70701268" 
Player.Character:BreakJoints()
end)

1 answer

The Issue is that the script is running before the players character is loaded

function onPlayerEntered(player)
	wait(0.25)
	player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=261" --Shedletsky
	player:LoadCharacter(true)
	repeat wait () until player.Character ~= nil
end
game.Players.PlayerAdded:connect(onPlayerEntered)

Hope this helps

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