How do you math.floor a y position correctly?

Hello, I am making a building system and I have rounded X and Z but how do I math.floor() Y position correctly? I have tried doing:

Y = math.floor(Mouse.Hit.Y/2)

But that rounds incorrectly and it seems to be mispositioned. Any help is appreciated, thanks!

1 Like

Why are you dividing the Y value by 2?

I don’t know it was just an example. The problem is it rounds inaccurately it’s like half the mouse.hit size.