1 | game.Players.PlayerAdded:Connect( function (plr) |
2 | if plr.Name = = "CTGM_DEV" then |
3 | script.Parent.TextLabel.Text = "Owner is here!" |
4 | else |
5 | script.Parent.TextLabel.Text = "Owner is not here." |
6 | end |
7 | end ) |
Try this maybe... I'm on mobile so not entirely sure if that's correct
01 | local textLabel = script.Parent:WaitForChild( "TextLabel" ) |
02 | local text = "Owner is not here." |
03 |
04 | for i,v in pairs (game.Players:GetChildren()) do |
05 | if v.Name = = "CTGM_DEV" then |
06 | text = "Owner is here!" |
07 | else |
08 | text = "Owner is not here." |
09 | end |
10 | end |
11 |
12 |
13 | textLabel.Text = text |