for a,b in pairs(game.Workspace.Folder:GetChildren()) do
warn(b)
b.Material = Enum.Material.SmoothPlastic
end
why Enum is not working. I used :Destroy() worked but this not working
for a,b in pairs(game.Workspace.Folder:GetChildren()) do
warn(b)
b.Material = Enum.Material.SmoothPlastic
end
why Enum is not working. I used :Destroy() worked but this not working
You need to use Instance | Roblox Creator Documentation to check what is the class of the instance’s in the folder.
There’s no problem about ur script can u me show ur whole script
game.ReplicatedStorage.Declined.OnServerEvent:Connect(function(x,plr)
for a,b in pairs(game.Workspace.Folder:GetChildren()) do
warn(b)
b.Material = Enum.Material.SmoothPlastic
end
game.ReplicatedStorage.Declined:FireAllClients(x,plr)
end)

Are those instances in the folder a MeshPart or a UnionOperation?
UnionOperation this folder have parts and unions
can u try remove the warn just try it
Not working. does it not work because it is a union?
Part and UnionOperation support materials. But maybe when the script is executing the game is still loading try adding a wait.