local C=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local J=require(C.Shared.components)local function E(E)for l,f in(E:query(J.Transform,J.Roomba)):without(J.Model)do local T=C.Assets.KillerRoomba:Clone()T.Parent=workspace T.PrimaryPart:SetNetworkOwner(nil)E:insert(l,J.Model({model=T}))end end return E
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Components = require(ReplicatedStorage.Shared.components)

local function spawnRoombas(world)
	for id, _ in world:query(Components.Transform, Components.Roomba):without(Components.Model) do
		local model = ReplicatedStorage.Assets.KillerRoomba:Clone()
		model.Parent = workspace
		model.PrimaryPart:SetNetworkOwner(nil)

		world:insert(
			id,
			Components.Model({
				model = model,
			})
		)
	end
end

return spawnRoombas
