-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNdnnd
More file actions
50 lines (43 loc) · 1.49 KB
/
Ndnnd
File metadata and controls
50 lines (43 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
local Workspace = game:GetService("Workspace")
-- البحث عن Folder الرئيسي
local projectilesFolder = Workspace:FindFirstChild("__PROJECTILES")
if not projectilesFolder then
warn("__PROJECTILES folder not found!")
return
end
-- البحث عن Folder الفرعي Plots
local plotsFolder = projectilesFolder:FindFirstChild("Plots")
if not plotsFolder then
warn("Plots folder not found inside __PROJECTILES!")
return
end
-- أسماء البارتات التي يجب استثناؤها
local exceptions = {
["StealHitbox"] = true,
["DeliveryHitbox"] = true,
["Hitbox"] = true,
["Spawn"] = true,
["Main"] = true,
["StructureBaseHome"] = true
}
-- دالة لضبط الشفافية وحذف أي Folder باسم Laser
local function processModel(model)
if not model:IsA("Model") then return end
-- ضبط الشفافية
for _, obj in pairs(model:GetDescendants()) do
if obj:IsA("BasePart") then
if exceptions[obj.Name] then
obj.Transparency = 1
else
obj.Transparency = 0.5
end
elseif obj:IsA("Folder") and obj.Name == "Laser" then
obj:Destroy() -- حذف أي Folder اسمه Laser
end
end
end
-- تطبيق على كل موديل داخل Plots
for _, model in pairs(plotsFolder:GetChildren()) do
processModel(model)
end
print("تم ضبط الشفافية واستثناء البارتات وحذف جميع Folder باسم Laser في Plots!")