- What do you want to achieve? Keep it simple and clear!
Fix gunfire sound stopping to play.
- What is the issue? Include screenshots / videos if possible!
The fire sound resets for 0.1 seconds, so it starts playing again. It breaks like this:
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Really basic local script example:
while wait() do local p = game.Players.LocalPlayer if isFire == true then if isDown then if db == false then db = true script.Parent.RemoteEvent:FireServer() wait(0.1) db = false end end end end
script.Parent.RemoteEvent.OnServerEvent:Connect(function() script.Parent.Handle.Fire:Play() end)