How do I make a block place system

I wanna make a game similar to BedWars. But a really different concept. I don’t really know how to script well and I don’t know where to start.

I’d recommend using MouseObject.TargetSurface combined with MouseObject.Target to make a block placing system. From the Target, you can check a already existing block’s position to build off from, and from the TargetSurface, you can move it on the XYZ coordinate depending on the surface. [Such as if the TargetSurface is Top, you should move the placed block’s Y axis by the size of a block.]

Sorry if this is a horrible explanation.

Me nodding pretending I know what you just said cause im bad at scripting

All you need is just raycast from camera point to mouse position and Math.floor this position when dividing it by the cell size ,and then check in table or world if this cell is free or not ,and if it is then
multiply position by the cell size ,and it gives you position of the block.

Maybe try learning the basics and then tackle something more advanced like this

1 Like