Uh hello, as you say in the title of my question, I'm a beginner. I'm doing an Obby and I'm literally a very beginner, what I meant by that was? Well, I want to know how I control the speed of a part's movement with vector3. If it is not possible please explain to me another way, I just wanted to move the part :(
✓ ANSWER ACCEPTED
How do I accelerate a movement with Vector3? Am I a VERY beginner
2 answers
✓ Accepted answer
Moving Parts with Vector3 isn't too difficult. Try inserting this into a server script inside the part you want to move:
while true do
wait(1)
repeat
script.Parent.Position = Vector3.new(script.Parent.Position.X + 1, script.Parent.Position.Y, script.Parent.Position.Z) -- moves the part in the X axis
until script.Parent.Position.X > 50 -- 50 is the goal that the X axis must reach
wait(1)
end
I didn't test this out yet, so I'm not sure it will work.
1 comment
0
Use TweenService. You also need to break your loop:P
Hello! parts have a velocity property that define how fast theyre go While Moving parts and TweenService dont replicate physics
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Google translate?