local k=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local f=k.Remotes.SendAlert return function(k,u,Z)assert(u)if not Z then f:FireAllClients(k,u)elseif typeof(Z)=="\116\097\098\108\101"then for Z,W in pairs(Z)do f:FireClient(W,k,u)end else f:FireClient(Z,k,u)end end
--[[
	Sends alert of type and message. If players is not specified, will send to everyone, else supports a single player, or a table of players.
]]
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local SendAlert = ReplicatedStorage.Remotes.SendAlert

return function(alertType, message, players)
	assert(message)

	if not players then
		SendAlert:FireAllClients(alertType, message)
	elseif typeof(players) == "table" then
		for _, player in pairs(players) do
			SendAlert:FireClient(player, alertType, message)
		end
	else
		SendAlert:FireClient(players, alertType, message)
	end
end
