|
| 08 Jun 2014 09:20 AM |
I use a for loop in a part moving script, thats uses: for i = 1,10 do part.Position.CFrame = Vector3.new (0 , 0, 0) end But, that proplem is, it dosen't go through over things, when it hits something, it just halts. How do I make it go through stuff without stopping? |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 09:21 AM |
use cframe not vector3, and that code does nothing except make the position 0,0,0.
|
|
|
| Report Abuse |
|
|
ComBatPro
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 205 |
|
|
| 08 Jun 2014 09:21 AM |
for i = 1, 10 do part.CFrame = CFrame.new(0, 0, 0) end
Use CFRame |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 09:24 AM |
@Ver, I know, I was posting the way I use to move it: part.Position.CFrame = part.Position.CFrame + Vector3.new(0, 0, 0) But now instead, I should use: part.Position.CFrame = part.Position.CFrame + CFrame.new(0, 0, 0) ? |
|
|
| Report Abuse |
|
|
ComBatPro
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 205 |
|
|
| 08 Jun 2014 09:28 AM |
| I posted what you should use, but go ahead and ignore me. I don't mind. |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 09:30 AM |
| Yours just will set the CFrame, I need my part to move. |
|
|
| Report Abuse |
|
|
ComBatPro
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 205 |
|
|
| 08 Jun 2014 09:38 AM |
part.CFrame = part.CFrame * CFrame.new(0, 0, 0)
|
|
|
| Report Abuse |
|
|