Hello,
So I have this issue in which I’m trying to set a bool value to false, but by some reason it’s not working, it’s a server script and I have already added some prints to make sure the script was going trough and it is, the output isn’t showing any errors, anyways any help is appreciated.
Bank:WaitForChild("Values").Robbery.Changed:Connect(function()
if Bank:WaitForChild("Values").Robbery.Value == true then
for RobTime = 1, Bank.Values.RobTime.Value do
task.wait(1)
print(RobTime)
if RobTime == Bank:WaitForChild("Values").RobTime.Value then
Bank.Values.Cooldown.Value = true
print("Cooldown")
wait(Settings.Bank_Config.Cooldown * 60)
Bank.Values.Cooldown.Value = false
print("Not Cooldown")
end
end
end
end)
Since you said that both of the prints show up, I’m really confused as to why your script isn’t working. If both prints showed up, this means that the line of code that changes your cooldown value to false should have been processed.
Maybe check and make sure that your cooldown value is actually a bool value and not anything else? Maybe you overlooked the cooldown value’s type/class.