|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
| |
|
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 |
|
|
|
| 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 |
|
|
| |
|
|
| 31 Aug 2017 09:29 AM |
His code was an example. If you actually use it, it will indeed count down.
|
|
|
| Report Abuse |
|
|