How do I go about a rejoin button?

Hello!

While in the testing phase of the demo of my game, I asked for feedback.
I was told that since my game is a single player game, whenever the player wins/looses, i really think this is a good idea considering how it can be annoying of leaving the game and rejoining.

So how do I go about this:

Making a button (UI, just to be specific), that makes the player rejoin the game.

Thanks for reading.

script.Parent.MouseButton1Click:Connect(function()
    game:GetService("TeleportService"):Teleport(game.PlaceId)
end)
5 Likes