Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. game.Players.PlayerAdded:connect(function(Player)
  2. Player.CharacterAdded:connect(function(Character)
  3. local Owners = {'xEthanCWx'}
  4. local Developers = {'BARRAZA19733', 'Rokinfroger', 'Squishylemon6767'}
  5.  
  6. local Head = Character:WaitForChild("Head")
  7. local Adornee, TextLabel = CreateNameTag(Head)
  8.  
  9. TextLabel.Font = "Arial"
  10. Adornee.Parent = Instance.new("Model", Character)
  11. Adornee.Name = "Nametag"
  12.  
  13. local Joint = Instance.new("Weld")
  14. Joint.Part0 = Head
  15. Joint.Part1 = Adornee
  16. Joint.Parent = game.JointsService
  17. wait()
  18. game.Workspace:WaitForChild(Player.Name):WaitForChild("Humanoid").DisplayDistanceType = "None"
  19.  
  20. -- Check for special players and update their colors
  21. if has_value(Owners, Player.Name) then
  22. TextLabel.Text = "[OWNER] ".. Player.Name
  23. TextLabel.TextColor3 = Color3.new(239, 239, 0)
  24. elseif has_value(Developers, Player.Name) then
  25. TextLabel.Text = "[DEV] ".. Player.Name
  26. TextLabel.TextColor3 = Color3.new(239, 239, 0)
  27. end
  28.  
  29. end)
  30. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement