So assuming you have the label or whatever you wanted to be visible and not visible is in
the starter GUI.
If that is a local script:
You want to get the player so that you can access their PlayerGui. Because that is the place where the stuff in starterGui goes when a player spawns.
So here’s how you would get the player in a local script:
local player = game.Players.LocalPlayer
So the “.” Pretty much means Whatever is inside the thing before the period. So Players are inside game and your LocalPlayer (which is actually you if you joined the game) is inside the folder Players.
When you say
local blah
That pretty much means you are declaring a variable. And variables hold values or paths. So like how I said local player = the path of the player. A variable can be named anything you want, not just “blah”.
A path is where you went to get to them in the files. So you went from game to Players to LocalPlayer.
So next thing you need to do is declare your Label.
If this script is inside the label or button or whatever you had, then you can say
local labelBlah = script.Parent
So since the script is inside the label you can say script.Parent. “.Parent” means whatever the thing before the period is inside is the parent. So if you put a brick inside the label the bricks parent would be the label. If you put a script inside the brick, the scripts parent would be the brick.
If the localscript is not inside the label then you would get the labels path by saying
local label = player.PlayerGui.ScreenGui.label
Since you have the player, and PlayerGui is inside the player, and ScreenGUI is inside PlayerGui and label is inside screen GUI.
Now to make the label visible or not
label.Visible = false
label.Visible = true
Since Visible is a property inside label you would say label.Visible.
And true means it can be seen and false means it can’t.
Also screen GUI is something you need to hold the label.
Hope this helped you!
1 comment
I recommend that you quickly learn the basics by watching tutorials. Other than that, I see that you've already got some answers trying to help you.