Hello Developers, This is a simple script made mostly for new scripters but no matter the skill it works!
If you don’t want to script it and just want to put it in, here ya go: Display Name + Username GUI - Roblox
How to make it
-
Add a part in Workspace
-
Add a Billboard Gui into the Part
-
Add a Text Label into the Billboard Gui
-
Make the StudsOffset “0,2.5,0” and Size {0,213},{0,50}
-
Enable “Text Scaled” and then customize the text however you want
-
Name the Billboard Gui “NameTag”
-
Name the Text Label “PlayerName”
-
Drag the Billboard Gui into ServerScriptService
-
Add a Script to ServerScriptService and name it “NameTagScript”
-
Copy and Paste this into the Script
local nameTag = script.NameTag
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
repeat wait() until character.Head
local plrTag = nameTag:Clone()
plrTag.PlayerName.Text = player.Name
plrTag.Parent = character.Head
end)
end)
-
Now redo these steps but make the Billboard Gui StudsOffset “0,2.6,0”
-
Make the Billboard Gui size {0,213},{0,50}
-
Make the Text Label Size {0,500},{0,15}
-
Add that Billboard Gui to ServerScriptService also
-
Add another Script to ServerScriptService and name it “NameTagScript”
-
Copy and Paste this into that new Script
local nameTag = script.NameTag
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
repeat wait() until character.Head
local plrTag = nameTag:Clone()
plrTag.PlayerName.Text = player.DisplayName
plrTag.Parent = character.Head
end)
end)
Boom there you go! Honestly, easier to just add the model into your game and ungroup it but if you want it just to learn the basics of scripting there.