I need help with GetChildren

I’m pretty new to scripting and I wan’t to try to use GetChildren
My goal is to make some Parts disappear
The problem is Only 4/5 Parts disapear
Here is the code: local Cubes = game.Workspace:FindFirstChild(“Cubes”):GetChildren()

for i,Cube in pairs (Cubes) do

Cube.Transparency = 1

Cube.CanCollide = false

end

And its says in the output: “Transparency is not a valid member of script”

Nevermind, I found the problem. I was stupid.

Might be a good idea to share the solution so future readers with the same problem know what you did to solve it.

2 Likes

I just put the script in ServerScriptService