I've seen some places (Super Paper Mario and Deathrun 3, for example) that use some sort of Roblox Physics to make parts move.I'm not talking about motors (Rotation) I'm talking about movement. Deathrun 3 makes a 'hand' move on an invisible 'wire' that it goes along. I would like to know how to do this. Thanks in advance!
Another method of movement is with the use of a BodyMover, which can achieve moving objects through the air. I have created an example that will move between four points with the use of a BodyVelocity and a BodyGyro.
01 | local part = script.Parent |
02 | local gyro = part:WaitForChild( "BodyGyro" ) |
03 | local velo = part:WaitForChild( "BodyVelocity" ) |
04 |
05 | local nodes = { -- where the brick floats to |
06 | Vector 3. new( 10 , 10 , 10 ); |
07 | Vector 3. new( 10 , 15 ,- 10 ); |
08 | Vector 3. new(- 10 , 10 ,- 10 ); |
09 | Vector 3. new(- 10 , 5 , 10 ); |
10 | } |
11 | local speed = 10 |
12 |
13 | local n = 1 |
14 | local node = nodes [ n ] |
15 |