local part = script.Parent
local TweenService = game:GetService("TweenService")
local TweenFo = TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,-1,false)
local Red = math.random(0,255)
local Blue = math.random(0,255)
local Green = math.random(0,255)
local tweenCreate = TweenService:Create(part,TweenFo,{["Color"] = Color3.fromRGB(Red,Blue,Green)})
tweenCreate:Play()
This script above me just chooses one color and keeps tweening that same color. So How would I make this part change diffrent colors with TweenService.
local part = script.Parent
local TweenService = game:GetService('TweenService')
local TweenFo = TweenInfo.new(2,Enum.EasingStyle.Linear)
while true do
local t = TweenService:Create(part, TweenFo, {Color = Color3.new(math.random(), math.random(), math.random())})
t:Play()
t.completed:Wait()
end
paetemc2’s version is way simpler and gets the job done just as well. Also, the Red, Blue, and Green values in OP’s post are unnecessary and can just be avoided in favour for being placed in the properties that should be tweened, which is what paete did.