I want a rainbow gradient that is on a loop such as this https://gyazo.com/eb2dae3b3f342bcf55f489916598ed75 and this https://cdn.discordapp.com/attachments/700603505022337025/700605775701082212/Screen_Recording_2020-04-17_at_3.16.33_AM.mov
I can’t seem to get it how the example is
I used offset https://cdn.discordapp.com/attachments/306156119519264770/700616122864631858/Screen_Recording_2020-04-17_at_3.57.23_AM.mov and I even tried the method from Developer Hub sheen effect on their developer wiki for UI Gradient, The Sheen Effect where they checked If the X’s value was less than -1 and set it back. It just doesn’t work. I tried Color3.fromHSV and I still couldn’t manage to get it to work.
I even when as far as to doing this.
local runservice = game:GetService("RunService")
local first = ColorSequence.new{
ColorSequenceKeypoint.new(0,Color3.fromRGB(255,0,0)),
ColorSequenceKeypoint.new(0.2,Color3.fromRGB(255,255,0)),
ColorSequenceKeypoint.new(0.4,Color3.fromRGB(0,255,0)),
ColorSequenceKeypoint.new(0.6,Color3.fromRGB(0,255,255)),
ColorSequenceKeypoint.new(0.8,Color3.fromRGB(0,0,255)),
ColorSequenceKeypoint.new(1,Color3.fromRGB(255,0,255)),
}
function toHSV(color)
local hue = tick()%5/5
local h,s,v = Color3.toHSV(color)
return Color3.fromHSV(hue+h,1,1)
end
runservice.RenderStepped:Connect(function()
local new = toHSV(first.Keypoints[1].Value)
local new2 = toHSV(first.Keypoints[2].Value)
local new3 = toHSV(first.Keypoints[3].Value)
local new4 = toHSV(first.Keypoints[4].Value)
local new5 = toHSV(first.Keypoints[5].Value)
local new6 = toHSV(first.Keypoints[6].Value)
local newcolor = ColorSequence.new{
ColorSequenceKeypoint.new(0,new),
ColorSequenceKeypoint.new(0.2,new2),
ColorSequenceKeypoint.new(0.4,new3),
ColorSequenceKeypoint.new(0.6,new4),
ColorSequenceKeypoint.new(0.8,new5),
ColorSequenceKeypoint.new(1,new6),
}
script.Parent.Color = newcolor
end)
I’ve been attempting for really long on how to get this gradient to work as I wanted and is not working please someone help out asap!