--- 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

