So basically I’m using a remote event which fires from the local script when the tool is activated, the server plays the animation.
Well, that’s your problem. Move the local debounce = false
above the ReplicatedStorage.RemoveEvent.OnServerEvent
Because you’re basically creating a new debounce variable for every remote event instead of using 1 debounce variable.
So basically every time u fire the event it automatically turns false so if u put it above that should fix it
Why? Isn’t it in the scope of where I’m referencing it?
No because it is local inside the instance so it changes every time the instance is fired
Ohhh! I get it now! (30 Charcters)
When you fire a RemoteEvent, think of it as a separate process. The code inside of the function has its own debounce variable created within its execution thread.
If you place it outside of the function, they will all reference that one single variable.
Give eneplex the solvi check thingi
No problem, and finally, the bus driver allows the kids to take a peak in the engine. The kids have gotten their hands dirty with oil grease, but in the end, the bus engine roared. The bus driver then thanked the kids, and marked an answer as a solution.
Yup! Already did that. (30 Characters)
Bro how are u coming up with this stuff , screw coding u need to become a philosopher
The only problem was, I didn’t want to reveal the animation id, as I’m not sure if someone can copy my animation or not.
Nah I was talking about eneplexes god analogies
just fyi, nobody can copy your animations afaik. they arent sharable.
Oh! Ok! Thank you for letting me know, will keep that in mind from now on!
As the day came to an end, the bus driver dropped off all the remaining kids. The bus was also being disposed of. But not to worry, the bus driver may ask the kids once again to help him solve the problems on the next bus.
Yet again, that is for another day. The kids go home and enjoy their nights.
YellowBus898. Lol. (30 Characters)
Holy Coding Bible of Exeplex: 2-16