Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I make a Automatic Weapon?

What would be the system I would have to do to make a gun automatic? I've done it before but totally forgot. If anyone of you could help I would be very happy :D

1 answer

✓ Accepted answer

To create a automatic gun system, I would suggest use of a variable. Example:

local Shooting = false

while (Shooting) do
	Shoot()
end

1 comment

0

Note for OP: This should be used in combination with the methods MouseButton1Down and MouseButton1Up. When either is activated, you change the bool value. Make sure to create the functions BEFORE the loop.

This discussion is preserved as it was. New answers, comments, and votes are closed.