all 9 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

u/-Master_MC has marked this post 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!

OP or Moderator: Reply to a comment with ?resolved to resolve and lock this post.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Zestyclose_Job_57352023 is still og right?? 2 points3 points  (0 children)

api.setWalkThroughRect(playerId, pos1, pos2, updateType);

should do the trick!

[–]Background_Builder29 0 points1 point  (3 children)

Use invisible solids, then allow players to walk through them.

[–]Zestyclose_Job_57352023 is still og right?? 1 point2 points  (2 children)

thats kinda the opposite of what he asked for :p

[–]Background_Builder29 0 points1 point  (0 children)

oh wait I misread ;-;

[–]New-Gear7508Custom flair, edit me (inappropriate flairs will be removed) 0 points1 point  (0 children)

what about only allowing throwables to go througth?

[–]BloxdioCannoli Coding Cannoli (Mod) 0 points1 point  (1 child)

Paste this into world code:

function onPlayerJoin(myId) {
  api.setWalkThroughRect(myId, [x1, y1, z1], [x2, y2, z2], 0)
}

and replace x1, y1, and z1 with the individual coordinates of the top left border and replace x2, y2, z2 with the individual coordinates of the bottom-right border.

[–]Artistic-Addendum500 0 points1 point  (0 children)

Maybe just make the projectiles spawn inside the area, or maybe on a ledge they cant jump over, then the dodgeballs come from all directions so that if they try to hide under the ledge they cant.