-- If this script is added to an already-running game, this will set up the GUI for the players already in-game:

for _,p in pairs(game.Players:GetPlayers()) do
	repeat wait() until (p:findFirstChild("PlayerGui"))
	if (p.Character) then
		gui:clone().Parent = p.PlayerGui
	end
	characterHandling(p)
end

game.Players.PlayerAdded:connect(function(p)
	characterHandling(p)
end)
