-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtesting-main.lua
8728 lines (7443 loc) · 219 KB
/
testing-main.lua
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
--[[
Cmd V1
GitHub: "https://github.com/lxte/cmd";
Main: "https://raw.githubusercontent.com/lxte/cmd/main/main.lua";
Testing: "https://raw.githubusercontent.com/lxte/cmd/main/testing-main.lua";
]]
if not game:IsLoaded() then
warn("Waiting for the game to load..")
game.Loaded:Wait();
end
local Settings = {
Prefix = ";",
Seperator = ",",
Player = "/",
Version = "1.1",
ScaleSize = 1,
Blur = false,
Themes = {
Primary = Color3.fromRGB(35, 35, 35);
Secondary = Color3.fromRGB(40, 40, 40);
Third = Color3.fromRGB(45, 45, 45);
Title = Color3.fromRGB(255, 255, 255);
Description = Color3.fromRGB(200, 200, 200);
Icon = Color3.fromRGB(255, 255, 255);
Shadow = Color3.fromRGB(0, 0, 0);
Outline = Color3.fromRGB(45, 45, 45);
Transparency = 0.05,
Mode = "Dark"
},
Binds = {},
}
local AutoLogger, OriginalSettings = {}, Settings
local Options = {
Notifications = true,
AntiInterfere = false,
Recommendation = true,
Popups = true,
Logging = false,
AutoSimRadius = false,
}
local Ref = cloneref or function(ref)
return ref
end
local Services = {
Players = Ref(game:GetService("Players"));
Lighting = Ref(game:GetService("Lighting"));
Replicated = Ref(game:GetService("ReplicatedStorage"));
Starter = Ref(game:GetService("StarterGui"));
Teams = Ref(game:GetService("Teams"));
Http = Ref(game:GetService("HttpService"));
Market = Ref(game:GetService("MarketplaceService"));
Tween = Ref(game:GetService("TweenService"));
Input = Ref(game:GetService("UserInputService"));
Sound = Ref(game:GetService("SoundService"));
Run = Ref(game:GetService("RunService"));
Chat = Ref(game:GetService("TextChatService"));
ContextActionService = Ref(game:GetService("ContextActionService"));
Teleport = Ref(game:GetService("TeleportService"));
AvatarEditor = Ref(game:GetService("AvatarEditorService"));
StarterPlayer = Ref(game:GetService("StarterPlayer"));
GuiService = Ref(game:GetService("GuiService"));
InsertService = Ref(game:GetService("InsertService"));
}
local Player = Services.Players.LocalPlayer;
local Local = {
Player = Player,
Character = Player.Character or Player.CharacterAdded:Wait(),
Mouse = Player:GetMouse(),
Backpack = Player.Backpack,
Camera = workspace.CurrentCamera,
};
newcclosure = newcclosure or function(func)
return coroutine.wrap(func)
end
setsimulationradius = setsimulationradius or function(Radius, MaxRadius)
pcall(function()
Local.Player.SimulationRadius = Radius
Local.Player.MaxSimulationDistance = MaxRadius
end)
end
local Checks = {
File = (isfile and isfolder and writefile and readfile);
Hook = (hookmetamethod or hookfunction);
};
local JSONEncode, JSONDecode = Services.Http.JSONEncode, Services.Http.JSONDecode
local Connect = game.Loaded.Connect
local PropertyChanged = game.GetPropertyChangedSignal
local LoadTime = tick();
local Genv = function()
return ((getgenv and getgenv()) or shared or _G);
end
if Genv and Genv().CmdLoaded then
Genv().CmdPath.Parent = nil
end
Connect(Player.CharacterAdded, function(Character)
Local.Character = Character;
Local.Backpack = Local.Player.Backpack;
end)
xpcall(function()
if Checks.File then
local Folders = { "Cmd", "Cmd/Data", "Cmd/Plugins", "Cmd/Logs" }
for Index, Check in next, Folders do
if not isfolder(Check) then
makefolder(Check);
end
end
end
end, function(Result)
warn(Result);
end)
-- UI [INSERT]
local Screen = nil
if Services.Run:IsStudio() then
Screen = Local.Player.PlayerGui:WaitForChild("Screen");
else
Screen = Services.InsertService:LoadLocalAsset("rbxassetid://17078695559");
end
local Cmd, Bar = Screen.Command, Screen.Command.Bar;
local Blurred, Lib, Example, Open, Autofill, Box, Recommend, Popup, ColorPopup, pressTab, Protection =
{},
Screen.Library,
Screen.Example,
Screen.Open,
Cmd.Autofill,
Bar.Box,
Bar.Recommend,
Screen.Popup,
Screen.ColorPopup,
Bar.Description,
{};
xpcall(function()
Screen.Parent = game:GetService("CoreGui");
end, function()
Screen.Parent = (Local.Player.PlayerGui);
end)
-- Cmd [FUNCTIONS]
local Lower = string.lower;
local Split = string.split;
local Sub = string.sub;
local GSub = string.gsub;
local Find = string.find;
local Match = string.match;
local Format = string.format;
local Unpack = table.unpack;
local Insert = table.insert;
local Spawn = task.spawn;
local Delay = task.delay;
local Wait = task.wait;
local Discover = table.find;
local Concat = table.concat;
local Blank = "";
Spoof = function(Instance, Property, Value)
local Hook;
if not Checks.Hook then
return;
end
Hook = hookmetamethod(game, "__index", newcclosure(function(self, Key)
if self == Instance and Key == Property then
return Value
end
return Hook(self, Key);
end));
end
SetNumber = function(Input, Minimum, Max)
Minimum = tonumber(Minimum) or -math.huge
Max = tonumber(Max) or math.huge
if Input then
local Numbered = tonumber(Input);
if Numbered and ((Numbered == (Minimum or Max) or (Numbered < Max) or (Numbered > Minimum))) then
return Numbered;
elseif Lower(Input) == "inf" then
return Max;
else
return 0;
end
else
return 0;
end
end
CheckIfNPC = function(Character)
if (Character and Character.ClassName == "Model") and (Character:FindFirstChildOfClass("Humanoid") and not Services.Players:GetPlayerFromCharacter(Character)) then
return true
end
end
Character = function(Player)
if not Player then return end
local Character = Player.Character
if Character then
return Character
end
end
GetRoot = function(Character)
if not Character then return end
local Root = Character:FindFirstChild("HumanoidRootPart")
if Character and Root then
return Root
end
end
GetHumanoid = function(Character)
if not Character then return end
local Humanoid = Character:FindFirstChildOfClass("Humanoid")
if Character and Humanoid then
return Humanoid
end
end
FindTable = function(Table, Input)
for Index, Value in next, Table do
if Value == Input then
return Value
end
end
end
Foreach = function(Table, Func, Loop)
for Index, Value in next, Table do
pcall(function()
if Loop and typeof(Value) == 'table' then
for Index2, Value2 in next, Value do
Func(Index2, Value2)
end
else
Func(Index, Value)
end
end)
end
end
GetTools = function(Player)
Player = Player or Local.Player
local Backpack = Player.Backpack
local Char = Character(Player)
local Tools = {}
Foreach({ Backpack:GetChildren(), Char:GetChildren() }, function(Index, Tool)
if Tool:IsA("Tool") then
Insert(Tools, Tool)
end
end, true)
return Tools
end
HighSimulationRadius = function()
Spawn(function()
repeat Wait(1)
setsimulationradius(100000 * 100000, 100000 * 100000)
until not Screen
end)
end
Randomize = function(Characters)
local Characters = (tonumber(Characters) or 10);
local String = Blank
for Index = 1, Characters do
String = String .. string.char(math.random(75, 90))
end
return String or "Failed"
end
R6Check = function(Player)
Player = Player or Local.Player
if Player then
if Player.Character:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
return true
end
end
end
StringToInstance = function(String)
local Path = Split(String, ".")
local Current = game
if Path[1] == "workspace" then
Current = workspace
end
table.remove(Path, 1)
for Index, Child in next, Path do
Current = Current[Child];
end
return Current
end
Minimum = function(Table, Minimum)
local New = {}
if Table then
for i,v in next, Table do
if i == Minimum or i > Minimum then
Insert(New, v);
end
end
end
return New
end
Chat = function(Message)
if Services.Chat:FindFirstChild("TextChannels") then
Services.Chat.TextChannels.RBXGeneral:SendAsync(Message);
else
Services.Replicated.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(Message, "All");
end
end
CreateInstance = function(Name, Properties, Children)
local Object = Instance.new(Name)
for i, Property in next, Properties or {} do
Object[i] = Property
end
for i, Children in next, Children or {} do
Children.Parent = Object
end
return Object
end
local Fly = nil;
Spawn(function()
if Local.Player.PlayerScripts.PlayerModule:FindFirstChild("ControlModule") then
local BodyGyro = Instance.new("BodyGyro")
BodyGyro.maxTorque = Vector3.new(1, 1, 1) * 10 ^ 6
BodyGyro.P = 10 ^ 6
local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.maxForce = Vector3.new(1, 1, 1) * 10 ^ 6
BodyVelocity.P = 10 ^ 4
local isFlying = false
local Movement = {forward = 0, backward = 0, right = 0, left = 0}
local function SetFlying(flying)
isFlying = flying
BodyGyro.Parent = isFlying and Local.Character.HumanoidRootPart or nil
BodyVelocity.Parent = isFlying and Local.Character.HumanoidRootPart or nil
BodyVelocity.Velocity = Vector3.new()
Local.Character:FindFirstChild("Animate").Disabled = isFlying
if (isFlying) then
BodyGyro.CFrame = Local.Character.HumanoidRootPart.CFrame
end
end
local FlySpeed = 3
local function ModifyMovement(newMovement)
Movement = newMovement or Movement
if (isFlying) then
local isMoving = Movement.right + Movement.left + Movement.forward + Movement.backward > 0
end
end
local function MovementBind(actionName, InputState, inputObject)
if (InputState == Enum.UserInputState.Begin) then
Movement[actionName] = 1
ModifyMovement()
elseif (InputState == Enum.UserInputState.End) then
Movement[actionName] = 0
ModifyMovement()
end
return Enum.ContextActionResult.Pass
end
Services.ContextActionService:BindAction("forward", MovementBind, false, Enum.PlayerActions.CharacterForward)
Services.ContextActionService:BindAction("backward", MovementBind, false, Enum.PlayerActions.CharacterBackward)
Services.ContextActionService:BindAction("left", MovementBind, false, Enum.PlayerActions.CharacterLeft)
Services.ContextActionService:BindAction("right", MovementBind, false, Enum.PlayerActions.CharacterRight)
if (not Local.Character.Humanoid or Local.Character.Humanoid:GetState() == Enum.HumanoidStateType.Dead) then
return
end
local TouchFrame = nil
if Local.Player.PlayerGui:FindFirstChild("TouchGui") then
TouchFrame = Local.Player.PlayerGui.TouchGui:FindFirstChild("TouchControlFrame")
end
local IsMovingThumbstick = false
local DeadZone = 0.15
local DeadZoneNormalized = 1 - DeadZone
local function isTouchOnThumbstick(Position)
if not TouchFrame then
return false
end
local ClassicFrame = TouchFrame:FindFirstChild("ThumbstickFrame")
local DynamicFrame = TouchFrame:FindFirstChild("DynamicThumbstickFrame")
local StickFrame = (ClassicFrame and ClassicFrame.Visible) and ClassicFrame or DynamicFrame
if (StickFrame) then
local StickPosition = StickFrame.AbsolutePosition
local StickSize = StickFrame.AbsoluteSize
return Position.X >= StickPosition.X and Position.X <= (StickPosition.X + StickSize.X) and
Position.Y >= StickPosition.Y and
Position.Y <= (StickPosition.Y + StickSize.Y)
end
return false
end
Services.Input.TouchStarted:Connect(function(touch, gameProcessedEvent)
isMovingThumbstick = isTouchOnThumbstick(touch.Position)
end)
Services.Input.TouchEnded:Connect(function(touch, gameProcessedEvent)
if not isMovingThumbstick then
return
end
isMovingThumbstick = false
ModifyMovement({forward = 0, backward = 0, right = 0, left = 0})
end)
Services.Input.TouchMoved:Connect(function(touch, gameProcessedEvent)
if not isMovingThumbstick then
return
end
local MouseVector = Local.Player.Character.Humanoid.MoveDirection
local LeftRight = MouseVector.X
local ForeBack = MouseVector.Z
Movement.left = LeftRight < -DeadZone and -(LeftRight - DeadZone) / DeadZoneNormalized or 0
Movement.right = LeftRight > DeadZone and (LeftRight - DeadZone) / DeadZoneNormalized or 0
Movement.forward = ForeBack < -DeadZone and -(ForeBack - DeadZone) / DeadZoneNormalized or 0
Movement.backward = ForeBack > DeadZone and (ForeBack - DeadZone) / DeadZoneNormalized or 0
ModifyMovement()
end)
local function onUpdate(dt)
if (isFlying) then
local cf = workspace.CurrentCamera.CFrame
local direction =
cf.rightVector * (Movement.right - Movement.left) +
cf.lookVector * (Movement.forward - Movement.backward)
if (direction:Dot(direction) > 0) then
direction = direction.unit
end
BodyGyro.CFrame = cf
BodyVelocity.Velocity = direction * Local.Character.Humanoid.WalkSpeed * FlySpeed
end
end
function Fly(Boolean, SpeedValue)
FlySpeed = SpeedValue or 1
SetFlying(Boolean)
Services.Run.RenderStepped:Connect(onUpdate)
end
end
end)
local PlayerArgs = {
["all"] = function()
return Services.Players:GetPlayers()
end,
["others"] = function()
local Targets = {}
Foreach(Services.Players:GetPlayers(), function(Index, Player)
if Player ~= Local.Player then
Insert(Targets, Player)
end
end)
return Targets
end,
["me"] = function()
return { Local.Player }
end,
["random"] = function()
local Amount = Services.Players:GetPlayers()
return { Amount[math.random(1, #Amount)] }
end,
["npc"] = function()
local Targets = {}
Foreach(workspace:GetDescendants(), function(Index, Model)
if CheckIfNPC(Model) then
Insert(Targets, Model)
end
end)
return Targets
end,
["seated"] = function()
local Targets = {}
Foreach(Services.Players:GetPlayers(), function(Index, Player)
if GetHumanoid(Player.Character).Sit then
Insert(Targets, Player)
end
end)
return Targets
end,
["stood"] = function()
local Targets = {}
Foreach(Services.Players:GetPlayers(), function(Index, Player)
if not GetHumanoid(Player.Character).Sit then
Insert(Targets, Player)
end
end)
return Targets
end,
["closest"] = function()
local Targets = {}
local ClosestDistance, ClosestPlayer = 9e9, nil
Foreach(Services.Players:GetPlayers(), function(Index, Player)
local Distance = Player:DistanceFromCharacter(GetRoot(Local.Character).Position)
if Player ~= Local.Player and Distance < ClosestDistance then
ClosestDistance = Distance
ClosestPlayer = Player
end
end)
return { ClosestPlayer }
end,
["farthest"] = function()
local Targets = {}
local FurthestDistance, FurthestPlayer = 0, nil
Foreach(Services.Players:GetPlayers(), function(Index, Player)
local Distance = Player:DistanceFromCharacter(GetRoot(Local.Character).Position)
if Player ~= Local.Player and Distance > FurthestDistance then
FurthestDistance = Distance
FurthestPlayer = Player
end
end)
return { FurthestPlayer }
end,
["enemies"] = function()
local Targets = {}
Foreach(Services.Players:GetPlayers(), function(Index, Player)
if Player.Team ~= Local.Player.Team then
Insert(Targets, Player)
end
end)
return Targets
end,
["dead"] = function()
local Targets = {}
Foreach(Services.Players:GetPlayers(), function(Index, Player)
if GetHumanoid(Player.Character).Health == 0 then
Insert(Targets, Player)
end
end)
return Targets
end,
["alive"] = function()
local Targets = {}
Foreach(Services.Players:GetPlayers(), function(Index, Player)
if GetHumanoid(Player.Character).Health > 0 then
Insert(Targets, Player)
end
end)
return Targets
end,
["friends"] = function()
local Targets = {}
Foreach(Services.Players:GetPlayers(), function(Index, Player)
if Player:IsFriendsWith(Local.Player.UserId) and Local.Player ~= Player then
Insert(Targets, Player)
end
end)
return Targets
end,
["nonfriends"] = function()
local Targets = {}
Foreach(Services.Players:GetPlayers(), function(Index, Player)
if not Player:IsFriendsWith(Local.Player.UserId) and Local.Player ~= Player then
Insert(Targets, Player)
end
end)
return Targets
end,
}
function GetPlayer(Target)
local Target = Lower(Target);
local Check = PlayerArgs[Target];
if Check then
return Check()
else
local Specific = {}
Foreach(Services.Players:GetPlayers(), function(Index, Player)
local Name, Display = Lower(Player.Name), Lower(Player.DisplayName)
if Sub(Name, 1, #Target) == Target then
Insert(Specific, Player)
elseif Sub(Display, 1, #Target) == Target then
Insert(Specific, Player)
end
end)
return Specific
end
end
function RGB(Color, Factor, Mode)
Mode = Mode or Settings.Themes.Mode
if Mode == "Light" then
return Color3.fromRGB((Color.R * 255) - Factor, (Color.G * 255) - Factor, (Color.B * 255) - Factor)
else
return Color3.fromRGB((Color.R * 255) + Factor, (Color.G * 255) + Factor, (Color.B * 255) + Factor)
end
end
function StringToRGB(Item)
local Color = nil
if typeof(Item) == "string" then
Color = Color3.new(Unpack(Split(Item, ",")))
elseif typeof(Item) == "table" then
Color = Color3.new(Unpack(Item))
end
return Color3.fromRGB(Color.R * 255, Color.G * 255, Color.B * 255)
end
function DivideUDim2(Value, Amount)
local New = {
Value.X.Scale / Amount;
Value.X.Offset / Amount;
Value.Y.Scale / Amount;
Value.Y.Offset / Amount;
}
return UDim2.new(Unpack(New))
end
function MultiplyUDim2(Value, Amount)
local New = {
Value.X.Scale * Amount;
Value.X.Offset * Amount;
Value.Scale * Amount;
Value.Y.Offset * Amount;
}
return UDim2.new(Unpack(New))
end
local Tween = function(Object, Info, Table)
xpcall(function()
Services.Tween:Create(Object, Info, Table):Play()
end, function(Result)
warn(Format("error tweening %s\n%s", Object.Name, Result))
end)
end
Foreach({ Cmd:GetChildren(), Screen:GetChildren() }, function(Index, Canva)
if Canva:IsA("CanvasGroup") then
Canva.Visible = false;
end
end, true)
-- Admin [LIBRARY]
Command = {}
Commands = {}
Admins = {}
FullArgs = {}
Command.Count = 0
Command.Toggles = {}
local Env = function()
return Command.Toggles
end
SetEnv = function(Name, Bool)
Env()[Name] = false
Wait();
Env()[Name] = Bool
end
-- Command [FUNCTIONS]
Methods = {}
Methods.RemoveRightGrip = function(Tool)
Tool.Parent = Local.Character
Tool.Parent = Local.Backpack
Tool.Parent = Local.Character.Humanoid
Tool.Parent = Local.Character
end
Methods.Check = function()
if Services.Replicated:FindFirstChild("DeleteCar") then
return true
elseif Local.Character:FindFirstChild("HandlessSegway") then
return true
elseif Local.Backpack:FindFirstChild("Building Tools") then
return true
else
for i, Descendant in next, game:GetDescendants() do
if Descendant.Name == "DestroySegway" then
return true
end
end
end
end
Methods.Destroy = function(Part)
if Services.Replicated:FindFirstChild("DeleteCar") then
Services.Replicated.DeleteCar:FireServer(Part);
elseif Local.Character:FindFirstChild("HandlessSegway") then
for i, Descendant in next, game:GetDescendants() do
if Descendant.Name == "DestroySegway" then
Descendant:FireServer(Part, {Value = Part});
end
end
elseif Services.Replicated:FindFirstChild("GuiHandler") then
Services.Replicated.GuiHandler:FireServer(false, Part);
elseif Local.Player.Backpack:FindFirstChild("Building Tools") then
local ArgumentTable = { [1] = "Remove", [2] = { [1] = Part } };
Local.Player.Backpack:FindFirstChild("Building Tools").SyncAPI.ServerEndpoint:InvokeServer(Unpack(ArgumentTable));
end
end
local Modules = {
Freecam = nil,
Glass = nil,
Bhop = nil,
ColorPicker = nil,
}
-- Command [MODULES]
Spawn(function()
Modules.Freecam = loadstring(game:HttpGet("https://raw.githubusercontent.com/lxte/cmd/main/assets/freecam"))();
Modules.ColorPicker = loadstring(game:HttpGet("https://raw.githubusercontent.com/lxte/cmd/main/assets/colorpicker"))();
Modules.Bhop = loadstring(game:HttpGet("https://raw.githubusercontent.com/lxte/cmd/main/assets/bhop"))();
Modules.Blur = loadstring(game:HttpGet("https://raw.githubusercontent.com/lxte/cmd/main/assets/blur"))();
end)
local PromptChangeRigType = function(RigType)
Services.AvatarEditor:PromptSaveAvatar(GetHumanoid(Local.Character).HumanoidDescription,Enum.HumanoidRigType[RigType])
Services.AvatarEditor.PromptSaveAvatarCompleted:Wait()
Command.Parse("respawn")
end
local Walkfling = function(Power, Distance, Bool)
Distance = tonumber(Distance) or 5
SetEnv("WalkFling", Bool);
Spawn(function()
local HumanoidRootPart, Character, Velocity, Movel = GetRoot(Local.Character), Local.Character, nil, 0.1
repeat
Wait()
if Env().WalkFling then
while Env().WalkFling and
not (Character and Character.Parent and HumanoidRootPart and HumanoidRootPart.Parent) do
Services.Run.Heartbeat:Wait()
local HumanoidRootPart, Character = GetRoot(Local.Character), Local.Character
end
if Env().WalkFling then
if Unpack(GetPlayer("closest")):DistanceFromCharacter(GetRoot(Local.Character).Position) <= Distance then
Velocity = HumanoidRootPart.Velocity
HumanoidRootPart.Velocity = Velocity * tonumber(Power) + Vector3.new(0, tonumber(Power), 0)
Services.Run.RenderStepped:Wait()
if Character and Character.Parent and HumanoidRootPart and HumanoidRootPart.Parent then
HumanoidRootPart.Velocity = Velocity
end
Services.Run.Stepped:Wait()
if Character and Character.Parent and HumanoidRootPart and HumanoidRootPart.Parent then
HumanoidRootPart.Velocity = Velocity + Vector3.new(0, Movel, 0)
Movel = Movel * -1
end
end
end
end
until not Env().WalkFling
end)
end
local Fling = function(Target)
local LocalRoot = GetRoot(Local.Character);
local LocalHumanoid = GetHumanoid(Local.Character);
local Old = LocalRoot.CFrame;
pcall(function()
Walkfling(10000, 100, true)
local Timer = tick()
repeat Wait()
local Root = GetRoot(Target.Character);
local Humanoid = GetHumanoid(Target.Character);
local Position = Root.CFrame
local Info = TweenInfo.new(0.12)
Local.Camera.CameraSubject = Humanoid
LocalHumanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
Tween(LocalRoot, Info, { CFrame = (Root.CFrame + (Root.Velocity * math.random(1, 2.5))) })
Wait(0.12)
Tween(LocalRoot, Info, { CFrame = Position * CFrame.new(0, 1, math.random(-2, 2))})
Wait(0.12)
until (tick() - Timer > 3) or not Root or Root.Velocity.Magnitude > 200 or not LocalRoot or LocalHumanoid.Health == 0 or Humanoid.Sit
Wait(0.2)
workspace.CurrentCamera.CameraSubject = GetHumanoid(Local.Character)
LocalRoot.CFrame = Old
Walkfling(10000, 1000, false)
end)
end
-- UI [LIBRARY]
local Utils = {}
local Tweens = {}
local Tab = {}
local Library = {}
local Autofills = {}
local Utils = {}
Tweens.Info = {}
Autofills.Args = {
["String"] = {
Name = "String",
Background = Color3.fromRGB(121, 255, 111),
Outline = Color3.fromRGB(135, 255, 116),
Icon = "http://www.roblox.com/asset/?id=6034934040"
},
["Player"] = {
Name = "Player",
Background = Color3.fromRGB(255, 107, 107),
Outline = Color3.fromRGB(255, 116, 116),
Icon = "http://www.roblox.com/asset/?id=6034287594"
},
["Number"] = {
Name = "Number",
Background = Color3.fromRGB(102, 171, 255),
Outline = Color3.fromRGB(112, 145, 255),
Icon = "rbxassetid://16798074797"
},
["Bool"] = {
Name = "Bool",
Background = Color3.fromRGB(252, 255, 98),
Outline = Color3.fromRGB(255, 250, 103),
Icon = "rbxassetid://7743869317"
}
}
Tweens.AddInfo = function(Element)
if Element and Element:IsA("CanvasGroup") then
local Shadow = Element:FindFirstChildOfClass("UIStroke");
local Name = Element.Name;
if not Tweens.Info[Name] then
Tweens.Info[Name] = {
Size = Element.Size,
Transparency = Element.GroupTransparency,
Shadow = nil,
}
if Shadow then
Tweens.Info[Name].Shadow = Shadow.Transparency
end
end
return Tweens.Info[Name]
end
end
Tweens.Open = function(List)
local Canvas = List.Canvas
local Speed = List.Speed
local Position = List.Position or UDim2.new(0.5, 0, 0.5, 0)
local Name = Canvas.Name
local Info = Tweens.AddInfo(Canvas)
local Shadow = Canvas:FindFirstChildOfClass("UIStroke")
local Size = Info.Size
local Transparency = Settings.Themes.Transparency
local Outline = Info.Shadow
local New = DivideUDim2(Size, 1.1)
local Info = TweenInfo.new(Speed, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
Canvas.Size = New
Canvas.Position = Position
Canvas.GroupTransparency = 1
Canvas.Visible = true
Tween(Canvas, Info, { Size = Size })
Tween(Canvas, Info, { GroupTransparency = Transparency })
if Shadow then
Tween(Shadow, Info, { Transparency = Outline })
end
Delay(Speed, function()
Canvas.GroupTransparency = Transparency
end)
end
Tweens.Close = function(List)
local Canvas = List.Canvas
local Speed = List.Speed
local Name = Canvas.Name
local Info = Tweens.AddInfo(Canvas)
local Shadow = Canvas:FindFirstChildOfClass("UIStroke")
local Size = Info.Size
local Transparency = Settings.Themes.Transparency
local New = DivideUDim2(Size, 1.1)
local Info = TweenInfo.new(Speed, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)