Advertisement
HCTGT_scripta

Name Tag handler

Jan 14th, 2021
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1. game.Workspace.ChildAdded:connect(function(plr)
  2.     local name = plr.Name
  3.     local playerinplayers = game.Players:FindFirstChild(plr.Name)
  4.    
  5.     plr:WaitForChild("Humanoid").DisplayDistanceType = "None"
  6.     if playerinplayers ~= nil then
  7.         playerinplayers.CanLoadCharacterAppearance = true
  8.         local clone = game.ReplicatedStorage.NameTags:WaitForChild("Name"):Clone()
  9.         clone.Parent = plr.Head
  10.         clone.Adornee = plr.Head
  11.         clone:WaitForChild("TextLabel").Text = name
  12.         if name == "CreationCharacter3" then -- Enter Your Name here
  13.             game.ReplicatedStorage.NameTags:WaitForChild("DEV"):Clone().Parent = plr.Head
  14.             plr.Head:WaitForChild("VIP"):Destroy()
  15.         end
  16.         if name == "HCTGT_RBLX" then -- Enter other Devs Name
  17.             game.ReplicatedStorage.NameTags:WaitForChild("DEV"):Clone().Parent = plr.Head
  18.             plr.Head:WaitForChild("VIP"):Destroy()
  19.         end
  20.     end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement