i'm tryna make a rainbow overhead text type thing but it's not working the way i want it to, this is what it looks like now and i want it to look like the rainbow overhead texts you usually see in games and whatnot; how can i do that?
heres the code:
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local tag = script.Parent.Parent
local gradient = script.Parent
gradient.Color = ColorSequence.new({
ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)),
ColorSequenceKeypoint.new(0.25, Color3.fromRGB(255, 255, 0)),
ColorSequenceKeypoint.new(0.5, Color3.fromRGB(0, 255, 0)),
ColorSequenceKeypoint.new(0.75, Color3.fromRGB(0, 255, 255)),
ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 255))
})
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1, false)
local tween = TweenService:Create(gradient, tweenInfo, { Offset = Vector2.new(1, 0) })
tween:Play()```