script.Parent.BodyPosition.Position = Vector3.new(math.random(-500,500),0,math.random(-500,500)) -- Set the target BP(BodyPosition) to an area of 500 studs
script.Parent.Position = Vector3.new(math.random(-2000,2000),850,math.random(-2000,2000)) -- Putting the first position of the object
Somehow the parts goes to the target too fast and usually goes off-course to the supposed area of 500 studs square
Any help?
BodyPosition requires you set a position for it to target… The “D” value of BodyPosition is the Dampening value. Dampening slows the object when it gets closer to the target.
You don’t need to set the position. If the script.Parent is an unanchored part then the part will move when you set the bodyposition’s BodyPosition property.
To change the speeds, play around with the D, MaxForce, P, properties
Also, youre going to want a bodygyro if you want it to stop spinning