Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

	end

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.