Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
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.