A frame won't show but the code is right

I am trying to write code when a textbutton is pressed, it would show but when I did that, it wouldn’t show. I tried putting a print to see if the code was going through and it was and i was getting no errors either but still wouldn’t show. I tried it again with it showing another frame and it worked fine. Why is this happening?

Code:
script.Parent.Messages.MouseButton1Click:Connect(function()
apps.Messages.Visible = true
print(“a”)
end)

Nevermind, I managed to fix it myself. It was just me being an idiot and making the wrong frame go visible.

1 Like