#cooldown in sound please:)

1 messages · Page 1 of 1 (latest)

errant lantern
#

i try to make a gunsound and its work but it dont have any cooldown so its sound bit weird thats the main problem another problem is i dont know how to add ammo limit like it can shoot infinity bullet
please help me:( also feel free if you want to teach me the ammunition problem you can help me by giving script that help or give me to devforum with solved problem

#

that file is a video do not think im sus scammer

hexed creek
#

if you want the sound to play without it cutting you can use SoundService playlocalsound

errant lantern
hexed creek
nimble socket
#

Add a variable: Ammo = 20 — u got 20 bullets

Before doing the gun sound, make an if statement
if ammo > 0 then
ammo-=1 — remove 1 ammo
gun_sound:Play()
end