Advertisement
HowToRoblox

GiveNameTitle

Mar 27th, 2020
4,700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. game.Players.PlayerAdded:Connect(function(plr)
  2.    
  3.    
  4.     plr.CharacterAdded:Connect(function(char)
  5.        
  6.        
  7.         local nameGui = Instance.new("BillboardGui")
  8.    
  9.         nameGui.StudsOffset = Vector3.new(0, 2, 0)
  10.        
  11.         nameGui.Size = UDim2.new(0, 200, 0, 50)
  12.        
  13.         nameGui.Name = "NameGui"
  14.         nameGui.Parent = char.Head
  15.        
  16.        
  17.         local nameLabel = Instance.new("TextLabel")
  18.        
  19.         nameLabel.Text = plr.Name
  20.        
  21.         nameLabel.TextScaled = true
  22.        
  23.         nameLabel.Size = UDim2.new(0, 200, 0, 50)
  24.        
  25.         nameLabel.BackgroundTransparency = 1
  26.        
  27.         nameLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  28.        
  29.         nameLabel.Name = "NameLabel"
  30.         nameLabel.Parent = nameGui
  31.        
  32.     end)
  33.    
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement