ProdigyJ
|
  |
| Joined: 22 Jan 2013 |
| Total Posts: 10107 |
|
|
| 18 Apr 2015 01:35 PM |
while true do script.Parent.CFrame = script.Parent.CFrame + Vector3.new(.1,0,0) wait(0.075) script.Parent.CFrame = script.Parent.CFrame + Vector3.new(.1,0,0) wait(0.075) wait(math.random(3,5)) script.Parent.CFrame = script.Parent.CFrame - Vector3.new(.1,0,0) wait(0.075) script.Parent.CFrame = script.Parent.CFrame - Vector3.new(.1,0,0) wait(0.075) wait(math.random(9,12)) end
I am trying to find a way to loop each part so I don't have to keep typing the same thing in a lot of times... (To get the brick from Point A to Point B without typing in CFrame line so much)
i dont know what to do though |
|
|
| Report Abuse |
|
ProdigyJ
|
  |
| Joined: 22 Jan 2013 |
| Total Posts: 10107 |
|
|
| 18 Apr 2015 01:37 PM |
Anyone have any idea? I'm thinking a "for i = #,#" loop? |
|
|
| Report Abuse |
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 18 Apr 2015 01:40 PM |
--This?
for i=1, 4 do script.Parent.CFrame = script.Parent.CFrame + Vector3.new(.1,0,0) wait(0.075) end |
|
|
| Report Abuse |
|
ProdigyJ
|
  |
| Joined: 22 Jan 2013 |
| Total Posts: 10107 |
|
| |