Proximity Prompt problem

My proximity prompt works just fine the only part that isn’t is that you can only use it once and then it won’t trigger again. and script works for first trigger but doesn’t for any other that comes after it how to fix?

1 Like

You probably have a debounce. Can you send some code? (Server and Client)

1 Like

It helps a lot if you send code!

1 Like


Well, its basically just a normal 1 line script inside it so I don’t see where is the problem.

TweenPosition must be run on the client, if I remember correctly

That isn’t the problem because thats working just fine. If I try to trigger it 2 times or more only the first one will work and second + won’t

It probably only works once because you never reset its position. Once it’s triggered, the frame is moved.

This is because you change the position to a new position through the client instead of the server, meaning that the server registers it as already in that position and doesn’t move it again.

No there is a closed button on the gui which I press to test it twice

Yes, I agree with this one. If you never reset the frame pos, it will be static

edit: wrong reply, meant to say that to @Kaid3n22

Can we see the close button code.?

I’ll send you in a sec leme just try something

This is redundant, kaiden gave the answer. He needs to tween the gui on the server instead of the client or it won’t work as expected, although I would definitely recommend he changes his tweens to a client side tween

I have tried that but it doesn’t fix it.

It seems to be done on the server, the screenshot he sent shows that the code is inside of a server script.

@icodedstevejobs Oh, I see now.

You’re closing the frame on the client, so the server still sees it as open and won’t do anything.

I just said that I already tried that and that isn’t working

What have you tried?

Making the close button into a server script as well and running it, it does the same thing