I have a simple casing ejection module for some VR guns, but it works nowhere near how it should.
The issue:
How it should work:

Emitter function:
local function EmitParticle(cframe: CFrame)
local particle = part:Clone()
particle.CFrame = cframe*offset
particle.Parent = workspace
particle.Transparency = 0
particle.Anchored = false
particle.Velocity = cframe:VectorToWorldSpace(velocity+Vector3.new(math.random(-gainMax.X,gainMax.X),math.random(-gainMax.Y,gainMax.Y),math.random(-gainMax.Z,gainMax.Z)))
particle.RotVelocity = angularVelocity
AddSounds(particle)
debris:AddItem(particle,lifetime)
end