Alright, so, I am making an airport gate system, however when it comes to testing, there is an issue. The first time I sit on the seat, the UI appears all well as it should, however, if i get off the seat and back on, it doesnt, even though the print line after it executes. The line which is meant to set the jumpheight to 0 also doesnt execute on the second time, so it seems to me it is as if the script is just skipping over those 2 lines for some reason.
This is the main script that should be doing this
This is a local script which makes the ui disappear when the close button is pressed on the ui
This is a video to visualise the issue
I hope ive explained it well enough, thanks in advance