Advertisement
LSJiqueue

Roblox Rainbow Object Tutorial

Jul 3rd, 2022
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. --Roblox tutorial
  2. --Roblox rainbow script
  3. --NOT MENT TO BE USED FOR MALICIOUS INTENTIONS
  4. --DELETE ALL OF THIS WHEN YOU HAVE PASTED IT!
  5. --HAVE A GREAT DAY!!
  6.  
  7. --[[
  8. Script USED IN VIDEO ⬇️
  9. --]]
  10. --copy all of this starting from this line
  11. while true do
  12.     wait(0.5)
  13.     --color 3 values consists of red, green, blue
  14.     local red
  15.     local green
  16.     local blue
  17.     red = math.random(0.001, 1.0)
  18.     green = math.random(0.001, 1.0)
  19.     blue = math.random(0.001, 1)
  20.     local tweenservice = game:GetService("TweenService")
  21.     local info
  22.     local goal
  23.     info = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0)
  24.     goal = {Color = Color3.new(red, green, blue)}
  25.     local tween = tweenservice:Create(script.Parent, info, goal)
  26.     tween:Play()
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement