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 **short script

Previous Thread :: Next Thread 
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
18 Jan 2016 09:19 PM
while true do
wait(.1)
script.Parent.Color = script.Parent.Color+1
end

alright so the Parent is the Fire in the Part, so yeah if I were just changing it to one color it would be Color3.new(blah,blah,blah) but I'm not sure what to do about just adding +1 to the value every .1 second then once it gets to 255,255,255 then it'll go backwards to 0,0,0.



Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
18 Jan 2016 09:26 PM
b1



Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
18 Jan 2016 09:31 PM
while script.Parent.Color ~= Color3.new(255,255,255) do
wait(.1)
script.Parent.Color = script.Parent.Color + Color3.new(0,0,1)
end
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
18 Jan 2016 09:36 PM
@62

attempt to perform arithmetic on field 'Color' (a userdata value)



Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
18 Jan 2016 09:39 PM
while true do
for x = 0, 1, 0.00392156863 do
script.Parent.Color = Color3.new(x, x, x)
wait(0.1)
end
for x = 1, 0, -0.00392156863 do
script.Parent.Color = Color3.new(x, x, x)
wait(0.1)
end
end
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
18 Jan 2016 09:42 PM
@128 alright that works perfectly, but only goes between shades of white and black for some reason?



Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
18 Jan 2016 09:44 PM
Did you want it to do the r b and g not at the same time?
Report Abuse
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
18 Jan 2016 09:44 PM
Because you're equally shading R, G, and B
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
18 Jan 2016 09:46 PM
Nah I was trying to make it basically slowly transition into all of the colors



Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
18 Jan 2016 09:47 PM
Then you want exactly what I just said...

Except that wouldn't be all the colors it would skip colors like

255, 0, 255
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
18 Jan 2016 09:50 PM
I just want it to like slowly transition you know? like go from 0,0,1 all the way like one number at a time up to 255,255,255 and go pretty fast so it has a nice transition and then it restarts at 0,0,1



Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
18 Jan 2016 09:51 PM
while true do
for x = 0, 1, 0.00392156863 do
for y = 0, 1, 0.00392156863 do
for z = 0, 1, 0.00392156863 do
script.Parent.Color = Color3.new(x, y, z)
wait(0.1)
end
end
end
for x = 1, 0, -0.00392156863 do
for y = 1, 0, -0.00392156863 do
for z = 1, 0, -0.00392156863 do
script.Parent.Color = Color3.new(x, y, z)
wait(0.1)
end
end
end
end
Report Abuse
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
18 Jan 2016 09:54 PM
I would replace 0.0039215... with 1/255

Personal preference, just so I could see what it means.
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
18 Jan 2016 09:55 PM
I didn't think of that

I was just trying to avoid dividing the numbers in the Color3.new() by 255 each time
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
18 Jan 2016 10:10 PM
@128 it goes from black to blue, then back to black, it apparently only goes to blue in rgb and doesnt go into red and green and white? idk



Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
18 Jan 2016 10:16 PM
b3



Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
18 Jan 2016 10:19 PM
It does go into red and stuff

You said you wanted it to go through every color

All
16,777,216 colors

It takes a while to get past all the blue

Although looking at that number now maybe I did it wrong because I believe there are more combos than that.
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
18 Jan 2016 10:25 PM
I set it to 0.001 seconds to make it go faster, and It goes to lots of shades of blue really fast then goes to black then back to blue



Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
18 Jan 2016 10:51 PM
Is there a way to just slowly transition it through brickcolors?? cause i just want it to transition from blue to all the major shades of blue in between it and say red then same with red and green etc



Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
18 Jan 2016 11:01 PM
Just lerp between the colors
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
18 Jan 2016 11:03 PM
Not familiar with the term lerp



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