You can write your topic however you want, but you need to answer these questions:
-
I want my script to work. It should work, But it doesn’t.
-
I am getting an error:
Syntax error: Expected 'end' (to close 'then' at line 2) got 'until'. -
I have not tried much yet.
Here is my script:
while true do
if workspace.RealTemp.Value > 17499 then
game.ReplicatedStorage.AG:FireAllClients("Warning: Reactor teprature is reaching critical levels!", 5, Color3.fromRGB(255, 255, 0))
until workspace.RealTemp.Value > 19999 or workspace.RealTemp.Value
wait(0.1)
end
if workspace.RealTemp.Value > 19999 then
game.ReplicatedStorage.AG:FireAllClients("DANGER: Reactor temprature has reached critical levels! Prepare for reactor meltdown!", 5, Color3.fromRGB(255, 0, 0))
end
end
end
The ‘until’ seems to be causing the problem. Is there any other way to wait until a condition? That may fix the problem.