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

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

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

✓ Accepted answer

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

2 comments

0

oh

0

TYSN i was panik

what line causes the error

1 comment

0

line 3 but somebody already solved it thanks for trying to help :)

This discussion is preserved as it was. New answers, comments, and votes are closed.