Directly changing a parts Y position

I know that you are unable to directly set a parts Y position (e.g.Part.Position.Y = 5), but is there any other way to do it?

I’ve already tried doing Rockets.Position += Vector3.new(0, 1, 0) but it doesn’t set it to the right height.

Note that this part is a rocket that is dropped and then anchored in a random position, I want to then change the Y height to a specific number; which I’m unable to do. Any help?

You could use CFrames, it would allow you to just set the Y position while keeping rotation and other positions the same.

https://developer.roblox.com/en-us/api-reference/datatype/CFrame

1 Like

It’s pretty easy actually.

Rockets.Position = Vector3.new(Rockets.Position.X, --[[your y level]], Rockets.Position.Z)

Why is the variable called Rockets (plural)? Maybe you are misusing the variable, because this:

is supposed to make the y position of Rockets 1 stud higher.

This is a Part, the Orientation property will never be affected by the Position property.

1 Like

I know however it allows for future expandability if they were to adadpt the way in which the system worked.

1 Like