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

HOW TO FIX Syntax error: expected when parsing expresion!?!

Asked by 3 years ago

PLEASE FIX THIS SCRIPT :( I WANNA MAKE A HORROR GAME BUT I CANT DO THIS

local Song = script:FindFirstChild("Caretaker stage 1")

if game.StarterGui.MenuGui.Frame.Visible = false then

    script.Song:Play()
end

2 answers

Log in to vote
0
Answered by
Ludzik78 136
3 years ago

In if statements, equals must be ==. Also, If you mentioned a variable, dont do script.Song, just Song Fixed Code:

local Song = script:FindFirstChild("Caretaker stage 1")

if game.StarterGui.MenuGui.Frame.Visible == false then

   Song:Play()
end
0
oh Iamverychill2 4 — 3y
0
TYSN i was panik Iamverychill2 4 — 3y
Ad
Log in to vote
0
Answered by 3 years ago

what line causes the error

0
line 3 but somebody already solved it thanks for trying to help :) Iamverychill2 4 — 3y

Answer this question