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
#Tool breaks when there are 2 of them
18 messages · Page 1 of 1 (latest)
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
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
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
like this?
yup
** You are now Level 2! **
uhh where's function and local?
forgot to edit the tags, problem solved, thanks!