Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a screen gui visible without a player having to die to see it?

Asked by
wjs3456 90
10 years ago

I have a screengui that I want to display. The problem is that I don't want the players to have to wait to die before they can see it. Is there anyway that I could make it visible before they die?

Hope I made sense. Thanks

2 answers

Log in to vote
1
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

Here's what I'm thinking: You have a GUI in StarterGui that is invisible. Therefore, when a player joins the game and everything in StarterGui is cloned into the PlayerGui, the GUI is invisible. Then, somewhere in your code you make the GUI in StarterGui visible, therefore making players have to die to see it.

Is this correct?

The way you fix this is to make your changes to the GUI in the player's PlayerGui, not StarterGui. I'm not sure how you have everything set up. You may have to use a for loop to affect all the player's PlayerGuis, or you may just have to use something like game.Players.LocalPlayer if it's a local script.

0
Thanks it worked. Sorry you had to assume so much. Just hard to explain. wjs3456 90 — 10y
Ad
Log in to vote
0
Answered by
u_g 90
10 years ago

I think I know what you mean. You want a screen gui to be visible to a player, but, they need to reset in order to have the gui automatically cloned into their "PlayerGui" section, via the StarterGui. In this case, use :clone() on the gui you would like a player to see, and then, set the :clone()'s parent to game.Players.[PlayerName].PlayerGui.

Answer this question