-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.lua
More file actions
846 lines (846 loc) · 22.4 KB
/
Copy pathscript.lua
File metadata and controls
846 lines (846 loc) · 22.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
local Rayfield = (loadstring(game:HttpGet("https://sirius.menu/rayfield")))();
local UserInputService = game:GetService("UserInputService");
local Players = game:GetService("Players");
local RunService = game:GetService("RunService");
local Lighting = game:GetService("Lighting");
local workspace = game:GetService("Workspace");
local localPlayer = Players.LocalPlayer;
local workspaceDescendants = workspace:GetDescendants();
local highlightMode;
local currentEntity;
local renderConnection;
local aimbotTargetBodyPart = "Head";
local aimbotFallbackPart = "HumanoidRootPart";
local nightVisionOn = false;
local espOn = false;
local noclipEnabled = false;
local aimbotEnabled = false;
local addedESPModels = {};
local onlyWhenAlive = true;
local highlightEnabled = true;
local warnNPCLabels = {};
local frameCounter = 0;
local frameCount = 20;
local priorityRadius = 90;
local showAimbotCircle = true;
local fovAngleDegrees = 90;
local circleColor = Color3.fromRGB(255, 0, 0);
local circleThickness = 2;
local circleTransparency = 1;
local circle = Drawing.new("Circle");
circle.Color = circleColor;
circle.Thickness = circleThickness;
circle.Transparency = circleTransparency;
circle.Visible = showAimbotCircle;
circle.Filled = false;
local itemDefinitions = {};
local entityDefinitions = {
Model_Unicorn = {
name = "Unicorn",
highlight = "highlight",
tags = {}
},
Model_Banker = {
name = "Banker",
highlight = "highlight",
tags = { "aimbot", "enemy" }
},
Model_Werewolf = {
name = "Werewolf",
highlight = "warn",
tags = { "aimbot", "enemy" }
},
Model_RevolverOutlaw = {
name = "Outlaw (Revolver)",
highlight = "warn",
tags = { "aimbot", "enemy" }
},
Model_RifleOutlaw = {
name = "Outlaw (Rifle)",
highlight = "warn",
tags = { "aimbot", "enemy" }
},
Model_ShotgunOutlaw = {
name = "Outlaw (Shotgun)",
highlight = "warn",
tags = { "aimbot", "enemy" }
},
Model_ZombieMiner = {
name = "Bomber Zombie",
highlight = "warn",
tags = { "aimbot", "enemy", "kill-first" }
},
Model_ZombieSheriff = {
name = "Sheriff Zombie",
highlight = "warn",
tags = { "aimbot", "enemy", "kill-first" }
},
Model_Vampire = {
name = "Vampire",
highlight = "warn",
tags = { "aimbot", "enemy" }
},
Model_Runner = {
name = "Zombie (Fast)",
highlight = "ignore",
tags = { "aimbot", "enemy" }
},
Model_Walker = {
name = "Zombie (Slow)",
highlight = "ignore",
tags = { "aimbot", "enemy" }
},
Model_Horse = {
name = "Horse",
highlight = "ignore",
tags = {}
},
Model_Wolf = {
name = "Wolf",
highlight = "ignore",
tags = {}
},
Model_RifleSoldier = {
name = "Ground Soldier",
highlight = "none",
tags = {}
},
Model_TurretSoldier = {
name = "Turret Soldier",
highlight = "none",
tags = {}
},
Shopkeeper = {
name = "Shopkeeper",
highlight = "none",
tags = {}
},
Model_ArmoredZombie = {
name = "Zombie (Armor)",
highlight = "none",
tags = { "aimbot", "enemy" }
},
Model_ZombieRevolverSoldier = {
name = "Zombie (Revolver)",
highlight = "",
tags = { "aimbot", "enemy" }
},
Model_ZombieRifleSoldier = {
name = "Zombie (Rifle)",
highlight = "",
tags = { "aimbot", "enemy" }
},
Model_ZombieShotgunSoldier = {
name = "Zombie (Shotgun)",
highlight = "",
tags = { "aimbot", "enemy" }
}
};
local defaultEntityHighlightModes = {
Model_Unicorn = "highlight",
Model_Banker = "highlight",
Model_Werewolf = "warn",
Model_RevolverOutlaw = "warn",
Model_RifleOutlaw = "warn",
Model_ShotgunOutlaw = "warn",
Model_ZombieMiner = "warn",
Model_ZombieSheriff = "warn",
Model_Vampire = "warn",
Model_Runner = "ignore",
Model_Walker = "ignore",
Model_Horse = "ignore",
Model_Wolf = "ignore",
Model_RifleSoldier = "none",
Model_TurretSoldier = "none",
Shopkeeper = "none",
Model_ZombieRevolverSoldier = "",
Model_ZombieRifleSoldier = "",
Model_ZombieShotgunSoldier = "",
Model_ArmoredZombie = ""
};
local entityNames = {
Model_Unicorn = "Unicorn",
Model_Werewolf = "Werewolf",
Model_Runner = "Zombie (Fast)",
Model_Walker = "Zombie (Slow)",
Model_Horse = "Horse",
Model_RifleSoldier = "Ground Soldier",
Model_TurretSoldier = "Turret Soldier",
Shopkeeper = "Shopkeeper",
Model_Wolf = "Wolf",
Model_RevolverOutlaw = "Outlaw (Revolver)",
Model_RifleOutlaw = "Outlaw (Rifle)",
Model_ShotgunOutlaw = "Outlaw (Shotgun)",
Model_Banker = "Banker",
Model_ZombieMiner = "Bomber Zombie",
Model_ZombieSheriff = "Sheriff Zombie",
Model_ArmoredZombie = "Zombie (Armor)",
Model_Vampire = "Vampire",
Model_ZombieRevolverSoldier = "Zombie (Revolver)",
Model_ZombieRifleSoldier = "Zombie (Rifle)",
Model_ZombieShotgunSoldier = "Zombie (Shotgun)"
};
local entityTags = {
Model_Unicorn = {},
Model_Werewolf = {
"aimbot",
"enemy"
},
Model_Runner = {
"aimbot",
"enemy"
},
Model_Walker = {
"aimbot",
"enemy"
},
Model_Horse = {},
Model_RifleSoldier = {},
Model_TurretSoldier = {},
Shopkeeper = {},
Model_Wolf = {},
Model_RevolverOutlaw = {
"aimbot",
"enemy"
},
Model_RifleOutlaw = {
"aimbot",
"enemy"
},
Model_ShotgunOutlaw = {
"aimbot",
"enemy"
},
Model_Banker = {
"aimbot",
"enemy"
},
Model_ZombieMiner = {
"aimbot",
"enemy",
"kill-first"
},
Model_ZombieSheriff = {
"aimbot",
"enemy",
"kill-first"
},
Model_ArmoredZombie = {
"aimbot",
"enemy"
},
Model_Vampire = {
"aimbot",
"enemy"
},
Model_ZombieRevolverSoldier = {
"aimbot",
"enemy"
},
Model_ZombieRifleSoldier = {
"aimbot",
"enemy"
},
Model_ZombieShotgunSoldier = {
"aimbot",
"enemy"
}
};
local playerChosenEntityHighlightModes = table.clone(defaultEntityHighlightModes);
local entityHighlightModes = table.clone(playerChosenEntityHighlightModes);
local readableHighlightModes = {};
for internalName, mode in pairs(defaultEntityHighlightModes) do
local readableName = entityNames[internalName] or internalName;
readableHighlightModes[readableName] = mode;
end;
local readableToInternal = {};
for internalName, mode in pairs(playerChosenEntityHighlightModes) do
local readableName = entityNames[internalName] or internalName;
readableToInternal[readableName] = internalName;
end;
local rayfieldConfig = {
Name = "Dead Rails Script",
Icon = 0,
LoadingTitle = "Dead Rails Script",
LoadingSubtitle = "by Zzza38",
Theme = "Default",
DisableRayfieldPrompts = false,
DisableBuildWarnings = false,
ConfigurationSaving = {
Enabled = true,
FolderName = nil,
FileName = "dead-rails"
},
Discord = {
Enabled = false,
Invite = "noinvitelink",
RememberJoins = true
},
KeySystem = false,
KeySettings = {
Title = "Untitled",
Subtitle = "Key System",
Note = "No method of obtaining the key is provided",
FileName = "Key",
SaveKey = true,
GrabKeyFromSite = false,
Key = {
"Hello"
}
}
};
local Window = Rayfield:CreateWindow(rayfieldConfig);
local function keys(tbl)
local result = {};
for k, _ in pairs(tbl) do
table.insert(result, k);
end;
return result;
end;
local function capitalizeFirst(str)
return (str:sub(1, 1)):upper() .. (str:sub(2)):lower();
end;
local function enableLighting()
Lighting.Ambient = Color3.new(1, 1, 1);
Lighting.Brightness = 5;
Lighting.OutdoorAmbient = Color3.new(1, 1, 1);
Lighting.ClockTime = 12;
end;
local function resetLighting()
Lighting.Ambient = Color3.new(0, 0, 0);
Lighting.Brightness = 2;
Lighting.OutdoorAmbient = Color3.new(0, 0, 0);
end;
local function addEntityESP(model)
if model:FindFirstChild("Humanoid") and (not model:FindFirstChild("ESP_Added")) then
if Players:GetPlayerFromCharacter(model) then
return;
end;
local mode = entityHighlightModes[model.Name];
local name = entityNames[model.Name] or model.Name;
local color = Color3.new(1, 0, 0);
if mode == "none" then
return;
end;
if mode == "highlight" then
color = Color3.fromRGB(0, 255, 0);
elseif mode == "warn" then
color = Color3.fromRGB(255, 255, 0);
end;
for _, part in pairs(model:GetDescendants()) do
if part:IsA("BasePart") then
local box = Instance.new("BoxHandleAdornment");
box.Size = part.Size;
box.Adornee = part;
box.AlwaysOnTop = true;
box.ZIndex = 10;
box.Transparency = 0.5;
box.Color3 = color;
box.Name = "ESPBox";
box.Parent = part;
end;
end;
local head = model:FindFirstChild("Head");
if head and mode ~= "ignore" then
local billboard = Instance.new("BillboardGui");
billboard.Name = "NameESP";
billboard.Size = UDim2.new(0, 150, 0, 40);
billboard.StudsOffset = Vector3.new(0, 2, 0);
billboard.AlwaysOnTop = true;
billboard.Adornee = head;
billboard.Parent = head;
local nameLabel = Instance.new("TextLabel");
nameLabel.Size = UDim2.new(1, 0, 1, 0);
nameLabel.BackgroundTransparency = 1;
nameLabel.TextColor3 = Color3.new(1, 1, 1);
nameLabel.TextStrokeColor3 = Color3.new(0, 0, 0);
nameLabel.TextStrokeTransparency = 0.5;
nameLabel.TextScaled = true;
nameLabel.Font = Enum.Font.SourceSansBold;
nameLabel.Text = name;
if mode == "warn" then
warnNPCLabels[model] = nameLabel;
end;
nameLabel.Parent = billboard;
end;
local tag = Instance.new("BoolValue");
tag.Name = "ESP_Added";
tag.Parent = model;
table.insert(addedESPModels, model);
end;
end;
local function addItemESP(model)
if not model:FindFirstChild("ESP_Added") then
-- need to replace with itemDefinitions
local mode = itemHighlightModes[model.Name];
local name = itemNames[model.Name] or model.Name;
local color = Color3.new(1, 0, 0);
if mode == "none" then
return;
end;
if mode == "highlight" then
color = Color3.fromRGB(0, 255, 0);
elseif mode == "warn" then
color = Color3.fromRGB(255, 255, 0);
end;
for _, part in pairs(model:GetDescendants()) do
if part:IsA("BasePart") then
local box = Instance.new("BoxHandleAdornment");
box.Size = part.Size;
box.Adornee = part;
box.AlwaysOnTop = true;
box.ZIndex = 10;
box.Transparency = 0.5;
box.Color3 = color;
box.Name = "ESPBox";
box.Parent = part;
end;
end;
local head = model:FindFirstChild("Head");
if head and mode ~= "ignore" then
local billboard = Instance.new("BillboardGui");
billboard.Name = "NameESP";
billboard.Size = UDim2.new(0, 150, 0, 40);
billboard.StudsOffset = Vector3.new(0, 2, 0);
billboard.AlwaysOnTop = true;
billboard.Adornee = head;
billboard.Parent = head;
local nameLabel = Instance.new("TextLabel");
nameLabel.Size = UDim2.new(1, 0, 1, 0);
nameLabel.BackgroundTransparency = 1;
nameLabel.TextColor3 = Color3.new(1, 1, 1);
nameLabel.TextStrokeColor3 = Color3.new(0, 0, 0);
nameLabel.TextStrokeTransparency = 0.5;
nameLabel.TextScaled = true;
nameLabel.Font = Enum.Font.SourceSansBold;
nameLabel.Text = name;
if mode == "warn" then
warnNPCLabels[model] = nameLabel;
end;
nameLabel.Parent = billboard;
end;
local tag = Instance.new("BoolValue");
tag.Name = "ESP_Added";
tag.Parent = model;
table.insert(addedESPModels, model);
end;
end;
local function clearESP()
for _, model in pairs(addedESPModels) do
if model and model:IsDescendantOf(workspace) then
for _, part in pairs(model:GetDescendants()) do
if part:IsA("BasePart") then
local box = part:FindFirstChild("ESPBox");
if box then
box:Destroy();
end;
end;
if part:IsA("BillboardGui") and part.Name == "NameESP" then
part:Destroy();
end;
end;
local tag = model:FindFirstChild("ESP_Added");
if tag then
tag:Destroy();
end;
end;
end;
for model, nameLabel in pairs(warnNPCLabels) do
if nameLabel and nameLabel.Parent then
nameLabel:Destroy();
end;
end;
warnNPCLabels = {};
addedESPModels = {};
end;
renderConnection = RunService.RenderStepped:Connect(function()
if espOn then
frameCounter = frameCounter + 1;
if frameCounter % frameCount == 0 then
workspaceDescendants = workspace:GetDescendants();
for _, model in pairs(workspaceDescendants) do
if model:IsA("Model") and model:FindFirstChild("Humanoid") then
local humanoid = model.Humanoid;
local tagged = model:FindFirstChild("ESP_Added");
if not tagged and humanoid.Health > 0 then
addEntityESP(model);
elseif onlyWhenAlive and tagged and humanoid.Health <= 0 then
for _, part in pairs(model:GetDescendants()) do
if part:IsA("BasePart") then
local box = part:FindFirstChild("ESPBox");
if box then
box:Destroy();
end;
end;
if part:IsA("BillboardGui") and part.Name == "NameESP" then
part:Destroy();
end;
end;
end;
end;
end;
for model, label in pairs(warnNPCLabels) do
if model:IsDescendantOf(workspace) and localPlayer and localPlayer.Character then
local distance = 0;
local name = entityNames[model.Name] or model.Name;
if localPlayer and localPlayer.Character and localPlayer.Character:FindFirstChild("HumanoidRootPart") and model:FindFirstChild("HumanoidRootPart") then
distance = math.floor((localPlayer.Character.HumanoidRootPart.Position - model.HumanoidRootPart.Position).Magnitude);
end;
label.Text = ("⚠️ " or "") .. name .. " - " .. distance .. " meters";
end;
end;
end;
end;
if aimbotEnabled then
local camera = workspace.CurrentCamera;
local character = localPlayer.Character;
if character and character:FindFirstChild("HumanoidRootPart") then
local rootPos = character.HumanoidRootPart.Position;
local screenCenter = Vector2.new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2);
local fovRadius = math.tan(math.rad(fovAngleDegrees / 2)) * camera.ViewportSize.X;
local closestNormal, closestPriority = nil, nil;
local closestNormalDist, closestPriorityDist = math.huge, math.huge;
for _, model in pairs(workspaceDescendants) do
if model:IsA("Model") and model:FindFirstChild("HumanoidRootPart") and model:FindFirstChild("Humanoid") then
if not Players:GetPlayerFromCharacter(model) then
local targetPartName = aimbotTargetBodyPart or aimbotFallbackPart;
local targetPart = model:FindFirstChild(targetPartName) or model:FindFirstChild(aimbotFallbackPart);
local tags = entityTags[model.Name];
if targetPart and tags and table.find(tags, "aimbot") and model.Humanoid.Health > 0 then
local dist = (targetPart.Position - rootPos).Magnitude;
local screenPos, onScreen = camera:WorldToViewportPoint(targetPart.Position);
if not onScreen then
continue;
end;
local screenDist = (Vector2.new(screenPos.X, screenPos.Y) - screenCenter).Magnitude;
if screenDist > fovRadius then
continue;
end;
if table.find(tags, "kill-first") and dist <= priorityRadius then
if dist < closestPriorityDist then
closestPriority = targetPart;
closestPriorityDist = dist;
end;
elseif dist < closestNormalDist then
closestNormal = targetPart;
closestNormalDist = dist;
end;
end;
end;
end;
end;
local target = closestPriority or closestNormal;
if target then
local camPos = camera.CFrame.Position;
local targetDir = (target.Position - camPos).Unit;
local newLook = camPos + targetDir;
local smoothedLook = camPos:Lerp(newLook, 0.2);
camera.CFrame = CFrame.new(camPos, smoothedLook);
end;
circle.Visible = showAimbotCircle;
circle.Position = screenCenter;
circle.Radius = fovRadius;
end;
else
circle.Visible = false;
end;
if noclipEnabled then
local char = game.Players.LocalPlayer.Character;
if char then
for _, part in pairs(char:GetDescendants()) do
if part:IsA("BasePart") then
part.CanCollide = false;
end;
end;
end;
end;
if nightVisionOn then
enableLighting();
else
resetLighting();
end;
end);
local generalTab = Window:CreateTab("General Settings", 140020355535548);
local espTab = Window:CreateTab("ESP", 122410053148023);
local aimbotTab = Window:CreateTab("Aimbot", 90837964489774);
local keybindsTab = Window:CreateTab("Keybinds", 97114020880902);
local uiElements = {
general = {},
esp = {},
aimbot = {},
keybinds = {}
};
uiElements.general.espToggle = generalTab:CreateToggle({
Name = "ESP",
CurrentValue = espOn,
Flag = "espToggle",
Callback = function(Value)
espOn = Value;
if not Value then
clearESP();
end;
end
});
uiElements.general.nightVisionToggle = generalTab:CreateToggle({
Name = "Night Vision",
CurrentValue = nightVisionOn,
Flag = "nightVisionToggle",
Callback = function(Value)
nightVisionOn = Value;
if Value then
enableLighting();
else
resetLighting();
end;
end
});
uiElements.general.noclipToggle = generalTab:CreateToggle({
Name = "Noclip",
CurrentValue = noclipEnabled,
Flag = "noclip",
Callback = function(Value)
noclipEnabled = Value;
end
});
uiElements.general.aimbotToggle = generalTab:CreateToggle({
Name = "Aimbot",
CurrentValue = aimbotEnabled,
Flag = "aimbotToggle",
Callback = function(Value)
aimbotEnabled = Value;
end
});
generalTab:CreateButton({
Name = "Disable All",
Callback = function()
uiElements.general.espToggle:Set(false);
uiElements.general.nightVisionToggle:Set(false);
uiElements.general.noclipToggle:Set(false);
uiElements.general.aimbotToggle:Set(false);
end
});
generalTab:CreateButton({
Name = "Unload Script",
Callback = function()
if renderConnection then
renderConnection:Disconnect();
renderConnection = nil;
end;
clearESP();
circle.Visible = false;
Rayfield:Destroy();
end
});
generalTab:CreateButton({
Name = "Reload Script",
Callback = function()
if renderConnection then
renderConnection:Disconnect();
renderConnection = nil;
end;
clearESP();
circle.Visible = false;
(loadstring(game:HttpGet("https://github.com/Zzza38/Dead-Rails-Script/raw/refs/heads/main/src/script.lua")))();
Rayfield:Destroy();
end
});
uiElements.esp.onlyWhenAliveToggle = espTab:CreateToggle({
Name = "Only Show Alive Entities",
CurrentValue = onlyWhenAlive,
Flag = "onlyWhenAlive",
Callback = function(Value)
onlyWhenAlive = Value;
end
});
uiElements.esp.customEntityHighlightToggle = espTab:CreateToggle({
Name = "Custom Highlight Entities",
CurrentValue = highlightEnabled,
Flag = "entityHighlight",
Callback = function(Value)
highlightEnabled = Value;
if Value then
importantNPCs = table.clone(playerChosenEntityHighlightModes);
else
importantNPCs = {};
end;
end
});
uiElements.esp.espUpdateSpeed = espTab:CreateSlider({
Name = "ESP Update Speed",
Range = {
1,
100
},
Increment = 1,
Suffix = "frames",
CurrentValue = frameCount,
Flag = "espSpeed",
Callback = function(Value)
frameCount = Value;
end
});
espTab:CreateParagraph({
Title = "Change Highlight Mode",
Content = "To change the highlight mode for any defined entity, pick it from the dropdown, click the button, and pick its mode in the second dropdown.\n\n The ignore mode removes the label but keeps the ESP, and None completely removes the ESP."
});
uiElements.esp.entityPicker = espTab:CreateDropdown({
Name = "Entity Picker",
Options = keys(readableHighlightModes),
CurrentOption = currentEntity,
MultipleOptions = false,
Flag = "entityPicker",
Callback = function(Options)
currentEntity = Options[1];
highlightMode = capitalizeFirst(readableHighlightModes[currentEntity]);
end
});
uiElements.esp.entityModePicker = espTab:CreateDropdown({
Name = "Entity Highlight Mode",
Options = {
"Highlight",
"Warn",
"Ignore",
"None"
},
CurrentOption = highlightMode,
MultipleOptions = false,
Flag = "entityModePicker",
Callback = function(Options)
highlightMode = Options[1];
playerChosenEntityHighlightModes[readableToInternal[currentEntity]] = string.lower(highlightMode);
importantNPCs = table.clone(playerChosenEntityHighlightModes);
clearESP();
end
});
aimbotTab:CreateDropdown({
Name = "Target Bodypart",
Options = {
"Head",
"HumanoidRootPart",
"Torso",
"UpperTorso",
"LowerTorso"
},
CurrentOption = aimbotTargetBodyPart,
MultipleOptions = false,
Flag = "aimbotTargetBodypart",
Callback = function(Options)
aimbotTargetBodyPart = Options[1];
end
});
aimbotTab:CreateParagraph({
Title = "Priority Radius",
Content = "When the aimbot is enabled, a dangerous entity within the priority radius will be auto snapped on for shooting. The FOV circle is ignored."
});
uiElements.aimbot.enemyPriorityRadius = aimbotTab:CreateSlider({
Name = "Enemy Priority Radius",
Range = {
0,
250
},
Increment = 1,
Suffix = "meters",
CurrentValue = priorityRadius,
Flag = "enemyPriorityRadius",
Callback = function(Value)
priorityRadius = Value;
end
});
uiElements.aimbot.fovAngleDegrees = aimbotTab:CreateSlider({
Name = "Aimbot FOV",
Range = {
5,
90
},
Increment = 1,
Suffix = "degrees",
CurrentValue = fovAngleDegrees,
Flag = "aimbotFOV",
Callback = function(Value)
fovAngleDegrees = Value;
end
});
uiElements.aimbot.showAimbotCircle = aimbotTab:CreateToggle({
Name = "Show Aimbot FOV Circle",
CurrentValue = showAimbotCircle,
Flag = "showAimbotCircle",
Callback = function(Value)
showAimbotCircle = Value;
circle.Visible = showAimbotCircle;
end
});
uiElements.aimbot.circleColor = aimbotTab:CreateColorPicker({
Name = "Circle Color",
Color = circleColor,
Flag = "aimbotCircleColor",
Callback = function(Value)
circleColor = Value;
circle.Color = circleColor;
end
});
uiElements.aimbot.circleThickness = aimbotTab:CreateSlider({
Name = "Circle Thickness",
Range = {
0.1,
5
},
Increment = 0.1,
Suffix = "",
CurrentValue = circleThickness,
Flag = "aimbotCircleThickness",
Callback = function(Value)
circleThickness = Value;
circle.Thickness = circleThickness;
end
});
uiElements.aimbot.circleTransparency = aimbotTab:CreateSlider({
Name = "Circle Transparency",
Range = {
0,
100
},
Increment = 1,
Suffix = "",
CurrentValue = circleTransparency * 100,
Flag = "aimbotCircleTransparency",
Callback = function(Value)
circleTransparency = Value / 100;
circle.Transparency = circleTransparency;
end
});
keybindsTab:CreateKeybind({
Name = "ESP Keybind",
CurrentKeybind = nil,
HoldToInteract = false,
Flag = "espKeybind",
Callback = function(Keybind)
uiElements.general.espToggle:Set(not espOn);
end
});
keybindsTab:CreateKeybind({
Name = "Night Vision Keybind",
CurrentKeybind = nil,
HoldToInteract = false,
Flag = "nightVisionKeybind",
Callback = function(Keybind)
uiElements.general.nightVisionToggle:Set(not nightVisionOn);
end
});
keybindsTab:CreateKeybind({
Name = "ESP Keybind",
CurrentKeybind = nil,
HoldToInteract = false,
Flag = "noclipKeybind",
Callback = function(Keybind)
uiElements.general.noclipToggle:Set(not noclipEnabled);
end
});
keybindsTab:CreateKeybind({
Name = "Aimbot Keybind",
CurrentKeybind = nil,
HoldToInteract = false,
Flag = "aimbotKeybind",
Callback = function(Keybind)
uiElements.general.aimbotToggle:Set(not aimbotEnabled);
end
});