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

How would I make a Automatic Weapon?

Asked by
Lineout 10
11 years ago

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

Log in to vote
1
Answered by 11 years ago

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

local Shooting = false

while (Shooting) do
    Shoot()
end
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. TheMyrco 375 — 11y
Ad

Answer this question