I'm a beginner scripter, and I'm having some problems with just one very simple function.
Here is my script, and somehow every time I test it out and click the open button, my text label doesn't appear.
Button:
Text = game.StarterGui.ScreenGui.TextLabel
script.Parent.MouseButton1Click:connect (function()
Text.Visible = not Text.Visible
end)
Please don't criticize the script i made above, because I just started scripting ;)
All answers are appreciated!
Thanks!

1 comment
Also, when i test and click the button, on properties the visible changes, but it doesnt show in game