-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
1119 lines (965 loc) · 35.2 KB
/
main.lua
File metadata and controls
1119 lines (965 loc) · 35.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
local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/thepro1npc/randomscripts/main/rayfield%20loader'))()
local Window = Rayfield:CreateWindow({
Name = "Exploit Panel",
LoadingTitle = "The Ultimate Panel",
LoadingSubtitle = "Made By kingj23341",
ConfigurationSaving = {
Enabled = false,
FolderName = nil, -- Create a custom folder for your hub/game
FileName = "Big Hub"
},
Discord = {
Enabled = false,
Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD
RememberJoins = true -- Set this to false to make them join the discord every time they load it up
},
KeySystem = false, -- Set this to true to use our key system
KeySettings = {
Title = "TEST TITLE",
Subtitle = "Key System",
Note = "No method of obtaining the key is provided",
FileName = "Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
Key = {"test"} -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
}
})
local groupId = 10261023
local hrRankNames = {
"Junior Director", "Senior Director", "Head Director", "Corporate Intern",
"Junior Corporate", "Senior Corporate", "Head Corporate", "Chief Human Resources Officer",
"Chief Public Relations Officer", "Chief Operating Officer", "Chief Administrative Officer",
"Developer", "Vice Chairman", "Chairman"
}
local mrRankNames = {
"Shift Leader", "Supervisor", "Assistant Manager", "General Manager"
}
local function sendNotification(title, message)
Rayfield:Notify({
Title = title,
Content = message,
Duration = 8,
Image = 10709775560,
})
end
local function countPlayersByRank(rankNames)
local count = 0
for _, player in ipairs(game.Players:GetPlayers()) do
local success, rank = pcall(function()
return player:GetRoleInGroup(groupId)
end)
if success then
for _, rankName in ipairs(rankNames) do
if rankName == rank then
count = count + 1
break
end
end
end
end
return count
end
local function checkAndNotifyHR(player)
local success, rank = pcall(function()
return player:GetRoleInGroup(groupId)
end)
if success then
for _, rankName in ipairs(hrRankNames) do
if rankName == rank then
sendNotification("HR Join", player.Name .. " (" .. rank .. ") has joined the game.")
break
end
end
end
end
-- Notify that the script is working
sendNotification("NOTIFICATION", "Scanner is WORKING. You will be notified whenever an HR joins.")
local Tab = Window:CreateTab("Main Page", 4483362458) -- Title, Image
local Section = Tab:CreateSection("Main Page")
local function flingAll()
for _, v in pairs(workspace.SpawnedCars:GetChildren()) do
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.PrimaryPart.CFrame
task.wait(0.2)
end
end
local Button = Tab:CreateButton({
Name = "Fling Users in Cars",
Callback = function()
flingAll()
end,
})
local Button = Tab:CreateButton({
Name = "Fling GUI",
Callback = function ()
loadstring(game:HttpGet(('https://raw.githubusercontent.com/0Ben1/fe/main/obf_rf6iQURzu1fqrytcnLBAvW34C9N55kS9g9G3CKz086rC47M6632sEd4ZZYB0AYgV.lua.txt'), true))()
end,
})
local Button = Tab:CreateButton({
Name = "Infinite Yield",
Callback = function ()
loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
end,
})
local Button = Tab:CreateButton({
Name = "Rejoin Game",
Callback = function()
local Players = game:GetService("Players")
local player = Players.LocalPlayer
if player then
Rayfield:Notify({
Title = "Rejoining,
Content = "You are currently rejoining the game, please do not leave the game...,
Duration = 8,
Image = 10709775560,
})
wait(3
player:Kick("Rejoining game...") -- Kicks the player from the game
wait(1) -- Wait briefly before rejoining
game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId, player) -- Teleports the player back to the same place and job
end
end,
})
local Button = Tab:CreateButton({
Name = "Open Any Door (client-sided)",
Callback = function ()
game.Players.LocalPlayer.GroupInfo.Rank.Value = 255
end,
})
local Button = Tab:CreateButton({
Name = "Scan for HR's!",
Callback = function()
local hrCount = countPlayersByRank(hrRankNames)
local hrUsernames = {} -- Table to store HR usernames
for _, player in ipairs(game.Players:GetPlayers()) do
local success, rank = pcall(function()
return player:GetRoleInGroup(groupId)
end)
if success then
for _, rankName in ipairs(hrRankNames) do
if rankName == rank then
table.insert(hrUsernames, player.Name) -- Add HR username to the table
break
end
end
end
end
local hrUsernamesStr = table.concat(hrUsernames, ", ") -- Concatenate usernames into a string
if hrCount > 3 then
sendNotification("HR SCAN", "There are " .. hrCount .. " HR's in-game:\n" .. hrUsernamesStr)
else
sendNotification("HR SCAN", "There are " .. hrCount .. " HR's in-game:\n" .. hrUsernamesStr)
end
print("HR scan completed")
end
})
local Button = Tab:CreateButton({
Name = "Scan for MR's!",
Callback = function()
local mrCount = countPlayersByRank(mrRankNames)
local mrUsernames = {} -- Table to store MR usernames
for _, player in ipairs(game.Players:GetPlayers()) do
local success, rank = pcall(function()
return player:GetRoleInGroup(groupId)
end)
if success then
for _, rankName in ipairs(mrRankNames) do
if rankName == rank then
table.insert(mrUsernames, player.Name) -- Add MR username to the table
break
end
end
end
end
local mrUsernamesStr = table.concat(mrUsernames, ", ") -- Concatenate usernames into a string
if mrCount > 3 then
sendNotification("MR SCAN", "There are " .. mrCount .. " MR's in-game:\n" .. mrUsernamesStr)
else
sendNotification("MR SCAN", "There are " .. mrCount .. " MR's in-game:\n" .. mrUsernamesStr)
end
print("MR scan completed")
end
})
local isSpamming = false
local Toggle = Tab:CreateToggle({
Name = "Spam Discord Invite",
CurrentValue = false,
Flag = "SpamToggle",
Callback = function(Value)
isSpamming = Value
if isSpamming then
spawn(function()
while isSpamming do
wait(1) -- Wait for 1 second
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(". g g / rоblоxtrоllеrѕ", "All")
end
end)
end
end
})
local Active = true
local Active = false
local function RandomString(length)
local a = ""
for i = 1, 15 do
a = a..string.char(math.random(1,120))
end
return a
end
game:GetService('RunService').RenderStepped:Connect(function()
if Active == false then
for i, v in workspace.Nametags:GetChildren() do
if not v and not v:FindFirstChild('Username') then return end
v.Username.Text = v.Name
end
return
end
for i, v in workspace.Nametags:GetChildren() do
if not v and not v:FindFirstChild('Username') then return end
v.Username.Text = RandomString()
end
end)
local Button = Tab:CreateButton({
Name = "Toggle Username Scrambler (ser.ver_ on discord)",
Callback = function()
if Active == true then
Active = false
else
Active = true
end
end,
})
local Section = Tab:CreateSection("Other")
backpack = game:GetService("Players").LocalPlayer.Backpack
local Button = Tab:CreateButton({
Name = "Btools",
Callback = function()
hammer = Instance.new("HopperBin")
hammer.Name = "Hammer"
hammer.BinType = 4
hammer.Parent = backpack
cloneTool = Instance.new("HopperBin")
cloneTool.Name = "Clone"
cloneTool.BinType = 3
cloneTool.Parent = backpack
grabTool = Instance.new("HopperBin")
grabTool.Name = "Grab"
grabTool.BinType = 2
grabTool.Parent = backpack
end
})
local Button = Tab:CreateButton({
Name = "Destroy Barriers",
Callback = function()
-- Destroy parts named "PostBarrier"
for _, part in pairs(workspace:GetDescendants()) do
if part:IsA("BasePart") and part.Name == "PostBarrier" then
part:Destroy()
end
end
-- Destroy models named "CarBarrier"
for _, model in pairs(workspace:GetDescendants()) do
if model:IsA("Model") and model.Name == "CarBarrier" then
model:Destroy()
end
end
end
})
local Tab = Window:CreateTab("All Games", 10723434557) -- Title, Image
local Button = Tab:CreateButton({
Name = "Respawn Character",
Callback = function()
game.Players.LocalPlayer:LoadCharacter()
end
})
local Button = Tab:CreateButton({
Name = "Refresh Player",
local position
Callback = function()
position = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
game.Players.LocalPlayer:LoadCharacter()
wait(2)
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = position
end
})
local Button = Tab:CreateButton({
Name = "Leave Game",
Callback = function()
game.Players.LocalPlayer:Kick("Pressed leave game")
end
})
local Button = Tab:CreateButton({
Name = "Teleport to Everyone",
Callback = function()
for i,v in pairs(game.Players:GetPlayers()) do
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
wait(0.25)
end
})
local Tab = Window:CreateTab("Washiez Car Wash", 10723434557) -- Title, Image
local groupId = 10261023
local hrRankNames = {
"Junior Director", "Senior Director", "Head Director", "Corporate Intern",
"Junior Corporate", "Senior Corporate", "Head Corporate", "Chief Human Resources Officer",
"Chief Public Relations Officer", "Chief Operating Officer", "Chief Administrative Officer",
"Developer", "Vice Chairman", "Chairman"
}
local mrRankNames = {
"Shift Leader", "Supervisor", "Assistant Manager", "General Manager"
}
local function sendNotification(title, message)
Rayfield:Notify({
Title = title,
Content = message,
Duration = 8,
Image = 10709775560,
})
end
local function countPlayersByRank(rankNames)
local count = 0
for _, player in ipairs(game.Players:GetPlayers()) do
local success, rank = pcall(function()
return player:GetRoleInGroup(groupId)
end)
if success then
for _, rankName in ipairs(rankNames) do
if rankName == rank then
count = count + 1
break
end
end
end
end
return count
end
local function checkAndNotifyHR(player)
local success, rank = pcall(function()
return player:GetRoleInGroup(groupId)
end)
if success then
for _, rankName in ipairs(hrRankNames) do
if rankName == rank then
sendNotification("HR Join", player.Name .. " (" .. rank .. ") has joined the game.")
break
end
end
end
end
-- Notify that the script is working
sendNotification("NOTIFICATION", "Scanner is WORKING. You will be notified whenever an HR joins.")
-- Listen for new players joining
game.Players.PlayerAdded:Connect(checkAndNotifyHR)
local function flingAll()
for _, v in pairs(workspace.SpawnedCars:GetChildren()) do
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.PrimaryPart.CFrame
task.wait(0.2)
end
end
local Tab = Window:CreateTab("Main Page", 4483362458) -- Title, Image
local Section = Tab:CreateSection("Main Page")
local function flingAll()
for _, v in pairs(workspace.SpawnedCars:GetChildren()) do
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.PrimaryPart.CFrame
task.wait(0.2)
end
end
local Button = Tab:CreateButton({
Name = "Auto Complete Obby",
Callback = function()
local natureObbyPortal = workspace:FindFirstChild("Portals")
and workspace.Portals:FindFirstChild("Portals")
and workspace.Portals.Portals:FindFirstChild("NatureObbyPortal")
if natureObbyPortal then
for _, descendant in ipairs(natureObbyPortal:GetDescendants()) do
if descendant:IsA("BasePart") then
descendant.CanCollide = false
end
end
print("Collisions turned off for all parts inside NatureObbyPortal.")
else
warn("NatureObbyPortal not found in the specified location.")
return
end
local targetPosition1 = Vector3.new(342, 4, -130)
game.Players.LocalPlayer.Character:MoveTo(targetPosition1)
wait(0.3)
local targetPosition2 = Vector3.new(342, 4, -139)
game.Players.LocalPlayer.Character:MoveTo(targetPosition2)
wait(1)
local targetPosition2 = Vector3.new(1793, -9, -5052)
game.Players.LocalPlayer.Character:MoveTo(targetPosition2)
wait(1)
local positions = {
Vector3.new(1793, -9, -5064), -- pos 2
Vector3.new(1794, -9, -5257), -- pos 6
Vector3.new(1665, -9, -5327), -- pos 7
Vector3.new(1622, -9, -5184), -- pos 8
Vector3.new(1480, 34, -5191), -- pos 9
Vector3.new(1348, -3, -5505), -- pos 11
Vector3.new(1341, -3, -5166), -- pos 12
Vector3.new(1229, -10, -5430), -- pos 13
Vector3.new(1229, -10, -5758), -- pos 14
Vector3.new(1162, -10, -5835), -- pos 15
Vector3.new(1156, -10, -5694), -- pos 16
Vector3.new(1156, -11, -5538), -- pos 17
Vector3.new(1174, -11, -5248), -- pos 18
Vector3.new(1169, -11, -5072), -- pos 19
Vector3.new(1324, -9, -5071), -- pos 20
Vector3.new(1498, -9, -5077),
Vector3.new(1512, -5, -5076)
}
local function moveToPositions()
for i, position in ipairs(positions) do
wait(0.2)
game.Players.LocalPlayer.Character:MoveTo(position)
wait(0.2)
end
end
moveToPositions()
end
})
local Button = Tab:CreateButton({
Name = "Fling Users in Cars",
Callback = function()
flingAll()
end,
})
local Button = Tab:CreateButton({
Name = "Fling GUI",
Callback = function ()
loadstring(game:HttpGet(('https://raw.githubusercontent.com/0Ben1/fe/main/obf_rf6iQURzu1fqrytcnLBAvW34C9N55kS9g9G3CKz086rC47M6632sEd4ZZYB0AYgV.lua.txt'), true))()
end,
})
local Button = Tab:CreateButton({
Name = "Infinite Yield",
Callback = function ()
loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
end,
})
local Button = Tab:CreateButton({
Name = "Rejoin Game",
Callback = function()
local Players = game:GetService("Players")
local player = Players.LocalPlayer
if player then
player:Kick("Rejoining game...") -- Kicks the player from the game
wait(1) -- Wait briefly before rejoining
game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId, player) -- Teleports the player back to the same place and job
end
end,
})
local Button = Tab:CreateButton({
Name = "Open Any Door (client-sided)",
Callback = function ()
game.Players.LocalPlayer.GroupInfo.Rank.Value = 255
end,
})
local Button = Tab:CreateButton({
Name = "Scan for HR's!",
Callback = function()
local hrCount = countPlayersByRank(hrRankNames)
local hrUsernames = {} -- Table to store HR usernames
for _, player in ipairs(game.Players:GetPlayers()) do
local success, rank = pcall(function()
return player:GetRoleInGroup(groupId)
end)
if success then
for _, rankName in ipairs(hrRankNames) do
if rankName == rank then
table.insert(hrUsernames, player.Name) -- Add HR username to the table
break
end
end
end
end
local hrUsernamesStr = table.concat(hrUsernames, ", ") -- Concatenate usernames into a string
if hrCount > 3 then
sendNotification("HR SCAN", "There are " .. hrCount .. " HR's in-game:\n" .. hrUsernamesStr)
else
sendNotification("HR SCAN", "There are " .. hrCount .. " HR's in-game:\n" .. hrUsernamesStr)
end
print("HR scan completed")
end
})
local Button = Tab:CreateButton({
Name = "Scan for MR's!",
Callback = function()
local mrCount = countPlayersByRank(mrRankNames)
local mrUsernames = {} -- Table to store MR usernames
for _, player in ipairs(game.Players:GetPlayers()) do
local success, rank = pcall(function()
return player:GetRoleInGroup(groupId)
end)
if success then
for _, rankName in ipairs(mrRankNames) do
if rankName == rank then
table.insert(mrUsernames, player.Name) -- Add MR username to the table
break
end
end
end
end
local mrUsernamesStr = table.concat(mrUsernames, ", ") -- Concatenate usernames into a string
if mrCount > 3 then
sendNotification("MR SCAN", "There are " .. mrCount .. " MR's in-game:\n" .. mrUsernamesStr)
else
sendNotification("MR SCAN", "There are " .. mrCount .. " MR's in-game:\n" .. mrUsernamesStr)
end
print("MR scan completed")
end
})
local isSpamming = false
local Toggle = Tab:CreateToggle({
Name = "Spam Discord Invite",
CurrentValue = false,
Flag = "SpamToggle",
Callback = function(Value)
isSpamming = Value
if isSpamming then
spawn(function()
while isSpamming do
wait(1) -- Wait for 1 second
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(". g g / rоblоxtrоllеrѕ", "All")
end
end)
end
end
})
local Active = true
local Active = false
local function RandomString(length)
local a = ""
for i = 1, 15 do
a = a..string.char(math.random(1,120))
end
return a
end
game:GetService('RunService').RenderStepped:Connect(function()
if Active == false then
for i, v in workspace.Nametags:GetChildren() do
if not v and not v:FindFirstChild('Username') then return end
v.Username.Text = v.Name
end
return
end
for i, v in workspace.Nametags:GetChildren() do
if not v and not v:FindFirstChild('Username') then return end
v.Username.Text = RandomString()
end
end)
local Button = Tab:CreateButton({
Name = "Toggle Username Scrambler (ser.ver_ on discord)",
Callback = function()
if Active == true then
Active = false
else
Active = true
end
end,
})
backpack = game:GetService("Players").LocalPlayer.Backpack
local Button = Tab:CreateButton({
Name = "Btools",
Callback = function()
hammer = Instance.new("HopperBin")
hammer.Name = "Hammer"
hammer.BinType = 4
hammer.Parent = backpack
cloneTool = Instance.new("HopperBin")
cloneTool.Name = "Clone"
cloneTool.BinType = 3
cloneTool.Parent = backpack
grabTool = Instance.new("HopperBin")
grabTool.Name = "Grab"
grabTool.BinType = 2
grabTool.Parent = backpack
end
})
local Button = Tab:CreateButton({
Name = "Destroy Barriers",
Callback = function()
-- Destroy parts named "PostBarrier"
for _, part in pairs(workspace:GetDescendants()) do
if part:IsA("BasePart") and part.Name == "PostBarrier" then
part:Destroy()
end
end
-- Destroy models named "CarBarrier"
for _, model in pairs(workspace:GetDescendants()) do
if model:IsA("Model") and model.Name == "CarBarrier" then
model:Destroy()
end
end
end
})
local Button = Tab:CreateButton({
Name = "Spawn",
Callback = function()
local targetPosition = Vector3.new(-106, 4, 99)
game.Players.LocalPlayer.Character:MoveTo(targetPosition)
end
})
local Button = Tab:CreateButton({
Name = "Middle Area",
Callback = function()
local targetPosition = Vector3.new(351, 4, 100)
game.Players.LocalPlayer.Character:MoveTo(targetPosition)
end
})
local Button = Tab:CreateButton({
Name = "Cafe",
Callback = function()
local targetPosition = Vector3.new(463, 4, 206)
game.Players.LocalPlayer.Character:MoveTo(targetPosition)
end
})
local Button = Tab:CreateButton({
Name = "Gas Station",
Callback = function()
local targetPosition = Vector3.new(494, 3, -181)
game.Players.LocalPlayer.Character:MoveTo(targetPosition)
end
})
local Button = Tab:CreateButton({
Name = "Headquarters",
Callback = function()
local targetPosition = Vector3.new(-46, 4, -201)
game.Players.LocalPlayer.Character:MoveTo(targetPosition)
end
})
local Button = Tab:CreateButton({
Name = "Prison Outdoor",
Callback = function()
local targetPosition = Vector3.new(257, 3, -504)
game.Players.LocalPlayer.Character:MoveTo(targetPosition)
end
})
local Button = Tab:CreateButton({
Name = "Prison Indoor",
Callback = function()
local targetPosition = Vector3.new(267, 4, -570)
game.Players.LocalPlayer.Character:MoveTo(targetPosition)
end
})
local Button = Tab:CreateButton({
Name = "Raceway",
Callback = function()
local targetPosition = Vector3.new(449, 27, 470)
game.Players.LocalPlayer.Character:MoveTo(targetPosition)
end
})
local Button = Tab:CreateButton({
Name = "Staff Spawn",
Callback = function()
local targetPosition = Vector3.new(294, 4, -192)
game.Players.LocalPlayer.Character:MoveTo(targetPosition)
end
})
local Button = Tab:CreateButton({
Name = "Car Noclip (credit: gaminger2713 on discord)",
Callback = function()
if setfpscap then
setfpscap(90000)
end
local Folder = Instance.new("Folder")
Folder.Name = "parts"
local parts = {
{name = "ii", size = Vector3.new(802.4365234375, 0.0010000000474974513, 1245.367919921875), position = CFrame.new(-36.87646484375, 0.21846917271614075, 70.48501586914062)},
{name = "ii", size = Vector3.new(1591.9024658203125, 0.0010000000474974513, 466.6781005859375), position = CFrame.new(-433.20184326171875, 0.21846917271614075, -773.6083374023438)},
{name = "ii", size = Vector3.new(1304.427490234375, 0.0010000000474974513, 424.321533203125), position = CFrame.new(1013.5869750976562, 0.21846917271614075, -752.4300537109375)},
{name = "ii", size = Vector3.new(998.1998901367188, 0.0010000000474974513, 1218.008056640625), position = CFrame.new(860.4730224609375, 0.21846917271614075, 56.805084228515625)},
{name = "ii", size = Vector3.new(12.600000381469727, 0.3999999761581421, 40.29999923706055), position = CFrame.new(370.91815185546875, 0.6360464096069336, 105.79989624023438) * CFrame.Angles(0, math.rad(180), 0)},
{name = "ii", size = Vector3.new(12.600000381469727, 0.800000011920929, 139.75), position = CFrame.new(371.1180419921875, 0.4360463619232178, 195.82485961914062)},
{name = "ii", size = Vector3.new(12.600000381469727, 0.3999999761581421, 40.29999923706055), position = CFrame.new(332.3181457519531, 0.6360464096069336, 105.79989624023438) * CFrame.Angles(0, math.rad(180), 0)},
{name = "ii", size = Vector3.new(12.600000381469727, 0.800000011920929, 139.75), position = CFrame.new(332.5180358886719, 0.4360463619232178, 195.82485961914062)},
{name = "ii", size = Vector3.new(1522.946, 0.001, 1245.368), position = CFrame.new(-397.131, 0.218, 70.485)},
}
for _, partData in ipairs(parts) do
local part = Instance.new("Part")
part.Name = partData.name
part.Anchored = true
part.Transparency = 1
part.Size = partData.size
part.CFrame = partData.position
part.Parent = Folder
end
Folder.Parent = workspace
local plrcar = nil
workspace.SpawnedCars.ChildAdded:Connect(function(v)
if v:IsA("Model") and v.Name:match(game.Players.LocalPlayer.Name) then
plrcar = v
end
end)
for _, child in pairs(workspace.SpawnedCars:GetChildren()) do
if child.Name:match(game.Players.LocalPlayer.Name) then
plrcar = child
end
end
local function check(object)
if not plrcar then return false end
return object:IsDescendantOf(plrcar)
end
local partsToCheck = {}
local function disableCollision(part)
part.CanCollide = false
table.insert(partsToCheck, part)
end
for _, v in pairs(workspace:GetDescendants()) do
if v:IsA("BasePart") and v.Name ~= "ii" and not check(v) then
disableCollision(v)
end
end
workspace.DescendantAdded:Connect(function(s)
if s:IsA("BasePart") and not check(s) then
disableCollision(s)
end
end)
local function disableCharacterCollision(char)
for _, e in pairs(char:GetDescendants()) do
if e:IsA("BasePart") then
disableCollision(e)
end
end
char.DescendantAdded:Connect(function(e)
if e:IsA("BasePart") then
disableCollision(e)
end
end)
end
for _, v in pairs(game.Players:GetPlayers()) do
local char = v.Character or v.CharacterAdded:Wait()
disableCharacterCollision(char)
v.CharacterAdded:Connect(disableCharacterCollision)
end
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(disableCharacterCollision)
end)
workspace.DescendantRemoving:Connect(function(o)
if partsToCheck[o] then
partsToCheck[o] = nil
end
end)
task.spawn(function()
while true do
for _, part in ipairs(partsToCheck) do
if part and part:IsDescendantOf(workspace) then
if part.CanCollide then
part.CanCollide = false
end
end
end
task.wait(1)
end
end)
end,
})
local Slider = Tab:CreateSlider({
Name = "MaxSpeed",
Range = {0, 250},
Increment = 1,
Suffix = "Speeds",
CurrentValue = 60,
Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
Callback = function(Value)
for i,v in game.Workspace.SpawnedCars:GetChildren() do
v:SetAttribute("MaxSpeed", Value)
print("MaxSpeed value set to: "..Value)
end
end,
})
local Slider = Tab:CreateSlider({
Name = "ReverseSpeed",
Range = {0, 250},
Increment = 1,
Suffix = "Speeds",
CurrentValue = 60,
Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
Callback = function(Value)
for i,v in game.Workspace.SpawnedCars:GetChildren() do
v:SetAttribute("ReverseSpeed", Value)
print("ReverseSpeed value set to: "..Value)
end
end,
})
local Slider = Tab:CreateSlider({
Name = "DrivingTorque (acceleration)",
Range = {15000, 100000},
Increment = 2500,
Suffix = "Values",
CurrentValue = 5000,
Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
Callback = function(Value)
for i,v in game.Workspace.SpawnedCars:GetChildren() do
v:SetAttribute("DrivingTorque", Value)
print("DrivingTorque value set to: "..Value)
end
end,
})
local Slider = Tab:CreateSlider({
Name = "BrakingTorque (Brake Power)",
Range = {30000, 200000},
Increment = 5000,
Suffix = "Values",
CurrentValue = 10000,
Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
Callback = function(Value)
for i,v in game.Workspace.SpawnedCars:GetChildren() do
v:SetAttribute("BrakingTorque", Value)
print("BrakingTorque value set to: "..Value)
end
end,
})
local Slider = Tab:CreateSlider({
Name = "MaxSteer (Steer Power)",
Range = {0.1, 2},
Increment = 0.1,
Suffix = "Values",
CurrentValue = 0.6,
Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
Callback = function(Value)
for i,v in game.Workspace.SpawnedCars:GetChildren() do
v:SetAttribute("MaxSteer", Value)
print("MaxSteer value set to: "..Value)
end
end,
})
local Slider = Tab:CreateSlider({
Name = "Fuel (client sided)",
Range = {0, 100000},
Increment = 5000,
Suffix = "Values",
CurrentValue = 1000,
Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
Callback = function(Value)
for i,v in game.Workspace.SpawnedCars:GetChildren() do
v:SetAttribute("Fuel", Value)
print("Fuel value set to: "..Value)
end
end,
})
local Slider = Tab:CreateSlider({
Name = "WheelFriction (client sided)",
Range = {1, 100},
Increment = 1,
Suffix = "Values",
CurrentValue = 2,
Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
Callback = function(Value)
for i,v in game.Workspace.SpawnedCars:GetChildren() do
v:SetAttribute("WheelFriction", Value)
print("WheelFriction value set to: "..Value)
end
end,
})
local Slider = Tab:CreateSlider({
Name = "BaseEngineRPM (client sided)",
Range = {1500, 10000},
Increment = 100,
Suffix = "Values",
CurrentValue = 1500,
Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
Callback = function(Value)
for i,v in game.Workspace.SpawnedCars:GetChildren() do
v:SetAttribute("BaseEngineRPM", Value)
print("BaseEngineRPM value set to: "..Value)
end