MTamidex
|
  |
| Joined: 17 Oct 2013 |
| Total Posts: 1092 |
|
|
| 09 Aug 2015 05:22 AM |
while wait(.1) do spawn(function() for i = 0, 1, 0.1 do wait(.1) Model.Part.Position = Vector3 * CFrame.new(0, i, 0.1) end for i = 0, 1, -.1 do wait(.1) Model.Part.Position = Vector3 * CFrame.new(0, i, -.1) end end) end
should i be using a normal function instead of a spawn? |
|
|
| Report Abuse |
|
|
MTamidex
|
  |
| Joined: 17 Oct 2013 |
| Total Posts: 1092 |
|
| |
|
Qorm
|
  |
| Joined: 25 Jul 2010 |
| Total Posts: 1650 |
|
| |
|
Qorm
|
  |
| Joined: 25 Jul 2010 |
| Total Posts: 1650 |
|
|
| 09 Aug 2015 05:30 AM |
| you have a lot of problems with this sir |
|
|
| Report Abuse |
|
|
MTamidex
|
  |
| Joined: 17 Oct 2013 |
| Total Posts: 1092 |
|
| |
|
Qorm
|
  |
| Joined: 25 Jul 2010 |
| Total Posts: 1650 |
|
|
| 09 Aug 2015 05:35 AM |
basically what this is doing is creating a function every 0.1 seconds without it even being called
also there is no point on even making the function if its the only thing going to be in the loop
you also cant subtract -0.1 until you get 1, its impossible (line 7) |
|
|
| Report Abuse |
|
|
Qorm
|
  |
| Joined: 25 Jul 2010 |
| Total Posts: 1650 |
|
|
| 09 Aug 2015 05:37 AM |
(line 5) should be Model.Part.Position = Model.Part.CFrame * CFrame.new(0, i, 0.1) |
|
|
| Report Abuse |
|
|
MTamidex
|
  |
| Joined: 17 Oct 2013 |
| Total Posts: 1092 |
|
| |
|
MTamidex
|
  |
| Joined: 17 Oct 2013 |
| Total Posts: 1092 |
|
|
| 09 Aug 2015 05:46 AM |
is this btter?
while wait(5) do for i = 0, 1, 0.1 do wait(.1) Model.Part.Position = Model.Part.CFrame * CFrame.new(0, i, 0.1) end for i = 1, 0, -.1 do wait(.1) Model.Part.Position = Model.Part.CFrame * CFrame.new(0, i, -.1) end end
|
|
|
| Report Abuse |
|
|
Qorm
|
  |
| Joined: 25 Jul 2010 |
| Total Posts: 1650 |
|
| |
|
MTamidex
|
  |
| Joined: 17 Oct 2013 |
| Total Posts: 1092 |
|
| |
|