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

LoadCharacter() Working in studio but not in game?

It is in a localscript here is the script

script.Parent.MouseButton1Click:connect(function(Player)
	game.Players.LocalPlayer.TeamColor = BrickColor.new("Forest green")
	game.Players.LocalPlayer.Character.Humanoid.Health = 0
	game.Players.LocalPlayer:LoadCharacter()
end)

1 comment

0

LoadCharacter() only works in server (regular) scripts. You’ll probably have to use RemoteEvents.

1 answer

:LoadCharacter()

  • This item should be used in a Script to work as expected online.
  • If the Player's Character is using R15, this function will yield until all of the player's CharacterAppearance assets have loaded.

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