NNickey

Untitled

Jun 15th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. tabl={}
  2. num=3
  3. for i=1,6 do
  4. table.insert(tabl,0)
  5. end
  6. while true do
  7. for i=1,6,2 do
  8. local ii=i+1
  9. if tabl[ii]==0 then
  10. if tabl[i]>=255 then
  11. tabl[ii]=1
  12. else
  13. tabl[i]=tabl[i]+math.random(1,8)
  14. if tabl[i]>255 then
  15. tabl[i]=255
  16. end
  17. end
  18. else
  19. if tabl[i]<=0 then
  20. tabl[ii]=0
  21. else
  22. tabl[i]=tabl[i]-math.random(1,8)
  23. if tabl[i]<0 then
  24. tabl[i]=0
  25. end
  26. end
  27. end
  28. end
  29. print("Color "..tabl[1]..tabl[3]..tabl[5])
  30. game.Lighting.ColorCorrection.TintColor=Color3.new(tabl[1]/255,tabl[3]/255,tabl[5]/255)
  31. wait()
  32. end
Advertisement
Add Comment
Please, Sign In to add comment