So im building a game with swords and I don't want spam to happen with swords. Does anyone know how to add a reload function? Also please put a script if you can. Thanks!
COMMUNITY QUESTION
How to add a reload function to a tool?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
This isn't a request site, so we cannot provide a free program for you. However, I can point you in the right direction. The approach you're looking for is called a Debounce; a Boolean switch that stalls the progression of a task based on a given condition. You can look up "How to use a debounce in Lua" to learn more. They're a lot simpler than you think!
u could have just said "use a debounce" db = false wait(1) db = true
There are still missing aspects. a) Will he not actually learn how to dynamically apply them. b) The variable hasn't been conditioned, so no debounce will actually occur
haha mod goes down vote