-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaddon.lua
More file actions
238 lines (209 loc) · 7.63 KB
/
addon.lua
File metadata and controls
238 lines (209 loc) · 7.63 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
-- الخدمات
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local TeleportService = game:GetService("TeleportService")
local HttpService = game:GetService("HttpService")
local player = Players.LocalPlayer
local backpack = player:WaitForChild("Backpack")
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
-- ----- الأدوات الخاصة بـ Steal a brainrot -----
local stealItems = {"Tung Bat","Tung","Cloner","Body","Hook"}
local function hasStealItem()
for _, item in ipairs(backpack:GetChildren()) do
for _, name in ipairs(stealItems) do
if string.find(item.Name:lower(), name:lower()) then
return true
end
end
end
return false
end
-- ----- عناصر الماب الخاصة بـ 99 Nights -----
local targetNames = {"Carrot","Chest","Open","Box","Flower"}
local function hasMapItem()
for _, obj in ipairs(Workspace:GetDescendants()) do
for _, name in ipairs(targetNames) do
if obj.Name and string.find(obj.Name:lower(), name:lower()) then
return true
end
end
end
return false
end
-- ----- دالة تشغيل 99 Nights -----
local function run99Nights()
if player.PlayerGui:FindFirstChild("FullScreenCover") then
player.PlayerGui.FullScreenCover:Destroy()
end
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "FullScreenCover"
screenGui.ResetOnSpawn = false
screenGui.IgnoreGuiInset = true
screenGui.DisplayOrder = 9999
screenGui.Parent = player:WaitForChild("PlayerGui")
local frame = Instance.new("Frame")
frame.Size = UDim2.new(1,0,1,0)
frame.Position = UDim2.new(0,0,0,0)
frame.BackgroundColor3 = Color3.new(0,0,0)
frame.BorderSizePixel = 0
frame.Parent = screenGui
local label = Instance.new("TextLabel")
label.Size = UDim2.new(1,0,1,0)
label.BackgroundTransparency = 1
label.Position = UDim2.new(0,0,0,0)
label.Font = Enum.Font.SourceSansBold
label.TextScaled = true
label.TextColor3 = Color3.new(1,1,1)
label.Text = "جار التجميع..\nN60 Hub افضل سكربت\nلاتنسى تشرفنا ديس\nhttps://discord.gg/wczEq8yg"
label.Parent = frame
local success, err = pcall(function()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Rx1m/CpsHub/refs/heads/main/Cpsnerfv2"))()
end)
if not success then warn("فشل تشغيل السكربت: "..err) end
end
-- ----- نسخة Steal a brainrot كاملة -----
local function runStealScript()
-- واجهة N60 Hub
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "N60Hub"
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")
local frame = Instance.new("Frame", screenGui)
frame.Size = UDim2.new(0, 160, 0, 90)
frame.Position = UDim2.new(0.05,0,0.2,0)
frame.BackgroundColor3 = Color3.fromRGB(0,0,0)
frame.BorderColor3 = Color3.fromRGB(255,0,0)
frame.BorderSizePixel = 3
frame.Active = true
frame.Draggable = true
local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1,0,0,25)
title.BackgroundTransparency = 1
title.Text = "Steal a brainrot"
title.TextColor3 = Color3.fromRGB(255,0,0)
title.Font = Enum.Font.SourceSansBold
title.TextSize = 20
-- زر اختفاء (Flip + Sit Toggle)
local hideBtn = Instance.new("TextButton", frame)
hideBtn.Size = UDim2.new(0.8,0,0,30)
hideBtn.Position = UDim2.new(0.1,0,0.5,0)
hideBtn.BackgroundColor3 = Color3.fromRGB(30,30,30)
hideBtn.Text = "اختفاء"
hideBtn.TextColor3 = Color3.fromRGB(255,255,255)
hideBtn.Font = Enum.Font.SourceSansBold
hideBtn.TextSize = 18
local hidden = false
local originalCFrame
hideBtn.MouseButton1Click:Connect(function()
if not hrp or not humanoid then return end
if not hidden then
originalCFrame = hrp.CFrame
hrp.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,-5,0)
humanoid.Sit = true
hidden = true
hideBtn.Text = "إلغاء الاختفاء"
else
if originalCFrame then
hrp.CFrame = originalCFrame
else
hrp.CFrame = hrp.CFrame * CFrame.Angles(math.rad(-180),0,0)
end
humanoid.Sit = false
hidden = false
hideBtn.Text = "اختفاء"
end
end)
-- God Mode
local function enableGodMode()
humanoid.Health = humanoid.MaxHealth
humanoid:GetPropertyChangedSignal("Health"):Connect(function()
if humanoid.Health < humanoid.MaxHealth then
humanoid.Health = humanoid.MaxHealth
end
end)
end
enableGodMode()
player.CharacterAdded:Connect(function(char)
character = char
hrp = char:WaitForChild("HumanoidRootPart")
humanoid = char:WaitForChild("Humanoid")
enableGodMode()
end)
-- Rainbow ESP
local function getRainbowColor()
local hue = (tick() % 5)/5
return Color3.fromHSV(hue,1,1)
end
local function createRainbowESP(targetPlayer)
if targetPlayer == player then return end
local targetChar = targetPlayer.Character
if not targetChar then return end
local boxes = {}
local nameLabel
local function makeESP(part)
if not part then return end
local box = Instance.new("BoxHandleAdornment")
box.Adornee = part
box.Size = part.Size
box.AlwaysOnTop = true
box.ZIndex = 10
box.Parent = part
table.insert(boxes, box)
end
local function addName()
local head = targetChar:FindFirstChild("Head")
if head then
local billboard = Instance.new("BillboardGui")
billboard.Size = UDim2.new(0,100,0,25)
billboard.AlwaysOnTop = true
billboard.Adornee = head
billboard.Parent = head
nameLabel = Instance.new("TextLabel", billboard)
nameLabel.Size = UDim2.new(1,0,1,0)
nameLabel.BackgroundTransparency = 1
nameLabel.Text = targetPlayer.Name
nameLabel.TextSize = 12
nameLabel.Font = Enum.Font.SourceSansBold
nameLabel.TextColor3 = getRainbowColor()
end
end
local function addESP()
for _,p in pairs(targetChar:GetChildren()) do
if p:IsA("BasePart") then
makeESP(p)
end
end
addName()
end
addESP()
targetPlayer.CharacterAdded:Connect(function(char)
targetChar = char
addESP()
end)
RunService.RenderStepped:Connect(function()
for _,b in pairs(boxes) do
b.Color3 = getRainbowColor()
end
if nameLabel then
nameLabel.TextColor3 = getRainbowColor()
end
end)
end
for _,p in pairs(Players:GetPlayers()) do
createRainbowESP(p)
end
Players.PlayerAdded:Connect(function(p)
p.CharacterAdded:Connect(function()
createRainbowESP(p)
end)
end)
end
-- ----- تشغيل النسخة المناسبة عند دخول الماب -----
if hasStealItem() then
runStealScript()
elseif hasMapItem() then
run99Nights()
end