This repository was archived by the owner on Feb 25, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtiger.lua
More file actions
4175 lines (4079 loc) · 147 KB
/
tiger.lua
File metadata and controls
4175 lines (4079 loc) · 147 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
--[[
Forged by h17s3
]]
if not getconnections or not hookmetamethod or not getnamecallmethod or not ((getgenv and getgenv()) or _G) then
game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Tiger Admin",Text = "Executor is not supported!",Duration = 10,})
end
if not workspace:FindFirstChild("Criminals Spawn") or not workspace:FindFirstChild("Criminals Spawn"):FindFirstChild("SpawnLocation") then
game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Tiger Admin",Text = "Criminals spawn not found! Please rejoin.",Duration = 10,})
end
game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
if game:FindFirstChild("Tiger_revamp_loaded") then ((getgenv and getgenv()) or _G).NotifTiger("Tiger admin is already executed!",false) return warn("Already loaded") end
local Player, plr,Folder = game:GetService("Players").LocalPlayer, game:GetService("Players").LocalPlayer,Instance.new("Folder",game)
local OldHook, hookmetamethod, getnamecallmethod = nil, hookmetamethod, getnamecallmethod
local HasGamepass,UserInputService = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.UserId, 96651),game:GetService("UserInputService")
local GlobalVar = ((getgenv and getgenv()) or _G)
local Unloaded = false
local CriminalCFRAME = workspace["Criminals Spawn"].SpawnLocation.CFrame
local API_Prem = loadstring(game:HttpGet("https://raw.githubusercontent.com/dalloc2/Roblox/main/Listing.lua"))()
local PremiumActivated = API_Prem.CheckPremium()
local Temp = {}
local API = {}
local Reload_Guns = {}
local Prefix = "!"
--------
Folder.Name = "Tiger_revamp_loaded"
ScreenGui = Instance.new("ScreenGui")
CmdBarFrame = Instance.new("Frame")
UICorner = Instance.new("UICorner")
Out = Instance.new("ImageLabel")
UICorner_2 = Instance.new("UICorner")
CommandBar = Instance.new("TextBox")
UIStroke = Instance.new("UIStroke")
Commands = Instance.new("ImageLabel")
UICorner_3 = Instance.new("UICorner")
UIStroke_2 = Instance.new("UIStroke")
CommandsList = Instance.new("ScrollingFrame")
UIListLayout = Instance.new("UIListLayout")
TEMP_CMD = Instance.new("TextLabel")
SearchBar = Instance.new("TextBox")
ScreenGui.Parent = (game:GetService("CoreGui") or gethui())
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
ScreenGui.Name = math.random()
CmdBarFrame.Name = "CmdBarFrame"
CmdBarFrame.Parent = ScreenGui
CmdBarFrame.AnchorPoint = Vector2.new(0.5, 0.5)
CmdBarFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
CmdBarFrame.BackgroundTransparency = 1.000
CmdBarFrame.BorderSizePixel = 0
CmdBarFrame.Position = UDim2.new(0.5, 0, 0.899999998, 0)
CmdBarFrame.Position = CmdBarFrame.Position+UDim2.new(0,0,1.1,0)
CmdBarFrame.Size = UDim2.new(0, 577, 0, 65)
UICorner.CornerRadius = UDim.new(0, 3)
UICorner.Parent = CmdBarFrame
Temp.Esps = {}
do
CmdsIcon = Instance.new("ImageLabel")
UICornera = Instance.new("UICorner")
UIStroke12 = Instance.new("UIStroke")
CmdButton = Instance.new("ImageButton")
CmdsIcon.Name = "CmdsIcon"
CmdsIcon.Parent = CmdBarFrame
CmdsIcon.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
CmdsIcon.Position = UDim2.new(-0.132423401, 0, 0.0226149559, 0)
CmdsIcon.Size = UDim2.new(0.121672593, 0, 0.945454538, 0)
CmdsIcon.Image = "rbxassetid://12661800163"
CmdsIcon.ImageTransparency = 0.030
UICornera.CornerRadius = UDim.new(0, 6)
UICornera.Parent = CmdsIcon
UIStroke12.Parent = CmdsIcon
CmdButton.Name = "CmdButton"
CmdButton.Parent = CmdsIcon
CmdButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
CmdButton.BackgroundTransparency = 1.000
CmdButton.Position = UDim2.new(0.298999995, 0, 0.27700001, 0)
CmdButton.Size = UDim2.new(0, 27, 0, 27)
CmdButton.Image = "rbxassetid://11570802781"
CmdButton.ImageTransparency = 0.430
CmdButton.MouseButton1Up:Connect(function()
if not Temp.CmdsC then
Temp.CmdsC = true
if Commands.Visible == false then
Commands:TweenPosition(SavedCmdsPosition,"Out","Quart",1)
Commands.Visible = true
else
Commands:TweenPosition(SavedCmdsPosition+UDim2.new(0,0,1,0),"Out","Quart",1)
wait(.5)
Commands.Visible = false
end
wait(.7)
Temp.CmdsC = false
end
end)
CmdButton.MouseEnter:Connect(function()
CmdButton.ImageColor3 = Color3.new(0.588235, 0.588235, 0.588235)
end)
CmdButton.MouseLeave:Connect(function()
CmdButton.ImageColor3 = Color3.new(1, 1, 1)
end)
end
do
Toggles = Instance.new("ImageLabel")
local Stokeee = Instance.new("UIStroke")
local Corrrer = Instance.new("UICorner")
local ToggleScroll = Instance.new("ScrollingFrame")
local kewkfwe = Instance.new("UIListLayout")
local tempb = Instance.new("TextButton")
local UIStroke = Instance.new("UIStroke")
local UICorner = Instance.new("UICorner")
Toggles.Name = "Toggles"
Toggles.Parent = ScreenGui
Toggles.AnchorPoint = Vector2.new(0.5, 0.5)
Toggles.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Toggles.Position = UDim2.new(0.499593854, 0, 0.499376595, 0)+UDim2.new(0,0,1,0)
Toggles.Size = UDim2.new(0, 539, 0, 409)
Toggles.Visible = false
Toggles.Image = "rbxassetid://12011977394"
Toggles.ImageTransparency = 0.260
Stokeee.Parent = Toggles
Stokeee.Name = "Stokeee"
Corrrer.Name = "Corrrer"
Corrrer.Parent = Toggles
ToggleScroll.Name = "ToggleScroll"
ToggleScroll.Parent = Toggles
ToggleScroll.Active = true
ToggleScroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ToggleScroll.BackgroundTransparency = 1.000
ToggleScroll.Size = UDim2.new(0, 539, 0, 408)
ToggleScroll.ScrollBarThickness = 4
kewkfwe.Name = "kewkfwe"
kewkfwe.Parent = ToggleScroll
kewkfwe.SortOrder = Enum.SortOrder.LayoutOrder
kewkfwe.Padding = UDim.new(0, 5)
tempb.Name = "tempb"
tempb.Parent = ScreenGui
tempb.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
tempb.BackgroundTransparency = 0.550
tempb.Position = UDim2.new(0, 0, -7.47979882e-08, 0)
tempb.Size = UDim2.new(0, 539, 0, 44)
tempb.Visible = false
tempb.Font = Enum.Font.SourceSans
tempb.Text = "Autorespawn [OFF]"
tempb.TextColor3 = Color3.fromRGB(255, 255, 255)
tempb.TextSize = 14.000
UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
UIStroke.Parent = tempb
UICorner.CornerRadius = UDim.new(0, 3)
UICorner.Parent = tempb
end
Out.Name = "Out"
Out.Parent = CmdBarFrame
Out.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Out.Position = UDim2.new(0.0200897697, 0, 0.022615375, 0)
Out.Size = UDim2.new(0.974358976, 0, 0.945454538, 0)
Out.Image = "rbxassetid://11789397066"
Out.ImageTransparency = 0.240
UICorner_2.CornerRadius = UDim.new(0, 6)
UICorner_2.Parent = Out
CommandBar.Name = "CommandBar"
CommandBar.Parent = Out
CommandBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
CommandBar.BackgroundTransparency = 1.000
CommandBar.BorderSizePixel = 0
CommandBar.Position = UDim2.new(0.0359953903, 0, 0.128254473, 0)
CommandBar.Size = UDim2.new(0, 519, 0, 46)
CommandBar.Font = Enum.Font.SourceSans
CommandBar.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
CommandBar.PlaceholderText = "Command bar"
CommandBar.Text = ""
CommandBar.TextColor3 = Color3.fromRGB(255, 255, 255)
CommandBar.TextSize = 24.000
CommandBar.TextTransparency = 0.140
CommandBar.TextWrapped = true
UIStroke.Parent = Out
Commands.Name = "Commands"
Commands.Parent = ScreenGui
Commands.AnchorPoint = Vector2.new(0.5, 0.5)
Commands.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Commands.Position = UDim2.new(0.5, 0, 0.5, 0)
Commands.Size = UDim2.new(0, 455, 0, 297)
Commands.Image = "rbxassetid://12011977394"
Commands.ImageTransparency = 0.200
Commands.Visible = false
UICorner_3.CornerRadius = UDim.new(0, 6)
UICorner_3.Parent = Commands
UIStroke_2.Parent = Commands
CommandsList.Parent = Commands
CommandsList.Active = true
CommandsList.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
CommandsList.BackgroundTransparency = 1.000
CommandsList.Position = UDim2.new(0, 0, 0.077441074, 0)
CommandsList.Size = UDim2.new(0, 455, 0, 274)
CommandsList.ScrollBarThickness = 5
CommandsList.AutomaticCanvasSize="Y"
UIListLayout.Parent = CommandsList
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 8)
TEMP_CMD.Parent = Folder
TEMP_CMD.BackgroundColor3 = Color3.fromRGB(62, 62, 62)
TEMP_CMD.BackgroundTransparency = 0.750
TEMP_CMD.Size = UDim2.new(0, 455, 0, 14)
TEMP_CMD.Font = Enum.Font.SourceSans
TEMP_CMD.Text = "sex"--//yes
TEMP_CMD.TextColor3 = Color3.fromRGB(255, 255, 255)
TEMP_CMD.TextSize = 14.000
SavedCmdsPosition = Commands.Position
SearchBar.Parent = Commands
SearchBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SearchBar.BackgroundTransparency = 1.000
SearchBar.Size = UDim2.new(0, 455, 0, 17)
SearchBar.Font = Enum.Font.SourceSans
SearchBar.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
SearchBar.PlaceholderText = "Search here"
SearchBar.Text = ""
SearchBar.TextColor3 = Color3.fromRGB(234, 234, 234)
SearchBar.TextSize = 14.000
Folder.Parent = game
do
--Load guis
game:GetService("ContentProvider"):PreloadAsync({
Commands,
Out,
})
end
for i,v in pairs(ScreenGui:GetDescendants()) do v.Name = game:GetService("HttpService"):GenerateGUID(true) end
local AmmountCurrent = 0
local commandsLol = {}
function API:CreateCmd(Header, Description, Callback,IsHide,Extra,IsPre,plsdonotlower)
local CloneTXT = TEMP_CMD:Clone()
CloneTXT.Text = Prefix..Header.." "..(Extra or "").." | "..Description
if IsHide then
CloneTXT.Parent =nil
else
CloneTXT.Parent = CommandsList
end
if IsPre then
CloneTXT.TextColor3 = Color3.new(1, 0.796078, 0.0666667)
end
AmmountCurrent=AmmountCurrent+1
commandsLol[Header] = Callback
local function FactCheck(TheText)
if Unloaded then return end
local Text = nil
if not plsdonotlower then
Text=TheText:lower()
else
Text = TheText
end
local Split = Text:split(" ")
local First = Split[1]
local Second = Split[2]
if First:lower() == Header:lower() or First:lower() == Prefix..Header:lower() then
local a,b = pcall(function()
Callback(Split)
end)
if not a and b then
warn("--> TIGER ADMIN DETECTED AN ERROR")
warn("COMMAND: "..Prefix..Header)
warn("ERROR: "..tostring(b))
end
end
end
Player.Chatted:Connect(function(c)
if c and not Unloaded then
local Subbed = string.sub(c,1,1)
if Subbed == Prefix then
FactCheck(c)
end
end
end)
CommandBar.FocusLost:Connect(function(EnterKey)
if EnterKey and not Unloaded then
FactCheck(CommandBar.Text)
task.wait(.04)
CommandBar.Text = ""
end
end)
end
function API:Tween(Obj, Prop, New, Time)
if not Time then
Time = .5
end
local TweenService = game:GetService("TweenService")
local info = TweenInfo.new(
Time,
Enum.EasingStyle.Quart,
Enum.EasingDirection.Out,
0,
false,
0
)
local propertyTable = {
[Prop] = New,
}
TweenService:Create(Obj, info, propertyTable):Play()
end
function API:Notif(Text,Dur)
task.spawn(function()
if not Dur then
Dur = 1.5
end
local Notif = Instance.new("ScreenGui")
local Frame_1 = Instance.new("Frame")
local TextLabel = Instance.new("TextLabel")
Notif.Parent = (game:GetService("CoreGui") or gethui())
Notif.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
Frame_1.Parent = Notif
Frame_1.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Frame_1.BackgroundTransparency=1
Frame_1.BorderSizePixel = 0
Frame_1.Position = UDim2.new(0, 0, 0.0500000007, 0)
Frame_1.Size = UDim2.new(1, 0, 0.100000001, 0)
TextLabel.Parent = Frame_1
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.BackgroundTransparency = 1.000
TextLabel.TextTransparency =1
TextLabel.Size = UDim2.new(1, 0, 1, 0)
TextLabel.Font = Enum.Font.Highway
TextLabel.Text = Text or "Text not found"
TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.TextSize = 21.000
API:Tween(Frame_1,"BackgroundTransparency",0.350,.5)
API:Tween(TextLabel,"TextTransparency",0,.5)
wait(Dur+.7)
API:Tween(Frame_1,"BackgroundTransparency",1,.5)
API:Tween(TextLabel,"TextTransparency",1,.5)
wait(.7)
Notif:Destroy()
end)
return
end
GlobalVar.NotifTiger = function(t,v)
API:Notif(t,v)
end
local States = {}
local Settings = {
Prefix = "!",
ValidCommands = {},
}
local OrginMenuPos = Player.PlayerGui.Home.hud.MenuButton.Position
local OrginGunPos = Player.PlayerGui.Home.hud.GunFrame.Position
do
States.loopkillinmates = false
States.loopkillcriminals = false
States.DraggableGuis = false
States.spawnguns = false
States.loopkillguards = false
States.Antishield = false
States.DoorsDestroy = false
States.antipunch = false
States.AutoRespawn = true
States.AutoItems = false
States.ClickKill = false
States.ClickArrest = false
States.AntiTase = false
States.AntiArrest = false
States.OnePunch = false
States.killaura = false
States.anticrash = false
States.AntiTouch = false
States.ShootBack = false
States.AntiFling = false
States.AutoInfAmmo = false
States.joinlogs = false
States.noclip = false
States.Godmode = false
States.loopopendoors = false
States.SilentAim = false
States.ArrestAura = false
States.OneShot = false
States.ff = false
States.esp = false
States.earrape = false
--
Temp.IsBringing = false
Temp.Loopkilling = {}
Temp.ArrestOldP = false
Temp.KillAuras = {}
API.Whitelisted = {}
Temp.Admins = {}
Temp.LoopmKilling = {}
Temp.Viruses = {}
Temp.SavedAdmins = {}
Running = false
end
if writefile and makefolder and readfile and isfile then
if isfile("Tiger Admin") == false or isfile("Tiger_Admin/Invite.json") == false then
makefolder("Tiger_Admin")
if isfile("Tiger_Admin/Invite.json") == false then
writefile("Tiger_Admin/Invite.json",game:GetService("HttpService"):JSONEncode({
Invite_To_Server = true
}))
end
if isfile("Tiger_Admin/SavedAdmins.json") == false then
writefile("Tiger_Admin/SavedAdmins.json",game:GetService("HttpService"):JSONEncode({}))
else
local Content = game:GetService("HttpService"):JSONDecode(readfile("Tiger_Admin/SavedAdmins.json"))
for i,v in pairs(Content) do
if v then
table.insert(Temp.Admins, v)
end
end
end
end
end
task.spawn(function()
if writefile and makefolder and readfile and isfile then
if game:GetService("HttpService"):JSONDecode(readfile("Tiger_Admin/Invite.json")).Invite_To_Server then
local Request_ = (syn and syn.request) or http_request or request
Request_({
Url = 'http://127.0.0.1:6463/rpc?v=1',
Method = 'POST',
Headers = {
['Content-Type'] = 'application/json',
Origin = 'https://discord.com'
},
Body = game:GetService("HttpService"):JSONEncode({
cmd = 'INVITE_BROWSER',
nonce = game:GetService("HttpService"):GenerateGUID(false),
args = {code = 'zj5xRp3ZKn'}
})
})
end
end
end)
function API:CreateBulletTable(Amount, Hit, IsTrue)
local Args = {}
for i = 1, tonumber(Amount) do
if IsTrue then
Args[#Args + 1] = {
["RayObject"] = Ray.new(Vector3.new(990.272583, 101.489975, 2362.74878), Vector3.new(-799.978333, 0.23157759, -5.88794518)),
["Distance"] = 198.9905242919922,
["Cframe"] = CFrame.new(894.362549, 101.288307, 2362.53491, -0.0123058055, 0.00259522465, -0.999920964, 3.63797837e-12, 0.999996722, 0.00259542116, 0.999924302, 3.19387436e-05, -0.0123057645),
}
else
Args[#Args + 1] = {
["RayObject"] = Ray.new(Vector3.new(), Vector3.new()),
["Distance"] = 0,
["Cframe"] = CFrame.new(),
["Hit"] = Hit,
}
end
end
return Args
end
function DragifyGui(Frame,Is)
coroutine.wrap(function()
local dragToggle = nil
local dragSpeed = 0.50
local dragInput = nil
local dragStart = nil
local dragPos = nil
local startPos = nil
local function updateInput(input)
if not Is then
if not States.DraggableGuis then
return
end
end
local Delta = input.Position - dragStart
local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.30), {Position = Position}):Play()
end
Frame.InputBegan:Connect(function(input)
if not Is then
if States.DraggableGuis then
if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and game:GetService("UserInputService"):GetFocusedTextBox() == nil then
dragToggle = true
dragStart = input.Position
startPos = Frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragToggle = false
end
end)
end
end
end
end)
Frame.InputChanged:Connect(function(input)
if States.DraggableGuis then
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
dragInput = input
end
end
end)
game:GetService("UserInputService").InputChanged:Connect(function(input)
if States.DraggableGuis then
if input == dragInput and dragToggle then
updateInput(input)
end
end
end)
end)()
end
DragifyGui(Out)
DragifyGui(Commands)
DragifyGui(CmdsIcon)
local IsBringing = false
function API:swait()
game:GetService("RunService").Stepped:Wait()
end
function API:bring(Target,TeleportTo,MoreTP,DontBreakCar)
local BringingFromAdmin = nil
if table.find(Temp.Admins,Target.Name) then
BringingFromAdmin = true
end
if not IsBringing and Target and Target.Character:FindFirstChildOfClass("Humanoid") and Target.Character:FindFirstChildOfClass("Humanoid").Health>0 and Target.Character:FindFirstChildOfClass("Humanoid").Sit == false then
if not TeleportTo then
TeleportTo = API:GetPosition()
end
local Orgin = API:GetPosition()
local CarPad = workspace.Prison_ITEMS.buttons["Car Spawner"]
local car = nil
local Seat = nil
local Failed = false
local CheckForBreak = function()
if not Target or not Target.Character:FindFirstChildOfClass("Humanoid") or Target.Character:FindFirstChildOfClass("Humanoid").Health<1 or Player.Character:FindFirstChildOfClass("Humanoid").Health<1 then
Failed = true
return true
else
return nil
end
end
for i,v in pairs(game:GetService("Workspace").CarContainer:GetChildren()) do
if v then
if v:WaitForChild("Body"):WaitForChild("VehicleSeat").Occupant == nil then
car = v
end
end
end
if not car then
coroutine.wrap(function()
if not car then
car = game:GetService("Workspace").CarContainer.ChildAdded:Wait()
end
end)()
repeat wait()
game:GetService("Players").LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(-524, 55, 1777))
task.spawn(function()
workspace.Remote.ItemHandler:InvokeServer(game:GetService("Workspace").Prison_ITEMS.buttons:GetChildren()[7]["Car Spawner"])
end)
if CheckForBreak() then
break
end
until car
end
car:WaitForChild("Body"):WaitForChild("VehicleSeat")
car.PrimaryPart = car.Body.VehicleSeat
Seat = car.Body.VehicleSeat
repeat wait()
Seat:Sit(Player.Character:FindFirstChildOfClass("Humanoid"))
until Player.Character:FindFirstChildOfClass("Humanoid").Sit == true
wait() --// so it doesnt break
repeat API:swait()
if CheckForBreak() or not Player.Character:FindFirstChildOfClass("Humanoid") or Player.Character:FindFirstChildOfClass("Humanoid").Sit == false then
break
end
car.PrimaryPart = car.Body.VehicleSeat
if Target.Character:FindFirstChildOfClass("Humanoid").MoveDirection.Magnitude >0 then
car:SetPrimaryPartCFrame(Target.Character:GetPrimaryPartCFrame()*CFrame.new(0,-.2,-6))
else
car:SetPrimaryPartCFrame(Target.Character:GetPrimaryPartCFrame()*CFrame.new(0,-.2,-5))
end
until Target.Character:FindFirstChildOfClass("Humanoid").Sit == true
if Failed then
API:Notif("Failed to bring the player!")
if BringingFromAdmin then
local ohString1 = "/w "..Target.Name.." ".."ADMIN: Bring has failed! Try again later."
local ohString2 = "All"
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(ohString1, ohString2)
end
return
end
for i =1,10 do
car:SetPrimaryPartCFrame(TeleportTo)
API:swait()
end
wait(.1)
task.spawn(function()
if PremiumActivated and not DontBreakCar then
repeat task.wait() until Target.Character:FindFirstChildOfClass("Humanoid").Sit == false
repeat wait()
Seat:Sit(Player.Character:FindFirstChildOfClass("Humanoid"))
until Player.Character:FindFirstChildOfClass("Humanoid").Sit == true
for i =1,10 do
car:SetPrimaryPartCFrame(CFrame.new(0,workspace.FallenPartsDestroyHeight+10,0))
API:swait()
end
API:UnSit()
API:MoveTo(Orgin)
end
end)
if not PremiumActivated then
API:UnSit()
API:MoveTo(Orgin)
end
else
if BringingFromAdmin then
local ohString1 = "/w "..Target.Name.." ".."ADMIN: Bring has failed! Try again later."
local ohString2 = "All"
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(ohString1, ohString2)
end
API:Notif("Player has died or is sitting or an unknown error.")
end
end
function API:FindPlayer(String,IgnoreError)
String = String:gsub("%s+", "")
for _, v in pairs(game:GetService("Players"):GetPlayers()) do
if v.Name:lower():match("^" .. String:lower()) or v.DisplayName:lower():match("^" .. String:lower()) then
return v
end
end
if not IgnoreError then
API:Notif("Player has left or is not in your current game.",false)
end
return nil
end
function API:ConvertPosition(Position)
if typeof(Position):lower() == "position" then
return CFrame.new(Position)
else
return Position
end
end
function API:GetPart(Target)
game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
return Target.Character:FindFirstChild("HumanoidRootPart") or Target.Character:FindFirstChild("Head")
end
function API:GetPosition(Player)
game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
if Player then
return API:GetPart(Player).CFrame
elseif not Player then
return API:GetPart(plr).CFrame
end
end
function API:GetCameraPosition(Player)
return workspace["CurrentCamera"].CFrame
end
function API:Loop(Times, calling)
for i = 1, tonumber(Times) do
calling()
end
end
function PublicOutput(CODE)
local Args ={
{
RayObject = Ray.new(),
Distance = 0,
Cframe = CFrame.new(1,1,20000),
MSG = CODE,
PLA = Player.UserId
}
}
repeat task.wait() API:GetGun("M9") until Player.Backpack:FindFirstChild("M9") or Player.Character:FindFirstChild("M9")
local Gun = Player.Backpack:FindFirstChild("M9") or Player.Character:FindFirstChild("M9")
coroutine.wrap(function()
game:GetService("ReplicatedStorage").ShootEvent:FireServer(Args, Gun)
end)()
coroutine.wrap(function()
game:GetService("ReplicatedStorage").ReloadEvent:FireServer(Gun)
end)()
end
function API:MoveTo(Cframe)
Cframe = API:ConvertPosition(Cframe)
local Amount = 5
if Player.PlayerGui['Home']['hud']['Topbar']['titleBar'].Title.Text:lower() == "lights out" or Player.PlayerGui.Home.hud.Topbar.titleBar.Title.Text:lower() == "lightsout" then
Amount = 11
end
for i = 1, Amount do
API:UnSit()
Player.Character:WaitForChild("HumanoidRootPart").CFrame = Cframe
API:swait()
end
end
function API:WaitForRespawn(Cframe,NoForce)
game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
local Cframe = API:ConvertPosition(Cframe)
local CameraCframe = API:GetCameraPosition()
coroutine.wrap(function()
local a
a = Player.CharacterAdded:Connect(function(NewCharacter)
pcall(function()
coroutine.wrap(function()
workspace.CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
API:Loop(5, function()
workspace["CurrentCamera"].CFrame = CameraCframe
end)
end)()
NewCharacter:WaitForChild("HumanoidRootPart")
API:MoveTo(Cframe)
if NoForce then
task.spawn(function()
NewCharacter:WaitForChild("ForceField"):Destroy()
end)
end
end)
a:Disconnect()
Cframe = nil
end)
task.spawn(function()
wait(2)
if a then
a:Disconnect()
end
end)
end)()
end
function API:ChangeTeam(TeamPath,NoForce,Pos)
pcall(function()
repeat task.wait() until game:GetService("Players").LocalPlayer.Character
game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
API:WaitForRespawn(Pos or API:GetPosition(),NoForce)
end)
if TeamPath == game.Teams.Criminals then
task.spawn(function()
workspace.Remote.TeamEvent:FireServer("Bright orange")
end)
repeat API:swait() until Player.Team == game.Teams.Inmates and Player.Character:FindFirstChild("HumanoidRootPart")
repeat
API:swait()
if firetouchinterest then
firetouchinterest(plr.Character:FindFirstChildOfClass("Part"), game:GetService("Workspace")["Criminals Spawn"]:GetChildren()[1], 0)
firetouchinterest(plr.Character:FindFirstChildOfClass("Part"), game:GetService("Workspace")["Criminals Spawn"]:GetChildren()[1], 1)
end
game:GetService("Workspace")["Criminals Spawn"]:GetChildren()[1].Transparency = 1
game:GetService("Workspace")["Criminals Spawn"]:GetChildren()[1].CanCollide = false
game:GetService("Workspace")["Criminals Spawn"]:GetChildren()[1].CFrame = API:GetPosition()
until plr.Team == game:GetService("Teams").Criminals
game:GetService("Workspace")["Criminals Spawn"]:GetChildren()[1].CFrame = CFrame.new(0, 3125, 0)
else
if TeamPath == game.Teams.Neutral then
workspace['Remote']['TeamEvent']:FireServer("Bright orange")
else
if not TeamPath or not TeamPath.TeamColor then
workspace['Remote']['TeamEvent']:FireServer("Bright orange")
else
workspace['Remote']['TeamEvent']:FireServer(TeamPath.TeamColor.Name)
end
end
end
end
function API:FindString(String,Table)
String = String:gsub("%s+", "")
for m, n in pairs(Table) do
if n:lower():match("^" .. String:lower()) then
return n
end
end
return nil
end
function API:Refresh(NoForce,Position)
API:ChangeTeam(plr.Team,NoForce,Position)
end
function API:UnSit()
game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid").Sit = false
end
function API:KillPlayer(Target,Failed,DoChange)
local Bullets = API:CreateBulletTable(20,(Target.Character:FindFirstChild("Head") or Target.Character:FindFirstChildOfClass("Part")))
if not Target or not Target.Character or not Target.Character:FindFirstChildOfClass("Humanoid") or Target.Character:FindFirstChildOfClass("Humanoid").Health <1 then
return
end
repeat API:swait() until not Target.Character:FindFirstChildOfClass("ForceField")
local CurrentTeam = nil
if Target.Team == Player.Team then
if Target.Team~= game.Teams.Criminals then
CurrentTeam = Player.Team
API:ChangeTeam(game.Teams.Criminals,true)
elseif Target.Team == game.Teams.Criminals then
CurrentTeam = Player.Team
API:ChangeTeam(game.Teams.Inmates,true)
end
end
local Gun = Player.Backpack:FindFirstChild("Remington 870") or Player.Character:FindFirstChild("Remington 870")
API:GetGun("Remington 870")
repeat API:swait()Gun = Player.Backpack:FindFirstChild("Remington 870") or Player.Character:FindFirstChild("Remington 870") until Gun
task.spawn(function()
game:GetService("ReplicatedStorage").ShootEvent:FireServer(Bullets, Gun)
game:GetService("ReplicatedStorage").ReloadEvent:FireServer(Gun)
end)
coroutine.wrap(function()
wait(.7)
pcall(function()
if Target.Character:FindFirstChildOfClass("Humanoid").Health >1 and not Failed then
API:KillPlayer(Target,true)
end
end)
end)()
if CurrentTeam and not Player.Team == CurrentTeam and not DoChange then
wait(.3)
API:ChangeTeam(CurrentTeam,true)
end
end
function API:GetGun(Item, Ignore)
task.spawn(function()
workspace:FindFirstChild("Remote")['ItemHandler']:InvokeServer({
Position = Player.Character.Head.Position,
Parent = workspace.Prison_ITEMS:FindFirstChild(Item, true)
})
end)
end
function API:CreateKillPart()
if Temp.KillPart then
pcall(function()
Temp.KillPart:Destroy()
end)
Temp.KillPart = nil
end
local Part = Instance.new("Part",plr.Character)
local hilight = Instance.new("Highlight",Part)
hilight.FillTransparency = 1
Part.Anchored = true
Part.CanCollide = false
Part.CanTouch = false
Part.Material = Enum.Material.SmoothPlastic
Part.Transparency = .98
Part.Material = Enum.Material.SmoothPlastic
Part.BrickColor = BrickColor.White()
Part.Size = Vector3.new(20,2,20)
Part.Name = "KillAura"
Temp.KillPart = Part
end
function API:MKILL(target,STOP,P)
if target == plr or target == plr.Name then
return
end
if typeof(target):lower() == "string" and game:GetService("Players"):FindFirstChild(target) then
target = game:GetService("Players"):FindFirstChild(target)
end
if not STOP then STOP =1 end
if not target or not target.Character or not target.Character:FindFirstChild("Humanoid") or target.Character:FindFirstChildOfClass("ForceField") or target.Character:FindFirstChild("Humanoid").Health<1 or not plr.Character or not plr.Character:FindFirstChildOfClass("Humanoid") or not plr.Character:FindFirstChild("HumanoidRootPart") then
return
end
API:UnSit()
local saved = API:GetPosition()
if not P then P = saved else saved = P end
game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = target.Character:FindFirstChild("Head").CFrame
wait(.2)
for i =1,10 do
task.spawn(function()
game.ReplicatedStorage["meleeEvent"]:FireServer(target)
end)
end
wait(.1)
if target and target.Character and target.Character:FindFirstChild("Humanoid") and target.Character:FindFirstChild("Humanoid").Health >1 and STOP ~=3 then
API:MKILL(target,STOP+1,P)
return
end
API:MoveTo(saved)
end
function API:killall(TeamToKill)
if not TeamToKill then
local LastTeam = Player.Team
local BulletTable = {}
if Player.Team ~= game.Teams.Criminals then
API:ChangeTeam(game.Teams.Criminals,true)
end
API:GetGun("Remington 870")
local Gun = Player.Backpack:FindFirstChild("Remington 870") or Player.Character:FindFirstChild("Remington 870")
repeat API:swait() Gun = Player.Backpack:FindFirstChild("Remington 870") or Player.Character:FindFirstChild("Remington 870") until Gun
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
if v and v~=Player and v.Team == game.Teams.Inmates or v.Team == game.Teams.Guards and not table.find(API.Whitelisted,v) then
for i =1,15 do
BulletTable[#BulletTable + 1] = {
["RayObject"] = Ray.new(Vector3.new(), Vector3.new()),
["Hit"] = v.Character:FindFirstChild("Head") or v.Character:FindFirstChildOfClass("Part"),
}
end
end
end
task.spawn(function()
game:GetService("ReplicatedStorage").ShootEvent:FireServer(BulletTable, Gun)
end)
API:ChangeTeam(game.Teams.Inmates,true)
API:GetGun("Remington 870")
repeat API:swait() Gun = Player.Backpack:FindFirstChild("Remington 870") or Player.Character:FindFirstChild("Remington 870") until Gun
local Gun = Player.Backpack:FindFirstChild("Remington 870") or Player.Character:FindFirstChild("Remington 870")
for i,v in pairs(game.Teams.Criminals:GetPlayers()) do
if v and v~=Player and not table.find(API.Whitelisted,v) then
for i =1,15 do
BulletTable[#BulletTable + 1] = {
["RayObject"] = Ray.new(Vector3.new(), Vector3.new()),
["Hit"] = v.Character:FindFirstChild("Head") or v.Character:FindFirstChildOfClass("Part"),
}
end
end
end
task.spawn(function()
game:GetService("ReplicatedStorage").ShootEvent:FireServer(BulletTable, Gun)
end)
if LastTeam ~= game.Teams.Inmates then
API:ChangeTeam(LastTeam,true)
end
elseif TeamToKill then
if TeamToKill == game.Teams.Inmates or TeamToKill == game.Teams.Guards then
if Player.Team ~= game.Teams.Criminals then
API:ChangeTeam(game.Teams.Criminals)
end
elseif TeamToKill == game.Teams.Criminals then
if Player.Team ~= game.Teams.Inmates then
API:ChangeTeam(game.Teams.Inmates)
end
end
local BulletTable = {}
for i,v in pairs(TeamToKill:GetPlayers()) do
if v and v~=Player and not table.find(API.Whitelisted,v) then
for i =1,15 do
BulletTable[#BulletTable + 1] = {
["RayObject"] = Ray.new(Vector3.new(), Vector3.new()),
["Hit"] = v.Character:FindFirstChild("Head") or v.Character:FindFirstChildOfClass("Part"),
}
end
end
end
wait(.4)
API:GetGun("M9")
local Gun = Player.Backpack:FindFirstChild("M9") or Player.Character:FindFirstChild("M9")
repeat task.wait() Gun = Player.Backpack:FindFirstChild("M9") or Player.Character:FindFirstChild("M9") until Gun
task.spawn(function()
game:GetService("ReplicatedStorage").ShootEvent:FireServer(BulletTable, Gun)
end)
end
end
function API:GuardsFull(a)
if #game:GetService("Teams").Guards:GetPlayers()==8 then
if a then
if Player.Team == game.Teams.Guards then
return false
end
end
return false
end
return true
end
function API:AllGuns()
local saved = game:GetService("Players").LocalPlayer.Character:GetPrimaryPartCFrame()
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, 96651) then
API:GetGun("M4A1", true)
end
API:GetGun("AK-47", true)
task.spawn(function()
API:GetGun("Remington 870", true)
end)
API:GetGun("M9", true)
game:GetService("Players").LocalPlayer.Character:SetPrimaryPartCFrame(saved)
end
function API:GetHumanoid()
return plr.Character:FindFirstChildOfClass("Humanoid")
end
function API:touch(Toucher, TouchThis)
if not Toucher or not TouchThis then