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 » Scripters
Home Search
 

Re: Color3.new()

Previous Thread :: Next Thread 
lumberlegend123 is not online. lumberlegend123
Joined: 15 Aug 2016
Total Posts: 111
31 Aug 2017 08:42 AM
I'm making a The Floor Is Lava game and a want it to have a little realism by having when the Lava touches a part it catches the part on fire and the part gets darker and when its color value reaches 0,0,0 then it gets destroyed, the thing is i don't know how to have it get darker, iv'e tried this script ------ For i = 1,500 do
Script.Parent.Color = Color3.new(i,i,i)
end
I didn't right the full version of the script but i think you guys have an example of what I'm trying to do, so could someone help????
Report Abuse
JoshRBX is not online. JoshRBX
Joined: 19 May 2012
Total Posts: 8778
31 Aug 2017 08:44 AM
you want Color3.fromRGB(), not Color3.new().
the max values are 255, not 500

for i = 0, 255 do
script.Parent.Color3 = Color3.fromRGB(i, i, i)
end


Report Abuse
JoshRBX is not online. JoshRBX
Joined: 19 May 2012
Total Posts: 8778
31 Aug 2017 08:46 AM
didnt really read what you said, i just made your example script work
this should work for you, i would really recommend taking a look at wiki.roblox.com kthx

for i = 255, 0, -1 do
script.Parent.Color3 = Color3.fromRGB(i, i, i)
wait()
end
script.Parent:Destroy()


Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
31 Aug 2017 08:48 AM
sorry dont go for it


Report Abuse
JoshRBX is not online. JoshRBX
Joined: 19 May 2012
Total Posts: 8778
31 Aug 2017 08:53 AM
also yes that ^
you might wanna get a bit more knowledgeable around roadblocks studio first


Report Abuse
lumberlegend123 is not online. lumberlegend123
Joined: 15 Aug 2016
Total Posts: 111
31 Aug 2017 09:03 AM
Ok what about Color values with different values, i had a color value at #### #### ### and it changed all of them to 255 and started counting down, how do i fix that???
Report Abuse
lumberlegend123 is not online. lumberlegend123
Joined: 15 Aug 2016
Total Posts: 111
31 Aug 2017 09:05 AM
158, 165, 125
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
31 Aug 2017 09:29 AM
His code was an example. If you actually use it, it will indeed count down.


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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