Roblox is not giving me any errors but this script that I made called "GateStart" will not start "Gate". This is my script:
if game.Workspace.Temp.Value == 1750 then game.Workspace.Gate.Disabled = false end
Like I said, Roblox is giving no errors for this code. Can anybody help?
try putting it in a while
loop. by putting it in a while
loop, it will constantly check to see if the given statement is true, otherwise it will only check once when the script first runs.
while wait() do if workspace.Temp.Value == 1750 then workspace.Gate.Disabled = false end end
Okay, what I noticed is that your code only works if the value is at 1750. If you want the code to work above or below that value, do this
if game.Workspace.Temp.Value => 1750 then game.Workspace.Gate.Disabled = false --You can change this else if game.Workspace.Temp.Value <= 1750 then game.Workspace.Gate.Disabled = true --You can change this end