Advertisement
Macixxo

UI Gradient (Roblox Studio)

Apr 8th, 2023
1,265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local newGradient = Instance.new("UIGradient",workspace)
  2. local colorTable = {}
  3. for i = 0,359,20 do
  4.     table.insert(colorTable,ColorSequenceKeypoint.new(i/359,Color3.fromHSV(i/359,1,1)))
  5. end
  6.  
  7. table.insert(colorTable,ColorSequenceKeypoint.new(1,Color3.fromHSV(1,1,1)))
  8.  
  9. newGradient.Color = ColorSequence.new(colorTable)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement