Nothing is in the Developer Console.
01 | local tag = game:GetService( "ServerStorage" ):WaitForChild( "NameTag" ) |
02 |
03 | local Special_People = { "Enomphia" , "skye_a74" , "iiJakey_1" } |
04 |
05 | game.Players.PlayerAdded:Connect( function (plr) |
06 | plr.CharacterAdded:Connect( function (char) |
07 | for _,v in pairs (Special_People) do |
08 | if plr.Name = = v then |
09 | local clonedtag = tag:Clone() |
10 | clonedtag.n.Text = (plr.Name) |
11 | clonedtag.Parent = char.Head |
12 | clonedtag.n.TextColor 3 = Color 3. new( 0 , 0 , 0 ) |
13 | else |
14 | local clonedtag = tag:Clone() |
15 | clonedtag.n.Text = (plr.Name) |
16 | clonedtag.Parent = char.Head |
17 | end |
18 | end |
19 | end ) |
20 | end ) |
Boom! Just found the issue. I copied your script and used it myself and It worked, with one person in the Table. Try doing this:
01 | local tag = game:GetService( "ServerStorage" ):WaitForChild( "NameTag" ) |
02 | game.Players.PlayerAdded:Connect( function (player) |
03 | player.CharacterAdded:Connect( function (char) |
04 | if player.Name = = "Enomphia" then |
05 | local clonedtag = tag:Clone() |
06 | clonedtag.n.Text = (player.Name) |
07 | clonedtag.Parent = game.Workspace:WaitForChild(player.Name).Head |
08 | clonedtag.n.TextColor 3 = Color 3. fromRGB( 0 , 0 , 0 ) |
09 | elseif |
10 | player.Name = = "skye_a74" then |
11 | local clonedtag = tag:Clone() |
12 | clonedtag.n.Text = (player.Name) |
13 | clonedtag.Parent = game.Workspace:WaitForChild(player.Name).Head |
14 | clonedtag.n.TextColor 3 = Color 3. fromRGB( 0 , 0 , 0 ) |
15 | elseif |
maybe try to do it on the client side? something like this works for me:
1 | local player = game.Players.LocalPlayer |
2 | local char = player.Character |
3 | if not char or char.Parent then |
4 | char = player.CharacterAdded:Wait() |
5 | end |
6 | if player.Name = = "Warmthness" or "you" then |
7 | game.ServerStorage.NameTag:Clone().Parent = char:FindFirstChild( "Head" ) |
8 | end |