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?
COMMUNITY QUESTION
How do i lock a part's Z position?
1 answer
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
