Efficiently "attaching" a part to Camera?

I want to attach arms to the players camera, and a tutorial I read (The First Person Element Of A First Person Shooter) changed the Arms CFrame to the cameras CFrame on each RenderStepped.

Aren’t there better alternatives, for example just welding it to the camera?

1 Like

Welding it essentially does the same thing, but I think you can only add welds to baseparts. It really isn’t very inefficient to run that I don’t think.

1 Like

Why would you weld the arms? CFrame is better in every point of view in my opinion.
Furthermore, this is client sided so welding is inefficient.

1 Like

RunService is well optimized and you should really just use the RenderStepped event from it. If you weld the arms to the camera you’ll encounter problems later on when trying to actually manipulate them. Welds are very limiting whereas CFraming gives you significantly more to work with. Implementing stuff like crouching is significantly dirtier when having to deal with welds.

1 Like