Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My script dosen't work it just idles the whole time? [closed]

Asked by 3 years ago
Edited by EzraNehemiah_TF2 3 years ago

This question has been solved by the original poster.

I've worked on this script and I can't figure out whats wrong with it, the print line dosen't print anything into output and the value when it increases, it should change the transparency and print in output "Unstable Condition" but its not doing either.

EDIT: Realised I missed a bit of code ._.

while true do
 wait(0)
      if game.Workspace.Temp.Value < 1023 then 
        workspace.Screen1.criticalcondition.Transparency = 1
        workspace.Screen1.meltdown.Transparency = 1
        workspace.Screen1.unstablecondition.Transparency = 1
        workspace.Screen1.goodcondition = 0 -- here is what i messed up lol
        print("Condition Good")
    elseif game.Workspace.Temp.Value > 1023 and game.Workspace.Temp.Value < 2061 then
        workspace.Screen1.criticalcondition.Transparency = 1
        workspace.Screen1.meltdown.Transparency = 1
        workspace.Screen1.unstablecondition.Transparency = 0
        workspace.Screen1.goodcondition = 1 --and here
        print("Unstable Condition")
    elseif game.Workspace.Temp.Value > 2062 and game.Workspace.Temp.Value < 3999 then 
        workspace.Screen1.criticalcondition.Transparency = 0
        workspace.Screen1.meltdown.Transparency = 1
        workspace.Screen1.unstablecondition.Transparency = 1
        workspace.Screen1.goodcondition = 1 --and here
        print("Critical Condition")
    elseif game.Workspace.Temp.Value > 3999 and game.Workspace.Temp.Value < 99999999999999999999999999 then
         workspace.Screen1.criticalcondition.Transparency = 1
        workspace.Screen1.meltdown.Transparency = 0
        workspace.Screen1.unstablecondition.Transparency = 1
        workspace.Screen1.goodcondition = 1 --and here
        print("Meltdown")
    end 
end

0
You don't need to add "closed" to the title of your question, a moderator will do that for you. EzraNehemiah_TF2 3552 — 3y

Locked by EzraNehemiah_TF2

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?