Hello, as you can see in the video, my uigradient doesn’t run constantly, there are fast and slow back and forth movements. Why ? :
local RunService = game:GetService("RunService")
local Test = script.Parent.Frame4.Frame.UIStroke.UIGradient
local gradients = {
{gradient = script.Parent.Frame1.TextBox1.UIStroke.UIGradient, speed = 90},
{gradient = script.Parent.Frame2.TextBox2.UIStroke.UIGradient, speed = 90},
{gradient = script.Parent.Frame1.ScrollingFrame.UIStroke.UIGradient, speed = 90},
{gradient = script.Parent.Frame2.ScrollingFrame.UIStroke.UIGradient, speed = 90},
{gradient = script.Parent.Frame4.Frame.UIStroke.UIGradient, speed = 90},
{gradient = script.Parent.Frame2.Frame.ScrollingFrame.ImageButton1.UIStroke.UIGradient, speed = 180},
{gradient = script.Parent.Frame2.Frame.ScrollingFrame.ImageButton2.UIStroke.UIGradient, speed = 180},
{gradient = script.Parent.Frame2.Frame.ScrollingFrame.ImageButton3.UIStroke.UIGradient, speed = 180},
}
for _, g in ipairs(gradients) do
g.gradient.Rotation = 0
end
RunService.RenderStepped:Connect(function(dt)
for _, g in ipairs(gradients) do
g.gradient.Rotation = (g.gradient.Rotation + g.speed * dt) % 360
end
end)
** You are now Level 6! **
