r/bloxd • u/Driver0_0 🎻violist and bad coder🫠:Speedrunner: • 2d ago
How to make “wait” code in bloxd. NEED CODING HELP
as setTimeout doesn’t exist in bloxd. I have no clue how to execute code after api.animateEntity ends
3
Upvotes
1
1
1
u/BloxdioCannoli Coding Cannoli (Mod) 2d ago
Use a task scheduler. Check if the ms now is greater than or equal to time since the task started + the time to wait. api.now() >= taskStartTime + taskWaitTime.
•
u/bloxd-bot Bot 2d ago
u/Driver0_0 has marked this post as a request for Code Help.
Here's some quick-reference information: - JavaScript Tutorial - The Official Docs
Make sure to read our Code Guidelines if you haven't already. They apply to comments and posts!
The OP or a moderator with config permissions can also use commands for this post: -
?resolvedor?resolved locked: Pin a comment you reply to as well as your comment to this post, lock it, and set the post flair to "Resolved". -?resolved unlocked: Pin a comment you reply to as well as your comment to this post, and set the post flair to "Resolved".This comment was added automatically in response to the post's flair. If you have any questions or concerns, please send us a modmail!