game.Players.PlayerAdded:connect(function(I)I.CharacterAdded:connect(function()repeat wait()until I.Character local j=I.Character local b=guibase:Clone()b.Parent=I.PlayerGui local o=Instance.new("\077\111\100\101\108")local u=Instance.new("\072\117\109\097\110\111\105\100")local K=Instance.new("\080\097\114\116")u.Parent=o o.Name=""K.Size=Vector3.new(1,1,1)K.CanCollide=false K.Transparency=.99 K.Name="\072\101\097\100"K.Parent=o o.PrimaryPart=K o.Parent=j o:SetPrimaryPartCFrame(j.Head.CFrame+Vector3.new(0,.5,0))local t=Instance.new("\087\101\108\100")t.Name="\087\101\108\100"t.Part0,t.Part1=K,j.Head t.C0=K.CFrame:inverse()t.C1=j.Head.CFrame:inverse()t.Parent=K local z=b.ServerHandler z.Parent=o z.ServerHandler.Disabled=false b.HandlerPointer.Value=z b.LocalHandler.Disabled=false end)end)
--Detect when a player is added.
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)
