So I'm making a little joke map for a friend of mine. The script I've created is supposed to find any baseparts, which in return pastes a decal on every surface of said parts.
However, the script being enabled, doesn't do anything nor gives me any error in the output. What is going on?
for _, v in pairs(workspace:GetDescendants()) do
if v:IsA("BasePart") or v:IsA("UnionOperation") then
do
for i = 0, 5 do
local decal = Instance.new("Decal")
decal.Texture = "rbxassetid://6255641236"
decal.Face = i
decal.Parent = v
end
end
end
end

1 comment
maybe you have to do :WaitForChild()