How would I go about making a block prediction system?

  1. What do you want to achieve? I want to script a block prediction system similar to the one in SKYWARS owned by @0_0.

  2. What is the issue? No issues at the moment, just need someone to guide me how I would go about doing it.

  3. What solutions have you tried so far? Yes, but nothing really fit what I actually needed.

In this block prediction system, you are able to place in front I assume it’s because of LookVectors?

If you have anything extra to say, please feel free to message me…

Block predictions, like the outline that shows where the block will be placed or?

1 Like

Exactly that, where it shows the outline where the block will be placed. It works by hovering your mouse in front of a block.

If you start by sinply getting the mouse.Hit.p while holding blocks. Then you basically use math.floor to move the position to fit on a grid. On the new position clone an outline block there, and keep the current block position in a variable. Then say on changing mousepos, see if the grid position is different from the old one, if so destroy it and do the code described above.

I’m guessing this might not explain it all the way, but should get you started hopefully

Edit: Think of it as using any grid building tutorial except on mouse move you build a temporary ghost/outline block, then on mouse1 you build the actual block

Thank you, I’ll let you know how it goes.