-- Instead of putting GUI into StarterGui, this will just give the GUI to the player after the spawn/respawn:

function characterHandling(p)
	p.CharacterAdded:connect(function()
		if (not p:findFirstChild("PlayerGui")) then
			repeat wait() until (p:findFirstChild("PlayerGui"))
		end
		gui:clone().Parent = p.PlayerGui
	end)
end
