Gun Aim making gun so sideways

Trying to make an aim system using the devforum resource here: Designing an FPS Framework: Beginner’s guide [PART 2]. However, the code is making my gun turn sideaways. How could I fix this?

3 Likes

hello . Please check that your part’s orientation is the same orientation to your first person arm viewmodel.

how do you do that you may ask?

  1. select your first person arm viewmodel
  2. go into properties and find orientation
  3. copy it
  4. paste it into the orientation of the camera part

what cause the problem???
Assuming u dont use animation for your gun aim, you prob have a CameraAimPart near the iron sights . When you aim, the script CFrame your gun CameraAimPart to the camera’s CFrame. If the orientation of the part is not parallel to the gun , the camera will be facing somewhere else your like u, look wonky .

what i personally suggest:
Use roblox animation for aiming, idling , ect as it is easier . If anybody here us Animating to aim, you can check out my plugin! Yes it is self promoting . But it is free unless you want to donate to give my plugin some love :DD .

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.