It may sound like a simple question, but I used correct code and when I ran the game, it didn't remove the frame but there was no errors in my output. What's going on here? Should I use it for a local script or a Server Script? Note: IN THE VIDEO, THE PROBLEM ISN'T THE CREATE CHARACTER BUTTON, ITS THE TITLE FRAME LABELED "Guest Quest"
local Button = script.Parent Frame2 = script.Parent.Parent function onClick() if Frame2.Visible == false then Frame2.Visible = true elseif Frame2.Visible == true then Frame2.Visible = false end end Button.MouseButton1Click:Connect(onClick)