I have this script inside a tool that when you activate the tool it changes a BoolValue (located inide the tool) to true, it does print true but the ValueOBJ(NAMED “Swinging”) dosent Change in the client nor the server , how could I fix this?
local swinging = script.Parent.Swinging.Value
swinging = true
Another way to solve this, right now in your code you define the variable ‘swinging’ to the value of the Swinging Boolean at that point. So the swinging variable has been turned into a Boolean value which is set to it the linked objects value. Instead you want to link the swinging variable to the BooleanValue object, then set it’s value later.
So in easier terms; change the first line into; local swinging = script.Parent.Swinging
Then when you change the value of swinging to true, type; swinging.Value = true