Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --GamePlayer616
- local A = Vector2.new(5,1)
- local function CreateNameTag(Head)
- local Adornee = Head:Clone()
- Adornee:ClearAllChildren()
- Adornee.Transparency = 1
- local BillboardGui = Instance.new('BillboardGui', Adornee)
- BillboardGui.Size = UDim2.new(1,0,1,0)
- BillboardGui.StudsOffset = Vector3.new(0,2,0)
- local Frame = Instance.new('Frame', BillboardGui)
- Frame.Size = UDim2.new(1,0,1,0)
- Frame.Transparency = 1
- local TextLabel = Instance.new('TextLabel', Frame)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(A.X,0,A.Y,0)
- TextLabel.Position = UDim2.new((1 - A.X)/2,0,(1 - A.Y)/2)
- TextLabel.TextColor3 = Color3.new(1,1,1)
- TextLabel.TextScaled = true
- return Adornee, TextLabel
- end
- game.Players.PlayerAdded:connect(function(plr)
- plr.CharacterAdded:connect(function(char)
- if plr.Name ~= 'GamePlayer616' and plr.Name ~= 'Harcon13' and plr.Name ~= '' and plr.Name ~= '' ~= '' and plr.Name and plr.Name ~= '' then
- local Head = char:WaitForChild('Head')
- local Adornee, TextLabel = CreateNameTag(Head)
- local Joint = Instance.new('Weld', game.JointsService)
- Joint.Part0 = Head
- Joint.Part1 = Adornee
- wait()
- game.Workspace:WaitForChild(plr.Name):WaitForChild('Humanoid').DisplayDistanceType = 'None'
- else
- local Head = char:WaitForChild('Head')
- local Adornee, TextLabel = CreateNameTag(Head)
- TextLabel.Text = plr.Name..' [le epic Alberto spy]' -- Put what tag you want over your head!
- TextLabel.TextColor3 = Color3.fromRGB(0, 255, 255) -- change to the colour you want the text to be!
- Adornee.Parent = Instance.new('Model', char)
- local Joint = Instance.new('Weld', game.JointsService)
- Joint.Part0 = Head
- Joint.Part1 = Adornee
- wait()
- game.Workspace:WaitForChild(plr.Name):WaitForChild('Humanoid').DisplayDistanceType = 'None'
- end
- end)
- end)
Add Comment
Please, Sign In to add comment