I have a sword with multiple bool value under it. These bool values have corresponding re-skin textures. I am trying to make a button that will function as an equip button for the different values depending on what the player has and if they have clicked the gui button to enable that bool value.
I have the following code but it is not doing anything. No errors. Also how could I make it so they can only set true to one at a time when i intend to have multiple button with this script just calling on a different value.
This script is a local script under the button itself. I have a master script but wasn't sure how to incorporate it into that. My game is filtering enabled.
~~~~~~~~~~~~~~~~~`` local testswordvalue = game.ServerStorage.Sword:FindFirstChild("TestSword") script.parent.MouseButton1Down:connect(function() if testswordvalue.Value then testswordvalue.Value = true else testswordvalue.Value = false end end) ~~~~~~~~~~~~~~~~~``