How to make FPS Game Arm?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make a fps game arm. But I want everyone want to see it. So how can I make it? Should I just make the gun at the player’s character arm or do a custom arm (people cannot see it)

  2. What is the issue? Include screenshots / videos if possible!
    If I make a custom arm to the character, people can’t see it since it is local script

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’m looking for solution in DevForum

Thanks

2 Likes

What way do you want to make the arm? Viewport Frame, Viewmodel, Show Character Arms, etc?

1 Like

I think viewmodel
303033030030303030303

1 Like

Just giving you some pseudocode here.

Set player character archivable
Clone player
Position clone
Weld clone
Hide all body parts except for arms of clone
Parent the clone (Can be anywhere)
Play Animations on the clone (Gun hold animations etc)

^This should be the things you essentially need in your code.

Edit: You need to make the player character archivable to actually clone them, or it won’t work. You also need code to adjust the up and down of the viewmodel.

1 Like

Why clone player???

1 Like

You clone the player so you actually get the shirts of player so it shows the correct arms.

Do I use a weld to make the characters stick together-

1 Like

Yea or else your character would be stuck somewhere and the player can’t seem them.

Do I make the original character arms to invisible?

1 Like

When you go into first person mode, you can’t see any of the character’s arms or accessories, so no, you don’t have to change anything about the character’s transparency.

what about the other player? I think they can see the arms right?

1 Like

What do you mean? Other players cannot see local changes.

Can they see the player holding gun and animation?

1 Like

Can they?
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

You have to apply separate animations to the player and clone the gun separately to let other players see it. It is kind of hard to explain.

1 Like

If you have trouble figuring out viewmodels, I suggest you go the viewportframe or the direct method. They are easier to code.

I would honestly just make the gun/item a tool that the player can equip in their roblox characters hands and lock the screen and mouse position to the middle of the screen. If you want to do that let me know and I will give you the code.

1 Like

I think she already has the gun, but just wants to make the arms visible to the player.

2 Likes

I want to try the scriptㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

1 Like

Ok just give me a sec to write this out