Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Please fix this script. What is wrong with it?

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

1 comment

0

Just edited to code block

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.