|
| 22 Mar 2017 05:42 AM |
How do i make it that when i touch one part then another part will move but if i stop touching the part the other part will go back to its original spot
|
|
|
| Report Abuse |
|
| |
Ben1925
|
  |
| Joined: 07 Apr 2011 |
| Total Posts: 741 |
|
|
| 22 Mar 2017 06:31 AM |
game.Workspace.Part.Touched:connect(function() -- move part, you may accomplish this by many ways, either by BodyForce, BodyPosition or just incremental changes to the vector3 position of the part. end)
game.Workspace.Part.TouchEnded:connect(function() -- revert the changes you did on the .Touched function. end) |
|
|
| Report Abuse |
|