if i == 20 then
for i,v in pairs(players) do
coroutine.wrap(function()
v:WaitForChild("PlayerGui")
p = 5
for z = 1,130 do
v.PlayerGui.title.TextLabel.BackgroundColor3 = Color3.new(255,z,0)
wait(.1)
end
end)()
end
end
wait(p)
if i == 20 then
for i,v in pairs(players) do
coroutine.wrap(function()
v:WaitForChild("PlayerGui")
p = 5
for z = 1,130 do
q = 130 - z
v.PlayerGui.title.TextLabel.BackgroundColor3 = Color3.new(255,q,0)
wait(.1)
end
end)()
end
table.insert(Cops,players[playerShown]) removeTable(players,players[playerShown])
end
having some issues with this code, I want the GUI to turn red>orange slowly then 5 seconds later orange>red slowly but the GUI goes from red to yellow INSTANTLY then 10 seconds later goes from yellow to red INSTANTLY
any errors you can see? output is clean
what am I doing wrong?

2 comments
Color3 red, green and blue values must be between 0 and 1. Divide your values by 255 and your code should function correctly.
Thankyou! Will give it a shot and post results.