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

LoadCharacter() Working in studio but not in game?

Asked by 6 years ago

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)
0
LoadCharacter() only works in server (regular) scripts. You’ll probably have to use RemoteEvents. User#20279 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

: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.
Ad

Answer this question