Tweening the color of an entire model/folder

  1. What do you want to achieve? I’d like to find an easy way to tween the colors of every part inside of a model/folder.

  2. What is the issue? I can’t find a way to achieve this without making an individual tween for every part, as I’m an inexperienced developer.

  3. What solutions have you tried so far? I’m a fairly new developer, so I’ve been trying to try different solutions on the DevForum but unfortunately nothing has covered this and I am stumped.

I am fairly stumped on what to do here and I would sincerely appreciate any tips or pointers on what to do or try. If I missed a post that covered this I’d also appreciate that someone linked it for me.

Why don’t you just play the same tween for each object like this:

for i, child in ipairs(Folder:GetChildren()) do
Tween:Play() -- Or how ever you play tweens I forgot
end

Use the function Instance:GetChildren which returns an array with all the children of the instance and then you have to iterate over the table.

local Model = workspace.Model
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0)
local Goal = {Color = Color3.fromRGB(255, 0, 0)}

for i, part in pairs(Model:GetChildren()) do
	TweenService:Create(part, tweenInfo, Goal):Play()
end