Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Adjustment = 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.BackgroundTransparency = 1
- local TextLabel = Instance.new("TextLabel",Frame)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(Adjustment.X,0,Adjustment.Y,0)
- TextLabel.Position = UDim2.new((1 - Adjustment.X)/2,0,(1 - Adjustment.Y)/2)
- TextLabel.TextColor3 = Color3.new(1,1,1)
- TextLabel.TextScaled = true
- return Adornee, TextLabel
- end
- game.Players.PlayerAdded:connect(function(Player)
- Player.CharacterAdded:connect(function(Character)
- if Player.Name ~= "Player1" and Player.Name ~= "arceus3270" then
- local Head = Character:WaitForChild("Head")
- local Adornee, TextLabel = CreateNameTag(Head)
- TextLabel.Text = Player.Name
- Adornee.Parent = Instance.new("Model",Character)
- local Joint = Instance.new("Weld")
- Joint.Part0 = Head
- Joint.Part1 = Adornee
- Joint.Parent = game.JointsService
- wait()
- game.Workspace:WaitForChild(Player.Name):WaitForChild("Humanoid").DisplayDistanceType = "None"
- else
- local Head = Character:WaitForChild("Head")
- local Adornee, TextLabel = CreateNameTag(Head)
- TextLabel.Text = Player.Name .. "[Real Slim Shady]"
- TextLabel.TextColor3 = Color3.fromRGB(225, 120, 28)
- Adornee.Parent = Instance.new("Model",Character)
- local Joint = Instance.new("Weld")
- Joint.Part0 = Head
- Joint.Part1 = Adornee
- Joint.Parent = game.JointsService
- wait()
- game.Workspace:WaitForChild(Player.Name):WaitForChild("Humanoid").DisplayDistanceType = "None"
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement