Fire=function(G,R,d,q)local E=G.Name if q then Remote:FireClient(q,E,R,d)else Remote:FireAllClients(E,R,d)end end PlayerAdded=function(G)for R,d in pairs(StarterGui:GetChildren())do(d:Clone()).Parent=G.PlayerGui end Fire(G,"\073\110\105\116")end PlayerRemoving=function(G)Fire(G,"\076\101\097\118\105\110\103")end
--- FUNCTIONS

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
