Hello.
I have been developing a gun system lately and everything has been going good except aiming. When I try to make aiming down sights it doesnt work. My fps arms are just the players arms.
Hello.
I have been developing a gun system lately and everything has been going good except aiming. When I try to make aiming down sights it doesnt work. My fps arms are just the players arms.
camera.position or something like that would occur on
uis.inputbegan:connect(function(input)
if input = rightmouseclick then
tween the camera pos
end
End)
obviously all that would be in a while wait loop and under the condition that the player has the weapon equipped
Hey! Thanks for your reply. Sorry for the late reply, but how exactly would I do that?
quick explanation here
From what I know, if you have the part in the camera (viewmodel) and you move it based off of the Camera’s cframe, you should just either edit the guns position by adding a camera part and tweening the guns primary part by the diffence of that part and change the fov or you could animate and change the fov to get the same result.
Hey thanks for the solution!
Perfectly solved by problem
glad you got it solved… and glad this somehow helped
Sorry if this is late, what do you mean by " by adding a camera part and tweening the guns primary part by the diffence of that part"
Thanks!
sorry for the necropost
first you add a part to the gun
you then create an offset by the negative of the AimPart’s CFrame and add by your framework’s (assuming you have one) humanoidrootpart CFrame.
if you’re using the runservice, you’ll need to lerp your offset. don’t know what i was on about tweening.
Tweening i think makes ti look more aesthetically pleasing
Thanks alot! I will try this.
you have to consider if you are moving the cframe every rendered frame. if you weren’t, how do the arms move?