- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Character then
- local charac = v.Character
- local gui = Instance.new("BillboardGui", charac.Head)
- gui.Name = "Roles"
- gui.Size = UDim2.new(0, 2, 0, 2)
- gui.Adornee = charac
- gui.AlwaysOnTop = true
- local name = Instance.new("TextLabel", gui)
- name.Text = v.PlayerData.Role.value
- name.Size = UDim2.new(0, 8, 0, 8)
- name.TextYAlignment = "Top"
- name.TextColor3 = Color3.new(255, 255, 255) -- color
- name.BackgroundTransparency = 1
- end
- end