How do you make a a Tool that Places Blocks?
Alright. I'm trying to create my own custom stamper tool. (It's a tool that lets you build) So everytime I equip the tool, a block appears. As you move the mouse, the block moves along with it.
So here's the question, how do you make the block move +1 stud everytime the mouse moves? In other words, when you move your mouse left, you do you make it so that the block moves 1 stud left?
Here's my current script:
02 | mouse = game.Players.localPlayer:GetMouse() |
04 | local newPart = instance.new( "Part" ,game.workspace) |
06 | newPart.Size = Vector 3. new( 4 , 4 , 4 ) |
08 | mouse.Move:connect( function () |
09 | newPart.Position = mouse.Hit.p |
thanks, text.