I'm making an explorer script and I'm doing a simple if sentence to check the classname, and I put the icon of the object depending on the classname.
HasChildren.TextXAlignment = Enum.TextXAlignment.Left if v.ClassName == "Workspace" then Icon.Image = "rbxassetid://216049808" elseif v.ClassName == "Part" then Icon.Image = "rbxassetid://413369029" end
I've been trying to solve this for 20 minutes now, to no avail. Ingame the icon just doesn't show up, what did I do wrong? Thanks for answering.