#Someone????
1 messages · Page 1 of 1 (latest)
That’s a good start honestly
Thx bro
Debounce is a coding technique used when you would like a function/event to finish / add a cooldown before it can be executed again.
i thought it was to make sure it exists
like if debounce then
The way you use it is by adding a variable (normally called “debounce”) and setting it to true. When the function starts, you first check if debounce is true. If it is, THEN you execute the function and turn off debounce, not turning it on again until the function ends.
Since debounce is normally a bool value, “if debounce then” is checking if debounce is true, unless debounce is an instance, then it’s checking if it exists
Np
I’d suggest you just ask chatgpt for questions whenever you have them but MAKE SURE that you actually read what it says and understand the solition
** You are now Level 1! **
Want an example of debounce?
Also .parent is a property of instances that returns the instance that contains it
So for example if you have a script inside a part, and you want to change something about that part, you’d refer to it with .Parent
local Part = script.Parent
basically a parent is the thing an object is inside
Yeah