Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can you make a bodymover only affect one axis? [Solved]

I tried making a bodyposition affect only the Y axis. I tried making it nil, I tried to put "..." in the other axes but it didn't work. Anyone knows how I can do this?

script: V - Parent here is a bodyposition. (the script is inside the bodyposition)

script.Parent.Position = Vector3.new(nil,19.209,nil)

2 comments

0

With your vector3 use for the x and z number script.Parent.Position.X and script.Parent.Position.Z

That should work

0

use script.Parent.Position = Vector3.new(0,19.209,0) this will only apply force to the y axis and no the z or x axis

1 answer

✓ Accepted answer

Modify BodyPosition.MaxForce to have 0 in the axes you do not want it to affect. ex:

script.Parent.MaxForce = Vector3.new(0, script.Parent.MaxForce.Y, 0)

1 comment

0

Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.