if game.Workspace.Tardis.Inside.Fuse.Value = true then
game.Workspace.Tardis.Inside.ScreenPanel.Screen.SurfaceGui.Enabled = true
else
game.Workspace.Tardis.Inside.ScreenPanel.Screen.SurfaceGui.Enabled = false
end
✓ ANSWER ACCEPTED
Please fix this script. What is wrong with it?
3 answers
✓ Accepted answer
I don't know, but what will help is if you did this in code block so you don't ruin your rep. Plus it might ruin others as well.
Replace '=' to '=='.
'=' Means you're going to assign it to something.
'==' Means it is equivalent to something.
Give a substantial description and what goal your script is trying to reach next time, so we would know what you're trying to do. :)
In your if statement on line 1, add an extra equal sign.
= - This means you are defining / setting something.
== - This is comparing something.
Since you're comparing whether or not Fuse's Value is true you want two equal signs.
if game.Workspace.Tardis.Inside.Fuse.Value == true then
game.Workspace.Tardis.Inside.ScreenPanel.Screen.SurfaceGui.Enabled = true
else
game.Workspace.Tardis.Inside.ScreenPanel.Screen.SurfaceGui.Enabled = false
end
Also I suggest setting some variables.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Just edited to code block