-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNexon.lua
More file actions
2153 lines (1887 loc) · 65.2 KB
/
Copy pathNexon.lua
File metadata and controls
2153 lines (1887 loc) · 65.2 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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--By Rip_IKASI
--Sybau
--UI
local WindUI = loadstring(game:HttpGet("https://github.com/Footagesus/WindUI/releases/latest/download/main.lua"))()
local Window = WindUI:CreateWindow({
Title = "Nexon hub",
Icon = "star",
Author = "Rip_IKASI",
Folder = "NEXON99",
-- ↓ This all is Optional. You can remove it.
Size = UDim2.fromOffset(450, 390),
Transparent = true,
Theme = "Dark",
Resizable = true,
SideBarWidth = 200,
BackgroundImageTransparency = 0.42,
HideSearchBar = true,
ScrollBarEnabled = false,
User = {
Enabled = true,
Anonymous = false,
Callback = function()
print("clicked")
end,
},
})
local CoreGui = game:GetService("CoreGui")
-- Lấy RobloxGui
local RobloxGui = CoreGui:WaitForChild("RobloxGui")
-- Xóa NotificationFrame nếu có
local notifFrame = RobloxGui:FindFirstChild("NotificationFrame") or RobloxGui:FindFirstChild("SendNotificationInfo")
if notifFrame then
notifFrame:Destroy() -- hoặc notifFrame.Enabled = false để chỉ ẩn
end
-- Tự động ẩn nếu NotificationFrame được thêm lại
RobloxGui.ChildAdded:Connect(function(child)
if child.Name == "NotificationFrame" then
child:Destroy() -- hoặc child.Enabled = false
end
end)
--Tabs
local Tab = Window:Tab({
Title = "Main",
Icon = "bird",
Locked = false,
})
local Tab2 = Window:Tab({
Title = "Brings",
Icon = "box",
Locked = false,
})
local Tab3 = Window:Tab({
Title = "Player",
Icon = "box",
Locked = false,
})
local Tab4 = Window:Tab({
Title = "Combat",
Icon = "box",
Locked = false,
})
local Tab5 = Window:Tab({
Title = "ESP",
Icon = "box",
Locked = false,
})
local Tab6 = Window:Tab({
Title = "Misc",
Icon = "box",
Locked = false,
})
local Tab7 = Window:Tab({
Title = "Mobs",
Icon = "box",
Locked = false,
})
--Windows
Window:Tag({
Title = "v1.0.0",
Color = Color3.fromHex("#30ff6a")
})
--All Change
local Section = Tab:Section({
Title = "Days",
TextXAlignment = "Left",
TextSize = 17, -- Default Size
})
local Toggle = Tab3:Toggle({
Title = "God mode",
Desc = "infinite health",
Icon = "bird",
Type = "Toggle",
Default = false,
Callback = function(state)
if state then
--[[
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
loadstring(game:HttpGet("https://raw.githubusercontent.com/ProBaconHub/DATABASE/refs/heads/main/99%20Nights%20in%20the%20Forest/Infinite%20Health.lua"))()
else
print("Of")
end
end
})
--// Dùng toggle trong Tab
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
local RunService = game:GetService("RunService")
-- Config
local flying = false
local radius = 150 -- bán kính vòng tròn
local height = 100 -- độ cao
local speed = 1 -- tốc độ xoay
-- Biến
local angle = 0
-- Toggle trong GUI
local Toggle = Tab:Toggle({
Title = "Auto Days",
Desc = "Circle Tween map",
Icon = "star",
Type = "Toggle",
Default = false,
Callback = function(state)
flying = state
end
})
-- Vòng lặp di chuyển
RunService.RenderStepped:Connect(function(dt)
if flying and hrp then
angle = angle + speed * dt
local x = math.cos(angle) * radius
local z = math.sin(angle) * radius
local newPos = Vector3.new(x, height, z)
hrp.CFrame = CFrame.new(newPos, Vector3.new(0, height, 0))
end
end)
local Section = Tab:Section({
Title = "Fram",
TextXAlignment = "Left",
TextSize = 17, -- Default Size
})
local Paragraph = Tab:Paragraph({
Title = "Note",
Desc = "Fram bunny is so Beta, Ts will get camera error, but script still work",
Color = "White",
Image = "",
ImageSize = 0,
Thumbnail = "",
ThumbnailSize = 0,
Locked = false,
})
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local vu = game:GetService("VirtualUser")
local RunService = game:GetService("RunService")
local autoKill = false
local savedPosition
local bunny
local lastBunnyCheck = 0
local connection
-- Hàm tìm Bunny
local function findBunny()
local characters = workspace:FindFirstChild("Characters")
if characters then
bunny = characters:FindFirstChild("Bunny")
else
bunny = nil
end
end
-- Main loop, luôn chạy nhưng chỉ hoạt động khi autoKill = true
connection = RunService.RenderStepped:Connect(function(dt)
if autoKill then
-- 10 giây quét lại Bunny
lastBunnyCheck = lastBunnyCheck + dt
if lastBunnyCheck >= 10 then
findBunny()
lastBunnyCheck = 0
end
if bunny and bunny.PrimaryPart then
-- Di chuyển mượt theo Bunny
hrp.CFrame = hrp.CFrame:Lerp(bunny.PrimaryPart.CFrame * CFrame.new(0,0,-2), 0.3)
-- Auto click attack
vu:Button1Down(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
vu:Button1Up(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
end
end
end)
-- Toggle GUI
local Toggle = Tab:Toggle({
Title = "Auto Kill Bunny",
Desc = " attack Bunny",
Icon = "bird",
Type = "Toggle",
Default = false,
Callback = function(state)
autoKill = state
if autoKill then
savedPosition = hrp.CFrame -- Lưu vị trí ban đầu khi bật
findBunny()
else
-- Khi tắt, quay về chỗ cũ
if savedPosition then
hrp.CFrame = savedPosition
end
end
end
})
local Section = Tab:Section({
Title = "Child",
TextXAlignment = "Left",
TextSize = 17, -- Default Size
})
local Button = Tab:Button({
Title = "Open All chest",
Desc = "Open all chest on map",
Locked = false,
Callback = function()
local chestFolder = workspace.Items
local remote = game:GetService("ReplicatedStorage")
.RemoteEvents:WaitForChild("RequestOpenItemChest")
for _, v in ipairs(chestFolder:GetChildren()) do
if v.Name == "Item Chest" or v.Name == "Item Chest2" or v.Name == "Item Chest3" or v.Name == "Item Chest4" or v.Name == "Item Chest5" or v.Name == "Item Chest6" or v.Name == "Alien Chest" then
remote:FireServer(v)
end
end
end
})
local Button = Tab:Button({
Title = "Tween to lost child",
Desc = "Carry lost child to campire",
Locked = false,
Callback = function()
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local root = character:WaitForChild("HumanoidRootPart")
local originalCFrame = root.CFrame -- Lưu vị trí ban đầu
-- Hàm tìm Lost Child trong Characters
local function findLostChild()
local charactersFolder = workspace:WaitForChild("Characters")
for _, child in pairs(charactersFolder:GetChildren()) do
if child.Name == "Lost Child" then
local hrp = child:FindFirstChild("HumanoidRootPart") or child:FindFirstChildWhichIsA("BasePart")
if hrp then
return hrp
end
end
end
return nil
end
local target = findLostChild()
if not target then
WindUI:Notify({
Title = "Error",
Content = "CANNOT FIND LOST CHILD, OR YOUR CAMPIRE LEVEL IS LOW",
Duration = 3, -- 3 seconds
Icon = "bird",
})
else
-- Tween đến Lost Child
local distance = (root.Position - target.Position).Magnitude
local tweenInfo = TweenInfo.new(distance / 500, Enum.EasingStyle.Linear)
local tweenTo = TweenService:Create(root, tweenInfo, {CFrame = target.CFrame + Vector3.new(0, 3, 0)})
tweenTo:Play()
tweenTo.Completed:Wait()
-- Đứng yên 10 giây
wait(15)
-- Tween trở về vị trí cũ
local tweenBack = TweenService:Create(root, TweenInfo.new(1, Enum.EasingStyle.Linear), {CFrame = originalCFrame})
tweenBack:Play()
end
end
})
local Button = Tab:Button({
Title = "Tween to lost child 2",
Desc = "Carry lost child 2 to campire",
Locked = false,
Callback = function()
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local root = character:WaitForChild("HumanoidRootPart")
local originalCFrame = root.CFrame -- Lưu vị trí ban đầu
-- Hàm tìm Lost Child trong Characters
local function findLostChild()
local charactersFolder = workspace:WaitForChild("Characters")
for _, child in pairs(charactersFolder:GetChildren()) do
if child.Name == "Lost Child2" then
local hrp = child:FindFirstChild("HumanoidRootPart") or child:FindFirstChildWhichIsA("BasePart")
if hrp then
return hrp
end
end
end
return nil
end
local target = findLostChild()
if not target then
WindUI:Notify({
Title = "Error",
Content = "CANNOT FIND LOST CHILD, OR YOUR CAMPIRE LEVEL IS LOW",
Duration = 3, -- 3 seconds
Icon = "bird",
})
else
-- Tween đến Lost Child
local distance = (root.Position - target.Position).Magnitude
local tweenInfo = TweenInfo.new(distance / 500, Enum.EasingStyle.Linear)
local tweenTo = TweenService:Create(root, tweenInfo, {CFrame = target.CFrame + Vector3.new(0, 3, 0)})
tweenTo:Play()
tweenTo.Completed:Wait()
-- Đứng yên 10 giây
wait(15)
-- Tween trở về vị trí cũ
local tweenBack = TweenService:Create(root, TweenInfo.new(1, Enum.EasingStyle.Linear), {CFrame = originalCFrame})
tweenBack:Play()
end
end
})
local Button = Tab:Button({
Title = "Tween to lost child 3",
Desc = "Carry lost child 3 to campire",
Locked = false,
Callback = function()
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local root = character:WaitForChild("HumanoidRootPart")
local originalCFrame = root.CFrame -- Lưu vị trí ban đầu
-- Hàm tìm Lost Child trong Characters
local function findLostChild()
local charactersFolder = workspace:WaitForChild("Characters")
for _, child in pairs(charactersFolder:GetChildren()) do
if child.Name == "Lost Child3" then
local hrp = child:FindFirstChild("HumanoidRootPart") or child:FindFirstChildWhichIsA("BasePart")
if hrp then
return hrp
end
end
end
return nil
end
local target = findLostChild()
if not target then
WindUI:Notify({
Title = "Error",
Content = "CANNOT FIND LOST CHILD, OR YOUR CAMPIRE LEVEL IS LOW",
Duration = 3, -- 3 seconds
Icon = "bird",
})
else
-- Tween đến Lost Child
local distance = (root.Position - target.Position).Magnitude
local tweenInfo = TweenInfo.new(distance / 500, Enum.EasingStyle.Linear)
local tweenTo = TweenService:Create(root, tweenInfo, {CFrame = target.CFrame + Vector3.new(0, 3, 0)})
tweenTo:Play()
tweenTo.Completed:Wait()
-- Đứng yên 10 giây
wait(15)
-- Tween trở về vị trí cũ
local tweenBack = TweenService:Create(root, TweenInfo.new(1, Enum.EasingStyle.Linear), {CFrame = originalCFrame})
tweenBack:Play()
end
end
})
local Button = Tab:Button({
Title = "Tween to lost child 4",
Desc = "Carry lost child 4 to campire",
Locked = false,
Callback = function()
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local root = character:WaitForChild("HumanoidRootPart")
local originalCFrame = root.CFrame -- Lưu vị trí ban đầu
-- Hàm tìm Lost Child trong Characters
local function findLostChild()
local charactersFolder = workspace:WaitForChild("Characters")
for _, child in pairs(charactersFolder:GetChildren()) do
if child.Name == "Lost Child4" then
local hrp = child:FindFirstChild("HumanoidRootPart") or child:FindFirstChildWhichIsA("BasePart")
if hrp then
return hrp
end
end
end
return nil
end
local target = findLostChild()
if not target then
WindUI:Notify({
Title = "Error",
Content = "CANNOT FIND LOST CHILD, OR YOUR CAMPIRE LEVEL IS LOW",
Duration = 3, -- 3 seconds
Icon = "bird",
})
else
-- Tween đến Lost Child
local distance = (root.Position - target.Position).Magnitude
local tweenInfo = TweenInfo.new(distance / 500, Enum.EasingStyle.Linear)
local tweenTo = TweenService:Create(root, tweenInfo, {CFrame = target.CFrame + Vector3.new(0, 3, 0)})
tweenTo:Play()
tweenTo.Completed:Wait()
-- Đứng yên 10 giây
wait(15)
-- Tween trở về vị trí cũ
local tweenBack = TweenService:Create(root, TweenInfo.new(1, Enum.EasingStyle.Linear), {CFrame = originalCFrame})
tweenBack:Play()
end
end
})
local Section = Tab:Section({
Title = "Cook & Eat",
TextXAlignment = "Left",
TextSize = 17, -- Default Size
})
local Button = Tab:Button({
Title = "Eat",
Desc = " eat Cooked Morsel when hunger < 90%",
Locked = false,
Callback = function()
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local player = Players.LocalPlayer
-- RemoteFunction
local requestConsume = ReplicatedStorage.RemoteEvents:WaitForChild("RequestConsumeItem")
-- Thanh đói
local hungryBar = player:WaitForChild("PlayerGui"):WaitForChild("Interface")
:WaitForChild("StatBars"):WaitForChild("HungerBar"):WaitForChild("Bar")
-- Hàm ăn thức ăn
local function eatFood()
for _, item in ipairs(workspace.Items:GetChildren()) do
if item.Name == "Cooked Morsel" then
requestConsume:InvokeServer(item)
print("Đã ăn 1 Cooked Morsel")
break
end
end
end
-- Theo dõi thanh đói
hungryBar:GetPropertyChangedSignal("Size"):Connect(function()
if hungryBar.Size.X.Scale < 0.9 then -- đói < 30%
eatFood()
end
end)
print("Auto Eat đã bật")
end
})
local Button = Tab:Button({
Title = "Cook Foods",
Desc = "",
Locked = false,
Callback = function()
--// Bring All Morsel + Steak to Campfire
local plr = game.Players.LocalPlayer
local hrp = plr.Character and plr.Character:FindFirstChild("HumanoidRootPart")
if not hrp then return end
-- Tìm lửa trại
local campfire = workspace.Map.Campground:FindFirstChild("MainFire")
if not campfire or not campfire.PrimaryPart then
warn("Không tìm thấy lửa trại!")
return
end
-- Loop qua tất cả items
for _, item in ipairs(workspace.Items:GetChildren()) do
if item:IsA("Model") and item.PrimaryPart and
(string.find(item.Name, "Morsel") or string.find(item.Name, "Steak")) then
-- Start dragging
game.ReplicatedStorage.RemoteEvents.RequestStartDraggingItem:FireServer(item)
-- Đặt item phía trên lửa trại (2 studs trên)
local targetCFrame = campfire.PrimaryPart.CFrame * CFrame.new(0, 8, 0)
item:PivotTo(targetCFrame)
-- Stop dragging
game.ReplicatedStorage.RemoteEvents.StopDraggingItem:FireServer(item)
end
end
end
})
-- Tabs 2
local Section = Tab2:Section({
Title = "Fuel",
TextXAlignment = "Left",
TextSize = 17, -- Default Size
})
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local rs = game:GetService("ReplicatedStorage")
local requestDrag = rs.RemoteEvents.RequestStartDraggingItem
local stopDrag = rs.RemoteEvents.StopDraggingItem
-- =======================
-- Fuel
-- =======================
local targetFuel = {
["Log"] = true,
["Coal"] = true,
["Oil Barrel"] = true,
["Fuel Canister"] = true,
["Cultist"] = true,
["Bear Corpse"] = true,
["Alpha Wolf Corpse"] = true,
["Wolf Corpse"] = true,
["Crossbow Cultist"] = true
}
_G.BringFuel = false
local savedPositionFuel
-- Fuel ON
local FuelOn = Tab2:Button({
Title = "Bring Fuel",
Desc = "Bring all Fuel",
Locked = false,
Callback = function()
if _G.BringFuel then return end
_G.BringFuel = true
savedPositionFuel = hrp.CFrame
task.spawn(function()
while _G.BringFuel do
for _, item in ipairs(workspace.Items:GetChildren()) do
if not _G.BringFuel then break end
if item:IsA("Model") and item.PrimaryPart and targetFuel[item.Name] then
requestDrag:FireServer(item)
task.wait(0.1)
item:PivotTo(savedPositionFuel * CFrame.new(0,3,0))
task.wait(0.1)
stopDrag:FireServer(item)
task.wait(0.2)
end
end
task.wait(1)
end
end)
end
})
-- Fuel OFF
local FuelOff = Tab2:Button({
Title = "Stop Fuel",
Desc = "Stop bring Fuel",
Locked = false,
Callback = function()
_G.BringFuel = false
if savedPositionFuel then
print("Stop Bring")
end
end
})
local Section = Tab2:Section({
Title = "Metal",
TextXAlignment = "Left",
TextSize = 17, -- Default Size
})
-- =======================
-- Metal
-- =======================
local targetMetal = {
["Bolt"] = true,
["Sheet Metal"] = true,
["UFO Junk"] = true,
["UFO Component"] = true,
["Broken Fan"] = true,
["Broken Radio"] = true,
["Broken Microwave"] = true,
["Tyre"] = true,
["Metal Chair"] = true,
["Old Car Engine"] = true,
["Cultist Experiment"] = true,
["Washing Machine"] = true,
["Cultist Prototype"] = true,
["UFO Scrap"] = true
}
_G.BringMetal = false
local savedPositionMetal
-- Metal ON
local MetalOn = Tab2:Button({
Title = "Bring Metal",
Desc = "Bring all Metal",
Locked = false,
Callback = function()
if _G.BringMetal then return end
_G.BringMetal = true
savedPositionMetal = hrp.CFrame
task.spawn(function()
while _G.BringMetal do
for _, item in ipairs(workspace.Items:GetChildren()) do
if not _G.BringMetal then break end
if item:IsA("Model") and item.PrimaryPart and targetMetal[item.Name] then
requestDrag:FireServer(item)
task.wait(0.1)
item:PivotTo(savedPositionMetal * CFrame.new(0,3,0))
task.wait(0.1)
stopDrag:FireServer(item)
task.wait(0.2)
end
end
task.wait(1)
end
end)
end
})
-- Metal OFF
local MetalOff = Tab2:Button({
Title = "Stop Metal",
Desc = "Stop bring Metal",
Locked = false,
Callback = function()
_G.BringMetal = false
if savedPositionMetal then
print("Stop Bring")
end
end
})
local Section = Tab2:Section({
Title = "Food",
TextXAlignment = "Left",
TextSize = 17, -- Default Size
})
-- =======================
-- Food
-- =======================
local targetFood = {
["Steak"] = true,
["BBQ Ribs"] = true,
["Candy Apple"] = true,
["Carrot"] = true,
["Berry"] = true,
["Cotton Candy"] = true,
["Chili"] = true,
["Lava Eel"] = true,
["Candy Corn"] = true,
["Morsel"] = true,
["Stew"] = true,
["Corn"] = true,
["Pumpkin"] = true,
["Casserole"] = true,
["Apple"] = true,
["Berry Juice"] = true,
["Ribs"] = true,
["Cake"] = true,
["Hearty Stew"] = true,
["Shark"] = true,
["Swordfish"] = true,
["Eel"] = true,
["Char"] = true,
["Swordfish"] = true,
["Mackerel"] = true,
["Salmon"] = true,
["Clownfish"] = true
}
_G.BringFood = false
local savedPositionFood
-- Food ON
local FoodOn = Tab2:Button({
Title = "Bring Food",
Desc = "Bring all Food",
Locked = false,
Callback = function()
if _G.BringFood then return end
_G.BringFood = true
savedPositionFood = hrp.CFrame
task.spawn(function()
while _G.BringFood do
for _, item in ipairs(workspace.Items:GetChildren()) do
if not _G.BringFood then break end -- kiểm tra đúng biến
if item:IsA("Model") and item.PrimaryPart and targetFood[item.Name] then
requestDrag:FireServer(item)
task.wait(0.1)
item:PivotTo(savedPositionFood * CFrame.new(0,3,0))
task.wait(0.1)
stopDrag:FireServer(item)
task.wait(0.2)
end
end
task.wait(1)
end
end)
end
})
-- Food OFF
local FoodOff = Tab2:Button({
Title = "Stop Food",
Desc = "Stop bring Food",
Locked = false,
Callback = function()
_G.BringFood = false
if savedPositionFood then
print("Stop Bring")
end
end
})
local Section = Tab2:Section({
Title = "Ammo",
TextXAlignment = "Left",
TextSize = 17, -- Default Size
})
-- =======================
-- Ammo
-- =======================
local targetAmmo = {
["Revolver Ammo"] = true,
["Rifle Ammo"] = true,
["Shotgun Ammo"] = true
}
_G.BringAmmo = false
local savedPositionAmmo
-- Ammo ON
local AmmoOn = Tab2:Button({
Title = "Bring Ammo",
Desc = "Bring all Ammo",
Locked = false,
Callback = function()
if _G.BringAmmo then return end
_G.BringAmmo = true
savedPositionAmmo = hrp.CFrame
task.spawn(function()
while _G.BringAmmo do
for _, item in ipairs(workspace.Items:GetChildren()) do
if not _G.BringAmmo then break end
if item:IsA("Model") and item.PrimaryPart and targetAmmo[item.Name] then
requestDrag:FireServer(item)
task.wait(0.1)
item:PivotTo(savedPositionAmmo * CFrame.new(0,3,0))
task.wait(0.1)
stopDrag:FireServer(item)
task.wait(0.2)
end
end
task.wait(1)
end
end)
end
})
-- Ammo OFF
local AmmoOff = Tab2:Button({
Title = "Stop Ammo",
Desc = "Stop bring Ammo",
Locked = false,
Callback = function()
_G.BringAmmo = false
if savedPositionAmmo then
print("Stop Bring")
end
end
})
-- =======================
-- Tools & Weapons
-- =======================
local targetTools = {
["Bandage"] = true,
["Rifle"] = true,
["Revolver"] = true,
["Laser Cannon"] = true,
["Ray Gun"] = true,
["Laser Sword"] = true,
["Katana"] = true,
["Strong Flashlight"] = true,
["Old Flashlight"] = true
}
local Section = Tab2:Section({
Title = "Tools",
TextXAlignment = "Left",
TextSize = 17, -- Default Size
})
_G.BringTools = false
local savedPositionTools
-- Tools ON
local ToolsOn = Tab2:Button({
Title = "Bring Tools",
Desc = "Bring all Tools/Weapons",
Locked = false,
Callback = function()
if _G.BringTools then return end
_G.BringTools = true
savedPositionTools = hrp.CFrame
task.spawn(function()
while _G.BringTools do
for _, item in ipairs(workspace.Items:GetChildren()) do
if not _G.BringTools then break end
if (item:IsA("Tool") or item:IsA("Model")) and item.PrimaryPart and targetTools[item.Name] then
requestDrag:FireServer(item)
task.wait(0.1)
item:PivotTo(savedPositionTools * CFrame.new(0,3,0))
task.wait(0.1)
stopDrag:FireServer(item)
task.wait(0.2)
end
end
task.wait(1)
end
end)
end
})
-- Tools OFF
local ToolsOff = Tab2:Button({
Title = "Stop Tools",
Desc = "Stop bring Tools/Weapons",
Locked = false,
Callback = function()
_G.BringTools = false
if savedPositionTools then
print("Stop Bring")
end
end
})
local Section = Tab2:Section({
Title = "Others",
TextXAlignment = "Left",
TextSize = 17, -- Default Size
})
-- lưu vị trí trước khi bring
_G.SavedPosition = nil
-- mỗi script bring (Log, Coal, Microwave, Steak) khi bật sẽ set:
-- _G.SavedPosition = hrp.CFrame
-- Nút Stop All
local Button = Tab2:Button({
Title = "Stop All",
Desc = "",
Locked = false,
Callback = function()
_G.BringLog = false
_G.BringCoal = false
_G.BringMicrowave = false
_G.BringSteak = false
_G.BringSapling = false
-- trả về vị trí cũ nếu có lưu
local player = game.Players.LocalPlayer
local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
if hrp and _G.SavedPosition then
hrp.CFrame = _G.SavedPosition
_G.SavedPosition = nil -- reset sau khi quay lại
end
end
})
_G.BringSapling = false
local savedPosition
local function bringSaplings()
local player = game.Players.LocalPlayer
local hrp = player.Character and player.Character:WaitForChild("HumanoidRootPart")
if not hrp then return end
savedPosition = hrp.CFrame
task.spawn(function()
while _G.BringSapling do
for _, item in ipairs(workspace.Items:GetChildren()) do
if not _G.BringSapling then break end
if item:IsA("Model") and item.PrimaryPart and item.Name == "Sapling" then
-- Teleport tới log
task.wait(0.2)
-- Kéo về
requestDrag:FireServer(item)
task.wait(0.1)
item:PivotTo(savedPosition * CFrame.new(0, 3, 0))
task.wait(0.1)
stopDrag:FireServer(item)
task.wait(0.2)
end
end
task.wait(1)
end
end)
end
-- Nút Bring Log
local ButtonOn = Tab2:Button({
Title = "Bring Sapling",
Desc = "Bring all Saplings",
Callback = function()
if _G.BringSapling then return end
_G.BringSapling = true
bringSaplings()
end
})
_G.bringLog = false
local savedPosition
local function bringLogs()
local player = game.Players.LocalPlayer
local hrp = player.Character and player.Character:WaitForChild("HumanoidRootPart")
if not hrp then return end