Hello! Today I needed something for a loading screen, and I had an invisible textlabel (I meant to make it invisible) For some reason when I test it, it doesn’t work.
There is no errors in the output. Here is the script:
wait(2)
Visible = true
Edit: Do I have to make it like this?
wait(2)
game.ReplicatedFirst.LocalScript.LoadingScreen.Frame.time.Visible = true --I did this because ReplicatedFirst is where my gui is located.
GUI Elements are supposed to go in StarterGui → PlayerGui.
When you set visible to true in ReplicatedFirst, it’s still there and not actually on the player’s screen.
So move it to either StarterGui and on join make it visible to true or when you set it to Visible move it to PlayerGui so like :
Placing your gui in ReplicatedFirst will not cause it to appear. Instead, you should place it under StarterGui and preferably parent your LocalScript to it, so that you can index it via script.Parent
From that point, in order to make a label visible, you’d do this:
I assume we have misunderstood here.
Do you actually want script that loads the game before the game starts?
because loading the game when you actually loaded is fake
So what you want is for the loading to work as a loading screen before the game actually loads
heres an AlvinBlox toturial so you can understand how to do it
Lordy this thread is a trainwreck. If you’re dead set on keeping the GUI in ReplicatedFirst, you’ll want a LocalScript in there as well that parents the GUI to the player’s PlayerGui. After you reparent it, you’ll want this code to run:
Okay so heres how your gonna wanna do it.
Create local script, and parent your textlabel to the StarterGui
Set textlabel to visible = false
Do in the local script where it defines localplayer and then go into localplayer and into PlayerGui and set textlabel’s visibility to true there. this works because what you edit in startergui is not what will happen in game, your script works but you have to update what the player sees and that is “PlayerGui”