Ammo Looting System

I’m working on a looting system for picking up ammo yada yada, how would I go about scripting these? Should I just insert a script into each ammo box or is there a more practical way to go about this?

depends on the kinda result you want. the simplest method i would reccomend is through roblox’s proximity prompt class. That way you can limit your code to a single script since the prompt service acts comparably to a remote event firing in the sense that a single server script could pick up any related events & handle it accordingly (by giving ammo to the player, destroying the object on the ground afterwords, etc.)

You can use proximity prompts for this.

1 Like

awesome sauce thanks I was worried that having multiple objects each with a script of its own would be bad

1 Like

there are other methods, but yes this will be the easiest & most efficient for what you want. you’ll wanna look into using the proximity prompt service globally, as they do also give you the option to single out a prompt & connect it directly which is not what you want
image

1 Like

sure that actually sounds really useful thanks a ton