https://gyazo.com/4a2ccdc7d78d422743adca3f0b6e1a72 in that gif, the cube lands fine, but sometimes it falls off the map, how do I lock/anchor it's current Z position without anchoring it whole?
You can make it so the z position always stays at the specified value with the following code:
z = 50 part.Position = Vector3.new(part.Position.X,part.Position.Y,z) --assuming you already have a variable for the part