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

expected Identifier when parsing expression, got ')'?

Hey, I am very new to scripting, and got this error after writing a script, what should I do?

7 comments

0

What's your code?

0

local rightClick = script.Parent.MouseButton1Click:Connect(function() if rightClick == true then game.StarterGui.TextButton.Frame.Visible = true end)

0

not even sure it is working or anything

0

Ugh I feel like a complete idiot

0

You don’t need that right click variable at all just get rid of it, and it should work

0

Also, you never want to make changes to GUIs in StarterGui through scripts

0

okay, Thanks

1 answer

In the script you provided, i see that you use a variable to do it, which is....... not correct, I think you meant local function. You are also missing an end (due to if statement, which is useless), that cause the error to appear... And you are changing the gui (or frame) in startergui.. which is not quite correct.

local GUI = script.Parent  -- Your Gui(or frame), Put this script inside the frame
script.Parent.MouseButton1Click:Connect(function()
	GUI.Visible = true 
end)

Sorry for lack of detail due to i am lazy....... Article that might help: GUI , Gui button

Also hope that helped!

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