I’m currently working on a nametag color system and have a rainbow color as one of the options that changes colors. If you try to change colors it will just continue without switching colors. I’ve tried making it so after deselecting it, the colors changes to white but that didn’t seem to work either. I’m using Topbar+ for the buttons.
Code:
game.ReplicatedStorage.System.CRainbow.OnServerEvent:Connect(function(p)
while wait() do
for i = 1, 255 do
p.Character.Rank.Frame.Name1.TextColor3 = Color3.fromHSV(i/255, 1, 1)
wait(.1)
end
end
end)