How do i make a simple gun system

So my friend and I have been trying to make a simple gun system, but each time we do, an error pops up (for example, when I unequip the gun, the idle still plays). If there’s any information on making a gun system or maybe some tips when starting, that would be awesome.

1 Like

Raycasting is a great starting point for making a simple gun system. There are modules available to help, but if you’re planning to create your own, you might want to look into FastCast. It’s a great module that makes handling bullets and hit detection much easier in my opinion.

If you don’t want to use FastCast, you can also create a projectile system using velocity-based bullets, but this approach can have issues like desynchronization and inconsistent hit detection. From my experience, raycasting is the best method for a simple gun system.

tysm for the tip. i also figured out the issue on why the animation kept playing, just a small lil grammar mistake in the code. il make sure to use this information

1 Like

hey, question you wouldn’t mind giving tips on making a backpack system like in apoc rising 1 right?

I’ve never worked with something like this but If I were to start, I’d probably make a folder in the player when they join and have like the items from the backpack be in the folder. I don’t think I can even give you tips if I haven’t tried it but if I would ever think about making a backpack system then I think like the folder idea might work out. Also, for the UI I think you can make it like child added and have like a new UI be created. I think there are great tutorials out there that are clearly better than my tip but don’t forget that AI is evolving and at this point I’ve used it for starters. So maybe give it a try. Good luck on your journey!

1 Like

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