FastCast module's CosmeticBullet not showing up

For some reason, CosmeticBullets aren’t showing up. I’ve tried using the PartCache module as the PartProvider but it doesn’t work as well. No errors and everything else works
and apparently the cosmeticBulletObject argument passed from LengthChanged is nil as well

this.CosmeticBullet = Instance.new("Part")
this.CosmeticBullet.Material = Enum.Material.Neon
this.CosmeticBullet.Color = Color3.fromRGB(255, 187, 0)
this.CosmeticBullet.CanCollide = false
this.CosmeticBullet.Anchored = true
this.CosmeticBullet.Size = Vector3.new(0.2, 0.2, 2.4)

this.CastBehavior = CastRedux.newBehavior()
this.CastBehavior.RaycastParams = this.CastParams
this.CastBehavior.MaxDistance = this.WeaponData["bullet_max_dist"]
this.CastBehavior.HighFidelityBehavior = CastRedux.HighFidelityBehavior.Default
--this.CastBehavior.CosmeticBulletProvider = this.PartProvider
this.CastBehavior.ComesticBulletTemplate = this.CosmeticBullet
this.CastBehavior.CosmeticBulletContainer = CosmeticBullets
this.CastBehavior.Acceleration = this.WeaponData["bullet_gravity"]
this.CastBehavior.AutoIgnoreContainer = false

On the Fire function

this.Caster:Fire(this.FirePoint.WorldPosition, direction_new, bullet_speed, this.CastBehaviour)
1 Like

@ArkhieDev Dang! I see you are having a lot of problems with your programming this week, LOL. I will be sure to look into this for you. I got you. :slight_smile:

hahaha, these problem are too uncommon so finding a solution on non-forums doesn’t help. Thank you for helping :smile:

@ArkhieDev Also, I friend requested you via discord: ItzDuck_1#3597. I would love to speak with you and I have a few questions regarding scripting/programming. If it’s alright with you! :grinning:

1 Like

did you find a solution for this?