Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make vector3 only change Y position?

Asked by 4 years ago

Hello, I'm kinda new into scripting and slowly learning. I'm struggling to find out how to change only the Y position in vector3, any clues?

1 answer

Log in to vote
2
Answered by 4 years ago
Part.Position = Vector3.new(Part.Position.X,3,Part.Position.Z)

or

Part.Position = Part.Position + Vector3.new(0,3,0)
Ad

Answer this question