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

How do you make this nametag script not make nametags overlap?

Asked by 4 years ago

I tried some ways but i can't figure it out, please help.

local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")

game.Players.PlayerAdded:Connect(function(player)

    player.CharacterAdded:Connect(function(character)
        local clonedgui = billboardgui:Clone()
        clonedgui.TextLabel.Text = "Player"
        clonedgui.TextLabel.TextColor3 = Color3.fromRGB(36,154,136)
        clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head

        while true do
            wait()
            if player.Name == "ivan6361" then
                local clonedgui = billboardgui:Clone()
                clonedgui.TextLabel.Text = "Owner(coder)"
                clonedgui.TextLabel.TextColor3 = Color3.fromRGB(36,154,136)
                clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
            end
        end
    end)
end)
0
did you turn alwaysontop on the gui mixgingengerina10 223 — 4y
0
just did but still overlaps ivan6361 34 — 4y

Answer this question