xXRALXx
|
  |
| Joined: 12 Mar 2008 |
| Total Posts: 153 |
|
|
| 02 Jul 2014 08:07 PM |
for _, coin in pairs(script.Parent:GetChildren()) do if coin:IsA('Part') and coin.Name == "Coin" then while true do coin.CFrame = coin.CFrame * CFrame.fromEulerAnglesXYZ (0,0.125,0) wait(0.01) end end end
Only one spins. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2014 08:08 PM |
while wait() do for _, coin in pairs(script.Parent:GetChildren()) do if coin:IsA('Part') and coin.Name == "Coin" then coin.CFrame = coin.CFrame * CFrame.fromEulerAnglesXYZ (0,0.125,0) wait(0.01) end end end
|
|
|
| Report Abuse |
|
|
xXRALXx
|
  |
| Joined: 12 Mar 2008 |
| Total Posts: 153 |
|
|
| 02 Jul 2014 08:10 PM |
| It spins all coins, but only one at a time. |
|
|
| Report Abuse |
|
|
xXRALXx
|
  |
| Joined: 12 Mar 2008 |
| Total Posts: 153 |
|
| |
|
|
| 02 Jul 2014 08:24 PM |
function Spin(part) Spawn(function() while wait(.01) do part.CFrame = part.CFrame*CFrame.fromEulerAnglesXYZ(0,.125,0) end end) end
for i,v in pairs(script.Parent:GetChildren()) do if v:IsA'BasePart' and v.Name == "Coin" then Spin(v) end end
|
|
|
| Report Abuse |
|
|
xXRALXx
|
  |
| Joined: 12 Mar 2008 |
| Total Posts: 153 |
|
| |
|