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 6 years ago
Edited 6 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.

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

LINK: https://prnt.sc/ik4iu1

2 answers

Log in to vote
0
Answered by 6 years ago

I think you mean to put two equal signs.

if workspace.Okay.Value == true then
0
O ty, little mistakes like these cost the whole script... IIApexGamerII 76 — 6y
Ad
Log in to vote
0
Answered by
hokyboy 270 Moderation Voter
6 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 — 6y

Answer this question