|
| 03 Jul 2013 07:31 PM |
For example, if I had part1 and part2 and a script in part2, what text should I give it to make it move away from part1?
> UNBAN KOHL |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2013 07:34 PM |
| Do you want it to move away when it touches it? |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2013 07:39 PM |
Well, just a function that would do it
> UNBAN KOHL |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2013 07:45 PM |
Insert this script into Part2
I'm not sure if it will work, but it's worth a shot.
script.Parent.Touched:connect(function(hit) if hit.Name == "Part1" then local pos = script.Parent.Position script.Parent.Position = pos - Vector3.new(0, 1, 0) --You can configure which direction it wants to move in end end) |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2013 07:49 PM |
nevermind, i figured it out
> UNBAN KOHL |
|
|
| Report Abuse |
|
|