Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to start making an FPS game with a viewmodel? [closed]

Asked by
tomr295 -1
4 years ago

I've recently been trying to make an FPS game in roblox but I can't find anything online that could help me and I'm wondering what I should learn before I start. My goal is to make a viewmodel with animations and things like camera shake etc. but all the tutorials I've tried are too confusing or don't work so I'm wondering where I should start and what I should know.

0
There's literally an exact tutorial for this seems like you didn't even bother to try and "find anything online". Anyway here you go this question is off topic though and isn't really a scripting question. https://scriptinghelpers.org/blog/the-first-person-element-of-a-first-person-shooter farrizbb 465 — 4y

Closed as Not Constructive by User#32819 and Leamir

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
2
Answered by 4 years ago

So you already have the viewmodel attached to the camera, great!

Well, the way I animate the viewmodel. I rig the viewmodel with a humanoid. There are a lot of videos on rigging on youtube and such. Then, I animate the viewmodel and create an animation inside of the viewmodel.

After that, I parent the viewmodel to the camera every time you spawn, and then play the animation remotely.

Make sure that the viewmodel you parent is a cloned viewmodel, and not the viewmodel itself.

Also, for camera shake you can either use springs or a different module that I like to use made by HeadStackk, which you can find here.

You can easily look at the place inside of that article and then make it shake every time you fire and such.

Also, for firing, make a part at the start of the viewmodels barrel, and the make a raycast start from there and maybe face towards the mouse position. That's a really easy way to do it.

Make sure you cast the ray from a remote event.

There are also a whole ton of stuff on this, just look around the devforum for them.

Module based fps

Hopefully that sums it up for you! I'm not very good at describing how I do things in text, but I hope this still helps!

Cheers, Zander.

Ad