The First Person Element Of A First Person Shooter

I stumbled upon FastCast not too long ago and have since tried to integrate it, but I haven’t really found the place to start. I’m curious to know how you were able to go about this.

And of course, thanks to EgoMoose for this outstanding resource!

1 Like

Hey :slight_smile:

I tried it but It is causing errors because FastCast runs when the tool is equipped
and in this tutorial you get the gun when you spawn

maybe some changes to equip it as a tool, it might work?

(Idk anything about scripting so I might be wrong)

1 Like

i made a system very similar to yours using the same positioning method of updating the head cframe to the camera cframe every frame/renderstepped (everything else is different), everything works fine except for when i zoom in to first person my character starts to shift slowly in the direction i am pointing towards, all parts are set to anchored = false, cancollide = false. the internal structure of my view model is the same as yours, just with different part names, any help? if you need more info i can provide that

1 Like

Is it possible to have the viewmodel rig as r6 but have the character as r15? please someone help me ive been looking around i cant seem to find a way.

1 Like

If the Viewmodel has a humanoid then the parts will become cancollide.
Set the parts collisiongroupid to 1, and in the collision group editor, add a new collision group that doesn’t collide with anything.

That’s the best I can explain it, sorry.

3 Likes

i found out that wasnt the case it because i named it UpperTorso and Roblox automatically cancollides it

4 Likes

How can I use this system for multiple weapons, like I have a gun and a knife.
Also, is there a way I can bend the elbows in this system?

4 Likes

SHA BAM! Bookmarked. Will definetly come in handy for my “Quantum Destabilizer” and “Magentism Gun” for my gravity falls game.

2 Likes

Thank you this will definitely help me with my FPS game, Overbooked.

3 Likes

If i wanted to have gun go like 90 degrees i would have to use animations for head but its anchored

1 Like

My gun is turned around and pointed at me instead, how do I fix this?

I’m having trouble attaching the actual viewmodel to the camera, nothing happens when I start the game and test it can anybody help me out?

2 Likes

Judging from how this tutorial did it, your view model is more than likely facing downwards, which is why you cannot see it, but if you made the head’s CFrame become the camera’s CFrame each frame and parented it to the camera, it should work nonetheless - the viewmodel is just out of your view. Try inserting the gun and you should see it as it’s part of the viewmodel via script.

1 Like

I fixed this myself by just countering this. I rotated it by 90 degrees the opposite direction

1 Like

ah alright thanks this helps alot

1 Like

This is so helpful, thanks for posting this.

1 Like

I don’t know if this is just me, but NOTHING (the gun and view model) is showing up on the client. How do I fix this? I triple checked everything.

2 Likes

Question: What number did you set the scale of the BodyWidthScale to?

1 Like

Thank you so much! It helped me alot.

Where do I put the scripts? I want it to start when equipped and end when uneqquiped…

1 Like