View difference between Paste ID: rvpGG4gG and XncNjq4M
SHOW: | | - or go back to the newest paste.
1
--[[Change the "NAMEHERE" to your Username Enjoy <3
2-
		Script by: RobloxManagement
2+
3-
		Pastebin by: RuneShark
3+
4
local ad = Vector2.new(5,1)
5
6
local function CreateNameTag(Head)
7
	local Adornee = Head:Clone()
8
	Adornee:ClearAllChildren()
9
	Adornee.Transparency = 1
10
	
11
	local bill = Instance.new("BillboardGui", Adornee)
12
	bill.Size = UDim2.new(1, 0, 1, 0)
13
	bill.StudsOffset = Vector3.new(0, 2, 0)
14
	
15
	local Frame = Instance.new("Frame", bill)
16
	Frame.Size = UDim2.new(1, 0, 1, 0)
17
	Frame.BackgroundTransparency = 1
18
	
19
	local text = Instance.new("TextLabel", Frame)
20
	text.BackgroundTransparency = 1
21
	text.Size = UDim2.new(ad.X,0,ad.Y,0)
22
	text.Position = UDim2.new((1 - ad.X)/2,0,(1 - ad.Y)/2)
23
	text.TextColor3 = Color3.new(1,1,1)
24
	text.TextScaled = true
25
	
26
	return Adornee, text
27
end
28
29
game.Players.ChildAdded:connect(function(plr)
30
	plr.CharacterAdded:connect(function(char)
31
		if plr.Name == "Player1" and plr.Name == "liampdoherty" then
32-
		if plr.Name == "Player1" and plr.Name == "NAMEHERE" then
32+
33
			local Adornee, text = CreateNameTag(Head)
34
			text.Text = plr.Name
35
			Adornee.Parent = Instance.new("Model", char)
36
			
37
			local Joint = Instance.new("Weld")
38
			Joint.Part0 = Head
39
			Joint.Part1 = Adornee
40
			Joint.Parent = game.JointsService
41
			wait()
42
			game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").DisplayDistanceType = "None"
43
		else
44
				local Head = char:WaitForChild("Head")
45
			local Adornee, text = CreateNameTag(Head)
46
			text.Text = plr.Name .. " [Developer]"
47
			text.TextColor3 = Color3.fromRGB(0,0,255)
48
			Adornee.Parent = Instance.new("Model", char)
49
			
50
			local Joint = Instance.new("Weld")
51
			Joint.Part0 = Head
52
			Joint.Part1 = Adornee
53
			Joint.Parent = game.JointsService
54
			wait()
55
			game.Workspace:WaitForChild(plr.Name):WaitForChild("Humanoid").DisplayDistanceType = "None"
56
		end
57
	end)
58
end)