I’d like some help on how I can use an increment on the part so it moves 1 stud at a time rather than .001 studs (which would turn out uneven)
If that doesnt make any sense just picture using the drag tool from roblox I want the part to automatically snap onto another part with a 1 stud increment. How do I go about with doing this?
-- i assume its half way in
local function brickup(pos,size)
return position+Vector3.new(0,size.Y/2,0)
end
-- in main
part.Position = brickup(mouse.Hit.p,part.Size)
Also,
You don’t need to set the parent to workspace every renderstepped, only once.
It’s even simpler than this, don’t work harder if you don’t need to. Use the math.ceil() function, it automatically rounds up so instead of 0.1, you have 1, and so on and so forth. Version that I tested: