I’ve ran into an issue and I couldn’t find a way to solve it, this may be hard to explain, but I’ll try my best to make it as clear as possible.
I’m looking for a way to apply a change to a part that has a value inside it.
let me explain:
as most of you know, “in pairs” loop is a loop that can go through every part inside a model and change it to whatever the person requests the part to be like (look in Example1).
for i,v in pairs(game.Workspace.Model:GetChildren()) do v.BrickColor = BrickColor.new("Really red") end
In Example1 a code turns parts inside a model and ONLY inside that model into the “Really red” color.
however, I’m looking for a way to make parts inside that model to turn red ONLY if they have a value inside it (look in Example2)
conclusion: I want parts to change their color for example if it has a value inside it, regardless if it uses a pairs loop or not, buy only using 1 local script.