function Window.breach(v)v._state=Constants.State.Window.Breached local Y=v._model:FindFirstChild("\071\108\097\115\115")Y.CanCollide=false Y.Material=Enum.Material.ForceField Y.Color=Color3.fromRGB(252,0,0)spawn(function()while v:_isBreached()do Y.Transparency=1 wait(1)Y.Transparency=0 wait(1)end end)local y=v._associatedRoom if not y:isBreached()then y:breachRoom(v._model.Glass)end CreateWindowMarker:FireAllClients(Y)end
--[[
	Breaks the window, visually modifying it, and breaching associate room if not already
]]
function Window:breach()
	self._state = Constants.State.Window.Breached

	local glass = self._model:FindFirstChild("Glass")
	glass.CanCollide = false
	glass.Material = Enum.Material.ForceField
	glass.Color = Color3.fromRGB(252, 0, 0)

	spawn(function()
		while self:_isBreached() do
			glass.Transparency = 1

			wait(1)

			glass.Transparency = 0

			wait(1)
		end
	end)

	local room = self._associatedRoom

	if not room:isBreached() then
		room:breachRoom(self._model.Glass)
	end

	CreateWindowMarker:FireAllClients(glass)
end
