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!
You wouldn't change what is on the StarterGui. Each player has their own gui called the "PlayerGui", and the game replicates what is on the startergui to the player's gui.
Put this in a LocalScript inside the TextLabel.
local Text = script.Parent Text.MouseButton1Click:Connect(function() Text.Visible = not Text.Visible end)