---Toggling proximity

local function ToggleProximity(state)
	for _,v in pairs(workspace:GetDescendants()) do
		if v.ClassName ~= "ProximityPrompt" then continue end
		v.Enabled = state
	end
end

game:GetService("ReplicatedStorage").Remotes.TogglePrompts.OnClientEvent:Connect(ToggleProximity)
script.ClientProximityToggle.Event:Connect(ToggleProximity)
