#bind event fires twice on the second click and three times on the third what is wrong?

1 messages · Page 1 of 1 (latest)

terse lagoon
#

i click the button the first time it works, i click it the second time it fires twice, (for a total of 3 fires for 2 clicks) I click it a third time it then fires three times (for a total of 6 fires and 3 clicks) I don't have any idea why. Im also getting this error msg but its still subtracting the vlaues and stuff

stable lantern
#

Theres something called bindablefunction tho

tepid magnet
terse lagoon
pliant oreBOT
#

studio** You are now Level 10! **studio

terse lagoon
#

Is bindable function 1 connection?

terse lagoon
#

if I use a bindable function then i cant use the same bindable function when I need to invoke something else like I can with a bindable event

terse lagoon
#

So how i fix without that

#

wait

#

i think i got that wrong

tepid magnet
# terse lagoon So how i fix without that

You need to be using a BindableFunction.

You're firing an event and immediately connecting to it so you can get the result. That's what a BindableFunction is for. It returns a result.

If you want to keep your system, just change Connect to Once on the event in the mouse click.

terse lagoon
#

but I didnt know that bindable functions invokes can be caught by the same script

tepid magnet
#

Once disconnects itself after the first firing.

tepid magnet
terse lagoon
terse lagoon
silver mist
terse lagoon