I have this script right here that makes a part follow the mouse (not the full script)
render:connect(function()
if moving then
currentPart.CFrame = CFrame.new(mouse.Hit.p)
end
end)
But the problem is the part:
- Doesn't nap to the nearest whole stud
- It keeps moving closer to the camera, like floating in the air. I want it to stay snapped to the Y.
This is for a building system in a new game I'm making. Thanks!

1 comment
Not sure if this will work but try this. CFrame.new(mouse.Hit.p.X, PosY, mouse.Hit.p.Z) PosY would be where you want the block on the Y axis.