generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: VertexColor issues.

Previous Thread :: Next Thread 
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
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
textmasterthe9th is not online. textmasterthe9th
Joined: 03 Oct 2008
Total Posts: 752
01 Feb 2012 10:36 AM
try Color3.new?
Report Abuse
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
01 Feb 2012 10:41 AM
Has to be a Vector3, Color3 gives errors.
Report Abuse
textmasterthe9th is not online. textmasterthe9th
Joined: 03 Oct 2008
Total Posts: 752
01 Feb 2012 10:50 AM
well i tried :P
Report Abuse
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
01 Feb 2012 02:04 PM
Bump
Report Abuse
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
01 Feb 2012 06:15 PM
Bump
Report Abuse
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
02 Feb 2012 08:06 AM
Wheres the help at SH???
Report Abuse
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
04 Feb 2012 03:59 PM
Bump
Report Abuse
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
04 Feb 2012 10:57 PM
Hmm scripting helpers is 100% dead if nobody has been able to help in 3 days...
Report Abuse
stardoctor0999 is not online. stardoctor0999
Joined: 06 Aug 2010
Total Posts: 425
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
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
05 Feb 2012 12:26 AM
@star
VertexColor only works with Vector3.

▌†ηϨ▐
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
05 Feb 2012 12:27 AM
@Who
Could you specifically state which lines don't fully work like they should?

▌†ηϨ▐
Report Abuse
Phellem is not online. 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 is not online. Phellem
Joined: 04 Aug 2011
Total Posts: 1984
05 Feb 2012 12:28 AM
Oi, late post.
Report Abuse
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
05 Feb 2012 09:09 AM
Phellem got it. Thanks ;)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image