-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
260 lines (233 loc) · 13.5 KB
/
main.lua
File metadata and controls
260 lines (233 loc) · 13.5 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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
-- ================= 99 NIGHTS FULL MOD DELTA EXECUTOR =================
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local StarterPack = game:GetService("StarterPack")
local Workspace = game:GetService("Workspace")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
-- ====== Настройки ======
local items = {"Medkit","LaserSword","PoisonSpear","Trident","Morningstar","Rifle","Chainsaw"}
local toggles = {}
-- ====== GUI ======
local screen = Instance.new("ScreenGui")
screen.Name = "NNFullMod"
screen.ResetOnSpawn = false
screen.Parent = LocalPlayer:WaitForChild("PlayerGui")
-- Основное окно
local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0,400,0,600)
mainFrame.Position = UDim2.new(0.5,-200,0.5,-300)
mainFrame.BackgroundColor3 = Color3.fromRGB(30,30,30)
mainFrame.BorderSizePixel = 0
mainFrame.Parent = screen
-- Сворачивание
local minimizeBtn = Instance.new("TextButton")
minimizeBtn.Size = UDim2.new(0,40,0,40)
minimizeBtn.Position = UDim2.new(1,-50,0,10)
minimizeBtn.Text = "-"
minimizeBtn.BackgroundColor3 = Color3.fromRGB(50,50,50)
minimizeBtn.TextColor3 = Color3.fromRGB(255,255,255)
minimizeBtn.Parent = mainFrame
-- Всплывающее уведомление
local function notify(text)
local label = Instance.new("TextLabel")
label.Size = UDim2.new(0,200,0,30)
label.Position = UDim2.new(0.5,-100,0,10)
label.BackgroundTransparency = 0.5
label.BackgroundColor3 = Color3.fromRGB(0,0,0)
label.TextColor3 = Color3.fromRGB(255,255,255)
label.Text = text
label.Parent = mainFrame
local tween = TweenService:Create(label,TweenInfo.new(1),{Position = UDim2.new(0.5,-100,0,50), TextTransparency = 1})
tween:Play()
tween.Completed:Connect(function() label:Destroy() end)
end
-- Создание кнопки
local function makeButton(name,posY)
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(0,180,0,36)
btn.Position = UDim2.new(0,10,0,posY)
btn.Text = name
btn.BackgroundColor3 = Color3.fromRGB(70,70,70)
btn.TextColor3 = Color3.fromRGB(255,255,255)
btn.Parent = mainFrame
return btn
end
-- ====== Remote поиск и fallback ======
local remoteKeywords = {
spawnItem = {"spawn","give","add","create","grant","produce","deliver","summon","drop","generate","send","appear","materialize","bring","invoke","call","launch","offer","assign","provide","put","place","equip","receive","appearitem","spawnobject","generateitem","giveitem","additem","createreward","addreward","senditem","callitem","deliveritem","summonitem","grantitem","offeritem","materializeitem","invokeitem","produceitem","launchitem","putitem","equipitem","provideitem","assignitem","obtain","acquire","collect","receiveitem"},
autoGather = {"chop","gather","collect","harvest","mine","cut","pick","grab","loot","dig","take","acquire","pluck","reap","extract","obtain","snatch","procure","harvested","scavenge","retrieve","fetch","collecting","gathered","cuttree","mineore","pickfruit","grabitem","lootitem","digmaterial","takeobject","acquireloot","pluckfruit","reapcrop","extractmaterial","obtainresource","snatchloot","procureitem","scavenger","retrieveitem","fetchloot","collectresource","gatherresource","chopwood","harvestfruit","pickcrop","lootresources","mineobject","collectloot"},
autoCampfire = {"camp","fire","addfuel","burn","ignite","start","light","rekindle","cook","bonfire","fuel","torch","kindle","blaze","hearth","embers","wood","log","coals","flame","fireplace","pyre","combust","heat","campfire","ignitefire","addwood","startfire","lightfire","rekindlefire","cookfood","burnwood","flamefire","bonfirelight","fuelcamp","torchlight","kindlefire","blazefire","hearthfire","embersfire","woodfire","logfire","coalsfire","campfirelight","firestarter","fireplaceburn","blazeup","ignitecamp","startbonfire","lightcamp"},
autoCraft = {"craft","make","create","build","forge","assemble","combine","produce","construct","fabricate","manufacture","design","compose","generate","engineer","prepare","form","devise","invent","workshop","recipe","synthesize","constructing","crafted","fabrication","builditem","craftitem","makeitem","createitem","assembleitem","combineitem","produceitem","constructitem","fabricateitem","manufactureitem","designitem","composeitem","generateitem","engineeritem","prepareitem","formitem","deviseitem","inventitem","workshopitem","crafting","craftobject","makeobject","createobject","assembleobject","combineobject"},
autoFish = {"fish","cast","catch","reel","bait","hook","tackle","angling","catchfish","fishing","rod","lure","net","catching","harvest","aquatic","trout","salmon","perch","catcher","angler","line","fisher","fishingrod","baited","castline","catchfishitem","fishrod","catchbait","reelfish","fishingnet","catchaquatic","anglingrod","baitfish","hookfish","tacklefish","fisherman","catchsalmon","catchtrout","catchperch","fishcatcher","fishinghook","linecast","catchaquaticitem","reelfishing","rodandline","catchgamefish","baitcasting","fishtrap","fishingcatch"},
autoTrap = {"trap","place","deploy","set","activate","trigger","snare","capture","lure","net","ambush","pitfall","spring","bait","lock","catch","ensnare","immobilize","hold","detain","ensnaring","confine","entrap","hook","capturedevice","trapplace","trapdeploy","trapset","trapactivate","traptrigger","trapambush","trapnet","trapbait","traplock","trapcatch","trapensnare","trapimmobilize","trapconfine","trapdevice","trapmechanism","traplauncher","trapholder","trapsetter","trapcontrol","trapobject","trapmechanic","trapinstall","trapconstruct","trapbuild","trapgear"},
autoCollectLoot = {"loot","pickup","collect","grab","claim","acquire","gather","retrieve","plunder","harvest","scavenge","recover","take","obtain","snatch","retrieve","bag","inventory","stash","lootbox","treasure","chest","reward","acquisition","collectable","collectloot","pickloot","grabloot","claimloot","acquireloot","gatherloot","retrieveloot","plunderloot","harvestloot","scavengeloot","recoverloot","lootitem","lootcollect","lootbag","lootinventory","stashloot","lootchest","lootreward","lootacquire","lootgrab","lootpickup","lootplunder","loottreasure","lootclaim","lootcollectable"},
fastRun = {"speed","run","fast","velocity","boost","sprint","dash","motion","move","accelerate"},
highJump = {"jump","high","leap","boost","spring","vault","fly","bounce","elevate","hop"},
noclip = {"noclip","clip","pass","through","wall","object","collision","ignore","ghost","phase"},
esp = {"esp","highlight","see","through","outline","wallhack","player","vision","marker","tracker"},
nightVision = {"nightvision","nv","see","dark","light","infrared","brightness","vision","enhance","goggles"},
removeFog = {"fog","remove","clear","visibility","sky","distance","render","env","atmosphere","clean"},
godMode = {"god","immortal","invincible","hp","health","damage","invulnerability","eternal","shield","unkillable"},
infiniteStamina = {"stamina","energy","infinite","endless","run","move","limitless","bar","consume","exhaust"},
autoLoot = {"loot","pickup","collect","grab","claim","acquire","gather","retrieve","plunder","harvest"}
}
-- ====== Remote функции ======
local function findRemotes(keywords)
local remotes = {}
for _, obj in pairs(game:GetDescendants()) do
if obj:IsA("RemoteEvent") or obj:IsA("RemoteFunction") then
local lname = obj.Name:lower()
for _, kw in pairs(keywords) do
if string.find(lname, kw:lower()) then
table.insert(remotes,obj)
break
end
end
end
end
return #remotes>0 and remotes or nil
end
local function tryRemote(remoteList,arg)
if not remoteList then return false end
for _, r in pairs(remoteList) do
local ok,_ = pcall(function()
if r:IsA("RemoteEvent") then r:FireServer(arg)
else r:InvokeServer(arg) end
end)
if ok then return true end
end
return false
end
-- ====== Fallback ======
local function fallbackFromReplicatedStorage(itemName)
local obj = ReplicatedStorage:FindFirstChild(itemName)
if obj then obj:Clone().Parent = LocalPlayer.Backpack; return true end
return false
end
local function fallbackFromStarterPack(itemName)
local obj = StarterPack:FindFirstChild(itemName)
if obj then obj:Clone().Parent = LocalPlayer.Backpack; return true end
return false
end
local function createLocalTool(itemName)
local tool = Instance.new("Tool")
tool.Name = itemName
tool.Parent = LocalPlayer.Backpack
return true
end
local function createPlaceholderInBackpack(itemName)
local tool = Instance.new("Tool")
tool.Name = itemName.."_Placeholder"
tool.Parent = LocalPlayer.Backpack
return true
end
local function createPlaceholderOnCharacter(itemName)
if LocalPlayer.Character then
local tool = Instance.new("Tool")
tool.Name = itemName.."_Placeholder"
tool.Parent = LocalPlayer.Character
return true
end
return false
end
local function notifyPlayerFallback(itemName)
notify("Fallback сработал для: "..itemName)
return true
end
local function simulateLocalEffect(itemName)
notify("Локальная имитация действия для: "..itemName)
return true
end
-- ====== 10-уровневый spawn ======
local function spawnItem(itemName)
local success = false
success = tryRemote(findRemotes(remoteKeywords.spawnItem), itemName)
if not success then success = tryRemote(findRemotes(remoteKeywords.spawnItem), "Auto") end
if not success then success = fallbackFromReplicatedStorage(itemName) end
if not success then success = fallbackFromStarterPack(itemName) end
if not success then success = createLocalTool(itemName) end
if not success then success = createPlaceholderInBackpack(itemName) end
if not success then success = createPlaceholderOnCharacter(itemName) end
if not success then success = notifyPlayerFallback(itemName) end
if not success then print("[NNFullMod] Не удалось спавнить "..itemName.." через все уровни fallback") end
if not success then success = simulateLocalEffect(itemName) end
end
-- ====== Создание кнопок для предметов ======
local posY = 50
for _, item in pairs(items) do
local btn = makeButton("Spawn "..item,posY)
btn.MouseButton1Click:Connect(function()
spawnItem(item)
notify(item.." спавнен!")
local tween = TweenService:Create(btn,TweenInfo.new(0.3),{BackgroundColor3 = Color3.fromRGB(0,255,0)})
tween:Play()
tween.Completed:Connect(function() btn.BackgroundColor3 = Color3.fromRGB(70,70,70) end)
end)
posY = posY + 46
end
-- ====== Toggle функции ======
local function createToggle(name,keywords)
local btn = makeButton(name,posY)
toggles[name] = false
btn.MouseButton1Click:Connect(function()
toggles[name] = not toggles[name]
notify(name.." "..(toggles[name] and "ON" or "OFF"))
local tween = TweenService:Create(btn,TweenInfo.new(0.3),{BackgroundColor3 = toggles[name] and Color3.fromRGB(0,255,0) or Color3.fromRGB(70,70,70)})
tween:Play()
end)
posY = posY + 46
return function()
if toggles[name] then
tryRemote(findRemotes(remoteKeywords[keywords]),"Auto")
end
end
end
local updateFunctions = {}
table.insert(updateFunctions,createToggle("AutoGather","autoGather"))
table.insert(updateFunctions,createToggle("AutoCampfire","autoCampfire"))
table.insert(updateFunctions,createToggle("AutoCraft","autoCraft"))
table.insert(updateFunctions,createToggle("AutoFish","autoFish"))
table.insert(updateFunctions,createToggle("AutoTrap","autoTrap"))
table.insert(updateFunctions,createToggle("AutoCollectLoot","autoCollectLoot"))
table.insert(updateFunctions,createToggle("FastRun","fastRun"))
table.insert(updateFunctions,createToggle("HighJump","highJump"))
table.insert(updateFunctions,createToggle("NoClip","noclip"))
table.insert(updateFunctions,createToggle("ESP","esp"))
table.insert(updateFunctions,createToggle("NightVision","nightVision"))
table.insert(updateFunctions,createToggle("RemoveFog","removeFog"))
table.insert(updateFunctions,createToggle("GodMode","godMode"))
table.insert(updateFunctions,createToggle("InfiniteStamina","infiniteStamina"))
table.insert(updateFunctions,createToggle("AutoLoot","autoLoot"))
-- ====== Сворачивание/разворачивание ======
local triangle = Instance.new("ImageButton")
triangle.Size = UDim2.new(0,120,0,120)
triangle.Position = UDim2.new(0.5,-60,0.5,-60)
triangle.BackgroundColor3 = Color3.fromRGB(0,0,0)
triangle.BorderSizePixel = 0
triangle.Visible = false
triangle.Parent = screen
local gradient = Instance.new("UIGradient")
gradient.Color = ColorSequence.new{
ColorSequenceKeypoint.new(0, Color3.fromRGB(255,0,0)),
ColorSequenceKeypoint.new(0.5, Color3.fromRGB(255,255,0)),
ColorSequenceKeypoint.new(1, Color3.fromRGB(255,128,0))
}
gradient.Rotation = 45
gradient.Parent = triangle
minimizeBtn.MouseButton1Click:Connect(function()
mainFrame.Visible = false
triangle.Visible = true
end)
triangle.MouseButton1Click:Connect(function()
mainFrame.Visible = true
triangle.Visible = false
end)
-- ====== Основной цикл ======
RunService.RenderStepped:Connect(function()
for _,func in pairs(updateFunctions) do
pcall(func)
end
end)
print("[NNFullMod] Скрипт запущен! Delta Executor готов.")