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

How do i stop the nametags from overlapping?

Asked by 5 years ago

I tried some ways but i can't figure it out, please help, and always on top is on.

01local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
02 
03game.Players.PlayerAdded:Connect(function(player)
04 
05    player.CharacterAdded:Connect(function(character)
06        local clonedgui = billboardgui:Clone()
07        clonedgui.TextLabel.Text = "Player"
08        clonedgui.TextLabel.TextColor3 = Color3.fromRGB(36,154,136)
09        clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
10 
11        while true do
12            wait()
13            if player.Name == "ivan6361" then
14                local clonedgui = billboardgui:Clone()
15                clonedgui.TextLabel.Text = "Owner(coder)"
View all 21 lines...

1 answer

Log in to vote
1
Answered by 5 years ago
01local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
02 
03game.Players.PlayerAdded:Connect(function(player)
04 
05    player.CharacterAdded:Connect(function(character)
06    if player.Name == "e" then
07 
08        local clonedgui = billboardgui:Clone()
09        clonedgui.TextLabel.Text = "Owner(coder)"
10        clonedgui.TextLabel.TextColor3 = Color3.fromRGB(36,154,136)
11        clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
12        else
13 
14    local clonedgui = billboardgui:Clone()
15        clonedgui.TextLabel.Text = "Player"
16        clonedgui.TextLabel.TextColor3 = Color3.fromRGB(36,154,136)
17        clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
18            end
19       end)
20end)

Should work. Replace "e" with specified name.

0
Yas tysm ivan6361 34 — 5y
0
Should have said this before, but you can do 'or "other dev name here" or "another name' to add more developers in the if statement. DejaSketch 84 — 5y
Ad

Answer this question