Advertisement
JumpYScriptsz

rainbow script LUA

Jul 2nd, 2021 (edited)
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. -- This script isn't FE to my knowledge so don't rely on it being synced up between clients.
  2. -- Best used in things like GUIs, however it works with anything that has a color property.
  3. -- modified by radicore15742, AKA: JumpYScriptsz
  4.  
  5. local speed = 0.001 -- Sets the delay/speed for changing colors.
  6. local part = script.Parent
  7. -- Main script below here
  8. function zz(X) return math.acos(math.cos(X*math.pi))/math.pi end
  9. count = 0
  10. while wait(speed) do
  11.     part.Color = Color3.fromHSV(zz(count),1,1) -- colour for a part
  12.     --[[
  13.         If the part has a different color3 you wish to change
  14.         this is the part you must change to do that
  15.             EG: BackgroundColor/TextColor
  16.     ]]--
  17.    
  18.     count = count + 0.0015
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement