an example of my problem is i keep ending up with my scripts starting like this
local model = game.Workspace.model local partA = model.partA local partB = model.partB local partC = model.partC
and i keep having to repeat that for several lines of code.
To do this you would use the :GetChildren() method which returns all the Children of that place as a table, and then use in pairs() to have use this table, as so:
Variable = game.Workspace:GetChildren() for Table,Index in pairs(Variable) do if Index:IsA("Part") then Index.Transparency = 0 end end
for i,v in pairs(game.Workspace.model:GetChildren()) do v.Transparency = 1 -- example of code end