Need help accessing the CosmeticBullet (FastCast)

So basically, I am a beginner of using the FastCast Module and I want to access the bullet that has been released. Like, for example, I want to edit the bullet properties, like the “Color” property, or I want the bullet that emits a sound when fired, etc. I tried using “Behavior.CosmeticBulletTemplate” but when I tested it, it’s going to cause weird glitches.

My first thought was I need to find the bullet inside the “CosmeticBulletContainer” but that’s a bad idea because what if there’s two bullets inside the container and these bullets have the same names with each other? Please, I’ve been struggling this for 4 days now.

some part of code in my project that uses FastCast

castBehavior.CosmeticBulletContainer = bulletsFolder
castBehavior.CosmeticBulletTemplate = bulletTemplate

^ so container is the folder in workspace
template is the bullet to clone from (not the actual one)

	local activeCast = caster:Fire(origin, direction, velocity, castBehavior)

^ maybe you can choose to use different castBehavior (that uses different bulletTemplate)

local function onRayHit(cast, result, velocity, bullet: BasePart)
 -- 'bullet' is the actual cloned bullet. you can change its color
end

caster.RayHit:Connect(onRayHit)

^ rayhit handler has a few parameters, the last one is the cloned bullet

you can find the api here
https://etithespirit.github.io/FastCastAPIDocs

get an active cast with
local activecast = caster:Fire(origin, direction, velocity, behavior)
then get the bullet with
activecast.RayInfo.CosmeticBulletObject