Hello, Im trying to change velocity in bodyvelocity which is in part. I want to make part which moving right for 3 sec and later it change and move to left.
Here is script:
script.Parent.Parent.M1.BodyVelocity.velocity.X = 0
script.Parent.Parent.M1.BodyVelocity.velocity.Y = 0
script.Parent.Parent.M1.BodyVelocity.velocity.Z = 2
wait(3)
script.Parent.Parent.M1.BodyVelocity.velocity.X = 0
script.Parent.Parent.M1.BodyVelocity.velocity.Y = 0
script.Parent.Parent.M1.BodyVelocity.velocity.Z = -2

2 comments
Use Vector3.new to declare the velocity as it is a vector3 value :3 e.g script.Parent.Parent.M1.BodyVelocity.velocity = Vector3.new(0,0,2)
Ok and can you tell me how to repeat it? i mean restart or something.