hello developers. I am trying to implement the fastcast module into my fps framework, the firing works but it is not shooting from the barrel. And i have no idea how to fix it
The code that i am using to shoot from the barrel attachment
function fire()
local origin = game.ReplicatedStorage.Modles.TimberWolf.TimberWolf.Handle.muzzle.WorldPosition
local dir = (mouse.Hit.Position - origin).Unit
resources.fire:FireServer(origin, dir, 300)
end
You’re getting the position from the original model, which is going to be in a fixed position. That means you have to reference the cloned model which the player is interacting with.