Need help with a gun system

Hi!

In the past have made my own gun system using tutorials and I think it’s time to step up a notch.

In this post I want to ask, how could I do stuff better/more efficient

This is how I used to store my gun variable on the client (in module script)

I was thinking of using attributes like this:

Instead of the original:

But I don’t know if it will be good on the server and client side, cause you usually want to shoot the gun from client to make it feels responsive

Also, I used these tutorial to make the gun

Viewmodel:

Welding:

Problem I have is that I can’t make the player look up and down. I want to know if there’s a good viewmodel tutorial that works on the same principle (where I only have to animate 3rd person while using the player’s head as the camera while I’m animating)

And the viewmodel thing, not just for the guns but for tools in general

If y’all have a good or other suggestions please let me know!

if you want to just use the player’s arms as the view model, you can use this free model, which I used before it works very well. You can just animate the arms in 3rd person, and it will act like a viewmodel in first person. you can edit the script and dissect it to understand more of it

Does it also move the player’s arm up and down in 3rd person for other players when they look up and down? Cause that’s the main issue I’m having with my current gun

Yes if I recall it does do that

Lemme try it first, I’ll mark if it works.

Uhhhh nope, it does not. Only on client. (I should’ve known since there’s no server script in it)

You want the movement of the arm to be visible to others as well?

1 Like