Hello,
I'm trying to create a simple survival type game which follows the style that when you move your mouse around a copy of an object follows your cursor allowing you to place buildings in the world. My code is properly moving the object to the x and y coordinates, but it's printing the MOUSE.Target.Position as (0,0,0) everytime and thus the building is below the map. How do I ensure my object is above the Y coordinate of terrain?
`` while wait() and isPlacing do if(MOUSE.Hit and MOUSE.Target) then print(" | "..tostring(MOUSE.Target.Position)); clone:MoveTo(Vector3.new(MOUSE.hit.Position.x, MOUSE.Target.Position.y, MOUSE.hit.Position.z)) end end