#Tool breaks when there are 2 of them

18 messages · Page 1 of 1 (latest)

sullen yacht
#

I have a pair of Binoculars that zoom in and show an overlay when you use them. It works totally fine. But when I duplicate it, changing nothing, the second pair breaks. Not the first. If I get the second pair first, that one works fine, the original doesn't. I've changed their names, a few of the variables, etc so they're different, but it doesn't work. The only thing that did work was duplicating the overlay, renaming it, and assigning it to the second pair. The overlay would show up but the zooming wouldn't. I printed each step, and every step worked. From the aiming variable, to the zoom tweening, everything, but nothing would actually happen. Everything is local is that means anything? I'm brand new so idk

coral plank
#

does the “On” variable ever get set to false?

#

or is that js an indicator for equipping the tool actually

#

prob is that’s mb lol

sullen yacht
#

it's set true when the tool is equipped and false when unequipped

#

i have a feeling it could be that but I've changed it so they're both separate and it's still broken

coral plank
#

maybe try having a tool unequipped connection that sets aiming to false

#

it could b that 2 scripts trying to aim is conflicting w each other

sullen yacht
#

like this?

coral plank
#

yup

sullen yacht
#

still broken 💔

wet wyvernBOT
#

studio** You are now Level 2! **studio

sullen yacht
#

okay

#

turns out the 'On' variable wasnt applying to my renderstep

#

fml

nocturne sundial
sullen yacht