local k=replicatedStorage.Events.TogglePause k.OnServerEvent:Connect(function(K,V)Paused=V k:FireAllClients(Paused)end)
-- toggle pause event
local togglePauseEvent = replicatedStorage.Events.TogglePause
togglePauseEvent.OnServerEvent:Connect(function(player, paused)
	Paused = paused
	togglePauseEvent:FireAllClients(Paused)
end)
