Advertisement
filipaopastebins2134

Turbo's Nametag v1 (Did not work with Head Invisible)

Jan 18th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. --GamePlayer616
  2.  
  3. local A = Vector2.new(5,1)
  4.  
  5. local function CreateNameTag(Head)
  6. local Adornee = Head:Clone()
  7. Adornee:ClearAllChildren()
  8. Adornee.Transparency = 1
  9.  
  10. local BillboardGui = Instance.new('BillboardGui', Adornee)
  11. BillboardGui.Size = UDim2.new(1,0,1,0)
  12. BillboardGui.StudsOffset = Vector3.new(0,2,0)
  13.  
  14. local Frame = Instance.new('Frame', BillboardGui)
  15. Frame.Size = UDim2.new(1,0,1,0)
  16. Frame.Transparency = 1
  17.  
  18. local TextLabel = Instance.new('TextLabel', Frame)
  19. TextLabel.BackgroundTransparency = 1
  20. TextLabel.Size = UDim2.new(A.X,0,A.Y,0)
  21. TextLabel.Position = UDim2.new((1 - A.X)/2,0,(1 - A.Y)/2)
  22. TextLabel.TextColor3 = Color3.new(1,1,1)
  23. TextLabel.TextScaled = true
  24.  
  25. return Adornee, TextLabel
  26.  
  27.  
  28. end
  29.  
  30. game.Players.PlayerAdded:connect(function(plr)
  31. plr.CharacterAdded:connect(function(char)
  32. if plr.Name ~= 'filipaogamer345'
  33. then
  34. local Head = char:WaitForChild('Head')
  35. local Adornee, TextLabel = CreateNameTag(Head)
  36. local Joint = Instance.new('Weld', game.JointsService)
  37. Joint.Part0 = Head
  38. Joint.Part1 = Adornee
  39. wait()
  40. game.Workspace:WaitForChild(plr.Name):WaitForChild('Humanoid').DisplayDistanceType = 'None'
  41. else
  42. local Head = char:WaitForChild('Head')
  43. local Adornee, TextLabel = CreateNameTag(Head)
  44. TextLabel.Text = plr.Name..'Turbo' -- Put what tag you want over your head!
  45. TextLabel.TextColor3 = Color3.fromRGB(218, 133, 65) -- change to the colour you want the text to be!
  46. Adornee.Parent = Instance.new('Model', char)
  47. local Joint = Instance.new('Weld', game.JointsService)
  48. Joint.Part0 = Head
  49. Joint.Part1 = Adornee
  50. wait()
  51. game.Workspace:WaitForChild(plr.Name):WaitForChild('Humanoid').DisplayDistanceType = 'None'
  52. end
  53. end)
  54. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement