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

My equal sign underlined in red?

Asked by 7 years ago
Edited 7 years ago

I know I'm stupid, this is a simple fix. (But it's funny how I'm having trouble with this one.) Everytime I try, the '=' is underlined in red, help.

1if workspace.Okay.Value = true then
2        wait(1)
3        f1.PlayerGui.Radio.Frame.Input.Selectable = false
4        wait(0.2)
5        f1.PlayerGui.Radio.Frame.Play:Remove()
6        wait(0.3)
7        f1.PlayerGui.Radio.Frame.Input.Text = game.Workspace.Theme.SoundId
8    end

LINK: https://prnt.sc/ik4iu1

2 answers

Log in to vote
0
Answered by 7 years ago

I think you mean to put two equal signs.

1if workspace.Okay.Value == true then
0
O ty, little mistakes like these cost the whole script... IIApexGamerII 76 — 7y
Ad
Log in to vote
0
Answered by
hokyboy 270 Moderation Voter
7 years ago

with a if statment you always need ==

0
Ty I appreciate the answer, but sadly I can only accept one answer, and @Comfy_Chair answered first, but ty though. I realised my mistakes. IIApexGamerII 76 — 7y

Answer this question