I want to make something rainbow the problem is I cant make one loop or something? I can change his color yes but I cant make the RGB effect I tried to look how to make it in other posts and nothing.
local OwnerTag = {
[660698828] = {
ChatColor = Color3.new(255, 255, 255),
Tags = {
{TagText = "CREATOR", TagColor = Color3.fromRGB(255, 0, 4)}, --- this is the tagColor and I want to make it rainbow.
}
},
}
ok I did a loop inside it.
the script looks like this:
Tags = {
{TagText = "CREATOR", TagColor =
while wait() do
Color3.new(255/255,0/255,0/255)
for i = 0,255,10 do
wait()
Color3.new(255/255,i/255,0/255)
end
for i = 255,0,-10 do
wait()
Color3.new(i/255,255/255,0/255)
end
for i = 0,255,10 do
wait()
Color3.new(0/255,255/255,i/255)
end
for i = 255,0,-10 do
wait()
Color3.new(0/255,i/255,255/255)
end
for i = 0,255,10 do
wait()
Color3.new(i/255,0/255,255/255)
end
for i = 255,0,-10 do
wait()
Color3.new(255/255,0/255,i/255)
end
end},
}
}
},
}
Thats not how it works , you gotta update the color inside the while loop , the syntax you have right now is wrong.
while true do
task.wait(n) -- n is the time
-- Update color
end
^ This is a small sample on how to do it. I would have a color variable and store the colors in VIBGYOR order then loop through it and lerp the color and apply it to the tag.
I can do that in other way like make one local function not inside it and make the loop and after I just make something like TagColor = “that local function”?
Get the the slider which is inside PlayerGui , the path is :
Player → Chat → Frame → ChatChannelParentFrame → Frame_MessageLogDisplay → Scroller
Create an array for storing all the textlabels
Have a DescendantAdded listener to the scroller, detect when a TextLabel is added, now since your tag name is “CREATOR” check whether the text of the TextLabel is "[CREATOR] ",insert it to the array created in step 2.
Have a while loop calculate the color and apply the TextColor of the textlabel or you can use a UIGradient and TweenService by avoiding step 2