of     1   

ArticunoX
Top 100 Poster
#122105Friday, August 24, 2007 9:51 PM GMT

Make me a noob?
stang90
#122113Friday, August 24, 2007 9:54 PM GMT

no, it makes you a non scripter
gamehero
#122129Friday, August 24, 2007 10:04 PM GMT

It makes you a person who doesn't use the wiki. http://wiki.roblox.com/index.php?title=Debounce
Kirby12
Top 100 Poster
#122305Saturday, August 25, 2007 12:04 AM GMT

I still dont know what Debounce is...
totti
#122333Saturday, August 25, 2007 12:21 AM GMT

Even if you know how to script debounce is....well....usually hated in the scripting community....so no it doesnt make you a noob =) Totti
Imagineer
#122550Saturday, August 25, 2007 2:45 AM GMT

erm... the nname sort of gives it away...
chess123mate
#122969Saturday, August 25, 2007 1:52 PM GMT

Well, incase anyone is still wondering after reading the wiki, debounce is used to make sure that a script isn't run numerous times "at the same time". Ex. Imagine a chat-command script that kills everyone after 10 seconds, but during that 10 seconds it makes bricks fly everywhere, or has a series of messages. The command can be activated by anyone, and the command is "chaos" Seconds into game: 133, Bob say "chaos" -- script is now running Seconds into game: 135, Joe says "chaos" -- the same script is now running a 2nd time! Bob activated the script, 2 seconds in the script is running again, so now you have a lot of chaos, since the script is running twice simultaneously. The first script will end at 143, killing everyone, then the 2nd script will end at 145, killing everyone again! WITH DEBOUNCE, when Joe says "chaos" the script will end itself since it is already running. There are reasons for using DEBOUNCE.
Kirby12
Top 100 Poster
#123527Saturday, August 25, 2007 9:51 PM GMT

I still dont understand
stang90
#123545Saturday, August 25, 2007 9:58 PM GMT

its stops the script from screwing it's self up, that all you really need to know
Anaminus
Top 100 Poster
#123587Saturday, August 25, 2007 10:23 PM GMT

Basically, it wont let the script run again until it's done running. ?-Anaminus-?
Kirby12
Top 100 Poster
#123589Saturday, August 25, 2007 10:24 PM GMT

oh thanx Anaminus!
chess123mate
#123591Saturday, August 25, 2007 10:25 PM GMT

Perhaps you need to know what "multi-threading" is. In programming, sometimes it is better to have several different things running at the same time. Each script you write in Lua is run on a different thread, and is basically run "at the same time", although Lua does it differently (and runs each thread one after another repeatedly). Anyway, this multi-threading allows things to be done at the same time. So, without debounce, look at this example code (not in Lua, just summed up logic) : OnChatted("regenerate") wait(2) Regenerate(MyModels) wait(2) message = new message message.text = "REGENERATION COMPLETE!" message.Parent = game.Workspace wait(5) message.Parent = nil end With that code, if 5 people said regenerate at near exact same time, MyModels would be trying to regenerate in 5 different threads! Imagine the regeneration, which removes the model - the model wouldn't even exist when the 2nd thread got to it! There would be many errors, and many messages coming up and some may not even stop - they'll be permanently on screen. Look at just 2 threads in this msg example: Thread 1 runs "message = new message" up to "message.Parent = game.Worksapce" then runs "wait()", giving Thread2 a chance to do something. Thread 2 runs the same thing that Thread 1 just ran, but now the variable "message" refers to a NEW message. Thread 1 runs "message.Parent = nil", but because Thread 2 assigned a NEW message value to that variable, it takes off Thread 2's message, not its own. Thread 2 runs "message.Parent = nil", but does nothing else because the message's parent is already NIL! So, Thread 1's original message is permanently on. That is an example of why debounce is used - to prevent those situations from happening!
SHREDERMAN
#612176Tuesday, March 18, 2008 7:27 PM GMT

what everybody said is a litle bit confusing to me i can ony fit about...........11 things into my mind k so peopl that do not know very little things and are new to roblox are not noobs anyone that alls them noobs i think that they should atumaticly be baned because the people that are new to this game need to know what the they need to do on there own sometimes with help but..... that is all i have to say SHREDERMAN OUT!
Aleezybaby0
#63013200Saturday, February 18, 2012 12:09 AM GMT

Anaminus used to forum :D

    of     1