Hello Everyone, I need some help with a gun ViewModel I am making. I am trying to make an aim part and when try it worked put the position of your camera goes somewhere else. Any help.
my script now
local aim = script.Parent.Aim.CFrame:inverse() * script.Parent.Handle.CFrame;
return aim * CFrame.Angles(0,math.rad(0),0)
reminder: all the script to make the aim part is done. just need help on the cframe part
Maybe your Handle Position is offset?
Have a look at where the Handle is compared to the gun’s sights. In the video it seems like your camera is moving forward a stud or two and the gun appears to be passed by in your peripheral vision. Get the gun model and select just the Handle to see where it is aligned to the entire gun.
Why aren’t you just using local aim = script.Parent.Handle.CFrame?
Also why are you returning aim multiplied by 0,0,0 in the second line?
If you’re trying to move the camera, why does the arms move? In the video, it looks more like you’re changing the FOV rather than moving the camera.