so ive been creating a gun system using custom rig viewmodels, which its my first time attempting with a custom rig vm, so im following my normal processes and steps.
the bullets are coming from below the barrel and seem to continue dropping
solutions ive tried:
manually welding
attachments
welding through scripts
motor6d
weld constraint
welding to different parts of the vm & weapon
creating a part in blender and exporting it w/ the anims
multiplied origin by offset (mightve not done correctly)
to object space (also mightve not done correctly)
etc.
you name it ive probably done it
heres the code, this is using fastcast btw
sorry for being unclear if i am, this is one of my first help posts since this feels basically impossible to solve for me, ask any questions and ill answer asap
function handler.cast() -- send bullets out (normally attached w/ fire function)
if not self.bools.equipped then return end
for i = 1, self.settings.bulletamt do
local ignoretable = {workspace.Bullets, cam, char, self.vm}
params.FilterDescendantsInstances = ignoretable
fastcastbehavior.RaycastParams = params
local firecf = self.vm.FirePart
local origin = firecf.Position
local direction = self.vm.FirePart.CFrame.LookVector
table.clear(alrhit)
local cast = caster:Fire(origin, direction, self.settings.bulletvel, fastcastbehavior)
table.insert(activecasts, cast)
end
end