while true do
wait(1)
if game.Workspace.SmokeBreak.Broken.Value == false then
if script.Parent.Parent.Reactorvalve.Value == true then
if script.Parent.Parent.Releasing.Value == true then
script.Parent.Value = script.Parent.Value+3
end
end
if game.Workspace.SmokeBreak.Broken.Value == true then
if script.Parent.Parent.Releasing.Value == true then
if script.Parent.Parent.Reactorvalve.Value == true then
script.Parent.Value = script.Parent.Value+6
end
end
if script.Parent.Parent.Releasing.Value == false then
if script.Parent.Value > 0 then
script.Parent.Value = script.Parent.Value-1
end
end
end
end
end
Yes, I know I could have used "and", but I didn't know it at the time. Would that have fixed it?
There are no errors, and I don't see why, but this value rises when the rise conditions are met, but doesn't fall when the fall conditions are met.
Did I miss an "End" there or something? What is the problem?
