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)
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)