Ad
Log in to vote
0

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

Asked by 14 days 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 14 days 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 2 — 14d
0
TYSN i was panik Iamverychill2 2 — 14d
Ad
Log in to vote
0
Answered by 14 days ago

what line causes the error

0
line 3 but somebody already solved it thanks for trying to help :) Iamverychill2 2 — 14d

Answer this question