Im experimenting with a script that goes through multiple phases. The phases are announced via a phase value. Heres the script:
script.Parent:WaitForChild("Phase")
local phase = script.Parent.Phase
wait(5)
script.Parent.Phase.Value = script.Parent.Phase.Value + 1
phase.Changed:connect(function()
script.Parent.Phase.Value = script.Parent.Phase.Value + 1
end)
The value changes to "1" on line 5 like it should, however does not changed to "2" when the Value Changed function fires.
All help is appreciated
