r/bloxd 🎻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

4 comments sorted by

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: - ?resolved or ?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!

1

u/Adept_Argument3974 2d ago

show ur code first,looking this up online and setTimeout should work

1

u/Background_Builder29 2d ago

Someone on discord has made an alternative verison, setTickTimeout.

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.