Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Change the "NAMEHERE" to your Username Enjoy <3
- Script by: RobloxManagement
- Pastebin by: RuneShark
- ]]--
- local ad = Vector2.new(5,1)
- local function CreateNameTag(Head)
- local Adornee = Head:Clone()
- Adornee:ClearAllChildren()
- Adornee.Transparency = 1
- local bill = Instance.new("BillboardGui", Adornee)
- bill.Size = UDim2.new(1, 0, 1, 0)
- bill.StudsOffset = Vector3.new(0, 2, 0)
- local Frame = Instance.new("Frame", bill)
- Frame.Size = UDim2.new(1, 0, 1, 0)
- Frame.BackgroundTransparency = 1
- local text = Instance.new("TextLabel", Frame)
- text.BackgroundTransparency = 1
- text.Size = UDim2.new(ad.X,0,ad.Y,0)
- text.Position = UDim2.new((1 - ad.X)/2,0,(1 - ad.Y)/2)
- text.TextColor3 = Color3.new(1,1,1)
- text.TextScaled = true
- return Adornee, text
- end
- game.Players.ChildAdded:connect(function(plr)
- plr.CharacterAdded:connect(function(char)
- if plr.Name == "Player1" and plr.Name == "NAMEHERE" then
- local Head = char:WaitForChild("Head")
- local Adornee, text = CreateNameTag(Head)
- text.Text = plr.Name
- Adornee.Parent = Instance.new("Model", char)
- local Joint = Instance.new("Weld")
- Joint.Part0 = Head
- Joint.Part1 = Adornee
- Joint.Parent = game.JointsService
- wait()
- game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").DisplayDistanceType = "None"
- else
- local Head = char:WaitForChild("Head")
- local Adornee, text = CreateNameTag(Head)
- text.Text = plr.Name .. " [Developer]"
- text.TextColor3 = Color3.fromRGB(0,0,255)
- Adornee.Parent = Instance.new("Model", char)
- local Joint = Instance.new("Weld")
- Joint.Part0 = Head
- Joint.Part1 = Adornee
- Joint.Parent = game.JointsService
- wait()
- game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").DisplayDistanceType = "None"
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement