Ok so I’m working on a FPS game and everything works good so far but I have a problem with the bullets.
When I’m aiming the bullets dont go there where I aim at.
They fly a bit over the iron sight.
It only happens when I stand far away from the point i want to shoot at.
Here are some images:
(The green point helps me to show where the bullets will go)
local FirePart = self.ClientWeapon.Fire
local Direction = FirePart.Position + FirePart.CFrame.LookVector * self.ClientWeapon:GetAttribute("Range")
local Rayc = Space:Raycast(FirePart.Position, Direction-FirePart.Position)
I tried many ways to fix it but nothing worked.
I wanted to ask you people maybe you know a solution for this?
The only solution that I tried before was creating an extra part for the raycast that gets used when aiming instead of the “normal” FirePart. That accually worked but I had to make the position & rotation of the part perfectly and that takes a lot of time and I need to make each small movement perfectly
Why do you expect the view model to then line up perfectly with the camera? The sights may not be in line with the center of the model, and the front and rear sights may not be colinear with the center of the model. Unless you’re using SetPivot and have carefully edited the pivot to exactly ensure that things will work out, then it would be weirdly lucky if it actually did work.
I set the C1 Orienation X from 0 to 1.25 and it made it better?
The problem is still there if I point to a point that is further away but you wont notice it at all anymore.