So I'm making a game inspired by Create Your Own Security Base, my stamper works fine, it has a 4x4 grid. But the problem is, the Y position doesn't work as it is meant for, this is what I use for my position
local grid = 4
function snap()
local position = mouse.Hit.p
return CFrame.new(
position.X - position.X % grid,
position.Y - position.Y % grid,
position.Z - position.Z % grid
)
end
It also doesn't position the Y position correct Image for what it does

6 comments
I don't get it. What was it supposed to do and what is happening?
If you mean you don't want your part snapping on the y axis.. then just don't snap it on the y axis bruh .-.
I want it to snap on the Y axis, but it doesn't do that
But it does. The only way to check if it does is if you had your mouse on the side of another brick. mouse.Hit returns where the mouse landed on in world space.
How would I check that?
..wha