LOBOT44
|
  |
| Joined: 03 Feb 2010 |
| Total Posts: 23539 |
|
|
| 11 Jul 2012 02:44 PM |
function Plates(part)
end while true do --keeps it going wait() -- Now it won't crash. for i = 1, #c do local c = script.Parent:GetChildren() if (c[i].Name == "Plate") then for i = 0, 1, 0.1 do c.Transparency = [i] c.CanCollide = [i] wait(1) --waits end --end end --end end --end
|
|
|
| Report Abuse |
|
|
LOBOT44
|
  |
| Joined: 03 Feb 2010 |
| Total Posts: 23539 |
|
| |
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 11 Jul 2012 02:48 PM |
You have to define c before using it.
while wait() do local c = script.Parent:GetChildren() for i = 1, #c do if (c[i].Name == "Plate") then for i = 0, 1, 0.1 do c.Transparency = i c.CanCollide = false wait(1) end end end end I don't see how you can make CanCollide a numerical value. Change it to true or keep it at false since i have no idea what you were wanting to do with that. And you were missing an end. |
|
|
| Report Abuse |
|
|
LOBOT44
|
  |
| Joined: 03 Feb 2010 |
| Total Posts: 23539 |
|
|
| 11 Jul 2012 02:50 PM |
function Plates(part)
end while true do --keeps it going wait() -- Now it won't crash. local c = script.Parent:GetChildren() for i = 1, #c do if (c[i].Name == "Plate") then for d = 0, 1, 0.1 do c.Transparency = [d] c.CanCollide = [d] wait(1) --waits end --end end --end end --end --can i test? |
|
|
| Report Abuse |
|
|
LOBOT44
|
  |
| Joined: 03 Feb 2010 |
| Total Posts: 23539 |
|
|
| 11 Jul 2012 02:50 PM |
function Plates(part)
end while true do --keeps it going wait() -- Now it won't crash. local c = script.Parent:GetChildren() for i = 1, #c do if (c[i].Name == "Plate") then for d = 0, 1, 0.1 do c.Transparency = [d] c.CanCollide = [d] wait(1) --waits end --end end --end end --end --can i test? |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 11 Jul 2012 02:54 PM |
function Plates() while wait() do local c = script.Parent:GetChildren() for i = 1, #c do if (c[i].Name == "Plate") then for j = 0, 1, 0.1 do c.Transparency = j c.CanCollide = false wait(1) end end end end end |
|
|
| Report Abuse |
|
|
LOBOT44
|
  |
| Joined: 03 Feb 2010 |
| Total Posts: 23539 |
|
| |
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 11 Jul 2012 02:57 PM |
| Have you called the function as Plates() anywhere in your script? |
|
|
| Report Abuse |
|
|