local S=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local K=require(S.components)local O=require(S.Packages.sapphire_ecr)local V={}function V.start()local S=O.create_spawner(K.part,K.position,K.velocity)local V=Instance.new("\080\097\114\116")local W=2147483647 for O=1,1000,1 do local m=Random.new(math.random(W))local n=V:Clone()n.Anchored=true n.Parent=workspace local M=S.spawn_with_handle(n,Vector3.zero,Vector3.zero)local T=Vector3.new(m:NextNumber(-0.5,.5),m:NextNumber(-0.5,.5),m:NextNumber(-0.5,.5))M:set(K.velocity,T)end end return V
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local components = require(ReplicatedStorage.components)
local sapphire_ecr = require(ReplicatedStorage.Packages.sapphire_ecr)

local SpawnParts = {}

function SpawnParts.start()
    local spawner = sapphire_ecr.create_spawner(components.part, components.position, components.velocity)
    local part_template = Instance.new("Part")

    local max = 2147483647

    for _ = 1, 1_000 do
        local rand = Random.new(math.random(max))

        local part = part_template:Clone()
        part.Anchored = true
        part.Parent = workspace
        local handle = spawner.spawn_with_handle(part, Vector3.zero, Vector3.zero)
        local random_velocity =
            Vector3.new(rand:NextNumber(-0.5, 0.5), rand:NextNumber(-0.5, 0.5), rand:NextNumber(-0.5, 0.5))
        handle:set(components.velocity, random_velocity)
    end
end

return SpawnParts
