I'm a beginner, so I literally do not understand what's wrong. I've dealt with this error before but this one confused me. I'm simply just trying to make an invisible frame visible when touching a text button.
script.Parent.MouseButton1Click:Connect(function() local Frame = script.Parent.Parent:WaitForChild("Frame").visible = true end)
COMMUNITY QUESTION
Expected identifier when parsing expression, got '=' ?
1 answer
You cannot initialize this as a variable while also setting the frame's Visible property to true in the same line.
local Frame = script.Parent.Parent:WaitForChild("Frame").visible = true
You'll have to separate it into two lines like so:
script.Parent.MouseButton1Click:Connect(function()
local Frame = script.Parent.Parent:WaitForChild("Frame")
Frame.Visible = true
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
now its saying its an infinite yeild on WaitForChild("Frame") , anything to fix that?
Do you have any other GUI's named Frame?