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

How do I make a gun go rapid?

Asked by 10 years ago

I have a game, The problem today is I am making a gun for the game and I wanna make The Gun go rapid. All I know is how to make a gun go 1 shot.

1
Do you mean you want the gun to be fully automatic? adark 5487 — 10y
0
Yes I do. Roboy5857 20 — 10y
0
Okay, edit this post to include the gun's script. Also, add a SpawnLocation to that game so we don't just fall to our deaths when we join. adark 5487 — 10y
0
Okay. Roboy5857 20 — 10y
View all comments (3 more)
0
But I said I am having trouble... Roboy5857 20 — 10y
0
Can you not include the code for the gun? adark 5487 — 10y
0
I could, so brb let me do it Roboy5857 20 — 10y

1 answer

Log in to vote
0
Answered by
Kratos232 105
10 years ago

OK, i'd probably need the actual gun for this. If your using tools I suppose you could change it from MouseClick to

Down = false

Mouse.Button1Down:connect(function()
Down=true
end)
Mouse.Button1Up:connect(function()
Down=false
end)

while true do
wait()
if Down then
-- Shoot Code --
end
end

or just do something similar to that.

Well, I hope this helped... It probably didn't.

  • Kratos232
Ad

Answer this question