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

How can i make it so when an owner/admin joins my game it says so on a screen GUI?

Asked by 8 years ago
print 'agentbuzz3'
Check = {"agentbuzz3"}
    if Player.Name == Check[C]then
        game.StarterGui.ScreenGui.Frame.TextLabel.Text = "Owner Is in the House"

    end

1 answer

Log in to vote
1
Answered by 8 years ago

StarterGui

You have made the unfortunate mistake of using the StarterGui instead of the PlayerGui. Repeat after me: "I will not change things in StarterGui"
Good boy.

If you need to change something in the StarterGui, you want to instead make sure that you're checking inside the PlayerGui (Which is obviously found in Player.PlayerGui incase you didn't know). Anything found under StarterGui can be found the same way under PlayerGui.


In your case, you want to be changing the PlayerGui for every Player. This'll look something like:

for k,player in next, game.Players:GetChildren() do
    player.PlayerGui.ScreenGui.Frame.TextLabel.Text = "Owner Is in the House"
end

Simples.

Ad

Answer this question