FastCast NewBehaviour params not setting right

I am quite inexperienced with the use of ModuleScripts for setting values. I am using FastCast to create bullets for a turret I am making. Everything seems to be working fine so far besides the fact that I can’t set the FastCastBehaviour values to anything besides their defaults unless I change them in the actual ModuleScript. The issue with this is that I can’t set a blacklist for the bullets to ignore the turret that is actually firing the bullets.

The portion of the “BulletManager” script responsible for setting the values

local FastCastBehaviour = FastCast.newBehavior()
FastCastBehaviour.RaycastParams = RaycastRules
FastCastBehaviour.CosmeticBulletProvider = PartProvider
FastCastBehaviour.AutoIgnoreContainer = true

The turret itself:
Turret.rbxm (78.5 KB)
The place:
https://www.roblox.com/games/6671488135/TurretMaking

1 Like

Wait, hmmm that’s weird I ain’t good with scripting but I think it’s right.

I solved the issue. Turns out I wasn’t passing the Caster Behaviour with the :Fire function, meaning the behaviour wasn’t defined.

I missed a single line of what can be passed with the :Fire function. I didn’t see that you could send the new parameters with it.