-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLT2TP.lua
More file actions
1313 lines (1085 loc) · 53.4 KB
/
LT2TP.lua
File metadata and controls
1313 lines (1085 loc) · 53.4 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
--//Credits\\--
--[[
@Pepsi for the awesome UI library! (https://v3rmillion.net/showthread.php?tid=1139856)
@DinosaurXxX for the Max Land function. (I ONLY cleaned up the code a little bit.) (https://gist.github.com/DinosaurXxX/93f5d5df959cf20f7665991be5e3c9b3)
@Ataias for the anti-exploit bypass. (https://v3rmillion.net/showthread.php?tid=1141592)
Me (@JSK, jdev-coder) and other contributors (@noobiii) for the rest.
]]
--//Changelog Info\\--
--[[
Changelog template (/ lists different options or examples.):
{
Type = 'Change/Add/Remove',
Name = 'noobiii/JSK',
Value = 'Fixed tree dismemberer/Fixed gravity slider',
}
]]
local ChangelogTable = {
{
Type = 'Change',
Name = 'noobiii',
Value = 'Made the sliders on the Players tab show what you are changing.',
},
{
Type = 'Add',
Name = 'noobiii',
Value = 'Increased the Gravity Slider\'s range to 0-500.',
},
{
Type = 'Add',
Name = 'JSK',
Value = 'Disable the AutoFarm and stop cutting any trees when Safe Reset is clicked.',
},
{
Type = 'Add',
Name = 'JSK',
Value = 'Add AntiLog so the Anti-Cheat cannot tell the server you exploited.',
},
{
Type = 'Change',
Name = 'JSK',
Value = 'Fix AntiLog problem where it tried to hook FS.',
},
{
Type = 'Change',
Name = 'JSK',
Value = 'Whoops. AntiLog used HookFunction which may not have done anything.',
},
{
Type = 'Add',
Name = 'JSK',
Value = 'Added built-in long wire ban protection.',
},
{
Type = 'Add',
Name = 'JSK',
Value = 'Added Blow Up All Dynamite',
},
}
local UI = loadstring(game:HttpGet('https://raw.githubusercontent.com/noobiii/modified-pepsilib/main/source'))()
local Window = UI:CreateWindow({Name = 'LT2TP', Theme = {Backdrop = nil, Info = 'LT2TP v1.6 by JSK'}})
local Land = Window:CreateTab({Name = 'Land'})
local Player = Window:CreateTab({Name = 'Player'})
local World = Window:CreateTab({Name = 'World'})
local Buy = Window:CreateTab({Name = 'AutoBuy'})
local Trees = Window:CreateTab({Name = 'Trees'})
local Teleports = Window:CreateTab({Name = 'Teleports'})
local Trolling = Window:CreateTab({Name = 'Trolling'})
local Planks = Window:CreateTab({Name = 'Planks'})
local Water = Window:CreateTab({Name = 'Water'})
local Vehicle = Window:CreateTab({Name = 'Vehicle'})
local Changelog = Window:CreateTab({Name = 'Changelog'})
local Credits = Window:CreateTab({Name = 'Credits'})
local VehicleSpeedSection = Vehicle:CreateSection({Name = 'Speed'})
local WaterModSection = Water:CreateSection({Name = 'Water Modification'})
local WoodSellSectionPlanks = Planks:CreateSection({Name = 'Wood Seller'})
local TrollingBase = Trolling:CreateSection({Name = 'Base'})
local TeleportsSection = Teleports:CreateSection({Name = 'All Teleports'})
local TreesTeleportSection = Trees:CreateSection({Name = 'Wood Teleportation'})
local TreeBringSection = Trees:CreateSection({Name = 'Tree Bringer'})
local TreesSawmillSection = Trees:CreateSection({Name = 'Sawmill'})
local TreeMisc = Trees:CreateSection({Name = 'Miscellaneous'})
local TreeSeller = Trees:CreateSection({Name = 'Tree Seller'})
local AutoBuySection = Buy:CreateSection({Name = 'Automatic Buyer'})
local WorldMisc = World:CreateSection({Name = 'Miscellaneous'})
local WorldBridge = World:CreateSection({Name = 'Bridge'})
local PlayerMovement = Player:CreateSection({Name = 'Movement'})
local PlayerMisc = Player:CreateSection({Name = 'Miscellaneous'})
local FreeLandSect = Land:CreateSection({Name = 'Free Land'})
local ChangelogSect = Changelog:CreateSection({Name = 'Changelog'})
local CreditsSect = Credits:CreateSection({Name = 'Credits'})
local WalkSpeed = 16
local JumpPower = 50
local Gravity = workspace.Gravity
local TreeTable = {}
local Regions = {}
local FlingToggled = false
local CF = nil
local AutoFarm = false
local AntiBL = false
local ShopNamesTable = {}
--[[
local TreeProperties = {
Birch = {
LogValue = 2.25,
PlankValue = 15,
},
CaveCrawler = {
LogValue = 8,
PlankValue = 35,
},
Cherry = {
LogValue = 1.3,
PlankValue = 10.5,
},
Fir = {
LogValue = 3.2,
PlankValue = 18,
},
Generic = {
LogValue = 1.5,
PlankValue = 10,
},
--Values are just guessed for Frost.
Frost = {
LogValue = 5,
PlankValue = 30,
},
GoldSwampy = {
LogValue = 5.7,
PlankValue = 36,
},
GreenSwampy = {
LogValue = 4,4,
PlankValue = 30,
},
Koa = {
LogValue = 2.8,
PlankValue = 26.4,
},
LoneCave = {
LogValue = 150,
PlankValue = 420,
},
Oak = {
LogValue = 0.75,
PlankValue = 6,
},
Palm = {
LogValue = 2.5,
PlankValue = 32,
},
Pine = {
LogValue = 3.2,
PlankValue = 18,
},
Sign = {
LogValue = 170,
PlankValue = 170,
},
SnowGlow = {
LogValue = 1.5,
PlankValue = 10,
},
Generic = {
LogValue = 19,
PlankValue = 54,
},
Volcano = {
LogValue = 3.5,
PlankValue = 28,
},
Walnut = {
LogValue = 1.2,
PlankValue = 11,
},
}
]]
--//This garbage code is so inefficient.\\--
for i,v in pairs(game:GetService('ReplicatedStorage').ClientItemInfo:GetChildren()) do
for i2,v2 in pairs(workspace.Stores:GetChildren()) do
if v2.Name == 'ShopItems' then
for i3,v3 in pairs(v2:GetChildren()) do
if v3:FindFirstChild('BoxItemName') then
if v:FindFirstChild('ItemName') and v.Name == v3.BoxItemName.Value and not table.find(ShopNamesTable, v.ItemName.Value) then
table.insert(ShopNamesTable, v.ItemName.Value)
end
end
end
end
end
end
for i,v in pairs(ChangelogTable) do
if v.Type == 'Add' then
local ToSplitAt = #v.Value / 2
local Value = string.sub(v.Value, 1, ToSplitAt)
local Value2 = string.sub(v.Value, ToSplitAt + 1, #v.Value)
if i > 1 then
ChangelogSect:AddLabel({Name = '\n'})
end
ChangelogSect:AddLabel({
Name = '[+] ' .. Value .. '\n' .. Value2 .. ' [' .. v.Name .. ']',
})
end
if v.Type == 'Change' then
local ToSplitAt = #v.Value / 2
local Value = string.sub(v.Value, 1, ToSplitAt)
local Value2 = string.sub(v.Value, ToSplitAt + 1, #v.Value)
if i > 1 then
ChangelogSect:AddLabel({Name = '\n'})
end
ChangelogSect:AddLabel({
Name = '\n[*] ' .. Value .. '\n' .. Value2 .. ' [' .. v.Name .. ']',
})
end
if v.Type == 'Remove' then
local ToSplitAt = #v.Value / 2
local Value = string.sub(v.Value, 1, ToSplitAt)
local Value2 = string.sub(v.Value, ToSplitAt + 1, #v.Value)
if i > 1 then
ChangelogSect:AddLabel({Name = '\n'})
end
ChangelogSect:AddLabel({
Name = '[-] ' .. Value .. Value2 .. ' [' .. v.Name .. ']',
})
end
end
ChangelogSect:AddLabel({Name = '\n'})
--//If the old loop exists, stop it. It will prevent lag if the script is executed multiple times.\\--
if _G.Conn then
_G.Conn:Disconnect()
end
--//Anti-AFK\\--
game:GetService('Players').LocalPlayer.Idled:connect(function()
game:GetService('VirtualUser'):Button2Down(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
wait(1)
game:GetService('VirtualUser'):Button2Up(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
end)
--//Credits Items\\--
--I hate this code.
CreditsSect:AddLabel('@Pepsi for the awesome UI library!')
CreditsSect:AddLabel('\n')
CreditsSect:AddLabel('(https://v3rmillion.net/showthread.php?tid=1139856)')
CreditsSect:AddLabel('\n@DinosaurXxX for the Max Land function.')
CreditsSect:AddLabel('\n')
CreditsSect:AddLabel('(I ONLY cleaned up the code a little bit.)')
CreditsSect:AddLabel('\n')
CreditsSect:AddLabel('(https://gist.github.com/DinosaurXxX/93f5d5df959cf20f\n7665991be5e3c9b3)')
CreditsSect:AddLabel('\n@Ataias for the anti-exploit bypass.')
CreditsSect:AddLabel('\n')
CreditsSect:AddLabel('(https://v3rmillion.net/showthread.php?tid=1141592)')
CreditsSect:AddLabel('\n')
CreditsSect:AddLabel('Me (@JSK, jdev-coder)\nand other contributors (@noobiii) for the rest.\n')
--//Anti-Exploit bypass\\--
if not _G.Bypassed then
local NC
--ALERT: CODE BELOW NOT WRITTEN BY ME, NEEDS TO BE REPLACED. (SKIDDED)
local Anticheat_Env = getsenv(game:GetService('Players').LocalPlayer.PlayerGui.LoadSaveGUI.LoadSaveClient.LocalScript)
if game:GetService('ReplicatedStorage').Interaction:FindFirstChild('Ban') then
for _, v in next, getconnections(game:GetService('ReplicatedStorage').Interaction.Ban.AncestryChanged) do
pcall(function()
v:Disable()
end)
end
end
pcall(function()
game:GetService('ReplicatedStorage').Interaction.Ban:Destroy()
end)
hookfunction(Anticheat_Env.ban, function(...)
wait(9e9)
end)
NC = hookmetamethod(game, '__namecall', newcclosure(function(Self, ...)
local Args = {...}
if tostring(Self) == 'ClientPlacedWire' and getnamecallmethod() == 'FireServer' and Args[2] and Args[2][1] and Args[2][2] and Args[2][1].X and (Args[1] - Args[2]).Magnitude > 7 then
Notify('Whoops! You have triggered the long wire ban! Luckily, LT2TP saved ya. If you are sure you want to place this wire, please rejoin and do not run LT2TP.')
wait(9e9)
end
--//Other protections, not written by me. Needs rewrite. (SKIDDED :O).\\--
if tostring(Self) == 'AddLog' then
Notify('Whoops! You have triggered the anti-cheat! Luckily, LT2TP saved ya.')
wait(9e9)
end
if tostring(Self) == 'ArchiveLog' then
Notify('Whoops! You have triggered the anti-cheat! Luckily, LT2TP saved ya.')
wait(9e9)
end
if getnamecallmethod() == 'Kick' then
Notify('Whoops! You have triggered the anti-cheat! Luckily, LT2TP saved ya.')
wait(9e9)
end
if tostring(Self) == 'Ban' then
Notify('Whoops! You have triggered the anti-cheat! Luckily, LT2TP saved ya.')
wait(9e9)
end
return NC(Self, ...)
end))
_G.Bypassed = true
end
--//Functions, exposed via getgenv\\--
function AddLand(Pos)
game:GetService('ReplicatedStorage').PropertyPurchasing.ClientExpandedProperty:FireServer(Base, Pos)
end
--//Modify game credits\\--
local Module = require(game:GetService('ReplicatedStorage').Credits)
Module[8] = {
heading = '\nLT2TP UI Library',
credits = {'Pepsi'},
}
Module[9] = {
heading = 'LT2TP AC Bypass',
credits = {'Ataias', 'JSK (@jdev-coder)'},
}
Module[10] = {
heading = '\nLT2TP',
credits = {'JSK (@jdev-coder)', 'noobiii'},
}
pcall(function() game:GetService('Players').LocalPlayer.PlayerGui.CreditsGUI:Destroy() end)
game:GetService('StarterGui').CreditsGUI:Clone().Parent = game:GetService('Players').LocalPlayer.PlayerGui
--//Fix Menu button when Credits GUI is closed.\\--
game:GetService('Players').LocalPlayer.PlayerGui.CreditsGUI.Credits.Quit.Activated:Connect(function()
game:GetService('Players').LocalPlayer.PlayerGui.MenuGUI.Open.Visible = true
end)
--//Functions\\--
function Notify(Message)
game:GetService('ReplicatedStorage').Notices.SendUserNotice:Fire(Message)
end
--//Show Anti-Cheat bypass notification\\--
Notify('LT2TP has bypassed the anti-cheat. You will be protected from certain bans, too.')
--//Load the tree types\\--
for i,v in pairs(workspace:GetChildren()) do
if v.Name == 'TreeRegion' then
table.insert(Regions, v)
end
end
for i,v in pairs(Regions) do
for i2,v2 in pairs(v:GetChildren()) do
if v2:FindFirstChild('TreeClass') and not table.find(TreeTable, v2.TreeClass.Value) then
table.insert(TreeTable, v2.TreeClass.Value)
end
end
end
--//Land Items\\--
FreeLandSect:AddButton({
Name = 'Max Land',
Callback = function()
--ALERT: CODE BELOW NOT WRITTEN BY ME, NEEDS TO BE REPLACED. (SKIDDED)
for i,v in pairs(game:GetService('Workspace').Properties:GetChildren()) do
if v:FindFirstChild('Owner') and v.Owner.Value == game.Players.LocalPlayer then
Base = v
Square = v.OriginSquare
end
end
if not Square then return Notify('You do not have any land to expand!') end
SquarePosition = Square.Position
AddLand(CFrame.new(SquarePos.X + 40, SquarePos.Y, SquarePos.Z))
AddLand(CFrame.new(SquarePos.X - 40, SquarePos.Y, SquarePos.Z))
AddLand(CFrame.new(SquarePos.X, SquarePos.Y, SquarePos.Z + 40))
AddLand(CFrame.new(SquarePos.X, SquarePos.Y, SquarePos.Z - 40))
AddLand(CFrame.new(SquarePos.X + 40, SquarePos.Y, SquarePos.Z + 40))
AddLand(CFrame.new(SquarePos.X + 40, SquarePos.Y, SquarePos.Z - 40))
AddLand(CFrame.new(SquarePos.X - 40, SquarePos.Y, SquarePos.Z + 40))
AddLand(CFrame.new(SquarePos.X - 40, SquarePos.Y, SquarePos.Z - 40))
AddLand(CFrame.new(SquarePos.X + 80, SquarePos.Y, SquarePos.Z))
AddLand(CFrame.new(SquarePos.X - 80, SquarePos.Y, SquarePos.Z))
AddLand(CFrame.new(SquarePos.X, SquarePos.Y, SquarePos.Z + 80))
AddLand(CFrame.new(SquarePos.X, SquarePos.Y, SquarePos.Z - 80))
AddLand(CFrame.new(SquarePos.X + 80, SquarePos.Y, SquarePos.Z + 80))
AddLand(CFrame.new(SquarePos.X + 80, SquarePos.Y, SquarePos.Z - 80))
AddLand(CFrame.new(SquarePos.X - 80, SquarePos.Y, SquarePos.Z + 80))
AddLand(CFrame.new(SquarePos.X - 80, SquarePos.Y, SquarePos.Z - 80))
AddLand(CFrame.new(SquarePos.X + 40, SquarePos.Y, SquarePos.Z + 80))
AddLand(CFrame.new(SquarePos.X - 40, SquarePos.Y, SquarePos.Z + 80))
AddLand(CFrame.new(SquarePos.X + 80, SquarePos.Y, SquarePos.Z + 40))
AddLand(CFrame.new(SquarePos.X + 80, SquarePos.Y, SquarePos.Z - 40))
AddLand(CFrame.new(SquarePos.X - 80, SquarePos.Y, SquarePos.Z + 40))
AddLand(CFrame.new(SquarePos.X - 80, SquarePos.Y, SquarePos.Z - 40))
AddLand(CFrame.new(SquarePos.X + 40, SquarePos.Y, SquarePos.Z - 80))
AddLand(CFrame.new(SquarePos.X - 40, SquarePos.Y, SquarePos.Z - 80))
end
})
--//Player Items\\--
PlayerMovement:AddLabel({
Name = 'Gravity',
})
PlayerMovement:AddSlider({
Name = 'Gravity',
Value = 196.2,
Min = 0,
Max = 500,
Format = function(Val)
Gravity = Val
return Val
end
})
PlayerMovement:AddLabel({
Name = 'WalkSpeed',
})
PlayerMovement:AddSlider({
Name = 'WalkSpeed',
Value = 16,
Min = 1,
Max = 400,
Format = function(Val)
WalkSpeed = Val
return Val
end
})
PlayerMovement:AddLabel({
Name = 'JumpPower',
})
PlayerMovement:AddSlider({
Name = 'JumpPower',
Value = 50,
Min = 1,
Max = 400,
Format = function(Val)
JumpPower = Val
return Val
end
})
PlayerMisc:AddButton({
Name = 'Safe Reset',
Callback = function()
game:GetService('Players').LocalPlayer.Character.Humanoid:UnequipTools()
wait()
game:GetService('Players').LocalPlayer.Character.Head:Destroy()
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart:Destroy()
AutoFarm = false
_G.DevBreak = true
wait(3)
_G.DevBreak = false
end
})
--//AutoBuy Items\\--
AutoBuySection:AddDropdown({
Name = 'Buy Item',
List = ShopNamesTable,
Callback = function(Item)
local ItemToPurchase = nil
if Item == 'None' then return end
for i,v in pairs(game:GetService('ReplicatedStorage').ClientItemInfo:GetChildren()) do
if v:FindFirstChild('ItemName') and v.ItemName.Value == Item then
ItemToPurchase = v.Name
end
end
if not ItemToPurchase then
return Notify('No item found. It is likely the store does not have the item.')
end
for i,v in pairs(workspace.Stores:GetDescendants()) do
if v.Name == 'BoxItemName' and v.Parent.Name == 'Box' and v.Value == ItemToPurchase and v.Parent:FindFirstChild('Main', true) then
local Store = nil
local OldPos = game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame
if not v.Parent:FindFirstChild('Main', true) then
return Notify('Unable to find the Main part of the box.')
end
for i2,v2 in pairs(workspace.Stores:GetChildren()) do
if v2:FindFirstChild('Counter') and (v2.Counter.Position - v.Parent:FindFirstChild('Main', true).Position).Magnitude < 120 then
Store = v2
break
end
end
if not Store then
return Notify('Unable to find the store where the item is located.')
end
if not Store:FindFirstChild('HumanoidRootPart', true) then
return Notify('Unable to find the store\'s NPC.')
end
for i,v in pairs(workspace.Stores:GetDescendants()) do
if v.Name == 'Box' then
if (Store.Counter.Position - v:FindFirstChild('Main', true).Position).Magnitude < 10 then
for i = 1, 10 do
wait()
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = v:FindFirstChild('Main', true).CFrame - Vector3.new(5,0,0)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v)
v:FindFirstChild('Main', true).CFrame = CFrame.new(0, 300, 0)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v)
end
end
end
end
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = v.Parent:FindFirstChild('Main', true).CFrame - Vector3.new(5,0,0)
wait(.6)
for i = 1, 10 do
wait()
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = v.Parent:FindFirstChild('Main', true).CFrame - Vector3.new(5,0,0)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v.Parent)
v.Parent:FindFirstChild('Main', true).CFrame = Store.Counter.CFrame
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v.Parent)
end
wait(.6)
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = Store.Counter.CFrame
wait(.6)
for i = 1, 10 do
pcall(function()
game:GetService('ReplicatedStorage').NPCDialog.PlayerChatted:InvokeServer({ID = i, Name = Store:FindFirstChild('HumanoidRootPart', true).Parent.Name, Dialog = Store:FindFirstChild('Dialog', true), Character = Store:FindFirstChild('HumanoidRootPart', true).Parent}, 'ConfirmPurchase')
end)
end
wait(.6)
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = v.Parent:FindFirstChild('Main', true).CFrame - Vector3.new(5,0,0)
wait(.3)
for i = 1, 30 do
wait()
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = v.Parent:FindFirstChild('Main', true).CFrame - Vector3.new(5,0,0)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v.Parent)
v.Parent:FindFirstChild('Main', true).CFrame = OldPos
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v.Parent)
end
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = OldPos
return
end
end
return Item
end
})
--//World Items\\--
WorldMisc:AddButton({
Name = 'Blow Up All Dynamite',
Callback = function()
for i,v in pairs(workspace.PlayerModels:GetChildren()) do
if v:FindFirstChild('ButtonRemote_Main') then
wait(1)
game:GetService('ReplicatedStorage').Interaction.RemoteProxy:FireServer(v:FindFirstChild('ButtonRemote_Main'))
end
end
end
})
WorldMisc:AddButton({
Name = 'BTools',
Callback = function()
loadstring(game:HttpGet('https://gist.githubusercontent.com/jdev-coder/dcbfdb678973d37fe0d6b7159d2ad45e/raw/afdc99e016074d7f25bebf22e367b5003a72bbec/lt2btools.lua'))()
end
})
WorldMisc:AddButton({
Name = 'Super Drag',
Callback = function()
hookfunction(getsenv(game:GetService('Players').LocalPlayer.PlayerGui.ItemDraggingGUI.Dragger).canDrag, function()
return true
end)
for i,v in pairs(getnilinstances()) do
if v.Name == 'Dragger' and v:IsA('Part') then
v.BodyPosition.MaxForce = Vector3.new(1, 1, 1) * 2000000
v.BodyGyro.MaxTorque = Vector3.new(1, 1, 1) * 2000000
end
end
if game:GetService('Players').LocalPlayer.ItemDraggingGUI.Dragger:FindFirstChild('Dragger') then
game:GetService('Players').LocalPlayer.ItemDraggingGUI.Dragger:FindFirstChild('Dragger').BodyPosition.MaxForce = Vector3.new(1, 1, 1) * 2000000
game:GetService('Players').LocalPlayer.ItemDraggingGUI.Dragger:FindFirstChild('Dragger').BodyGyro.MaxTorque = Vector3.new(1, 1, 1) * 2000000
end
end
})
WorldMisc:AddButton({
Name = 'Lower Bridge',
Callback = function()
game:GetService('ReplicatedStorage').NPCDialog.PlayerChatted:InvokeServer({ID = 14, Name = 'Seranok', Dialog = Instance.new('Dialog'), Character = workspace.Bridge.TollBooth0.Seranok}, 'ConfirmPurchase')
end
})
--//Water Items\\--
WaterModSection:AddButton({
Name = 'Walk On Water',
Callback = function()
for i,v in pairs(workspace.Water:GetChildren()) do
v.CanCollide = true
end
end
})
--//Vehicle Items\\--
VehicleSpeedSection:AddSlider({
Name = 'Speed',
Value = 1,
Min = 1,
Max = 8,
Format = function(Speed)
local DefaultSpeed = 1.15
local DefaultSteer = 0.015
for i,v in pairs(workspace.PlayerModels:GetChildren()) do
if v:FindFirstChild('DriveSeat') and v:FindFirstChild('Owner') and v.Owner.Value == game:GetService('Players').LocalPlayer then
v.Configuration.SteerVelocity.Value = DefaultSteer * (Speed / 2.5)
v.Configuration.MaxSpeed.Value = DefaultSpeed * Speed
end
end
return Speed
end
})
--//Trees Items\\--
TreesTeleportSection:AddDropdown({
Name = 'Teleport To Tree',
List = TreeTable,
Callback = function(TreeType)
for i,v in pairs(Regions) do
for i2,v2 in pairs(v:GetChildren()) do
if v2:FindFirstChild('TreeClass') and v2.TreeClass.Value == TreeType and not v2:FindFirstChild('RootCut') then
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = v2:FindFirstChild('WoodSection', true).CFrame
return
end
end
end
end
})
TreeBringSection:AddDropdown({
Name = 'Bring Tree',
List = TreeTable,
Callback = function(TreeType)
local Axe = game:GetService('Players').LocalPlayer.Backpack:FindFirstChild('Tool')
if not Axe then
return Notify('No axe was found in your inventory.')
end
for i,v in pairs(Regions) do
for i2,v2 in pairs(v:GetChildren()) do
if v2:FindFirstChild('TreeClass') and v2.TreeClass.Value == TreeType and not v2:FindFirstChild('RootCut') then
local AxeName = Axe.ToolName.Value
local Class = require(game:GetService('ReplicatedStorage').AxeClasses:FindFirstChild('AxeClass_'..AxeName)).new()
local Break = false
local Count = 0
local Height = 0.3
local Count = 0
local OldPos = game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame
for i = 1, 10 do
wait()
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0,0,0)
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = v2:FindFirstChild('WoodSection', true).CFrame
end
Axe.Parent = game:GetService('Players').LocalPlayer.Backpack
for i,v in pairs(v2:GetChildren()) do
if v.Name == 'WoodSection' then
Count += 1
end
end
repeat
local NewCount = 0
wait(Class.SwingCooldown + .08)
pcall(function() game:GetService('ReplicatedStorage').Interaction.RemoteProxy:FireServer(v2.CutEvent, {tool = Axe, faceVector = Vector3.new(1,0,0), height = Height, sectionId = 1, hitPoints = Class.Damage, cooldown = Class.SwingCooldown, cuttingClass = 'Axe'}) end)
for i,v in pairs(v2:GetChildren()) do
if v.Name == 'WoodSection' then
NewCount += 1
end
end
if TreeType == 'LoneCave' then
local RootJoint = game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.RootJoint
RootJoint:Clone().Parent = game:GetService('Players').LocalPlayer.Character.HumanoidRootPart
RootJoint:Destroy()
end
if Count ~= NewCount then
Break = true
end
until Break or _G.DevBreak
for i3,v3 in pairs(workspace.LogModels:GetChildren()) do
if v3:FindFirstChild('Owner') and v3.Owner.Value == game:GetService('Players').LocalPlayer then
v3.PrimaryPart = v3.WoodSection
for i = 1, 10 do
wait(.08)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v3)
v3:PivotTo(OldPos)
v3.PrimaryPart.Velocity = Vector3.new(0,0,0)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v3)
end
end
end
if TreeType == 'LoneCave' then
game:GetService('Players').LocalPlayer.Character.Humanoid:UnequipTools()
wait()
game:GetService('Players').LocalPlayer.Character.Head:Destroy()
game:GetService('Players').LocalPlayer.CharacterAdded:Wait()
wait(1.5)
end
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = OldPos
return
end
end
end
end
})
--[[
TreeMisc:AddButton({
Name = 'Modify All Wood',
Callback = function()
for i,v in pairs(workspace.LogModels:GetChildren()) do
for i2,v2 in pairs(v:GetChildren()) do
if v2.Name == 'WoodSection' and v2:FindFirstChild('Tree Weld') then
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = v2.CFrame
wait(.05)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v2)
wait(.05)
v2['Tree Weld']:Remove()
wait()
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v2)
end
end
end
end
})
]]
TreeMisc:AddButton({
Name = 'Bring All Trees',
Callback = function()
local OldPos = game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame
for i,v in pairs(workspace.LogModels:GetChildren()) do
if v:FindFirstChild('Owner') and v.Owner.Value == game:GetService('Players').LocalPlayer then
local _, Size = v:GetBoundingBox()
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(v:GetModelCFrame().Position.X, v:GetModelCFrame().Position.Y - Size.Y / 2, v:GetModelCFrame().Position.Z))
v.PrimaryPart = v.WoodSection
for i = 1, 10 do
wait(.06)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v)
v:PivotTo(OldPos)
v.PrimaryPart.Velocity = Vector3.new(0,0,0)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v)
end
end
end
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = OldPos
end
})
TreeSeller:AddButton({
Name = 'Sell All Trees',
Callback = function()
local OldPos = CFrame.new(325, -0.5, 86)
for i,v in pairs(workspace.LogModels:GetChildren()) do
if v:FindFirstChild('Owner') and v.Owner.Value == game:GetService('Players').LocalPlayer then
local _, Size = v:GetBoundingBox()
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(v:GetModelCFrame().Position.X, v:GetModelCFrame().Position.Y - Size.Y / 2, v:GetModelCFrame().Position.Z))
v.PrimaryPart = v.WoodSection
for i = 1, 10 do
wait(.06)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v)
v:PivotTo(OldPos)
v.PrimaryPart.Velocity = Vector3.new(0,0,0)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v)
end
end
end
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = OldPos
end
})
TreeMisc:AddButton({
Name = 'Shrink All Trees',
Callback = function()
for i,v in pairs(workspace.LogModels:GetChildren()) do
if v:FindFirstChild('Owner') and v.Owner.Value == game:GetService('Players').LocalPlayer then
for i,v in pairs(v:GetChildren()) do
if v.Name == 'WoodSection' and v:FindFirstChild('Tree Weld') then
for i,v in pairs(v:GetChildren()) do
if v.Name == 'Tree Weld' then
v:Destroy()
end
end
end
end
end
end
end
})
TreesSawmillSection:AddButton({
Name = 'Sawmill All Trees',
Callback = function()
local OldPos = nil
for i,v in pairs(workspace.PlayerModels:GetChildren()) do
if v:FindFirstChild('Owner') and v.Owner.Value == game:GetService('Players').LocalPlayer and v:FindFirstChild('Conveyor') and v.Conveyor:FindFirstChild('ApplyVelocity') then
OldPos = v.Conveyor.Conveyor.CFrame + Vector3.new(0,2,0)
end
end
if not OldPos then
return Notify('You do not have a sawmill!')
end
for i,v in pairs(workspace.LogModels:GetChildren()) do
if v:FindFirstChild('Owner') and v.Owner.Value == game:GetService('Players').LocalPlayer then
local _, Size = v:GetBoundingBox()
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(v:GetModelCFrame().Position.X, v:GetModelCFrame().Position.Y - Size.Y / 2, v:GetModelCFrame().Position.Z))
v.PrimaryPart = v.WoodSection
for i = 1, 10 do
wait(.06)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v)
v:PivotTo(OldPos)
v.PrimaryPart.Velocity = Vector3.new(0,0,0)
game:GetService('ReplicatedStorage').Interaction.ClientIsDragging:FireServer(v)
end
end
end
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = OldPos
end
})
TreeMisc:AddButton({
Name = 'Dismember All Trees',
Callback = function()
local Axe = game:GetService('Players').LocalPlayer.Backpack:FindFirstChild('Tool')
if not Axe then
return Notify('No axe was found in your inventory.')
end
for i,v in pairs(workspace.LogModels:GetChildren()) do
if v:FindFirstChild('Owner') and v.Owner.Value == game:GetService('Players').LocalPlayer then
for i2,v2 in pairs(v:GetChildren()) do
if v2.Name == 'WoodSection' and v2:FindFirstChild('ID') and v2:FindFirstChild('Tree Weld') then
local AxeName = Axe.ToolName.Value
local Class = require(game:GetService('ReplicatedStorage').AxeClasses:FindFirstChild('AxeClass_'..AxeName)).new()
local Break = false
local Count = 0
local TreeLimbCount = 0
local Height = CFrame.new(v2.CFrame.X, v2.CFrame.Y - v2.Size.Y / 2, v2.CFrame.Z):pointToObjectSpace(v2.Position).Y + v2.Size.Y / 2 / 1.01
for i,v in pairs(v:GetChildren()) do
if v.Name == 'WoodSection' then
TreeLimbCount += 1
end
end
Axe.Parent = game:GetService('Players').LocalPlayer.Backpack
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = v2.CFrame
repeat
local LimbCount = 0
for i,v in pairs(v:GetChildren()) do
if v.Name == 'WoodSection' then
LimbCount += 1
end
end
if Count > 30 then
Break = true
end
if LimbCount ~= TreeLimbCount then
Break = true
end
Count += 1
wait(Class.SwingCooldown + .08)
game:GetService('ReplicatedStorage').Interaction.RemoteProxy:FireServer(v.CutEvent, {tool = Axe, faceVector = Vector3.new(1,0,0), height = Height, sectionId = v2.ID.Value, hitPoints = Class.Damage, cooldown = Class.SwingCooldown, cuttingClass = 'Axe'})
until Break or _G.DevBreak
end
end
end
end
end
})
--//Teleports Items\\--
TeleportsSection:AddDropdown({
Name = 'Teleport',
List = {'Volcano', 'Spawn', 'Wood R US', 'Link\'s Logic'},
Callback = function(Location)
if Location == 'Volcano' then
game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1593, 630, 1101)
elseif Location == 'Spawn' then