Struggling with a script

When I name a part a number how do I make it transparent for example? I tried game.Workspace[“47”]Transparency = 1 but it didn’t work?

Hi, try this.

local part = game.Workspace:WaitForChild(“42”)
part.Transparency = 1

game.Workspace["47"].Transparency = 1

You missed the dot between [“47”] and transparency and it probably hasn’t loaded in yet so use WaitForChild

game.Workspace.YourObject.Transparency = 1