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

How do I make a GUI text label say when the owner is there and when the owner is not there?

game.Players.PlayerAdded:Connect(function(plr)
	if plr.Name == "CTGM_DEV" then
		script.Parent.TextLabel.Text = "Owner is here!"
	else
		script.Parent.TextLabel.Text = "Owner is not here."
	end
end)

1 answer

✓ Accepted answer

Try this maybe... I'm on mobile so not entirely sure if that's correct

local textLabel = script.Parent:WaitForChild("TextLabel")
local text = "Owner is not here."

for i,v in pairs(game.Players:GetChildren()) do
	if v.Name == "CTGM_DEV" then
		text = "Owner is here!"
	else
		text = "Owner is not here."
	end
end


textLabel.Text = text

1 comment

0

Thanks!

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