Advertisement
InTesting

Rainbow Function

Dec 2nd, 2019
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local function Rainbow(Instance_1,Property,Color_Increment,Wait_Increment)if not Instance_1 or not Property then return;end;
  2. Color_Increment=Color_Increment or 2;Wait_Increment=Wait_Increment or 1/60;coroutine.wrap(function()local frame=0;
  3. while true do frame=frame+Color_Increment;if frame>=360 then frame=0;end;Instance_1[Property]=Color3.fromHSV(frame/360,1,1);
  4. wait(Wait_Increment);end;end)();end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement