Making a gun that works in third person and first person

Hello everyone.
I want to make a gun script that works in third person and first-person. just like Blackhawk rescue mission 5 does it. I found plenty of great guides on how to make a first-person gun. but not a guide on how to make a system where you can use both third and first-person. does someone know a guide for this. or is there someone who knows how to do it?

3 Likes

you can make a simple ray traced(alvin tutorial can work) gun and then it will work both in first and third

1 Like

but that kind of gun wil not point to where the mouse is. so the gun wont be able to move verticaly.

1 Like

you can make the upper torso to follow the mouse which also make the gun to point there?

1 Like

i already tried that. the problem is when you go into first person the gun goes way too much up when you look up. https://i.imgur.com/0R1epP7.mp4

2 Likes

you can maybe add some kind of way to stop it from like limmiting the camera to go above 45° or something to fix it

1 Like

but that wont fix it. it wil still go up and down. and i want the players to be able to look up

1 Like