Stumped on beginner code

I’m getting into coding and I was going over FindFirstChild and I tried this bit of code but it doesn’t seem to be working, is there an error in the code? I’ve looked over it several times and I can’t seem to find the error

local part = Instance.new ("Part", game.Workspace)
local folder = Instance.new ("Folder", game.Workspace)
part.Parent = folder
folder.Name = "Color"
local c = part.Color
local c2 = part:FindFirstChild("Color")

You put the part in the folder instead of the folder in the part. So you can’t find “Color” (Folder) in part.

To fix this:

folder.Parent = part

or remove the whole [thing.Parent = something] then change the folder variable to this:

local folder = Instance.new ("Folder", part)
1 Like

thank you so much, I didn’t even realize it