[SOLVED] :Disconnect() Not Working

Okay, once I get out of the driver’s seat it stops working but when I get back in it starts running duplicates.

If I get out/in X amount of times, it runs the function X amount of times.

Do you know why it would be causing this?

2 Likes

I have decided to make it print the parent every time the input is pressed.

This is what it shows the 2nd time I’ve gotten in the driver seat:
image

This is what it shows the 3rd time I’ve gotten into the driver seat:
image

This is what it shows the 4th time I’ve gotten into the driver seat:
image

Hopefully, you can see the pattern.

it should technically be printing the parent the same amount of times it prints “T” but it is not. So I guess the old scripts don’t have a parent but are still running the function if I’m in the driver’s seat?

2 Likes

I Still need help with this, I am still having issues.

2 Likes

try printing A.Connected and B.Connected

just making sure that the issue actually originates with them not disconnecting and not somewhere else

2 Likes

Okay so I did that, and it will only print "(true,true) " once which I guess is the active script. But the function is still firing X amount of times that the player sits in the seat.

1 Like

Welp, I have figured out the solution, the script responsible for deleting the GUI ended up being a local script. This would explain why nothing is showing on the client’s end. I am foolish for not checking the server to see if the GUI was even being deleted, to begin with. Let this be a lesson not to trust other people’s scripts as they may have done something stupid. My apologies for the time wasted that yall put in, I thank everyone here for their help.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.