I have a function inside each one, that sets a value to true when I equip, and false when I de-equip it, but the weapons still shoot more than one rays when there are multiple equipped. If i have no weapons equipped, they don't fire. But if I have 2, each weapon fires 2 rays. Any help would be appreciated.
COMMUNITY QUESTION
raycast guns shoot multiple rays when more than 1 equipped?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Add a boolean value inside player named something. When you equip one gun, set that value to true and when you dequip it, set that value to false. Add a check to see if boolean is false before allowing to equip.
yes but i already have a value inside of the script, so shouldn't that function the same way?
and also i did the boolean it does not work.