|
| 01 Feb 2012 10:12 AM |
The only issue is I can't get the VertexColor to change, at all. It stays at 1,1,1 while the script runs. I get no output errors, and everything seems to check out.
Anyone able to help?
Mesh = script.Parent
function ColorFade(Object,Amount,Time) if Object > 1 then repeat wait(Time/10) Object = Object - Amount/10 until Object == 1 elseif Object < 1 then repeat wait(Time/10) Object = Object - Amount/10 until Object == 1 end end
while true do wait(1) math.randomseed(tick()) Mesh.VertexColor = Mesh.VertexColor + Vector3.new((math.random(-0.1,0.1)),(math.random(-0.1,0.1)),(math.random(-0.1,0.1))) if Mesh.VertexColor.X <= 0 or Mesh.VertexColor.X >= 2 then ColorFade(Mesh.VertexColor.X,1,1) elseif Mesh.VertexColor.Y <= 0 or Mesh.VertexColor.Y >= 2 then ColorFade(Mesh.VertexColor.Y,1,1) elseif Mesh.VertexColor.Z <= 0 or Mesh.VertexColor.Z >= 2 then ColorFade(Mesh.VertexColor.Z,1,1) end end |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Feb 2012 10:41 AM |
| Has to be a Vector3, Color3 gives errors. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 04 Feb 2012 10:57 PM |
| Hmm scripting helpers is 100% dead if nobody has been able to help in 3 days... |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2012 12:07 AM |
| color3 should work, I think, are you sure, you just forgot that you need to have what ever number devided by 225? Color3.new(1/225,1/225,1/225) |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2012 12:26 AM |
@star VertexColor only works with Vector3.
▌†ηϨ▐ |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2012 12:27 AM |
@Who Could you specifically state which lines don't fully work like they should?
▌†ηϨ▐ |
|
|
| Report Abuse |
|
|
Phellem
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 1984 |
|
|
| 05 Feb 2012 12:27 AM |
Color3 WILL NOT work for VertexColor.
math.random(-0.1,0.1) will give you 0 each time. I'm not sure why, but as far as I know, math.random() only allow whole numbers.
Try this: math.random(-1,1)/10 |
|
|
| Report Abuse |
|
|
Phellem
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 1984 |
|
| |
|
| |
|