So, I made a join court script for my basketball game, but I don’t know how to make a leave court script.

I’m trying to make it when the player is on they can see a GUI to leave the court.
So, I made a join court script for my basketball game, but I don’t know how to make a leave court script.

I’m trying to make it when the player is on they can see a GUI to leave the court.
Create a gui and place it in startergui, in the gui, make the button set the humanoidrootpart of the player’s character to the position you want. At the end of your script that gets them in the court, make it access the player’s playergui and make the frame visible.
My approach would be something like this:
Hopefully this helps you out in some way.
Ok, thanks, I will try that out.
Thank you very much, it worked!