Color tween not working

I was trying to tween a random color and its not working. No errors.

local TweenService = game.TweenService

local rand = Random.new()

while wait(.5) do
local colorTween = TweenService:Create(script.Parent, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(rand:NextNumber() * 255, rand:NextNumber() * 255, rand:NextNumber() * 255)})
end

1 Like

Play your tween?

local TweenService = game:GetService("TweenService")

local rand = Random.new()

while task.wait(.5) do
local colorTween = TweenService:Create(script.Parent, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(rand:NextNumber() * 255, rand:NextNumber() * 255, rand:NextNumber() * 255)})
colorTween:Play() --missing this? 
end
1 Like

ooooooooooooooooooooooooooooh my lord

i am severely sorry for my own stupidity…

1 Like

Hhahaha No worries. It’s really common and an easy fix! Glad it worked!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.