I’m making some over the should gun game and my test minigun and when you are clicking fast enough, you can have the minigun shoot twice as fast.
This is shown in this video:
Also, in this function, I am using Context Action Service instead of User Input Service:
elseif actionName == "Fire" and inputState == Enum.UserInputState.Begin and Shooting ~= true and YieldGun == false then
-- I believe it's in this block of code
Shooting = true
if Automatic == true then
while Shooting == true and YieldGun == false do
if Ammo > 0 then
AudioE:FireServer("Fire", "NoAmmo")--Function for playing sound on the server
Ammo -= 1
Fire()
else
AudioE:FireServer("NoAmmo", "Play")--Function for playing sound on the
end
task.wait(FireRate/60)
end
--[[
else
if Ammo > 0 then
YieldGun = true
AudioE:FireServer("Fire", "Play")
Ammo -= 1
for i = 1, BulletAmount do
Fire()
end
task.wait(FireRate/60)
YieldGun = false
else
AudioE:FireServer("NoAmmo", "Play")
end
end
]]
end
I tried the devforums for the solution for my problem and they are no help. Any help is appriciated!