local model = workspace.House
for _, obj in ipairs(model:GetDescendants()) do
if obj:IsA("BasePart") then
obj.Transparency = 0.5
end
endlocal npc = workspace.NPC
for _, obj in ipairs(npc:GetDescendants()) do
if obj:IsA("BasePart") then
obj.CollisionGroup = "NPC"
end
endfor _, obj in ipairs(workspace.Model:GetDescendants()) do
if obj:IsA("Script") or obj:IsA("LocalScript") then
obj:Destroy()
end
endlocal gui = player.PlayerGui.ScreenGui
for _, obj in ipairs(gui:GetDescendants()) do
if obj:IsA("TextLabel") then
obj.TextColor3 = Color3.fromRGB(255, 255, 0)
end
endfor _, effect in ipairs(model:GetDescendants()) do
if effect:IsA("ParticleEmitter") then
effect.Enabled = false
end
endfor _, part in ipairs(workspace.Map:GetDescendants()) do
if part:IsA("BasePart") then
part.CanCollide = false
end
endlocal parts = model:GetDescendants()
for _, part in ipairs(parts) do
-- работа с объектом
end