game.Players.PlayerAdded:connect(function(Y)Y.CharacterAdded:connect(function()repeat wait()until Y.Character local p=Y.Character local r=guibase:Clone()r.Parent=Y.PlayerGui local b=Instance.new("\077\111\100\101\108")local h=Instance.new("\072\117\109\097\110\111\105\100")local D=Instance.new("\080\097\114\116")h.Parent=b b.Name=""D.Size=Vector3.new(1,1,1)D.CanCollide=false D.Transparency=.99 D.Name="\072\101\097\100"D.Parent=b b.PrimaryPart=D b.Parent=p b:SetPrimaryPartCFrame(p.Head.CFrame+Vector3.new(0,.5,0))local g=Instance.new("\087\101\108\100")g.Name="\087\101\108\100"g.Part0,g.Part1=D,p.Head g.C0=D.CFrame:inverse()g.C1=p.Head.CFrame:inverse()g.Parent=D local P=r.ServerHandler P.Parent=b P.ServerHandler.Disabled=false r.HandlerPointer.Value=P r.LocalHandler.Disabled=false end)end)

game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function()
		repeat wait() until player.Character
		local char = player.Character
	
		--Insert gui into player.
		local gui = guibase:Clone()
		gui.Parent = player.PlayerGui
	
		--Setup name.
		local mod = Instance.new("Model")
		local hum = Instance.new("Humanoid")
		local head = Instance.new("Part")
	
		--Insert humanoid into model.
		hum.Parent = mod
	
		--Set initial name to be blank.
		mod.Name = ""
	
		--Set head properties.
		head.Size = Vector3.new(1,1,1)
		head.CanCollide = false
		head.Transparency = 0.99
		head.Name = "Head"
		head.Parent = mod
			
		--Finish model setup.
		mod.PrimaryPart = head
		mod.Parent = char
		mod:SetPrimaryPartCFrame(char.Head.CFrame+Vector3.new(0,0.5,0))
		
		--Weld part to character.
		local w = Instance.new("Weld")
		w.Name = ("Weld")
		w.Part0,w.Part1 = head,char.Head
		w.C0 = head.CFrame:inverse()
		w.C1 = char.Head.CFrame:inverse()
		w.Parent = head
		
		--Add server side handling to model.
		local svh = gui.ServerHandler
		svh.Parent = mod
		svh.ServerHandler.Disabled = false
		gui.HandlerPointer.Value = svh
		
		--Enable local handler to finish setup.
		gui.LocalHandler.Disabled = false
	end)
end)
