When a textbutton is clicked on I want a frame to become visible so I have this script:
local button = script.Parent
local credits = game.StarterGui.CreditGUI.Credits
button.MouseButton1Click:Connect(function(h)
print("ello")
credits.Visible = true
end)
And it will print "ello" when clicked, but the frame is still not visible. I've got the exact same script inside of the frame, but it's to make visible equal to false, it still prints the thing, but won't close the frame.
I tried to do this in a serverscript too, it wouldn't work.
This code is also in a local script.
Thanks ^^

2 comments
try it but dont put the h in the () ok?
The "h" doesn't matter really. I've tried but it still won't work.