How would I make my character load in when a button is pressed?

Hey! Is there any way to only load my character when a button is pressed? Everytime I use CharacterAutoLoads and player:LoadCharacter, the gui I’m using becomes invisible. Any help is greatly appreciated!

1 Like

Assuming the LocalScript is inside of the button:

script.Parent.MouseButton1Click:Connect(function()
    local Player = game.Players.LocalPlayer

    Player:LoadCharacter()
end)

Make sure ResetOnSpawn is enabled on the ScreenGui!

1 Like

It worked! I had player:LoadCharacter() in a server script, and after putting it in a local script it worked like intended. Thanks!

1 Like