Roblox Tutorials #5 How To Make Custom Name Tags! [Roblox Studio] 2017

Опубликовано: 19 Февраль 2026
на канале: RobloxManagement
18,865
146

In this video, I show you guys how to make custom name tags for all the players in your game! Including special tags for developers!

I do not own any of the music in this video, all credit for the music goes to the artist(s)

local Adjustment = Vector2.new(5,1)

local function CreateNameTag(Head)
local Adornee = Head:Clone()
Adornee:ClearAllChildren()
Adornee.Transparency = 1

local BillboardGui = Instance.new("BillboardGui",Adornee)
BillboardGui.Size = UDim2.new(1,0,1,0)
BillboardGui.StudsOffset = Vector3.new(0,2,0)

local Frame = Instance.new("Frame",BillboardGui)
Frame.Size = UDim2.new(1,0,1,0)
Frame.BackgroundTransparency = 1

local TextLabel = Instance.new("TextLabel",Frame)
TextLabel.BackgroundTransparency = 1
TextLabel.Size = UDim2.new(Adjustment.X,0,Adjustment.Y,0)
TextLabel.Position = UDim2.new((1 - Adjustment.X)/2,0,(1 - Adjustment.Y)/2)
TextLabel.TextColor3 = Color3.new(1,1,1)
TextLabel.TextScaled = true

return Adornee, TextLabel
end

game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
if Player.Name ~= "Player1" and Player.Name ~= "YOURUSERNAMEHERE" then
local Head = Character:WaitForChild("Head")
local Adornee, TextLabel = CreateNameTag(Head)
TextLabel.Text = Player.Name
Adornee.Parent = Instance.new("Model",Character)

local Joint = Instance.new("Weld")
Joint.Part0 = Head
Joint.Part1 = Adornee
Joint.Parent = game.JointsService
wait()
game.Workspace:WaitForChild(Player.Name):WaitForChild("Humanoid").DisplayDistanceType = "None"
else
local Head = Character:WaitForChild("Head")
local Adornee, TextLabel = CreateNameTag(Head)
TextLabel.Text = Player.Name .. "[Developer]"
TextLabel.TextColor3 = Color3.fromRGB(0,255,0)
Adornee.Parent = Instance.new("Model",Character)

local Joint = Instance.new("Weld")
Joint.Part0 = Head
Joint.Part1 = Adornee
Joint.Parent = game.JointsService
wait()
game.Workspace:WaitForChild(Player.Name):WaitForChild("Humanoid").DisplayDistanceType = "None"
end
end)
end)