I remember learning about debounces when learning Lua on Roblox. I’ve never seen it be called “debounce” anywhere else, so I wonder if it’s a Lua thing.
Debouncing existed long before Lua. Goes back to when a hardware contact would have a tendency to create multiple input signals for a single button press or switch flip; the contact bounces.
I don't know Lua, but you could replace this whole thing after line 7 with this, right?
for i = 1, 0, -0.1
do
script.Parent.TextTransparency = i
wait(0.025)
end
wait(2)
for i = 0, 1, 0.1
do
script.Parent.TextTransparency = i
wait(0.025)
end
5
u/Cizox Dec 13 '21
I remember learning about debounces when learning Lua on Roblox. I’ve never seen it be called “debounce” anywhere else, so I wonder if it’s a Lua thing.
2
u/ThePsion5 Dec 13 '21
I don't know Lua, but you could replace this whole thing after line 7 with this, right?
33
u/Virial23 Dec 12 '21
For the love of god use for or while please…
12
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Dec 12 '21 edited Dec 13 '21
Image Transcription: Code
[The image is a photograph of a computer screen displaying the following code:]
[Further code is cut off.]
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
7
u/LostErrorCode404 Dec 12 '21
Thats roblox for you
1
u/snacksy13 Dec 13 '21
Eh i would do this too if i where in a pinch. It's not that bad.
1
u/KMSyahid123 Dec 14 '21
Man doesnt even check debounce
1
u/Reasonable_Mixture30 Dec 17 '21
I'm not familiar with Lua, but you could probably replace anything after line 7 with this, right?
1
u/__pingwin__ Dec 24 '21
Scrreenshot: exists, this OP:
1
u/Oracuda Feb 13 '22
OR you can be an actual chad and do
if that would even work, i havent lua'd in a while