Well, I'm trying to use "GetDescendants" but whenever I try to change the properties it won't work. Inside the object there are some other parts, 3 audios and 1 BoolValue. I wan't to change the material of those parts without having to write each one of them down.
I'll give an example of what I'm trying to do
local all = game.Workspace.Object:GetDescendants()
all.Material = Enum.Material.ForceField

6 comments
Well, all my parts are welded so the output says: "Material is not a valid member of WeldConstraint"
Try the updated code
@Benbebop Try adding a PCall functon at line 4, or checking if the part can have its material changed
I'll try!
It worked, thanks!
Why a pcall? Simple IsA check is needed...