I only want the client to see if its value is true or not, but it isnt changing at all do you know what the problem could be?
local AttackingBool = DataFolder:FindFirstChild("Attacking")
Tool.Activated:Connect(function()
if not on then return end
if CanAttack == true then
AttackingBool.Value = true
CanAttack = false
SwingAnim()
wait(0.5)
AttackingBool.Value = false
CanAttack = true
end
end)
also it wont change for the server (it’ll just change for the client, the local player) if it is a local script so you may have to use remote events
you can also make it a server script, the Activated event of tools isnt client only so you can make it a server script and change the value by that, do not forget to use