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: Smooth Color Transition

Previous Thread :: Next Thread 
TjazBuilder is not online. TjazBuilder
Joined: 27 Sep 2013
Total Posts: 845
04 Jul 2017 03:25 PM
How would I create a smooth Color3 transition from one color to another without stopping the code to finish the loop?


bamboozled again
Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
04 Jul 2017 03:35 PM
What do you mean without stopping the code? You can use the color3 lerp method.

'''Lua
local colour3A, colour3B; -- set these...
for i = 0, 100 do
local interpolationColour3 = colour3A:lerp(colour3B, i/100);
end;
'''
Report Abuse
TjazBuilder is not online. TjazBuilder
Joined: 27 Sep 2013
Total Posts: 845
04 Jul 2017 03:36 PM
Yeah but I have to wait till the for loop ends


bamboozled again
Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
04 Jul 2017 03:43 PM
You can use spawn:

'''Lua
spawn(function ()
local colour3A, colour3B; -- set these...
for i = 0, 100 do
local interpolationColour3 = colour3A:lerp(colour3B, i/100);
end;
end);
'''

Although I would highly recommend trying to get it to run without another thread. Things can get messy fast.
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