I have a labyrinth game, and people that play it always complain, that they have to rejoin, to play it again. So I made a Rejoin button. But still, you have to rejoin. How can I do that they click a button and the game goes from the start again?
Hi there! here is a local script that you could place in your rejoin button:
1 | script.Parent.MouseButton 1 Click:Connect( function () |
2 | game.Players.LocalPlayer.Character [ "Humanoid" ] .Health = 0 |
3 | end ) |
This should reset the PlayerGui and the local scripts, although this wouldn't reset the scripts. It shouldn't reset any scripts, because they are server-sided, and would reset every player's game as well.