Fire=function(k,J,g,b)local I=k.Name if b then Remote:FireClient(b,I,J,g)else Remote:FireAllClients(I,J,g)end end PlayerAdded=function(k)for J,g in pairs(StarterGui:GetChildren())do(g:Clone()).Parent=k.PlayerGui end Fire(k,"\073\110\105\116")end PlayerRemoving=function(k)Fire(k,"\076\101\097\118\105\110\103")end


Fire = function(Player, Key, Data, Client)
	local CharacterName = Player.Name
	
	if Client then
		Remote:FireClient(Client, CharacterName, Key, Data)
		
	else
		Remote:FireAllClients(CharacterName, Key, Data)
		
	end
end

PlayerAdded = function(Player)
	for _,GuiItem in pairs(StarterGui:GetChildren()) do
		GuiItem:Clone().Parent = Player.PlayerGui
	end
	
	Fire(Player, "Init")
end
PlayerRemoving = function(Player)
	Fire(Player, "Leaving")
end

