How can I learn to create a gun system?

I want to create a TPS like Fortnite and I want it to be similar to the Roblox Weapons Kit. I know you have to learn OOP and all that stuff so can somebody maybe give a guide on what I need to learn to start creating this such as where to learn about OOP, where to learn raycasting or other ways for guns to be shot. I just want to know where to learn this stuff and how I can actually create this game, thanks.

4 Likes

A post here on the devforum explains Object Oriented Programming, feel free to have a look there.

https://devforum.roblox.com/t/all-about-object-oriented-programming

4 Likes

thanks man, should I look into stuff like raycasting? I like the Weapons Kit and I actually love the ShoulderCamera that it has, should I study the code from their or look at guides on specific things?

2 Likes

That is quite frankly all up to you and how you plan to design your Weapons System, I linked the docs page for Raycasting so you can do a quick look and see if it’s something you might need.

4 Likes

thanks man, have a good rest of your summer

2 Likes

There is also the new Laser Tag Studio Template made by Roblox that could be worth checking out to see how things are made.

1 Like

No that template is really bad for beginners its way too complex

3 Likes

yeah just stick to the BR pack thingy stated above.

Read about things like:

  • RayCasting
  • Client/Server Replication
  • Physics (Vectors, CFrame)
  • Gui
  • UserInput
  • Context Action
  • etc.

gl fellow devs!

3 Likes

I get that and I really hate how the GUI in it works but I really want to replicate how the guns shoot and how the TPS camera is setup.

1 Like

Youtube and maybe dev forum posts will be your best bet

https://www.youtube.com/watch?v=yPy4j-hjckI&t=14s&ab_channel=miles.

there is this open source third person shooter gun system made by this youtuber and it also links you to a developer forum post about how to weld weapons to rigs so that you can animate them.

There are alot of things your going to have to learn alot to understand the things they do in the framework but if you dont understand something, google it. It will take time but if you take everyday trying to improve your understanding it wont be as intimidating as you first though it to be.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.