I am trying to make something that if you hold your mouse button down it will create a line of blocks.
I have tried making this by setting a parts size to the magnitude between the first mouse position and the last mouse position. That didnt go so well, and it is quite important that it only uses 1 part to visualize where the parts will be built.
How i would go about it is maybe with the following ideas in mind:
The magnitude between the point where you clicked and the point where your mouse is ( I would suggest using UIP for this as you can get this info from the inputobject.
If your build system uses a grid, you will want to try get the cells which the line is hovering over
Iām not sure how you would get that to work but it is possible
It is fixed, thanks to CheOsana on the roblox discord server. I just grabbed the wrong magnitude. Instead of (Vector1-Vector2).Magnitude i used Vector1.Magnitude-Vector2.Magnitude to get the length between the 2 points