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

How to add a reload function to a tool?

Asked by
Noxnuo 11
4 years ago

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!

0
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! Ziffixture 6913 — 4y
0
u could have just said "use a debounce" db = false wait(1) db = true HappyTimIsHim 652 — 4y
0
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 Ziffixture 6913 — 4y
0
haha mod goes down vote Friskyman321 121 — 4y

Answer this question