ive been trying to make a realistic fps framework, but i cant get the bullet to fire out of the muzzle correctly. ive been trying for 1 day but it doesnt work. the problem should be with the script in StarterPlayer/StarterPlayerScript/FrameworkClient, heres the project file:
Test_FPS.rbxl (85.6 KB)
also for debugging, for every bullet that hits something there will be a part called Hit in workspace on the client
forgot to mention, the problem is probably in the:
Projectile.new(Framework.viewmodel.Nodes.Muzzle.Attachment.WorldCFrame.Position,-Dir.Unit, 1000, 25)
snippet, and it is probably with the first argument (Which is where it fires from)
also it DOES work when we replace it with Camera.CFrame.Position
if you think that the part is colliding, or stopping at the muzzle because the part is being made at the muzzle attachment. Why don’t you add a few studs gap. Like make a variable where the attachment position gets added with + 1 stud gap in the direction of the camera?
what part do you mean? thank you in advance
i meant the bullet
sorry for the late response