How to reload the character when they have pressed a GUI button?

Title says it all, I want to know how to load the character when they have pressed a GUI button. Not like a menu script but just a reload character button if it is bugged or when they switch jobs.

2 Likes

You can use the :LoadCharacter function, to load to character.
https://developer.roblox.com/en-us/api-reference/function/Player/LoadCharacter

You can execute it after player has clicked a button using MouseButton1Click, this can be found here:
https://developer.roblox.com/en-us/api-reference/event/GuiButton/MouseButton1Click

Let me know if you need further help.

2 Likes

LoadCharacter can’t be called from a localscript though

Then you can use RemoteFunction.

You can call the remote function to the server from a localscript when a button is clicked then use a server script to detect the call and run the :LoadCharacter function on the player.