View difference between Paste ID: EEFYAsdw and AdvKW50v
SHOW: | | - or go back to the newest paste.
1
repeat task.wait() until game:IsLoaded()
2
do--//Instances
3
	Debug = false
4
	BETA = false
5
	Folder = Instance.new("Folder")
6
	ScreenGui = Instance.new("ScreenGui")
7
	CmdBarFrame = Instance.new("Frame")
8
	UICorner = Instance.new("UICorner")
9
	Out = Instance.new("ImageLabel")
10
	UICorner_2 = Instance.new("UICorner")
11
	CommandBar = Instance.new("TextBox")
12
	UIStroke = Instance.new("UIStroke")
13
	Commands = Instance.new("ImageLabel")
14
	UICorner_3 = Instance.new("UICorner")
15
	UIStroke_2 = Instance.new("UIStroke")
16
	CommandsList = Instance.new("ScrollingFrame")
17
	UIListLayout = Instance.new("UIListLayout")
18
	TEMP_CMD = Instance.new("TextLabel")
19
	plr = game:GetService("Players").LocalPlayer
20
	UIS,UserInputService = game:GetService'UserInputService',game:GetService("UserInputService")
21
	char = plr.Character
22
	Mouse = plr:GetMouse()
23
	RunService = game:GetService("RunService")
24
	gethui=gethui or nil
25
	SearchBar = Instance.new("TextBox")
26
	Folder.Name = "Tiger_PL"
27
	--
28
	HasFireTouch = false
29
	unloaded=false
30
	SavedAdmins = {}
31
	firetouchinterest=firetouchinterest
32
	firetouch = firetouchinterest
33
	oldprint = print
34
	IsBringing = false
35
	loopkilling = {}
36
end
37
do
38
	--//Top functions & tables
39
	TigerGuis = {}
40
	function AddGui(Gui)
41
		TigerGuis[#TigerGuis+1]=Gui
42
	end
43
end
44
do
45
	--Tables
46
	States = {
47
		autore = true,
48
		KillAura = false,
49
		SilentAim= false,
50
		AntiPunch = false,
51
		AntiTase = false,
52
		FastPunch = false,
53
		ClickArrest = false,
54
		Godmode = false,
55
		Antibring = true,
56
		OnePunch = false,
57
		AntiTouch = false,
58
		ClickKill = false,
59
		noclip = false,
60
		AntiShield = false,
61
		AutoItems = false,
62
		AntiArrest = false,
63
		Admined = {},
64
	}
65
	Reload_Guns = {}
66
	Whitelisted = {}
67
	Parts = {}
68
	Temp = {}
69
	Whitelisted_ITEMS = {}
70
end
71
if game:FindFirstChild("Tiger_PL") then
72
	ScreenGui:Destroy()
73
	unloaded = true
74
	return
75
end
76
do
77
	function Tween(Obj,Prop,New,Time)
78
		if not Time then Time = .5 end
79
		task.spawn(function()
80
			local TweenService = game:GetService("TweenService")
81
			local info = TweenInfo.new(
82
				Time, 
83
				Enum.EasingStyle.Quart, 
84
				Enum.EasingDirection.Out, 
85
				0, 
86
				false,
87
				0
88
			)
89
			local propertyTable = {
90
				[Prop] = New,
91
			}
92
93
			TweenService:Create(Obj, info, propertyTable):Play()
94
		end)
95
	end
96
	--Loading.
97
	Temp.Respawned_132 = false
98
	local LoadingGUI = Instance.new("ScreenGui")
99
	local Loading = Instance.new("Frame")
100
	local UICorner = Instance.new("UICorner")
101
	local UIStroke = Instance.new("UIStroke")
102
	local Darken = Instance.new("Frame")
103
	local Outter = Instance.new("Frame")
104
	local UICorner_2 = Instance.new("UICorner")
105
	local Tweener = Instance.new("Frame")
106
	local UICorner_3 = Instance.new("UICorner")
107
	local Text = Instance.new("TextLabel")
108
	local UIGradient = Instance.new("UIGradient")
109
	LoadingGUI.Name = "LoadingGUI"
110
	LoadingGUI.Parent = (game:GetService("CoreGui") or gethui())
111
	LoadingGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
112
	Loading.Name = "Loading"
113
	Loading.Parent = LoadingGUI
114
	Loading.AnchorPoint = Vector2.new(0.5, 0.5)
115
	Loading.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
116
	Loading.BackgroundTransparency=1
117
	Loading.Position = UDim2.new(0.5, 0, 0.5, 0)
118
	Loading.Size = UDim2.new(0, 404, 0, 172)
119
	UICorner.CornerRadius = UDim.new(0, 3)
120
	UICorner.Parent = Loading
121
	Darken.Name = "Darken"
122
	Darken.Parent = Loading
123
	Darken.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
124
	Darken.BackgroundTransparency = 1
125
	Darken.BorderSizePixel = 0
126
	Darken.Size = UDim2.new(0, 404, 0, 172)
127
	Outter.Name = "Outter"
128
	Outter.Parent = Darken
129
	Outter.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
130
	Outter.Position = UDim2.new(0.297029704, 0, 0.645348847, 0)
131
	Outter.Size = UDim2.new(0, 164, 0, 5)
132
	UICorner_2.Parent = Outter
133
	Tweener.Name = "Tweener"
134
	Tweener.Parent = Outter
135
	Tweener.BackgroundColor3 = Color3.fromRGB(3, 196, 255)
136
	Tweener.Position = UDim2.new(-0.00175066688, 0, 0, 0)
137
	Tweener.Size = UDim2.new(0, 0, 0, 5)
138
	UICorner_3.Parent = Tweener
139
	Text.Name = "Text"
140
	Text.Parent = Loading
141
	Text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
142
	Text.BackgroundTransparency = 1.000
143
	Text.Position = UDim2.new(0.252475262, 0, 0.401162773, 0)
144
	Text.Size = UDim2.new(0, 200, 0, 33)
145
	Text.Font = Enum.Font.Gotham
146
	Text.Text = "Loading"
147
	Text.TextColor3 = Color3.fromRGB(255, 255, 255)
148
	Text.TextSize = 18.000
149
	task.spawn(function()
150
		Text.Text = "Loading {Guis}"
151
		game:GetService("ContentProvider"):PreloadAsync({
152
			Commands,
153
			Out,
154
			Commands,
155
		})
156
		Tweener:TweenSize(UDim2.new(.1, 0,0, 5),"Out","Quart",.06)
157
		wait(.1)
158
		Tweener:TweenSize(UDim2.new(.5, 0,0, 5),"Out","Quart",.06)
159
		Text.Text = "Loading {Scripts/Character}"
160
		repeat task.wait() until Temp.Respawned_132 == true
161
		Tweener.Size = UDim2.new(1,0,1,0)
162
		wait(.7)
163
		repeat wait() Tweener.Size = UDim2.new(1,0,1,0) until Tweener.Size == UDim2.new(1,0,1,0)
164
		Text.Text = "Finished loading!"
165
		wait(.4)
166
		Loading:TweenPosition(Loading.Position-UDim2.new(0,0,1,0),"Out","Quart",.6)
167
		wait(1.5)
168
		Loading:Destroy()
169
	end)
170
end
171
function MoveToJunk(v)
172
	v.CFrame = CFrame.new(0,5^5,0)
173
end
174
for i,v in pairs(workspace["Criminals Spawn"]:GetChildren()) do
175
	if v and v:IsA("Part") then
176
		MoveToJunk(v)
177
	end
178
end
179
function UneqTools()
180
	plr.Character:FindFirstChildOfClass("Humanoid"):UnequipTools()
181
end
182
workspace.FallenPartsDestroyHeight = -math.huge
183
task.spawn(function()
184
	local FirePart =Instance.new("Part")
185
	if not firetouchinterest then
186
		HasFireTouch = false
187
	end
188
	FirePart.Touched:Connect(function()
189
		HasFireTouch = true
190
		FirePart:Destroy()
191
	end)
192
	plr.Character:WaitForChild("Head")
193
	for i =1,2 do
194
		if firetouchinterest then
195
			if FirePart then
196
				firetouchinterest(plr.Character.Head,FirePart,0)
197
				firetouchinterest(plr.Character.Head,FirePart,1)
198
			end
199
		end
200
		wait(.4)
201
	end
202
end)
203
function Msg(player,Text)
204
	local ohString1 = "/w "..player.Name.." "..Text
205
	local ohString2 = "All"
206
	game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(ohString1, ohString2)
207
end
208
if writefile and makefolder and readfile and isfile then
209
	if isfile("Tiger Admin") == false or isfile("Tiger_Admin/Invite.json") == false then
210
		makefolder("Tiger_Admin")
211
		if isfile("Tiger_Admin/Invite.json") == false then
212
			writefile("Tiger_Admin/Invite.json",game:GetService("HttpService"):JSONEncode({
213
				Invite_To_Server = true
214
			}))
215
		end
216
		if isfile("Tiger_Admin/SavedAdmins.json") == false then
217
			writefile("Tiger_Admin/SavedAdmins.json",game:GetService("HttpService"):JSONEncode({}))
218
		else
219
			local Content = game:GetService("HttpService"):JSONDecode(readfile("Tiger_Admin/SavedAdmins.json"))
220
			for i,v in pairs(Content) do
221
				if v then
222
					print(v)
223
					States.Admined[#States.Admined+1] = v
224
				end
225
			end
226
		end
227
	end
228
end
229
do --//Main Gui
230
	ScreenGui.Parent = (game:GetService("CoreGui") or gethui())
231
	ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
232
	ScreenGui.Name = math.random()
233
	AddGui(ScreenGui)
234
	CmdBarFrame.Name = "CmdBarFrame"
235
	CmdBarFrame.Parent = ScreenGui
236
	CmdBarFrame.AnchorPoint = Vector2.new(0.5, 0.5)
237
	CmdBarFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
238
	CmdBarFrame.BackgroundTransparency = 1.000
239
	CmdBarFrame.BorderSizePixel = 0
240
	CmdBarFrame.Position = UDim2.new(0.5, 0, 0.899999998, 0)
241
	CmdBarFrame.Position = CmdBarFrame.Position+UDim2.new(0,0,1.1,0)
242
	CmdBarFrame.Size = UDim2.new(0, 577, 0, 65)
243
244
	UICorner.CornerRadius = UDim.new(0, 3)
245
	UICorner.Parent = CmdBarFrame
246
	do
247
		CmdsIcon = Instance.new("ImageLabel")
248
		UICornera = Instance.new("UICorner")
249
		UIStroke12 = Instance.new("UIStroke")
250
		CmdButton = Instance.new("ImageButton")
251
252
		CmdsIcon.Name = "CmdsIcon"
253
		CmdsIcon.Parent = CmdBarFrame
254
		CmdsIcon.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
255
		CmdsIcon.Position = UDim2.new(-0.132423401, 0, 0.0226149559, 0)
256
		CmdsIcon.Size = UDim2.new(0.121672593, 0, 0.945454538, 0)
257
		CmdsIcon.Image = "rbxassetid://12661800163"
258
		CmdsIcon.ImageTransparency = 0.030
259
260
		UICornera.CornerRadius = UDim.new(0, 6)
261
		UICornera.Parent = CmdsIcon
262
263
		UIStroke12.Parent = CmdsIcon
264
265
		CmdButton.Name = "CmdButton"
266
		CmdButton.Parent = CmdsIcon
267
		CmdButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
268
		CmdButton.BackgroundTransparency = 1.000
269
		CmdButton.Position = UDim2.new(0.298999995, 0, 0.27700001, 0)
270
		CmdButton.Size = UDim2.new(0, 27, 0, 27)
271
		CmdButton.Image = "rbxassetid://11570802781"
272
		CmdButton.ImageTransparency = 0.430
273
		CmdButton.MouseButton1Up:Connect(function()
274
			if not Temp.CmdsC then
275
				Temp.CmdsC = true
276
				if Commands.Visible == false then
277
					Commands.Position = Commands.Position+UDim2.new(0,0,1,0)
278
					wait(.1)
279
					Commands:TweenPosition(SavedCmdsPosition,"Out","Quart",1)
280
					Commands.Visible = true
281
				else
282
					Commands:TweenPosition(SavedCmdsPosition+UDim2.new(0,0,1,0),"Out","Quart",1)
283
					wait(.5)
284
					Commands.Visible = false
285
				end
286
				wait(.7)
287
				Temp.CmdsC = false
288
			end
289
		end)
290
		CmdButton.MouseEnter:Connect(function()
291
			CmdButton.ImageColor3 = Color3.new(0.588235, 0.588235, 0.588235)
292
		end)
293
		CmdButton.MouseLeave:Connect(function()
294
			CmdButton.ImageColor3 = Color3.new(1, 1, 1)
295
		end)
296
	end
297
	do
298
		Toggles = Instance.new("ImageLabel")
299
		local Stokeee = Instance.new("UIStroke")
300
		local Corrrer = Instance.new("UICorner")
301
		local ToggleScroll = Instance.new("ScrollingFrame")
302
		local kewkfwe = Instance.new("UIListLayout")
303
		local tempb = Instance.new("TextButton")
304
		local UIStroke = Instance.new("UIStroke")
305
		local UICorner = Instance.new("UICorner")
306
307
		Toggles.Name = "Toggles"
308
		Toggles.Parent = ScreenGui
309
		Toggles.AnchorPoint = Vector2.new(0.5, 0.5)
310
		Toggles.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
311
		Toggles.Position = UDim2.new(0.499593854, 0, 0.499376595, 0)+UDim2.new(0,0,1,0)
312
		Toggles.Size = UDim2.new(0, 539, 0, 409)
313
		Toggles.Visible = false
314
		Toggles.Image = "rbxassetid://12011977394"
315
		Toggles.ImageTransparency = 0.260
316
317
		Stokeee.Parent = Toggles
318
		Stokeee.Name = "Stokeee"
319
320
		Corrrer.Name = "Corrrer"
321
		Corrrer.Parent = Toggles
322
323
		ToggleScroll.Name = "ToggleScroll"
324
		ToggleScroll.Parent = Toggles
325
		ToggleScroll.Active = true
326
		ToggleScroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
327
		ToggleScroll.BackgroundTransparency = 1.000
328
		ToggleScroll.Size = UDim2.new(0, 539, 0, 408)
329
		ToggleScroll.ScrollBarThickness = 4
330
331
		kewkfwe.Name = "kewkfwe"
332
		kewkfwe.Parent = ToggleScroll
333
		kewkfwe.SortOrder = Enum.SortOrder.LayoutOrder
334
		kewkfwe.Padding = UDim.new(0, 5)
335
336
		tempb.Name = "tempb"
337
		tempb.Parent = ScreenGui
338
		tempb.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
339
		tempb.BackgroundTransparency = 0.550
340
		tempb.Position = UDim2.new(0, 0, -7.47979882e-08, 0)
341
		tempb.Size = UDim2.new(0, 539, 0, 44)
342
		tempb.Visible = false
343
		tempb.Font = Enum.Font.SourceSans
344
		tempb.Text = "Autorespawn [OFF]"
345
		tempb.TextColor3 = Color3.fromRGB(255, 255, 255)
346
		tempb.TextSize = 14.000
347
348
		UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
349
		UIStroke.Parent = tempb
350
351
		UICorner.CornerRadius = UDim.new(0, 3)
352
		UICorner.Parent = tempb
353
		for i,v in pairs(States) do
354
			if v == true or v == false then --//lazy for typeof function
355
				local p = tempb:Clone()
356
				p.Visible = true
357
				p.Parent = ToggleScroll
358
				p.Text = tostring(i).." ["..tostring(v).."]"
359
				p.MouseButton1Up:Connect(function()
360
					States[i]=not States[i]
361
					p.Text = tostring(i).." ["..tostring(States[i]).."]"
362
				end)
363
			end
364
		end
365
	end
366
	do
367
		TogglesButton = Instance.new("ImageLabel")
368
		UICornera = Instance.new("UICorner")
369
		UIStroke12 = Instance.new("UIStroke")
370
		CmdButton2 = Instance.new("ImageButton")
371
372
		TogglesButton.Name = "CmdsIcon"
373
		TogglesButton.Parent = CmdBarFrame
374
		TogglesButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
375
		TogglesButton.Position = UDim2.new(-0.132423401, 0, 0.0226149559, 0)+UDim2.new(1.15,0,0,0)
376
		TogglesButton.Size = UDim2.new(0.121672593, 0, 0.945454538, 0)
377
		TogglesButton.Image = "rbxassetid://12661800163"
378
		TogglesButton.ImageTransparency = 0
379
380
		UICornera.CornerRadius = UDim.new(0, 6)
381
		UICornera.Parent = TogglesButton
382
383
		UIStroke12.Parent = TogglesButton
384
385
		CmdButton2.Name = "ToggleButton"
386
		CmdButton2.Parent = TogglesButton
387
		CmdButton2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
388
		CmdButton2.BackgroundTransparency = 1.000
389
		CmdButton2.Position = UDim2.new(0.298999995, 0, 0.27700001, 0)
390
		CmdButton2.Size = UDim2.new(0, 27, 0, 27)
391
		CmdButton2.Image = "rbxassetid://11698445336"
392
		CmdButton2.ImageTransparency = 0.430
393
		CmdButton2.MouseButton1Up:Connect(function()
394
			if not Temp.CmdsC then
395
				Temp.CmdsC = true
396
				if Toggles.Visible == false then
397
					Toggles.Position = Toggles.Position+UDim2.new(0,0,1,0)
398
					wait(.1)
399
					Toggles:TweenPosition(SavedCmdsPosition,"Out","Quart",1)
400
					Toggles.Visible = true
401
				else
402
					Toggles:TweenPosition(SavedCmdsPosition+UDim2.new(0,0,1,0),"Out","Quart",1)
403
					wait(.5)
404
					Toggles.Visible = false
405
				end
406
				wait(.7)
407
				Temp.CmdsC = false
408
			end
409
		end)
410
		CmdButton2.MouseEnter:Connect(function()
411
			CmdButton2.ImageColor3 = Color3.new(0.588235, 0.588235, 0.588235)
412
		end)
413
		CmdButton2.MouseLeave:Connect(function()
414
			CmdButton2.ImageColor3 = Color3.new(1, 1, 1)
415
		end)
416
	end
417
	Out.Name = "Out"
418
	Out.Parent = CmdBarFrame
419
	Out.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
420
	Out.Position = UDim2.new(0.0200897697, 0, 0.022615375, 0)
421
	Out.Size = UDim2.new(0.974358976, 0, 0.945454538, 0)
422
	Out.Image = "rbxassetid://11789397066"
423
	Out.ImageTransparency = 0.240
424
425
	UICorner_2.CornerRadius = UDim.new(0, 6)
426
	UICorner_2.Parent = Out
427
428
	CommandBar.Name = "CommandBar"
429
	CommandBar.Parent = Out
430
	CommandBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
431
	CommandBar.BackgroundTransparency = 1.000
432
	CommandBar.BorderSizePixel = 0
433
	CommandBar.Position = UDim2.new(0.0359953903, 0, 0.128254473, 0)
434
	CommandBar.Size = UDim2.new(0, 519, 0, 46)
435
	CommandBar.Font = Enum.Font.SourceSans
436
	CommandBar.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
437
	CommandBar.PlaceholderText = "Command bar"
438
	CommandBar.Text = ""
439
	CommandBar.TextColor3 = Color3.fromRGB(255, 255, 255)
440
	CommandBar.TextSize = 24.000
441
	CommandBar.TextTransparency = 0.140
442
	CommandBar.TextWrapped = true
443
444
	UIStroke.Parent = Out
445
446
	Commands.Name = "Commands"
447
	Commands.Parent = ScreenGui
448
	Commands.AnchorPoint = Vector2.new(0.5, 0.5)
449
	Commands.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
450
	Commands.Position = UDim2.new(0.5, 0, 0.5, 0)
451
	Commands.Size = UDim2.new(0, 455, 0, 297)
452
	Commands.Image = "rbxassetid://12011977394"
453
	Commands.ImageTransparency = 0.200
454
	Commands.Visible = false
455
456
	UICorner_3.CornerRadius = UDim.new(0, 6)
457
	UICorner_3.Parent = Commands
458
459
	UIStroke_2.Parent = Commands
460
461
	CommandsList.Parent = Commands
462
	CommandsList.Active = true
463
	CommandsList.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
464
	CommandsList.BackgroundTransparency = 1.000
465
	CommandsList.Position = UDim2.new(0, 0, 0.077441074, 0)
466
	CommandsList.Size = UDim2.new(0, 455, 0, 274)
467
	CommandsList.ScrollBarThickness = 5
468
	CommandsList.AutomaticCanvasSize="Y"
469
	UIListLayout.Parent = CommandsList
470
	UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
471
	UIListLayout.Padding = UDim.new(0, 8)
472
473
	TEMP_CMD.Parent = Folder
474
	TEMP_CMD.BackgroundColor3 = Color3.fromRGB(62, 62, 62)
475
	TEMP_CMD.BackgroundTransparency = 0.750
476
	TEMP_CMD.Size = UDim2.new(0, 455, 0, 14)
477
	TEMP_CMD.Font = Enum.Font.SourceSans
478
	TEMP_CMD.Text = "sex"--//yes
479
	TEMP_CMD.TextColor3 = Color3.fromRGB(255, 255, 255)
480
	TEMP_CMD.TextSize = 14.000
481
	SavedCmdsPosition = Commands.Position
482
	SearchBar.Parent = Commands
483
	SearchBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
484
	SearchBar.BackgroundTransparency = 1.000
485
	SearchBar.Size = UDim2.new(0, 455, 0, 17)
486
	SearchBar.Font = Enum.Font.SourceSans
487
	SearchBar.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
488
	SearchBar.PlaceholderText = "Search here"
489
	SearchBar.Text = ""
490
	SearchBar.TextColor3 = Color3.fromRGB(234, 234, 234)
491
	SearchBar.TextSize = 14.000
492
	local function dragify(Frame) --//shit annoying
493
		local dragToggle = nil
494
		local dragSpeed = 0.50
495
		local dragInput = nil
496
		local dragStart = nil
497
		local dragPos = nil
498
		local startPos = nil
499
		local function updateInput(input)
500
			local Delta = input.Position - dragStart
501
			local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
502
			game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.30), {Position = Position}):Play()
503
		end
504
		Frame.InputBegan:Connect(function(input)
505
			if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
506
				dragToggle = true
507
				dragStart = input.Position
508
				startPos = Frame.Position
509
				input.Changed:Connect(function()
510
					if input.UserInputState == Enum.UserInputState.End then
511
						dragToggle = false
512
					end
513
				end)
514
			end
515
		end)
516
		Frame.InputChanged:Connect(function(input)
517
			if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
518
				dragInput = input
519
			end
520
		end)
521
		game:GetService("UserInputService").InputChanged:Connect(function(input)
522
			if input == dragInput and dragToggle then
523
				updateInput(input)
524
			end
525
		end)
526
	end
527
	dragify(Toggles)
528
	dragify(Commands)
529
	function Notif(Text,Dur)
530
		task.spawn(function()
531
			if not Dur then Dur = 1.57 end
532
			local Notif = Instance.new("ScreenGui")
533
			local Frame_1 = Instance.new("Frame")
534
			local TextLabel = Instance.new("TextLabel")
535
			Notif.Parent = (game:GetService("CoreGui") or gethui())
536
			Notif.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
537
			Frame_1.Parent = Notif
538
			Frame_1.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
539
			Frame_1.BackgroundTransparency=1
540
			Frame_1.BorderSizePixel = 0
541
			Frame_1.Position = UDim2.new(0, 0, 0.0500000007, 0)
542
			Frame_1.Size = UDim2.new(1, 0, 0.100000001, 0)
543
			TextLabel.Parent = Frame_1
544
			TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
545
			TextLabel.BackgroundTransparency = 1.000
546
			TextLabel.TextTransparency =1
547
			TextLabel.Size = UDim2.new(1, 0, 1, 0)
548
			TextLabel.Font = Enum.Font.Highway
549
			TextLabel.Text = Text or "Text not found"
550
			TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
551
			TextLabel.TextSize = 21.000
552
			Tween(Frame_1,"BackgroundTransparency",0.350,.5)
553
			Tween(TextLabel,"TextTransparency",0,.5)
554
			wait(Dur+.7)
555
			Tween(Frame_1,"BackgroundTransparency",1,.5)
556
			Tween(TextLabel,"TextTransparency",1,.5)
557
			wait(.7)
558
			Notif:Destroy()
559
		end)
560
		return
561
	end
562
	Folder.Parent = game
563
	do--Watermark
564
		local Water = Instance.new("ScreenGui")
565
		local TextLabel = Instance.new("TextLabel")
566
		local UIGradient = Instance.new("UIGradient")
567
		Water.Name = game:GetService("HttpService"):GenerateGUID(true)
568
		Water.Parent = (game:GetService("CoreGui") or gethui())
569
		Water.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
570
		TextLabel.Parent = Water
571
		TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
572
		TextLabel.BackgroundTransparency = 1.000
573
		TextLabel.Position = UDim2.new(0.00658436213, 0, 0, 0)-UDim2.new(0,0,1,0)
574
		TextLabel.Size = UDim2.new(0, 200, 0, 32)
575
		TextLabel.Font = Enum.Font.Cartoon
576
		TextLabel.Text = "Tiger-admin v1.1 PL"
577
		TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
578
		TextLabel.TextScaled = true
579
		TextLabel.TextSize = 14.000
580
		TextLabel.TextWrapped = true
581
		TextLabel.TextXAlignment = Enum.TextXAlignment.Left
582
		TextLabel:TweenPosition(UDim2.new(0.00658436213, 0, 0, 0),"Out","Quart",1)
583
		AddGui(Water)
584
		UIGradient.Color =ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(196, 8, 202)), ColorSequenceKeypoint.new(0.13, Color3.fromRGB(199, 15, 191)), ColorSequenceKeypoint.new(0.48, Color3.fromRGB(247, 127, 28)), ColorSequenceKeypoint.new(0.89, Color3.fromRGB(254, 7, 59)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 2, 61))}
585
		UIGradient.Parent = TextLabel
586
		task.spawn(function()
587
			while game do
588
				task.wait()
589
				UIGradient.Rotation +=.05
590
			end
591
		end)
592
	end
593
	do
594
		--Load guis
595
		game:GetService("ContentProvider"):PreloadAsync({
596
			Commands,
597
			Out,
598
		})
599
	end
600
601
	for i,v in pairs(ScreenGui:GetDescendants()) do v.Name = game:GetService("HttpService"):GenerateGUID(true) end
602
	if game:GetService("UserInputService").TouchEnabled and not game:GetService("UserInputService").KeyboardEnabled then
603
		CommandBar.Position=CommandBar.Position-UDim2.new(0,0,.05,0)
604
		TogglesButton=TogglesButton.Position-UDim2.new(0,0,.2,0)
605
		CmdButton=CmdButton.Position-UDim2.new(0,0,.2,0)
606
	end
607
end
608
do--//Command handler
609
	Prefix = "!"
610
	CommandsGot = 0
611
	TableCommands={}
612
	CommandsRawList = {}
613
	GetArgs = function(Args)
614
		return Args:split(" ")
615
	end
616
end
617
618
Verify_Command=function(NAME)
619
	NAME = NAME:lower()
620
	if not string.find(NAME,Prefix) then
621
		NAME = Prefix..NAME
622
	end
623
	return NAME
624
end
625
ValidCommand=function(Name)
626
	local Saved_Name = Name
627
	if not string.find(Saved_Name," ") then
628
		Saved_Name = Saved_Name.." "
629
	end
630
	for i,v in pairs(TableCommands) do
631
		if v then
632
			if v["Name"]:lower() == Saved_Name:split(" ")[1] then
633
				return true
634
			end
635
		end
636
	end
637
	return nil
638
end
639
Execute_Command = function(Name,Raw)
640
	local p = nil
641
	if unloaded then return end
642
	Name = Name:lower()
643
	local Saved_Name = Name
644
	if not string.find(Saved_Name," ") then
645
		Saved_Name = Saved_Name.." "
646
	end
647
	if Verify_Command(Name) then
648
		for i,v in pairs(TableCommands) do
649
			if v then
650
				if v["Name"]:lower() == Saved_Name:split(" ")[1] then
651
					p = true
652
					coroutine.wrap(function()
653
						v["Callback"](Raw)
654
					end)()
655
				end
656
			end
657
		end
658
		print(p)
659
		return p
660
	end
661
end
662
FindPlayer = function(h,h2)
663
	if string.lower(h) == "me" then
664
		return plr
665
	else
666
		h = h:gsub("%s+", "")
667
		for m, n in pairs(game:GetService("Players"):GetPlayers()) do
668
			if n.Name:lower():match("^" .. h:lower()) or n.DisplayName:lower():match("^" .. h:lower()) then
669
				return n
670
			end
671
		end
672
	end
673
	return nil
674
end
675
FindString = function(String,Table)
676
	String = String:gsub("%s+", "")
677
	for m, n in pairs(Table) do
678
		if n:lower():match("^" .. String:lower()) then
679
			return n
680
		end
681
	end
682
	return nil
683
end
684
Add_Command = function(Name,Callback,Does,PlayerCommand,R)
685
	task.spawn(function()
686
		if Name and Callback then
687
			if PlayerCommand and PlayerCommand == "PLAYER_COMMAND" then
688
				PlayerCommand = " [PLAYER]"
689
			elseif PlayerCommand == "TOGGLE_COMMAND" then
690
				PlayerCommand = " ON/OFF"
691
			elseif PlayerCommand == "NUMBER_COMMAND" then
692
				PlayerCommand = " NUMBER"
693
			elseif PlayerCommand == "STRING_COMMAND" then
694
				PlayerCommand = " STRING"
695
			end
696
			if PlayerCommand == nil then
697
				PlayerCommand=""
698
			end
699
			local CloneTXT = TEMP_CMD:Clone()
700
701
			if typeof(PlayerCommand):lower()~="string" then
702
				CloneTXT.Text = Prefix..tostring(Name).."".." | "..Does or ""
703
			else
704
				CloneTXT.Text = Prefix..tostring(Name)..PlayerCommand.." | "..Does or ""
705
			end
706
			CloneTXT.Parent = CommandsList
707
			CloneTXT.Visible = true
708
			if Does and Does == true or Does == "true" or PlayerCommand == true then
709
				CloneTXT.Visible = false
710
				CloneTXT.Changed:Connect(function()
711
					CloneTXT.Visible = false
712
				end)
713
			end
714
			CommandsGot+=1
715
			CommandsRawList[#CommandsRawList+1]=CloneTXT
716
			TableCommands[#TableCommands+1] = {
717
				["Name"] = Prefix..Name,
718
				["Callback"] = Callback,
719
				["Does"] = Does or ""
720
			}
721
		end
722
	end)
723
end
724
do
725
	--//Temp set up
726
	Temp.CmdsC = false
727
	Temp.Waiting2 = nil
728
	Temp.Waiting = false
729
	Temp.Esps={}
730
	Temp.RankCooldown = false
731
end
732
733
do
734
	--//Prison life stuff functions
735
	function GetHumanoid()
736
		return plr.Character:FindFirstChildOfClass("Humanoid")
737
	end
738
	function WaitForRespawn()
739
		task.spawn(function()
740
			Temp.Waiting = true
741
			local RepeatPos = getpos()
742
			task.spawn(function()
743
				Temp.Waiting2 = plr.CharacterAdded:Connect(function(char)
744
					repeat task.wait() until char and char:FindFirstChild("HumanoidRootPart")
745
					Temp.Waiting = false
746
					MoveTo(RepeatPos)
747
				end)
748
			end)
749
			repeat task.wait()
750
				RepeatPos = getpos()
751
			until Temp.Waiting == false
752
			Temp.Waiting2:Disconnect()
753
		end)
754
		return
755
	end
756
	HasGamepass = false
757
	function swait()--//fast wait
758
		game:GetService("RunService").Stepped:Wait()
759
	end
760
	function Godmode()
761
		local Hats = {}
762
		repeat task.wait() until plr.Character:FindFirstChildOfClass("Accessory")
763
		do
764
			--//Fix the stupid hat falling off because it looks good without it falling and because im not gay
765
			for i,v in pairs(plr.Character:GetChildren()) do
766
				if v and v:IsA("Accessory") then
767
					pcall(function()
768
						v.Handle.CanTouch = false
769
						Hats[#Hats+1] = {
770
							Hat = v,
771
							OldPosition = v.Handle:FindFirstChildOfClass("Weld").C0,
772
							OldPosition2 = v.Handle:FindFirstChildOfClass("Weld").C1
773
						}
774
						v.Handle.Anchored = true
775
					end)
776
777
				end
778
			end
779
		end
780
		do--//Glitch Humanoid
781
			task.spawn(function()
782
				plr.Character:FindFirstChildOfClass("Humanoid"):Destroy()
783
				Instance.new("Humanoid",plr.Character)
784
				pcall(function()
785
					plr.Character:FindFirstChild("Animate").Disabled = true
786
					plr.Character:FindFirstChild("Animate").Disabled = false
787
				end)
788
			end)
789
		end
790
		do
791
			local function FindHat(a)
792
				for i,v in pairs(Hats) do
793
					if v and v == a then
794
						return v
795
					end
796
				end
797
				return nil
798
			end
799
			--Fix hats 2
800
			for i,v in pairs(Hats) do
801
				if v then
802
					pcall(function()
803
						local Hat = v.Hat
804
						local NewWeld = Instance.new("Weld",Hat.Handle)
805
						NewWeld.Part0 = Hat.Handle
806
						NewWeld.Part1 = plr.Character.Head
807
						NewWeld.C0 = v.OldPosition
808
						NewWeld.C1 = v.OldPosition2
809
						Hat.Handle.Anchored = false
810
					end)
811
				end
812
			end
813
		end
814
	end
815
	function ChangeTeam(Team)
816
		if Team == game.Teams.Criminals then
817
			local pos = getpos()
818
			local crimpad = workspace["Criminals Spawn"].SpawnLocation
819
			crimpad.CanCollide = false
820
			crimpad.Transparency = 1
821
			repeat task.wait()crimpad.CFrame = getpos() until plr.Team == game.Teams.Criminals
822
			wait()
823
			MoveTo(pos)
824
			MoveToJunk(crimpad)
825
			return
826
		end
827
		local a,b,c= nil,getpos(),workspace.CurrentCamera.CFrame
828
		a =plr.CharacterAdded:Connect(function(Char)
829
			task.spawn(function()
830
				workspace.CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
831
				for i =1,5 do
832
					workspace.CurrentCamera.CFrame = c
833
				end
834
			end)
835
			Char:WaitForChild("HumanoidRootPart")
836
			MoveTo(b)
837
			a:Disconnect()
838
		end)
839
		local ohString1 = Team.TeamColor.Name
840
		workspace.Remote.TeamEvent:FireServer(ohString1)
841
		return
842
	end
843
	function unsit()
844
		plr.Character:FindFirstChildOfClass("Humanoid").Sit = false
845
	end
846
	if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, 96651) then
847
		HasGamepass = true
848
	end
849
	Events = {
850
		TeamEvent = workspace.Remote.TeamEvent,
851
		ShootEvent = game:GetService("ReplicatedStorage").ShootEvent,
852
		loadchar = function()
853
			if plr.Team == game.Teams.Inmates then
854
				local ohString1 = "Bright orange"
855
				workspace.Remote.TeamEvent:FireServer(ohString1)
856
			elseif plr.Team == game.Teams.Guards then
857
858
				local ohString1 = "Bright blue"
859
				workspace.Remote.TeamEvent:FireServer(ohString1)
860
			elseif plr.Team == game.Teams.Criminals then
861
				workspace.Remote.TeamEvent:FireServer("Bright orange")
862
				wait(.3)
863
				local crimpad = workspace["Criminals Spawn"].SpawnLocation
864
				crimpad.CanCollide = false
865
				crimpad.Transparency = 1
866
				repeat task.wait()crimpad.CFrame = getpos() until plr.Team == game.Teams.Criminals
867
				MoveToJunk(crimpad)
868
			end
869
		end,
870
	}
871
	function BadArea(Player)
872
		local mod = require(game.ReplicatedStorage["Modules_client"]["RegionModule_client"])
873
		local a =pcall(function()
874
			if mod.findRegion(Player.Character) then
875
				mod = mod.findRegion(Player.Character)["Name"]
876
			end
877
		end)
878
		if not a then
879
			return
880
		end
881
		for i,v in pairs(game:GetService("ReplicatedStorage").PermittedRegions:GetChildren()) do
882
			if v and mod == v.Value then
883
				return false
884
			end
885
		end
886
		return true
887
	end
888
	function GetGun(Item,Ignore)
889
		local saved = game:GetService("Players").LocalPlayer.Character:GetPrimaryPartCFrame()
890
		if workspace.Prison_ITEMS.giver:FindFirstChild(Item) and workspace.Prison_ITEMS.giver:FindFirstChild(Item):FindFirstChild("ITEMPICKUP") then
891
			Item =workspace.Prison_ITEMS.giver:FindFirstChild(Item)
892
			local ohInstance1 = Item:FindFirstChildOfClass("Part")
893
			MoveTo(CFrame.new(ohInstance1.Position))
894
			repeat wait()
895
				local ohInstance1 = Item:FindFirstChildOfClass("Part")
896
				MoveTo(CFrame.new(ohInstance1.Position))
897
				task.spawn(function()
898
					workspace.Remote.ItemHandler:InvokeServer(ohInstance1)
899
				end)
900
				wait()
901
			until plr.Backpack:FindFirstChild(Item.Name) or plr.Character:FindFirstChild(Item.Name)
902
		end
903
		if Ignore ~= true then
904
			plr.Character:SetPrimaryPartCFrame(Ignore or saved)
905
		end
906
	end
907
	function Fly(Enable,SpeedNew)
908
		if Enable then
909
			if Temp.FlyConnection then
910
				return
911
			end
912
			Temp.FlyConnection= RunService.Heartbeat:Connect(function()
913
				if true then
914
					plr.Character:WaitForChild("HumanoidRootPart").CFrame = CFrame.new(plr.Character:WaitForChild("HumanoidRootPart").Position, plr.Character:WaitForChild("HumanoidRootPart").Position + Vector3.new(Mouse.Hit.lookVector.x, Mouse.Hit.lookVector.Y, Mouse.Hit.lookVector.z))
915
				end
916
			end)
917
918
			local Speed = tonumber(SpeedNew)/2 or .1
919
			local Y = 1
920
			local State = 8
921
			local StartingPosition = plr.Character.PrimaryPart.CFrame
922
923
			local Keys = {
924
				w = false,
925
				a = false,
926
				s = false,
927
				d = false,
928
			}
929
			local function MoveBy(a)
930
				if not Temp.FlyConnection then
931
					return
932
				end
933
				plr.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame *a
934
			end
935
			Mouse.KeyUp:Connect(function(Key)
936
				if Key and Keys[Key:lower()] ~= nil and Temp.FlyConnection then
937
					Keys[Key:lower()] = false
938
				end
939
			end)
940
			Mouse.KeyDown:Connect(function(Key)
941
				if Key and Keys[Key:lower()] ~= nil and Temp.FlyConnection then
942
					Keys[Key:lower()] = true
943
				end
944
			end)
945
946
			plr.Character.HumanoidRootPart.Changed:Connect(function()
947
				if true and Temp.FlyConnection then
948
					plr.Character.HumanoidRootPart.Velocity = Vector3.new(0,Y,0)
949
				end
950
			end)
951
			RunService.RenderStepped:Connect(function()
952
				if true and Temp.FlyConnection then
953
					plr.Character.HumanoidRootPart.Velocity = Vector3.new(0,Y,0)
954
					if Keys.w then
955
						MoveBy(CFrame.new(0,0,-Speed))
956
					end
957
					if Keys.a then
958
						MoveBy(CFrame.new(-Speed,0,0))
959
					end
960
					if Keys.s then
961
						MoveBy(CFrame.new(0,0,Speed))
962
					end
963
					if Keys.d then
964
						MoveBy(CFrame.new(Speed,0,0))
965
					end
966
				end
967
			end)
968
			task.spawn(function()
969
				repeat wait(.4)
970
					if unloaded then
971
						break
972
					end
973
					pcall(function()
974
						plr.Character:FindFirstChildOfClass("Humanoid").StateChanged:Connect(function()
975
							if not Temp.FlyConnection then
976
								return
977
							end
978
							plr.Character:FindFirstChildOfClass("Humanoid"):ChangeState(State)
979
						end)
980
						plr.Character:FindFirstChildOfClass("Humanoid"):ChangeState(State)
981
					end)
982
				until not Temp.FlyConnection
983
			end)
984
			local function rwait(a)
985
				if true then
986
					wait(a)
987
				end
988
			end
989
			local function rwait2()
990
				if true then
991
					task.wait()
992
				end
993
			end
994
			task.spawn(function()
995
				repeat wait(1)
996
					if unloaded then
997
						break
998
					end
999
					if true and Temp.FlyConnection then
1000
						pcall(function()
1001
							State = 7--//Landed
1002
							rwait(.1)
1003
							State=8--//Running
1004
							rwait(1)
1005
							State = 3--//Jumping
1006
							rwait2()
1007
							State = 5--//Falling
1008
						end)
1009
					end
1010
				until not Temp.FlyConnection
1011
1012
			end)
1013
			local function onInputBegan(input, _gameProcessed)
1014
				if input.KeyCode == Enum.KeyCode.Space then
1015
					Y = 20
1016
				end
1017
				if input.KeyCode == Enum.KeyCode.LeftShift then
1018
					Y = -20
1019
				end
1020
			end
1021
			local function onInputEnded(input, _gameProcessed)
1022
1023
				if input.KeyCode == Enum.KeyCode.Space then
1024
					Y = 1
1025
				end
1026
				if input.KeyCode == Enum.KeyCode.LeftShift then
1027
					Y = 1
1028
				end
1029
			end
1030
			UserInputService.InputBegan:Connect(onInputBegan)
1031
1032
			UserInputService.InputEnded:Connect(onInputEnded)
1033
1034
		else
1035
			pcall(function()
1036
				Temp.FlyConnection:Disconnect()
1037
				Temp.FlyConnection=nil
1038
			end)
1039
			pcall(function()
1040
				wait(.1)
1041
				plr.Character:FindFirstChildOfClass("Humanoid"):ChangeState(18)
1042
				wait(.04)
1043
				char:FindFirstChildOfClass("Humanoid"):ChangeState(8)
1044
			end)
1045
		end
1046
1047
	end
1048
	function All_Guns()
1049
		local saved = game:GetService("Players").LocalPlayer.Character:GetPrimaryPartCFrame()
1050
		if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, 96651) then
1051
			GetGun("M4A1",true)
1052
		end
1053
		GetGun("AK-47",true)
1054
		task.spawn(function()
1055
			GetGun("Remington 870",true)
1056
		end)
1057
		GetGun("M9",true)
1058
		game:GetService("Players").LocalPlayer.Character:SetPrimaryPartCFrame(saved)
1059
	end
1060
	function GetTeam()
1061
		return plr.TeamColor.Name
1062
	end
1063
	function GenerateShootTable(Hit)
1064
		local Generated = {}
1065
		for i=1,15 do
1066
			Generated[#Generated+1]={
1067
				["RayObject"] = Ray.new(Vector3.new(), Vector3.new()), 
1068
				["Distance"] =0, 
1069
				["Cframe"] = CFrame.new(), 
1070
				["Hit"] = Hit
1071
			}
1072
		end
1073
		return Generated
1074
	end
1075
1076
	function Valid_Team(Team)
1077
		if Team and typeof(Team):lower()=="string" then
1078
			local Valid = {
1079
				"Bright orange",
1080
				"Bright blue",
1081
			}
1082
			if table.find(Valid,Team) then
1083
				return true
1084
			elseif Team == "Really red" then
1085
				return 1
1086
			end
1087
			return nil
1088
		end
1089
	end
1090
	function Last_Team(Lastteam)
1091
		task.spawn(function()
1092
			local a,b,c= nil,getpos(),workspace.CurrentCamera.CFrame
1093
			a =plr.CharacterAdded:Connect(function(Char)
1094
				task.spawn(function()
1095
					workspace.CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
1096
					for i =1,5 do
1097
						workspace.CurrentCamera.CFrame = c
1098
					end
1099
				end)
1100
				Char:WaitForChild("HumanoidRootPart")
1101
				MoveTo(b)
1102
				a:Disconnect()
1103
			end)
1104
			local Team = Valid_Team(Lastteam)
1105
			if Team and Team~=1 then
1106
				local pos = getpos()
1107
				workspace.Remote.TeamEvent:FireServer(Lastteam)
1108
			elseif Team and Team == 1 then
1109
				workspace.Remote.TeamEvent:FireServer("Bright orange")
1110
				local crimpad = workspace["Criminals Spawn"].SpawnLocation
1111
				crimpad.CanCollide = false
1112
				crimpad.Transparency = 1
1113
				repeat task.wait()crimpad.CFrame = getpos() until plr.Team == game.Teams.Criminals
1114
				MoveToJunk(crimpad)
1115
			end
1116
		end)
1117
	end
1118
	function GetPlayersPart(player)
1119
		if player and player.Character then
1120
			return player.Character:FindFirstChild("Head") or player.Character:FindFirstChildOfClass("Part") or player.Character:FindFirstChildOfClass("MeshPart")
1121
		end
1122
	end
1123
	function CreateKillPart()
1124
		if Parts[1] then
1125
			pcall(function()
1126
				Parts[1]:Destroy()
1127
			end)
1128
			Parts[1] = nil
1129
		end
1130
		local Part = Instance.new("Part",plr.Character)
1131
		local hilight = Instance.new("Highlight",Part)
1132
		hilight.FillTransparency = 1
1133
1134
		Part.Anchored = true
1135
		Part.CanCollide = false
1136
		Part.CanTouch = false
1137
		Part.Material = Enum.Material.SmoothPlastic
1138
		Part.Transparency = .98
1139
		Part.Material = Enum.Material.SmoothPlastic
1140
		Part.BrickColor = BrickColor.White()
1141
		Part.Size = Vector3.new(20,2,20)
1142
		Part.Name = "KillAura"
1143
		Parts[1] = Part
1144
	end
1145
	function MKILL(target,STOP,P)
1146
		if target == plr or target == plr.Name then
1147
			return
1148
		end
1149
		if typeof(target):lower() == "string" and game:GetService("Players"):FindFirstChild(target) then
1150
			target = game:GetService("Players"):FindFirstChild(target)
1151
		end
1152
		if not STOP then STOP =1 end
1153
		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
1154
			return
1155
		end
1156
		unsit()
1157
		local saved = getpos()
1158
		if not P then P = saved else saved = P end
1159
		game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = target.Character:FindFirstChild("Head").CFrame
1160
		wait(.2)
1161
		for i =1,10 do
1162
			task.spawn(function()
1163
				game.ReplicatedStorage["meleeEvent"]:FireServer(target)
1164
			end)
1165
		end
1166
		wait(.1)
1167
		if target and target.Character and target.Character:FindFirstChild("Humanoid") and target.Character:FindFirstChild("Humanoid").Health >1 and STOP ~=3 then
1168
			MKILL(target,STOP+1,P)
1169
			return
1170
		end
1171
		MoveTo(saved)
1172
	end
1173
	function Kill_All(TeamS)
1174
		local a = GetTeam()
1175
		local saved = getpos()
1176
		local Team = GetTeam()
1177
		if not TeamS then
1178
			ChangeTeam(game.Teams.Inmates)
1179
		end
1180
		GetGun("M9")
1181
		repeat task.wait() until plr.Backpack:FindFirstChild("M9")
1182
		local Gun = plr.Backpack:FindFirstChild("M9")
1183
		local Gen = {}
1184
		if TeamS then
1185
			if TeamS == game.Teams.Guards then
1186
				ChangeTeam(game.Teams.Inmates)
1187
			elseif TeamS == game.Teams.Inmates then
1188
				ChangeTeam(game.Teams.Criminals)
1189
			end
1190
		end
1191
		if not TeamS then
1192
			for i,v in pairs(game:GetService("Players"):GetPlayers()) do
1193
				if not table.find(Whitelisted,v.Name) and v ~= plr then
1194
					if v.Team == game.Teams.Criminals then
1195
						for i =1,10 do
1196
							Gen[#Gen+1]={
1197
								["RayObject"] = Ray.new(Vector3.new(0,0,0), Vector3.new(0,0,0)),
1198
								["Distance"] = .1,
1199
								["Cframe"] = CFrame.new(),
1200
								["Hit"] = v.Character:WaitForChild("Head")
1201
							}
1202
						end
1203
					end
1204
				end
1205
			end
1206
			game:GetService("ReplicatedStorage").ShootEvent:FireServer(Gen, Gun)
1207
		end
1208
		--
1209
		if not TeamS then
1210
			ChangeTeam(game.Teams.Criminals)
1211
		end
1212
		for i,v in pairs(game:GetService("Players"):GetPlayers()) do
1213
			if not table.find(Whitelisted,v.Name) and v ~= plr then
1214
				if (TeamS and v.Team == TeamS) or not TeamS then
1215
					for i =1,10 do
1216
						Gen[#Gen+1]={
1217
							["RayObject"] = Ray.new(Vector3.new(0,0,0), Vector3.new(0,0,0)),
1218
							["Distance"] = .1,
1219
							["Cframe"] = CFrame.new(),
1220
							["Hit"] = v.Character:WaitForChild("Head")
1221
						}
1222
					end
1223
				end
1224
			end
1225
		end
1226
		game:GetService("ReplicatedStorage").ShootEvent:FireServer(Gen, Gun)
1227
		wait(.1)
1228
		Last_Team(a)
1229
		wait(.4)
1230
		game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = saved
1231
	end
1232
	function keycard()
1233
		if plr.Character:FindFirstChild("Key card") or plr.Backpack:FindFirstChild("Key card") then
1234
			return Notif("You already have a keycard!")
1235
		end
1236
		if game:GetService("Workspace")["Prison_ITEMS"].single:FindFirstChild("Key card") then
1237
			local a =getpos()
1238
			local Key = workspace.Prison_ITEMS.single["Key card"].ITEMPICKUP
1239
			MoveTo(CFrame.new(workspace.Prison_ITEMS.single["Key card"].ITEMPICKUP.Position))
1240
			wait()
1241
			repeat wait(.1)
1242
				local a =pcall(function()
1243
					local Key = workspace.Prison_ITEMS.single["Key card"].ITEMPICKUP
1244
					game.Workspace.Remote["ItemHandler"]:InvokeServer(Key)
1245
					MoveTo(CFrame.new(workspace.Prison_ITEMS.single["Key card"].ITEMPICKUP.Position+Vector3.new(0,3,0)))
1246
				end)
1247
				if not a then
1248
					break
1249
				end
1250
			until plr.Backpack:FindFirstChild("Key card")
1251
			wait()
1252
			MoveTo(a)
1253
			return
1254
		end
1255
		local a,b= getpos(),plr.TeamColor.Name
1256
		local HadOn = States.autore
1257
		if HadOn then
1258
			States.autore = false
1259
		end
1260
		ChangeTeam(game.Teams.Guards)
1261
		repeat wait(.2)
1262
			pcall(function()
1263
				plr.Character:FindFirstChildOfClass("Humanoid").Health =0
1264
				wait(.2)
1265
				ChangeTeam(game.Teams.Guards)
1266
			end)
1267
		until game:GetService("Workspace")["Prison_ITEMS"].single:FindFirstChild("Key card")
1268
		if HadOn then
1269
			States.autore = true
1270
		end
1271
		Last_Team(b)
1272
		wait(.1)
1273
		MoveTo(CFrame.new(workspace.Prison_ITEMS.single["Key card"].ITEMPICKUP.Position))
1274
		wait()
1275
		repeat wait(.1)
1276
			local a =pcall(function()
1277
				local Key = workspace.Prison_ITEMS.single["Key card"].ITEMPICKUP
1278
				game.Workspace.Remote["ItemHandler"]:InvokeServer(Key)
1279
				MoveTo(CFrame.new(workspace.Prison_ITEMS.single["Key card"].ITEMPICKUP.Position+Vector3.new(0,3,0)))
1280
			end)
1281
			if not a then
1282
				break
1283
			end
1284
		until plr.Backpack:FindFirstChild("Key card")
1285
		wait()
1286
		MoveTo(a)
1287
1288
	end
1289
	function ReturnGun()
1290
		for i,v in pairs(plr.Backpack:GetChildren()) do
1291
			if v and v:IsA("Tool") and v:FindFirstChildOfClass("ModuleScript") then
1292
				return v
1293
			end
1294
		end
1295
		return nil
1296
	end
1297
	function kill(player,Type)
1298
		if typeof(player):lower() == "string" then
1299
			if game:GetService("Players"):FindFirstChild(player) then
1300
				player = game:GetService("Players"):FindFirstChild(player)
1301
			else
1302
				return
1303
			end
1304
		end
1305
		if player == plr or player == plr.Name then
1306
			return Notif("Can't kill yourself????")
1307
		end
1308
		local Gun = ReturnGun()
1309
		if table.find(Whitelisted,player.Name) then
1310
			print("error is whitelisted - 1")
1311
			return Notif("This player is whitelisted")
1312
		end
1313
		if Gun and plr.Team ~= player.Team then
1314
			local Gen = {}
1315
			for i =1,15 do
1316
				Gen[#Gen+1]={
1317
					["RayObject"] = Ray.new(Vector3.new(0,0,0), Vector3.new(0,0,0)),
1318
					["Distance"] = .1,
1319
					["Cframe"] = CFrame.new(),
1320
					["Hit"] = player.Character:WaitForChild("Head")
1321
				}
1322
			end
1323
1324
			game:GetService("ReplicatedStorage").ShootEvent:FireServer(Gen, Gun)
1325
		else
1326
			MKILL(player)
1327
		end
1328
		wait(.3)
1329
		if player.Character:FindFirstChildOfClass("Humanoid") and player.Character:FindFirstChildOfClass("Humanoid").Health <1 then
1330
			Notif("Player has been killed")
1331
		else
1332
			Notif("Failed to kill player")
1333
		end
1334
	end
1335
	function tase_all()
1336
		local lastteam,Last = plr.TeamColor.Name,getpos()
1337
		local Table = {}
1338
		for i,v in pairs(game:GetService("Players"):GetPlayers()) do
1339
			if v and v.Team ~= game:GetService("Teams").Guards and v ~= plr then
1340
				Table[#Table+1]={
1341
					["RayObject"] = Ray.new(Vector3.new(972.877869, 101.489967, 2362.66821), Vector3.new(-53.8579292, -7.45228672, 83.9272766)),
1342
					["Distance"] = 1,
1343
					["Cframe"] = CFrame.new(969.60144, 100.734177, 2369.42334, 0.777441919, -0.0313242674, -0.628174186, 1.86264515e-09, 0.998758912, -0.0498036928, 0.628954709, 0.038719479, 0.776477098),
1344
					["Hit"] = v.Character.HumanoidRootPart
1345
				}
1346
			end
1347
		end
1348
		if plr.Team ~= game.Teams.Guards then
1349
			local ohString1 = "Bright blue"
1350
			task.spawn(function()
1351
				plr.CharacterAdded:Wait():WaitForChild("HumanoidRootPart").CFrame = Last
1352
			end)
1353
			workspace.Remote.TeamEvent:FireServer(ohString1)
1354
		end
1355
		repeat task.wait() until game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Taser")
1356
		game:GetService("ReplicatedStorage").ShootEvent:FireServer(Table, game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Taser"))
1357
		task.spawn(function() game:GetService("ReplicatedStorage").ReloadEvent:FireServer(game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Taser")) end)
1358
		wait(.3)
1359
		Last_Team(lastteam)
1360
		plr.CharacterAdded:Wait():WaitForChild("HumanoidRootPart").CFrame = Last
1361
	end
1362
	function tase(player)
1363
		print("Called")
1364
		local lastteam,Last = plr.TeamColor.Name,getpos()
1365
		if typeof(player):lower() == "string" then
1366
			if game:GetService("Players"):FindFirstChild(player) then
1367
				player = game:GetService("Players"):FindFirstChild(player)
1368
1369
			end
1370
		end
1371
		if table.find(Whitelisted,player.Name) then
1372
			print("error is whitelisted - 1")
1373
			return Notif("This player is whitelisted")
1374
		end
1375
		if plr.Team ~= game.Teams.Guards then
1376
			local ohString1 = "Bright blue"
1377
			task.spawn(function()
1378
				plr.CharacterAdded:Wait():WaitForChild("HumanoidRootPart").CFrame = Last
1379
			end)
1380
			workspace.Remote.TeamEvent:FireServer(ohString1)
1381
		end
1382
		repeat task.wait() until game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Taser")
1383
		wait(.3)
1384
		game:GetService("ReplicatedStorage").ShootEvent:FireServer({
1385
			[1] = {
1386
				["RayObject"] = Ray.new(Vector3.new(972.877869, 101.489967, 2362.66821), Vector3.new(-53.8579292, -7.45228672, 83.9272766)),
1387
				["Distance"] = 1,
1388
				["Cframe"] = CFrame.new(969.60144, 100.734177, 2369.42334, 0.777441919, -0.0313242674, -0.628174186, 1.86264515e-09, 0.998758912, -0.0498036928, 0.628954709, 0.038719479, 0.776477098),
1389
				["Hit"] = player.Character.HumanoidRootPart
1390
			}
1391
		}, game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Taser"))
1392
		print('ShotBullet')
1393
		task.spawn(function() game:GetService("ReplicatedStorage").ReloadEvent:FireServer(game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Taser")) end)
1394
		print('Reloaded')
1395
		wait(.4)
1396
		Last_Team(lastteam)
1397
		plr.CharacterAdded:Wait():WaitForChild("HumanoidRootPart").CFrame = Last
1398
	end
1399
	function touch(Toucher,TouchThis)
1400
		if not Toucher or not TouchThis then
1401
			return
1402
		end
1403
		task.spawn(function()
1404
			firetouch(Toucher,TouchThis,0)
1405
			firetouch(Toucher,TouchThis,1)
1406
			print("Touch")
1407
		end)
1408
	end
1409
	function MoveTo(Pos,t)
1410
		unsit()
1411
		pcall(function()
1412
			if typeof(Pos):lower() == "position" then
1413
				Pos = CFrame.new(Pos)
1414
			end
1415
			for i =1,3 do
1416
				plr.Character:FindFirstChild("HumanoidRootPart").CFrame = Pos
1417
			end
1418
		end)
1419
	end
1420
	function getpos()
1421
		return plr.Character:FindFirstChild("HumanoidRootPart").CFrame
1422
	end
1423
	function AntiPunchC(v2)
1424
		pcall(function()
1425
			if v2 == plr then
1426
				return
1427
			end
1428
			v2.Character:FindFirstChildOfClass("Humanoid").AnimationPlayed:Connect(function(animationTrack)
1429
				if States.AntiPunch and not unloaded then
1430
					if animationTrack.Animation.AnimationId == "rbxassetid://484200742" or animationTrack.Animation.AnimationId =="rbxassetid://484926359" then
1431
						if (plr.Character.HumanoidRootPart.Position-v2.Character.HumanoidRootPart.Position).magnitude <3.5 and not table.find(Whitelisted,v2.Name) and not IsBringing then
1432
							for i =1,13 do
1433
								task.spawn(function()
1434
									game.ReplicatedStorage["meleeEvent"]:FireServer(v2)
1435
								end)
1436
							end
1437
						end
1438
					end
1439
				end
1440
			end)
1441
		end)
1442
	end
1443
1444
1445
	function refresh(Pos)
1446
		if not Pos then
1447
			Pos = getpos()
1448
		end
1449
		Resfreshing = true
1450
		local Goto = Pos or getpos()
1451
		local Connections = {}
1452
		local Cam = workspace.CurrentCamera.CFrame
1453
		Connections[1] = plr.CharacterAdded:Connect(function(charnew)
1454
			pcall(function()
1455
				task.spawn(function()
1456
					workspace.CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
1457
					for i =1,5 do
1458
						workspace.CurrentCamera.CFrame = Cam
1459
					end
1460
				end)
1461
				repeat task.wait() until charnew and charnew:FindFirstChild("HumanoidRootPart")
1462
				MoveTo(Goto)
1463
				task.spawn(function()
1464
					wait(.05)
1465
					MoveTo(Goto)
1466
					Resfreshing = false
1467
				end)
1468
				Connections[1]:Disconnect()
1469
			end)
1470
		end)
1471
		Events.loadchar()
1472
		print("Refreshed")
1473
		return
1474
	end
1475
	--//
1476
	function FixHats(Hats)
1477
		local function FindHat(a)
1478
			for i,v in pairs(Hats) do
1479
				if v and v == a then
1480
					return v
1481
				end
1482
			end
1483
			return nil
1484
		end
1485
		--Fix hats 2
1486
		for i,v in pairs(Hats) do
1487
			if v then
1488
				pcall(function()
1489
					local Hat = v.Hat
1490
					local NewWeld = Instance.new("Weld",Hat.Handle)
1491
					NewWeld.Part0 = Hat.Handle
1492
					NewWeld.Part1 = plr.Character.Head
1493
					NewWeld.C0 = v.OldPosition
1494
					NewWeld.C1 = v.OldPosition2
1495
					Hat.Handle.Anchored = false
1496
				end)
1497
			end
1498
		end
1499
	end
1500
	function bring(player,pos,Type,Extra)
1501
		if player and player ~= plr and player ~= plr.Name then
1502
			local lastteam = plr.TeamColor.Name
1503
			if plr.Team ~= game.Teams.Guards then
1504
				local ohString1 = "Bright blue"
1505
				workspace.Remote.TeamEvent:FireServer(ohString1)
1506
			end
1507
			task.spawn(function()
1508
				wait(.1)
1509
				if plr.Team ~= game.Teams.Guards then
1510
					Notif("Guards team full or server laggy.")
1511
					return
1512
				end
1513
			end)
1514
			wait()
1515
			local Done = false
1516
			local _MAX = 0
1517
			local Last = getpos()
1518
			local Handcuffs = plr.Backpack:FindFirstChild("Handcuffs")
1519
			local hrp = plr.Character:WaitForChild("HumanoidRootPart")
1520
			if not pos then
1521
				pos = getpos()
1522
			end
1523
			local Goto = pos
1524
			repeat task.wait() Handcuffs = plr.Backpack:FindFirstChild("Handcuffs")  until Handcuffs and Handcuffs:FindFirstChild("Handle")
1525
			if not Handcuffs or not Handcuffs:FindFirstChild("Handle") or not Handcuffs.Handle:FindFirstChildOfClass("SpecialMesh") then
1526
				return Notif("Failed to bring due to a rare error!")
1527
			end
1528
1529
			player.Character:FindFirstChildOfClass("Humanoid"):RemoveAccessories()
1530
			if Type ~= "a" then
1531
				Handcuffs.Handle:FindFirstChildOfClass("SpecialMesh"):Destroy()
1532
			end
1533
			wait(.1)
1534
			if pos then
1535
				MoveTo(pos)
1536
				wait()
1537
			end
1538
			IsBringing = true
1539
			wait(.1)
1540
			local Hats = {}
1541
			do
1542
				--//Fix the stupid hat falling off because it looks good without it falling and because im not gay
1543
				for i,v in pairs(plr.Character:GetChildren()) do
1544
					if v and v:IsA("Accessory") then
1545
						pcall(function()
1546
							v.Handle.CanTouch = false
1547
							Hats[#Hats+1] = {
1548
								Hat = v,
1549
								OldPosition = v.Handle:FindFirstChildOfClass("Weld").C0,
1550
								OldPosition2 = v.Handle:FindFirstChildOfClass("Weld").C1
1551
							}
1552
							v.Handle.Anchored = true
1553
						end)
1554
1555
					end
1556
				end
1557
			end
1558
			do--//Glitch Humanoid
1559
				task.spawn(function()
1560
					plr.Character:FindFirstChildOfClass("Humanoid"):Destroy()
1561
					Instance.new("Humanoid",plr.Character)
1562
				end)
1563
			end
1564
			FixHats(Hats)
1565
			repeat task.wait()
1566
				pcall(function()
1567
					plr.Character:FindFirstChildOfClass("Humanoid"):EquipTool(Handcuffs)
1568
				end)
1569
			until Handcuffs.Parent == plr.Character
1570
			local crimpad = workspace["Criminals Spawn"].SpawnLocation
1571
			crimpad.CanCollide = false
1572
			crimpad.Transparency = 1
1573
			repeat game:GetService("RunService").RenderStepped:Wait()
1574
				if Handcuffs and Handcuffs:FindFirstChild("Handle") then
1575
					task.spawn(function()
1576
						_MAX+=1
1577
						if player.Character and player.Character.PrimaryPart then
1578
							MoveTo(Goto)
1579
							player.Character:SetPrimaryPartCFrame(Handcuffs.Handle.CFrame)
1580
						end
1581
						wait(.1)
1582
					end)
1583
				end
1584
				if Handcuffs and Handcuffs:FindFirstChild("Handle") then
1585
					touch(GetPlayersPart(player),Handcuffs.Handle)
1586
					pcall(function()
1587
						if Extra == "crim" then
1588
							crimpad.CFrame = player.Character:GetPrimaryPartCFrame()
1589
							touch(GetPlayersPart(player),crimpad)
1590
						end
1591
					end)
1592
				end
1593
			until Handcuffs.Parent ~= plr.Character or _MAX>200
1594
			if pos then
1595
				wait(.2)
1596
				MoveToJunk(crimpad)
1597
			end
1598
			if Extra =="fling" then
1599
				local b = Instance.new("BodyThrust",plr.Character.HumanoidRootPart)
1600
				b.Force = Vector3.new(99999,10000,999999)
1601
				b.Location = plr.Character.HumanoidRootPart.Position
1602
				wait(.2)
1603
			end
1604
			game:GetService("Players").LocalPlayer.Character:MoveTo(player.Character.Head.Position)
1605
			MoveTo(Last)--//stupid fix for it killing
1606
			Last_Team(lastteam)
1607
			plr.CharacterAdded:Wait():WaitForChild("HumanoidRootPart").CFrame = Last
1608
			Done = true
1609
			task.spawn(function()
1610
				wait(.4)
1611
				if player.Character:FindFirstChild("HumanoidRootPart") and (player.Character:FindFirstChild("HumanoidRootPart").Position-Goto.Position).Magnitude >6 then
1612
					if Extra and Extra == true and Extra ~="crim" or Extra == "fling" then
1613
					else
1614
						IsBringing = false
1615
						return bring(player,Goto,Type,true)
1616
					end
1617
				end
1618
			end)
1619
			if pos then
1620
				wait(.1)
1621
			end
1622
			IsBringing = false
1623
			return
1624
		end
1625
	end
1626
end
1627
1628
do
1629
	--//Commands
1630
	function NotFound()
1631
		Notif("Player left or is not in server!")
1632
	end
1633
	function Toggle(a,b)
1634
		if not a then
1635
			States[b] = not States[b]
1636
		elseif a == "on" then
1637
			States[b] = true
1638
		elseif a == "off" then
1639
			States[b] = false
1640
		end
1641
		Notif(b.." is now set to "..tostring(States[b]))
1642
	end
1643
	Add_Command("cmds",function(Args)
1644
1645
		local Args = GetArgs(Args)
1646
		if not Temp.CmdsC then
1647
			Temp.CmdsC = true
1648
			if Commands.Visible == false then
1649
				Commands.Position = Commands.Position+UDim2.new(0,0,1,0)
1650
				wait(.1)
1651
				Commands:TweenPosition(SavedCmdsPosition,"Out","Quart",1)
1652
				Commands.Visible = true
1653
			else
1654
				Commands:TweenPosition(SavedCmdsPosition+UDim2.new(0,0,1,0),"Out","Quart",1)
1655
				wait(.5)
1656
				Commands.Visible = false
1657
			end
1658
			wait(.7)
1659
			Temp.CmdsC = false
1660
		end
1661
		Notif("Type cmds again to close the gui!")
1662
	end,"Shows commands gui")
1663
	Add_Command("rejoin",function(Args)
1664
		local Args = GetArgs(Args)
1665
		Notif("Rejoining...")
1666
		wait(.3)
1667
		if #game:GetService("Players"):GetPlayers() ==1 then
1668
			game:GetService("Players").LocalPlayer:Kick("Please wait.")
1669
			game:GetService("TeleportService"):Teleport(game.PlaceId, game:GetService("Players").LocalPlayer)
1670
		else
1671
			game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId, game:GetService("Players").LocalPlayer)
1672
		end
1673
	end,"Rejoins the server")
1674
	Add_Command("opendoors",function(Args)
1675
		local Args = GetArgs(Args)
1676
		local LastTeam =plr.TeamColor.Name
1677
		ChangeTeam(game.Teams.Guards)
1678
		wait(.7)
1679
		task.spawn(function()
1680
			local Arg_1 = game:GetService("Workspace")["Prison_ITEMS"].buttons["Prison Gate"]["Prison Gate"]
1681
			local Event = game:GetService("Workspace").Remote.ItemHandler
1682
			Event:InvokeServer(Arg_1)
1683
		end)
1684
		for i,v in pairs(game:GetService("Workspace").Doors:GetChildren()) do
1685
			if v then
1686
				if v:FindFirstChild("block") and v:FindFirstChild("block"):FindFirstChild("hitbox") then
1687
					firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart,v.block.hitbox,0)
1688
					firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart,v.block.hitbox,1)
1689
				end
1690
			end
1691
		end
1692
		wait(1)
1693
		Last_Team(LastTeam)
1694
	end,"Opens every door")
1695
	Add_Command("prefix",function(Args)
1696
		local Args = GetArgs(Args)
1697
		if Args[2] and tostring(Args[2]) then
1698
			Prefix = tostring(Args[2])
1699
			for i,v in pairs(TableCommands) do
1700
				if v then
1701
					v.Name = Prefix..string.sub(v.Name,2,#v.Name)
1702
				end
1703
			end
1704
			for i,v in pairs(CommandsRawList) do
1705
				if v then
1706
					v.Text = Prefix..string.sub(v.Text,2,#v.Text)
1707
				end
1708
			end
1709
			Notif("prefix set to "..Args[2])
1710
		else
1711
			Notif("no prefix selected?")
1712
		end
1713
1714
	end,"sets a prefix","STRING_COMMAND")
1715
	Add_Command("keycard",function(Args)
1716
		local Args = GetArgs(Args)
1717
		keycard()
1718
	end,"true",true)
1719
	Add_Command("btools",function(Args)
1720
		local Args = GetArgs(Args)
1721
		Instance.new("HopperBin",plr.Backpack).BinType = 3
1722
		Instance.new("HopperBin",plr.Backpack).BinType = 4
1723
	end,"client sided btools that you can only see")
1724
	Add_Command("key",function(Args)
1725
		local Args = GetArgs(Args)
1726
		keycard()
1727
	end,"Gives you a keycard")
1728
	Add_Command("view",function(Args)
1729
		local Args = GetArgs(Args)
1730
		local r = FindPlayer(Args[2])
1731
		if r then
1732
			Temp.Viewing = nil
1733
			wait(.04)
1734
			Temp.Viewing = r
1735
			workspace.CurrentCamera.CameraSubject = r.Character:FindFirstChildOfClass("Humanoid")
1736
			repeat wait()
1737
				workspace.CurrentCamera.CameraSubject = r.Character:FindFirstChildOfClass("Humanoid")
1738
			until Temp.Viewing == nil
1739
		else
1740
			NotFound()
1741
		end
1742
	end,"views a player","PLAYER_COMMAND")
1743
	Add_Command("unview",function(Args)
1744
		local Args = GetArgs(Args)
1745
		Temp.Viewing = nil
1746
		wait()
1747
		workspace.CurrentCamera.CameraSubject = plr.Character:FindFirstChildOfClass("Humanoid")
1748
	end,"unviews")
1749
	Add_Command("m9",function(Args)
1750
		local Args = GetArgs(Args)
1751
		GetGun("M9")
1752
	end,"Gets m9")
1753
	Add_Command("m4a1",function(Args)
1754
		local Args = GetArgs(Args)
1755
		GetGun("M4A1")
1756
	end,"Gets M4A1")
1757
	Add_Command("tase",function(Args)
1758
		local Args = GetArgs(Args)
1759
		local r = FindPlayer(Args[2])
1760
		if Args[2] == "all" then
1761
			tase_all()
1762
			return
1763
		end
1764
		if r then
1765
			tase(r)
1766
		end
1767
	end,"tases a player","PLAYER_COMMAND")
1768
	Add_Command("fling",function(Args)
1769
		local Args = GetArgs(Args)
1770
		local r = FindPlayer(Args[2])
1771
		if r then
1772
			bring(r,nil,nil,"fling")
1773
		else
1774
			NotFound()
1775
		end
1776
	end,"flings a player","PLAYER_COMMAND")
1777
	Add_Command("ak",function(Args)
1778
		local Args = GetArgs(Args)
1779
		GetGun("AK-47")
1780
	end,"Gets ak47")
1781
	Add_Command("shotgun",function(Args)
1782
		local Args = GetArgs(Args)
1783
		GetGun("Remington 870")
1784
	end,"Gets a shotgun")
1785
	Add_Command("rj",function(Args)
1786
		local Args = GetArgs(Args)
1787
		Execute_Command("!rejoin","!rejoin")
1788
	end,"true",true)
1789
	Add_Command("refresh",function(Args)
1790
		local Args = GetArgs(Args)
1791
		refresh()
1792
	end,"Respawns your character")
1793
	Add_Command("car",function(Args)
1794
		local Args = GetArgs(Args)
1795
		pcall(function()
1796
			local OldPos = game:GetService("Players").LocalPlayer.Character:GetPrimaryPartCFrame()
1797
			game:GetService("Players").LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(-910, 95, 2157))
1798
			wait()
1799
			local car = nil
1800
			task.spawn(function()
1801
				car = game:GetService("Workspace").CarContainer.ChildAdded:Wait()
1802
			end)
1803
			repeat wait(.1)
1804
				local ohInstance1 = game:GetService("Workspace").Prison_ITEMS.buttons:GetChildren()[8]["Car Spawner"]
1805
				workspace.Remote.ItemHandler:InvokeServer(ohInstance1)
1806
			until car
1807
			repeat task.wait() until car:FindFirstChild("RWD") and car:FindFirstChild("Body") and car:FindFirstChild("Body"):FindFirstChild("VehicleSeat")
1808
			car.PrimaryPart = car.RWD
1809
			game:GetService("Players").LocalPlayer.Character:SetPrimaryPartCFrame(OldPos)
1810
			local Done = false
1811
			car.Body.VehicleSeat:Sit(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid"))
1812
			repeat 
1813
				game:GetService("RunService").RenderStepped:Wait()
1814
				car:SetPrimaryPartCFrame(OldPos)
1815
				game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame =CFrame.new(car.Body.VehicleSeat.Position)
1816
				car.Body.VehicleSeat:Sit(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid"))
1817
				if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Sit == true then
1818
					Done = true
1819
				end
1820
			until Done
1821
		end)
1822
	end,"Brings a car to your location")
1823
	Add_Command("re",function(Args)
1824
		local Args = GetArgs(Args)
1825
		Execute_Command("!refresh","!refresh")
1826
	end,"true",true,true,true)
1827
	Add_Command("godmode",function(Args)
1828
		local Args = GetArgs(Args)
1829
		Toggle(Args[2],"Godmode")
1830
		if States.Godmode then--//Long ass godmode
1831
			Godmode()
1832
			local OldP = getpos()
1833
			Temp.IsG = false
1834
			wait()
1835
			Temp.IsG = true
1836
			Temp.ST =false
1837
			local Cam = workspace.CurrentCamera.CFrame
1838
			Temp.Godmode = plr.CharacterAdded:Connect(function(a)
1839
				Temp.ST = true
1840
				task.spawn(function()
1841
					workspace.CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
1842
					for i =1,5 do
1843
						workspace.CurrentCamera.CFrame = Cam
1844
					end
1845
				end)
1846
				repeat task.wait() until a and a:FindFirstChildOfClass("Humanoid")
1847
				MoveTo(OldP)
1848
				Godmode()
1849
				wait()
1850
				Temp.ST = false
1851
				task.spawn(function()
1852
					task.wait(.04)
1853
					MoveTo(OldP)
1854
				end)
1855
			end)
1856
			repeat swait()
1857
				if not States.Godmode or unloaded then
1858
					if unloaded then
1859
						pcall(function()
1860
							Temp.IsG = false
1861
							Temp.ST = nil
1862
							Temp.Godmode:Disconnect()
1863
						end)
1864
					end
1865
					break
1866
				end
1867
				if not Temp.ST then
1868
					Cam = workspace.CurrentCamera.CFrame
1869
					OldP = getpos()
1870
				end
1871
			until States.Godmode == false
1872
		else
1873
			pcall(function()
1874
				Temp.IsG = false
1875
				Temp.ST = nil
1876
				Temp.Godmode:Disconnect()
1877
			end)
1878
			wait()
1879
			refresh()
1880
		end
1881
	end,"Makes you in godmode","TOGGLE_COMMAND")
1882
	Add_Command("unload",function(Args)
1883
		local Args = GetArgs(Args)
1884
		unloaded= true
1885
		for i,v in pairs(Temp) do
1886
			if v and typeof(v) == "RBXScriptConnection" then
1887
				v:Disconnect()
1888
			end
1889
		end
1890
		Temp = {}
1891
		for i,v in pairs(States) do v = false end
1892
		for i,v in pairs(TigerGuis) do if v then v:Destroy() end end
1893
		pcall(function()
1894
			game:GetService("Players").LocalPlayer.PlayerScripts.ClientGunReplicator.Disabled = false
1895
		end)
1896
		Folder:Destroy()
1897
		do
1898
			Temp.Viewing = nil
1899
			wait()
1900
			workspace.CurrentCamera.CameraSubject = plr.Character:FindFirstChildOfClass("Humanoid")
1901
		end
1902
		Notif("Tiger admin is now unloaded, see you soon!")
1903
	end,"Unloads everything")
1904
1905
	Add_Command("kill",function(Args)
1906
		local Args = GetArgs(Args)
1907
		local Check1 = function(ar)
1908
			for i,v in pairs(game:GetService("Teams"):GetChildren()) do
1909
				if v and v.Name:lower() == ar:lower() then
1910
					return v
1911
				end
1912
			end
1913
			return nil
1914
		end
1915
		if Args[2] then
1916
			if Args[2] == "all" then
1917
				Kill_All()
1918
			elseif Check1(Args[2])  then
1919
				Kill_All(Check1(Args[2]))
1920
			else
1921
				local r = FindPlayer(Args[2])
1922
				if r then
1923
					kill(r)
1924
				else
1925
					NotFound()
1926
				end
1927
			end
1928
		else
1929
			Notif("Missing arg2 !kill player")
1930
		end
1931
	end,"kills a player","PLAYER_COMMAND")
1932
	Add_Command("serverhop",function(Args)
1933
		local Args = GetArgs(Args)
1934
		local Ids = {}
1935
		for _, v in ipairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100")).data) do
1936
			if typeof(v) == "table" and v['maxPlayers'] > v['playing'] and v['id'] ~= game['JobId'] then
1937
				table.insert(Ids,v.id)
1938
			end
1939
		end
1940
		return game:GetService("TeleportService"):TeleportToPlaceInstance(game['PlaceId'], Ids[math.random(1, #Ids)])
1941
	end,"Joins another server")
1942
	Add_Command("loopkill",function(Args)
1943
		local Args = GetArgs(Args)
1944
		local r =FindPlayer(Args[2])
1945
		if Args[2]=="all" then
1946
			task.spawn(function()
1947
				if Temp.LkAll==false then
1948
					Temp.LkAll = true
1949
					repeat wait()
1950
						Kill_All()
1951
					until Temp.LkAll == nil
1952
				end
1953
			end)
1954
			return
1955
		end
1956
		if r then
1957
			loopkilling[#loopkilling+1]=r.Name
1958
			Notif("loop killing "..r.Name)
1959
		else
1960
			NotFound()
1961
		end
1962
	end,"loop kills a player","PLAYER_COMMAND")
1963
	Add_Command("unloopkill",function(Args)
1964
		local Args = GetArgs(Args)
1965
		local r =FindPlayer(Args[2])
1966
		if Args[2]=="all" then
1967
			Notif("Unloop killed all")
1968
			Temp.LkAll = nil
1969
			return
1970
		end
1971
		if r then
1972
			table.remove(loopkilling,table.find(loopkilling,r.Name))
1973
			Notif("unlooped "..r.Name)
1974
		else
1975
			NotFound()
1976
		end
1977
	end,"unloop kills a player","PLAYER_COMMAND")
1978
	Add_Command("whitelist",function(Args)
1979
		local Args = GetArgs(Args)
1980
		local r =FindPlayer(Args[2])
1981
		if r then
1982
			Whitelisted[#Whitelisted+1]=r.Name
1983
			Notif("whitelisted "..r.Name)
1984
		else
1985
			NotFound()
1986
		end
1987
	end,"Cant harm that player with commands","PLAYER_COMMAND")
1988
	Add_Command("unwhitelist",function(Args)
1989
		local Args = GetArgs(Args)
1990
		local r =FindPlayer(Args[2])
1991
		if r then
1992
			table.remove(Whitelisted,table.find(Whitelisted,r.Name))
1993
			Notif("unwhitelisted "..r.Name)
1994
		else
1995
			NotFound()
1996
		end
1997
	end,"unwhitelists a player","PLAYER_COMMAND")
1998
	Add_Command("admins",function(Args)
1999
		local Args = GetArgs(Args)
2000
		local Found = ""
2001
		for i,v in pairs(States.Admined) do
2002
			Found = Found..v.." "
2003
		end
2004
		Notif(Found,3)
2005
	end,"Shows you all the players you admined")
2006
	Add_Command("autoadmin",function(Args)
2007
		local Args = GetArgs(Args)
2008
		local r =FindPlayer(Args[2])
2009
		if r then
2010
			States.Admined[#States.Admined+1]=r.Name
2011
			Notif("Admined "..r.Name)
2012
			Msg(r,"You have been admined say !cmds to get started!")
2013
			SavedAdmins[#SavedAdmins+1] = r.Name
2014
			if writefile and readfile then
2015
				local New = {}
2016
				local Content = game:GetService("HttpService"):JSONDecode(readfile("Tiger_Admin/SavedAdmins.json"))
2017
				for i,v in pairs(Content) do
2018
					if v then
2019
						table.insert(New,v)
2020
					end
2021
				end
2022
				table.insert(New,r.Name)
2023
				writefile("Tiger_Admin/SavedAdmins.json",game:GetService("HttpService"):JSONEncode(New))
2024
			end
2025
		else
2026
			NotFound()
2027
		end
2028
	end,"when you execute script it saves all admins","PLAYER_COMMAND")
2029
	Add_Command("unautoadmin",function(Args)
2030
		local Args = GetArgs(Args)
2031
		if writefile and readfile then
2032
			local Content = game:GetService("HttpService"):JSONDecode(readfile("Tiger_Admin/SavedAdmins.json"))
2033
			local Found = FindString(Args[2],Content)
2034
			local New = {}
2035
			if Found then
2036
				for i,v in pairs(Content) do
2037
					warn(v)
2038
					if v and v ~= Found then
2039
						table.insert(New,v)
2040
					else
2041
						warn("removed")
2042
					end
2043
				end
2044
				Notif("Removed admin from player")
2045
			end
2046
			writefile("Tiger_Admin/SavedAdmins.json",game:GetService("HttpService"):JSONEncode(New))
2047
		end
2048
	end,"removes autoadmin from a player","PLAYER_COMMAND")
2049
	Add_Command("admin",function(Args)
2050
		local Args = GetArgs(Args)
2051
		local r =FindPlayer(Args[2])
2052
		if r then
2053
			States.Admined[#States.Admined+1]=r.Name
2054
			Notif("Admined "..r.Name)
2055
			Msg(r,"You have been admined say !cmds to get started!")
2056
		else
2057
			NotFound()
2058
		end
2059
	end,"Admins a player","PLAYER_COMMAND")
2060
	Add_Command("laggun",function(Args)
2061
		local Args = GetArgs(Args)
2062
		if plr.Character:FindFirstChildOfClass("Tool") then
2063
			local Tool = plr.Character:FindFirstChildOfClass("Tool")
2064
			if not Tool:FindFirstChild("GunStates") then
2065
				return Notif("Needs to be a gun!")
2066
			end
2067
			local cc = require(Tool.GunStates)
2068
			cc["Damage"] = 9e9
2069
			cc["FireRate"] = -math.huge
2070
			cc["Range"] = math.huge
2071
			cc["MaxAmmo"] = math.huge
2072
			cc["StoredAmmo"] = math.huge
2073
			cc["AmmoPerClip"] = math.huge
2074
			cc["CurrentAmmo"] = math.huge
2075
			if Tool.Name ~= "Remington 870" then
2076
				cc["Bullets"] = 100
2077
				cc["AutoFire"] = true
2078
			end
2079
			Reload_Guns[#Reload_Guns+1]=Tool
2080
			UneqTools()
2081
		else
2082
			Notif("You need to hold the tool you want to mod!")
2083
		end
2084
	end,"you shoot server gone")
2085
	Add_Command("modgun",function(Args)
2086
		local Args = GetArgs(Args)
2087
		if plr.Character:FindFirstChildOfClass("Tool") then
2088
			local Tool = plr.Character:FindFirstChildOfClass("Tool")
2089
			if not Tool:FindFirstChild("GunStates") then
2090
				return Notif("Needs to be a gun!")
2091
			end
2092
			local cc = require(Tool.GunStates)
2093
			cc["Damage"] = 9e9
2094
			cc["FireRate"] = 0.001
2095
			cc["Range"] = math.huge
2096
			cc["MaxAmmo"] = math.huge
2097
			cc["StoredAmmo"] = math.huge
2098
			cc["AmmoPerClip"] = math.huge
2099
			cc["CurrentAmmo"] = math.huge
2100
			if Tool.Name ~= "Remington 870" then
2101
				cc["Bullets"] = 1
2102
				cc["AutoFire"] = true
2103
			end
2104
			Reload_Guns[#Reload_Guns+1]=Tool
2105
			UneqTools()
2106
		else
2107
			Notif("You need to hold the tool you want to mod!")
2108
		end
2109
	end,"Mods your gun")
2110
	Add_Command("cuffs",function(Args)
2111
		local Args = GetArgs(Args)
2112
		local Player = FindPlayer(Args[2])
2113
		if Player then
2114
			bring(Player,Player.Character:GetPrimaryPartCFrame(),"a",true)
2115
		end
2116
	end,"Gives handcuffs to a player","PLAYER_COMMAND")
2117
	Add_Command("autofire",function(Args)
2118
		local Args = GetArgs(Args)
2119
		if plr.Character:FindFirstChildOfClass("Tool") then
2120
			local Tool = plr.Character:FindFirstChildOfClass("Tool")
2121
			if not Tool:FindFirstChild("GunStates") then
2122
				return Notif("Needs to be a gun!")
2123
			end
2124
			local cc = require(Tool.GunStates)
2125
			cc["AutoFire"] = true
2126
			Reload_Guns[#Reload_Guns+1]=Tool
2127
			UneqTools()
2128
		else
2129
			Notif("You need to hold the tool you want to mod!")
2130
		end
2131
	end,"Makes your gun autofire")
2132
	Add_Command("firerate",function(Args)
2133
		local Args = GetArgs(Args)
2134
		if plr.Character:FindFirstChildOfClass("Tool") then
2135
			local Tool = plr.Character:FindFirstChildOfClass("Tool")
2136
			if not Tool:FindFirstChild("GunStates") then
2137
				return Notif("Needs to be a gun!")
2138
			end
2139
			local cc = require(Tool.GunStates)
2140
			cc["FireRate"] = -math.huge
2141
			Reload_Guns[#Reload_Guns+1]=Tool
2142
			UneqTools()
2143
		else
2144
			Notif("You need to hold the tool you want to mod!")
2145
		end
2146
	end,"Shoot very fast")
2147
	Add_Command("infammo",function(Args)
2148
		local Args = GetArgs(Args)
2149
		if plr.Character:FindFirstChildOfClass("Tool") then
2150
			local Tool = plr.Character:FindFirstChildOfClass("Tool")
2151
			if not Tool:FindFirstChild("GunStates") then
2152
				return Notif("Needs to be a gun!")
2153
			end
2154
			Reload_Guns[#Reload_Guns+1]=Tool
2155
			local cc = require(Tool.GunStates)
2156
			cc["MaxAmmo"] = math.huge
2157
			cc["StoredAmmo"] = math.huge
2158
			cc["AmmoPerClip"] = math.huge
2159
			cc["CurrentAmmo"] = math.huge
2160
			UneqTools()
2161
		else
2162
			Notif("You need to hold the tool you want to mod!")
2163
		end
2164
	end,"makes your gun have inf ammo")
2165
	Add_Command("unadmin",function(Args)
2166
		local Args = GetArgs(Args)
2167
		local r = Args[2]
2168
		if States.Admined and r then
2169
			table.remove(States.Admined,table.find(States.Admined,r.Name))
2170
			Notif("Unadmined "..r.Name)
2171
		else
2172
			NotFound()
2173
		end
2174
	end,"Admins a player","PLAYER_COMMAND")
2175
	Add_Command("bring",function(Args)
2176
		local Args = GetArgs(Args)
2177
		if Args[2] == "all" then
2178
			local pos = getpos()
2179
			for i,v in pairs(game:GetService("Players"):GetPlayers()) do
2180
				if v and v~= plr then
2181
					bring(v,pos)
2182
				end
2183
			end
2184
			wait()
2185
			MoveTo(pos)
2186
		else
2187
			local r = FindPlayer(Args[2])
2188
			if r then
2189
				bring(r)
2190
			else
2191
				NotFound()
2192
			end
2193
		end
2194
	end,"Brings a player to you","PLAYER_COMMAND")
2195
	Add_Command("void",function(Args)
2196
		local Args = GetArgs(Args)
2197
		if Args[2] == "all" then
2198
			local pos = getpos()
2199
			for i,v in pairs(game:GetService("Players"):GetPlayers()) do
2200
				if v and v~= plr then
2201
					bring(v,CFrame.new(9999999999999,9999999999999999,999999999999999))
2202
				end
2203
			end
2204
			wait()
2205
			MoveTo(pos)
2206
		else
2207
			local r = FindPlayer(Args[2])
2208
			if r then
2209
				bring(r,CFrame.new(9999999999999,9999999999999999,999999999999999))
2210
			else
2211
				NotFound()
2212
			end
2213
		end
2214
	end,"Brings a player to the void","PLAYER_COMMAND")
2215
	Add_Command("jump",function(Args)
2216
		local Args = GetArgs(Args)
2217
		local r = Args[2]
2218
		if r and tonumber(r) then
2219
			plr.Character:FindFirstChildOfClass("Humanoid").JumpPower = r
2220
		end
2221
	end,"jumppower what else do you think","NUMBER_COMMAND")
2222
	Add_Command("speed",function(Args)
2223
		local Args = GetArgs(Args)
2224
		local r = Args[2]
2225
		if r and tonumber(r) then
2226
			plr.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = r
2227
		end
2228
	end,"Speed what else do you think","NUMBER_COMMAND")
2229
	Add_Command("goto",function(Args)
2230
		local Args = GetArgs(Args)
2231
		local r = FindPlayer(Args[2])
2232
		if r then
2233
			MoveTo(r.Character["Head"].CFrame)
2234
		else
2235
			NotFound()
2236
		end
2237
	end,"teleports to a player")
2238
	Add_Command("clickkill",function(Args)
2239
		local Args = GetArgs(Args)
2240
		Toggle(Args[2],"ClickKill")
2241
	end,"Click to kill people","TOGGLE_COMMAND")
2242
	Add_Command("clickarrest",function(Args)
2243
		local Args = GetArgs(Args)
2244
		Toggle(Args[2],"ClickArrest")
2245
	end,"Click to arrest people","TOGGLE_COMMAND")
2246
	Add_Command("autorespawn",function(Args)
2247
		local Args = GetArgs(Args)
2248
		Toggle(Args[2],"autore")
2249
	end,"Respawns at death position","TOGGLE_COMMAND")
2250
	Add_Command("onepunch",function(Args)
2251
		local Args = GetArgs(Args)
2252
		Toggle(Args[2],"OnePunch")
2253
	end,"Kills anyone that you punch 1 shot","TOGGLE_COMMAND")
2254
	Add_Command("AntiShield",function(Args)
2255
		local Args = GetArgs(Args)
2256
		Toggle(Args[2],"AntiShield")
2257
		if States.AntiShield then
2258
			wait(1)
2259
			Notif("All shields are being removed until disabled.")
2260
		end
2261
	end,"Kills anyone that you punch 1 shot","TOGGLE_COMMAND")
2262
	Add_Command("fastpunch",function(Args)
2263
		local Args = GetArgs(Args)
2264
		Toggle(Args[2],"FastPunch")
2265
	end,"tap f as fast as you can","TOGGLE_COMMAND")
2266
	Add_Command("killaura",function(Args)
2267
		local Args = GetArgs(Args)
2268
		Toggle(Args[2],"KillAura")
2269
		if States.KillAura then
2270
			if Parts[1] and Parts[1].Name == "KillAura" then
2271
				Parts[1]:Destroy()
2272
				Parts[1] = nil
2273
			end
2274
			wait()
2275
			CreateKillPart()
2276
		else
2277
			if Parts[1] and Parts[1].Name == "KillAura" then
2278
				Parts[1]:Destroy()
2279
				Parts[1] = nil
2280
			end
2281
		end
2282
	end,"Can't touch this but with bigger range","TOGGLE_COMMAND")
2283
	Add_Command("autoitems",function(Args)
2284
		local Args = GetArgs(Args)
2285
		Toggle(Args[2],"AutoItems")
2286
	end,"Get guns at respawn","TOGGLE_COMMAND")
2287
	Add_Command("antiarrest",function(Args)
2288
		local Args = GetArgs(Args)
2289
		Toggle(Args[2],"AntiArrest")
2290
		if States.AntiArrest then
2291
			for i,v in pairs(getconnections(workspace:WaitForChild("Remote").arrestPlayer.OnClientEvent)) do
2292
				v:Disable()
2293
			end
2294
		else
2295
			for i,v in pairs(getconnections(workspace:WaitForChild("Remote").arrestPlayer.OnClientEvent)) do
2296
				v:Enable()
2297
			end
2298
		end
2299
	end,"Trys to prevent arresting","TOGGLE_COMMAND")
2300
	Add_Command("antitase",function(Args)
2301
		local Args = GetArgs(Args)
2302
		Toggle(Args[2],"AntiTase")
2303
		if States.AntiTase then
2304
			for i,v in pairs(getconnections(workspace:WaitForChild("Remote").tazePlayer.OnClientEvent)) do
2305
				v:Disable()
2306
			end
2307
2308
		else
2309
			for i,v in pairs(getconnections(workspace:WaitForChild("Remote").tazePlayer.OnClientEvent)) do
2310
				v:Enable()
2311
			end
2312
		end
2313
	end,"Trys to prevent tasing","TOGGLE_COMMAND")
2314
	Add_Command("arrest",function(Args)
2315
		local Args = GetArgs(Args)
2316
		if Args[2] then
2317
			if Args[2] == "all" then
2318
				local l = getpos()
2319
				for i,v in pairs(game:GetService("Players"):GetChildren()) do
2320
					if v and v.Team ~= game.Teams.Guards and v.Team ~= game.Teams.Neutral and v ~=plr and BadArea(v) or v.Team == game.Teams.Criminals then
2321
						local d= false
2322
						task.spawn(function()
2323
							repeat task.wait()
2324
								pcall(function()
2325
									MoveTo(v.Character["HumanoidRootPart"].CFrame*CFrame.new(0,0,-3))
2326
								end)
2327
							until d
2328
						end)
2329
						repeat wait(.2)
2330
							local a=pcall(function()
2331
								local ohInstance1 = v.Character["HumanoidRootPart"]
2332
								workspace.Remote.arrest:InvokeServer(ohInstance1)
2333
							end)
2334
							if v.Team == game.Teams.Guards or not BadArea(v) then
2335
								break
2336
							end
2337
							if not a then
2338
								break
2339
							end
2340
							unsit()
2341
						until v.Character["Head"]:FindFirstChildOfClass("BillboardGui")
2342
						d = true
2343
					end
2344
				end
2345
				unsit()
2346
				wait(.1)
2347
				MoveTo(l)
2348
			else
2349
				local r = FindPlayer(Args[2])
2350
				if r  then
2351
					local v = r
2352
					local p = getpos()
2353
					if v and v.Team ~= game.Teams.Guards and v.Team ~= game.Teams.Neutral and v ~=plr and BadArea(v) or v.Team == game.Teams.Criminals then
2354
						local d= false
2355
						task.spawn(function()
2356
							repeat task.wait()
2357
								pcall(function()
2358
									MoveTo(v.Character["HumanoidRootPart"].CFrame*CFrame.new(0,0,-3))
2359
								end)
2360
							until d
2361
						end)
2362
						repeat wait(.2)
2363
							unsit()
2364
							local a=pcall(function()
2365
								local ohInstance1 = v.Character["HumanoidRootPart"]
2366
								workspace.Remote.arrest:InvokeServer(ohInstance1)
2367
								MoveTo(v.Character["HumanoidRootPart"].CFrame)
2368
							end)
2369
							if v.Team == game.Teams.Guards or not BadArea(v) then
2370
								break
2371
							end
2372
							if not a then
2373
								break
2374
							end
2375
						until v.Character["Head"]:FindFirstChildOfClass("BillboardGui")
2376
						d = true
2377
					else
2378
						Notif("Can't arrest this player!")
2379
					end
2380
					unsit()
2381
					wait(.1)
2382
					MoveTo(p)
2383
				else
2384
					NotFound()
2385
				end
2386
			end
2387
		end
2388
	end,"Arrests a person or all","PLAYER_COMMAND")
2389
	Add_Command("noclip",function(Args)
2390
		local Args = GetArgs(Args)
2391
		Toggle(Args[2],"noclip")
2392
		if States.noclip then
2393
			pcall(function()
2394
				Temp.Noclipping:Disconnect()
2395
				Temp.Noclipping = nil
2396
			end)
2397
			wait()
2398
			Temp.Noclipping = game:GetService("RunService").Stepped:Connect(function()
2399
				for i,v in pairs(plr.Character:GetDescendants()) do
2400
					if v and v:IsA("Part") or v:IsA("MeshPart") and v.CanCollide and unloaded == false then
2401
						v.CanCollide = false
2402
					end
2403
				end
2404
			end)
2405
		else
2406
			pcall(function()
2407
				Temp.Noclipping:Disconnect()
2408
				Temp.Noclipping = nil
2409
			end)
2410
			wait()
2411
			refresh()
2412
		end
2413
	end,"Clip though walls like they don't exist","TOGGLE_COMMAND")
2414
	Add_Command("fly",function(Args)
2415
		local Args = GetArgs(Args)
2416
		local Speed = 1
2417
		Notif("Fly has been enabled!")
2418
		pcall(function()
2419
			Temp.FlyConnection:Disconnect()
2420
			Temp.FlyConnection=nil
2421
		end)
2422
		Fly(false)
2423
		wait()
2424
		Fly(true,Speed)
2425
	end,"Fly like a bird! [PC ONLY]")
2426
	Add_Command("unfly",function(Args)
2427
		local Args = GetArgs(Args)
2428
		pcall(function()
2429
			Temp.FlyConnection:Disconnect()
2430
			Temp.FlyConnection=nil
2431
		end)
2432
		Fly(false)
2433
		Notif("Fly has been disabled!")
2434
	end,"Makes your character stop flying")
2435
	Add_Command("clip",function(Args)
2436
		local Args = GetArgs(Args)
2437
		States.noclip = false
2438
		pcall(function()
2439
			Temp.Noclipping:Disconnect()
2440
			Temp.Noclipping = nil
2441
		end)
2442
		Notif("Noclip has been set to false")
2443
	end,"",true)
2444
	Add_Command("autore",function(Args)
2445
		local Args = GetArgs(Args)
2446
		Toggle(Args[2],"autore")
2447
	end,"",true)
2448
	Add_Command("addnuke",function(Args)
2449
		local Args = GetArgs(Args)
2450
		local Player = FindPlayer(Args[2])
2451
		if Player then
2452
			game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("!!!A NUKE HAS BEEN PLACED ON "..Player.Name.." KILLING HIM WILL GET EVERYONE DEAD!!!", "ALL")
2453
			repeat task.wait()
2454
				if Player.Character and Player.Character:FindFirstChildOfClass("Humanoid") and Player.Character:FindFirstChildOfClass("Humanoid").Health <1 then
2455
					break
2456
				end
2457
			until not game
2458
			game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(Player.Name.." IS DEAD NUKE LAUNCHING!!!", "ALL")
2459
			wait(1.5)
2460
			--//This is what I call perfect work 
2461
			game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("LAUNCHING IN 3", "ALL")
2462
			wait(1.5)
2463
			game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("LAUNCHING IN 2", "ALL")			
2464
			wait(1.5)
2465
			game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("LAUNCHING IN 1", "ALL")
2466
			wait(2)
2467
			Kill_All()
2468
			Notif("Nuke from player has been removed.")
2469
		end
2470
	end,"If player dies everyone dies","PLAYER_COMMAND")
2471
	Add_Command("antibring",function(Args)
2472
		local Args = GetArgs(Args)
2473
		Toggle(Args[2],"Antibring")
2474
	end,"No exploiter can bring you","TOGGLE_COMMAND")
2475
	Add_Command("silentaim",function(Args)
2476
		local Args = GetArgs(Args)
2477
		Toggle(Args[2],"SilentAim")
2478
	end,"aim anywhere and not miss","TOGGLE_COMMAND")
2479
	Add_Command("antipunch",function(Args)
2480
		local Args = GetArgs(Args)
2481
		Toggle(Args[2],"AntiPunch")
2482
		if States.AntiPunch then
2483
			for i,v in pairs(game:GetService("Players"):GetPlayers()) do
2484
				if v and v ~= plr then
2485
					AntiPunchC(v)
2486
					v.CharacterAdded:Connect(function(c)
2487
						repeat task.wait() until c and c:FindFirstChildOfClass("Humanoid")
2488
2489
						if States.AntiPunch then
2490
							AntiPunchC(v)
2491
						end
2492
					end)
2493
				end
2494
			end
2495
		end
2496
	end,"Prevents people from punching you","TOGGLE_COMMAND")
2497
	Add_Command("antitouch",function(Args)
2498
		local Args = GetArgs(Args)
2499
		Toggle(Args[2],"AntiTouch")
2500
2501
	end,"Can't touch this","TOGGLE_COMMAND")
2502
	Add_Command("guard",function(Args)
2503
		local Args = GetArgs(Args)
2504
		ChangeTeam(game.Teams.Guards)
2505
	end,"puts you into guards team")
2506
	Add_Command("inmate",function(Args)
2507
		local Args = GetArgs(Args)
2508
		ChangeTeam(game.Teams.Inmates)
2509
	end,"puts you into guards team")
2510
	Add_Command("noinvite",function(Args)
2511
		if writefile and readfile then
2512
			writefile("Tiger_Admin/Invite.json",game:GetService("HttpService"):JSONEncode({Invite_To_Server=false}))
2513
		end
2514
		Notif("Invite has been disabled")
2515
	end,"Disables invite command")
2516
	Add_Command("criminal",function(Args)
2517
		local Args = GetArgs(Args)
2518
		if Args[2] then
2519
			local r = FindPlayer(Args[2])
2520
			if r then
2521
				bring(r,nil,nil,"crim")
2522
			else
2523
				NotFound()
2524
			end
2525
		else
2526
			local pos = getpos()
2527
			local crimpad = workspace["Criminals Spawn"].SpawnLocation
2528
			crimpad.CanCollide = false
2529
			crimpad.Transparency = 1
2530
			repeat task.wait()crimpad.CFrame = getpos() until plr.Team == game.Teams.Criminals
2531
			wait()
2532
			MoveTo(pos)
2533
			MoveToJunk(crimpad)
2534
		end
2535
	end,"puts you into guards team")
2536
	Add_Command("guns",function(Args)
2537
		local Args = GetArgs(Args)
2538
		All_Guns()
2539
	end,"gives you all guns")
2540
	Add_Command("items",function(Args)
2541
		local Args = GetArgs(Args)
2542
		All_Guns()
2543
	end,"gives you all guns",true)
2544
	Add_Command("cop",function(Args)
2545
		local Args = GetArgs(Args)
2546
	end,"true",true)
2547
	--//Teleports
2548
	Add_Command("esp",function(Args)
2549
		local Args = GetArgs(Args)
2550
		if workspace:FindFirstChild("HIGHLIGHTS_1000") then
2551
			return 
2552
		end
2553
		local Group = Instance.new("Model",workspace)
2554
		Group.Name = "HIGHLIGHTS_1000"
2555
		local esp =Instance.new("Highlight",Group)
2556
		esp.FillColor = BrickColor.White().Color
2557
		Temp.ESP = esp
2558
		local function EspToggle(v)
2559
			task.spawn(function()
2560
				pcall(function()
2561
					if v.Character and v.Character:FindFirstChild("Head") and not v.Character:FindFirstChild("Head"):FindFirstChild("123123123123") then
2562
						local v1 = Instance.new("BillboardGui",v.Character:FindFirstChild("Head"))
2563
						local v2 = Instance.new("TextLabel",v1)
2564
						Temp.Esps[#Temp.Esps+1]=v1
2565
						Temp.Esps[#Temp.Esps+1]=v2
2566
						v1.Adornee = v.Character.Head
2567
						v1.Name = "123123123123"
2568
						v1.Size = UDim2.new(0, 100, 0, 150)
2569
						v1.StudsOffset = Vector3.new(0, 2, 0)
2570
						v1.AlwaysOnTop = true
2571
						v2.BackgroundTransparency = 1
2572
						v2.TextColor3 = Color3.new(1, 1, 1)
2573
						v2.TextStrokeTransparency = 0
2574
						v2.TextYAlignment = Enum.TextYAlignment.Bottom
2575
						v2.Position = UDim2.new(0, 0, 0, -50)
2576
						v2.Size = UDim2.new(0, 120, 0, 120)
2577
						v2.Font = Enum.Font.SourceSans
2578
						v2.TextSize = 15
2579
						v2.Text = v.Name
2580
						v.Character.Parent = Group
2581
					end
2582
				end)
2583
			end)
2584
		end
2585
		Temp.EspConnection=true
2586
		repeat wait(.1)
2587
			for i,v in pairs(game:GetService("Players"):GetPlayers()) do
2588
				if v and v~= game:GetService("Players").LocalPlayer then
2589
					repeat task.wait()until v.Character and v.Character:FindFirstChild("Head")
2590
					EspToggle(v)
2591
				end
2592
			end
2593
		until Temp.EspConnection == nil
2594
	end,"Shows every player")
2595
	Add_Command("unesp",function(Args)
2596
		if workspace:FindFirstChild("HIGHLIGHTS_1000") then
2597
			pcall(function()
2598
				Temp.EspConnection = nil
2599
			end)
2600
			wait(.1)
2601
			for i,v in pairs(workspace.HIGHLIGHTS_1000:GetChildren()) do
2602
				v.Parent = workspace
2603
			end
2604
			Temp.ESP:Destroy()
2605
			for i =1,2 do
2606
				for i,v in pairs(Temp.Esps) do
2607
					if v then
2608
						v:Destroy()
2609
						Temp.Esps[i]=nil
2610
					end
2611
				end
2612
				wait(.7)
2613
			end
2614
			workspace.HIGHLIGHTS_1000:Destroy()
2615
		end
2616
	end,"unesp")
2617
	Add_Command("nex",function(Args)
2618
		local Args = GetArgs(Args)
2619
		local Pos = CFrame.new(918.77, 100, 2379.07)
2620
		if Args[2] then
2621
			local r = FindPlayer(Args[2])
2622
			if r then
2623
				bring(r,Pos)
2624
			else
2625
				NotFound()
2626
			end
2627
		else
2628
			MoveTo(Pos)
2629
		end
2630
	end,"Teleports you to that place")
2631
	Add_Command("prison",function(Args)
2632
		local Args = GetArgs(Args)
2633
		local Pos = CFrame.new(918.77, 100, 2379.07)
2634
		if Args[2] then
2635
			local r = FindPlayer(Args[2])
2636
			if r then
2637
				bring(r,Pos)
2638
			else
2639
				NotFound()
2640
			end
2641
		else
2642
			MoveTo(Pos)
2643
		end
2644
	end,"Teleports you to that place",true)
2645
	Add_Command("yard",function(Args)
2646
		local Args = GetArgs(Args)
2647
		local Pos = CFrame.new(791, 98, 2498)
2648
		if Args[2] then
2649
			local r = FindPlayer(Args[2])
2650
			if r then
2651
				bring(r,Pos)
2652
			else
2653
				NotFound()
2654
			end
2655
		else
2656
			MoveTo(Pos)
2657
		end
2658
	end,"Teleports you to that place")
2659
	Add_Command("cbase",function(Args)
2660
		local Args = GetArgs(Args)
2661
		local Pos = CFrame.new(-858.08990478516, 94.476051330566, 2093.8288574219)
2662
		if Args[2] then
2663
			local r = FindPlayer(Args[2])
2664
			if r then
2665
				bring(r,Pos)
2666
			else
2667
				NotFound()
2668
			end
2669
		else
2670
			MoveTo(Pos)
2671
		end
2672
	end,"Teleports you to that place",true)
2673
	Add_Command("crimbase",function(Args)
2674
		local Args = GetArgs(Args)
2675
		local Pos = CFrame.new(-858.08990478516, 94.476051330566, 2093.8288574219)
2676
		if Args[2] then
2677
			local r = FindPlayer(Args[2])
2678
			if r then
2679
				bring(r,Pos)
2680
			else
2681
				NotFound()
2682
			end
2683
		else
2684
			MoveTo(Pos)
2685
		end
2686
	end,"Teleports you to that place")
2687
	Add_Command("gatetower2",function(Args)  
2688
		local Args = GetArgs(Args);local Pos  = CFrame.new(505, 125, 2149)
2689
		if Args[2] then
2690
			local r = FindPlayer(Args[2])
2691
			if r then
2692
				bring(r,Pos)
2693
			else
2694
				NotFound()
2695
			end
2696
		else
2697
			MoveTo(Pos)
2698
		end
2699
	end,"Teleports you to that place")
2700
	Add_Command("bridge",function(Args)  
2701
		local Args = GetArgs(Args);local Pos  = CFrame.new(54, 33, 1311)
2702
		if Args[2] then
2703
			local r = FindPlayer(Args[2])
2704
			if r then
2705
				bring(r,Pos)
2706
			else
2707
				NotFound()
2708
			end
2709
		else
2710
			MoveTo(Pos)
2711
		end
2712
	end,"Teleports you to that place")
2713
	Add_Command("topnex",function(Args)  
2714
		local Args = GetArgs(Args);local Pos  = CFrame.new(829, 119, 2332)
2715
		if Args[2] then
2716
			local r = FindPlayer(Args[2])
2717
			if r then
2718
				bring(r,Pos)
2719
			else
2720
				NotFound()
2721
			end
2722
		else
2723
			MoveTo(Pos)
2724
		end
2725
	end,"Teleports you to that place")
2726
	Add_Command("range",function(Args)  
2727
		local Args = GetArgs(Args);local Pos  = CFrame.new(403, 11, 1173)
2728
		if Args[2] then
2729
			local r = FindPlayer(Args[2])
2730
			if r then
2731
				bring(r,Pos)
2732
			else
2733
				NotFound()
2734
			end
2735
		else
2736
			MoveTo(Pos)
2737
		end
2738
	end,"Teleports you to that place")
2739
	Add_Command("gas",function(Args)  
2740
		local Args = GetArgs(Args);local Pos  = CFrame.new(-518, 54, 1655)
2741
		if Args[2] then
2742
			local r = FindPlayer(Args[2])
2743
			if r then
2744
				bring(r,Pos)
2745
			else
2746
				NotFound()
2747
			end
2748
		else
2749
			MoveTo(Pos)
2750
		end
2751
	end,"Teleports you to that place")
2752
	Add_Command("backcafe",function(Args) 
2753
		local Args = GetArgs(Args);local Pos  = CFrame.new(918, 100, 2223)
2754
		if Args[2] then
2755
			local r = FindPlayer(Args[2])
2756
			if r then
2757
				bring(r,Pos)
2758
			else
2759
				NotFound()
2760
			end
2761
		else
2762
			MoveTo(Pos)
2763
		end
2764
	end,"Teleports you to that place")
2765
	Add_Command("gate",function(Args) 
2766
		local Args = GetArgs(Args);local Pos  = CFrame.new(506, 118, 2251)
2767
		if Args[2] then
2768
			local r = FindPlayer(Args[2])
2769
			if r then
2770
				bring(r,Pos)
2771
			else
2772
				NotFound()
2773
			end
2774
		else
2775
			MoveTo(Pos)
2776
		end
2777
	end,"Teleports you to that place")
2778
	Add_Command("gatetower",function(Args) 
2779
		local Args = GetArgs(Args);local Pos  = CFrame.new(502, 126, 2306)
2780
		if Args[2] then
2781
			local r = FindPlayer(Args[2])
2782
			if r then
2783
				bring(r,Pos)
2784
			else
2785
				NotFound()
2786
			end
2787
		else
2788
			MoveTo(Pos)
2789
		end
2790
	end,"Teleports you to that place")
2791
	Add_Command("cafe",function(Args) 
2792
		local Args = GetArgs(Args);local Pos  = CFrame.new(877, 100, 2256)
2793
		if Args[2] then
2794
			local r = FindPlayer(Args[2])
2795
			if r then
2796
				bring(r,Pos)
2797
			else
2798
				NotFound()
2799
			end
2800
		else
2801
			MoveTo(Pos)
2802
		end
2803
	end,"Teleports you to that place")
2804
	Add_Command("lunchroom",function(Args) 
2805
		local Args = GetArgs(Args);local Pos  = CFrame.new(905, 100, 2226)
2806
		if Args[2] then
2807
			local r = FindPlayer(Args[2])
2808
			if r then
2809
				bring(r,Pos)
2810
			else
2811
				NotFound()
2812
			end
2813
		else
2814
			MoveTo(Pos)
2815
		end
2816
	end,"Teleports you to that place")
2817
	Add_Command("armory",function(Args) 
2818
		local Args = GetArgs(Args);local Pos  = CFrame.new(789, 100, 2260)
2819
		if Args[2] then
2820
			local r = FindPlayer(Args[2])
2821
			if r then
2822
				bring(r,Pos)
2823
			else
2824
				NotFound()
2825
			end
2826
		else
2827
			MoveTo(Pos)
2828
		end
2829
	end,"Teleports you to that place")
2830
	Add_Command("tower",function(Args) 
2831
		local Args = GetArgs(Args);local Pos  = CFrame.new(822, 131, 2588)
2832
		if Args[2] then
2833
			local r = FindPlayer(Args[2])
2834
			if r then
2835
				bring(r,Pos)
2836
			else
2837
				NotFound()
2838
			end
2839
		else
2840
			MoveTo(Pos)
2841
		end
2842
	end,"Teleports you to that place")
2843
	Add_Command("sewers",function(Args) 
2844
		local Args = GetArgs(Args);local Pos  = CFrame.new(916, 79, 2311)
2845
		if Args[2] then
2846
			local r = FindPlayer(Args[2])
2847
			if r then
2848
				bring(r,Pos)
2849
			else
2850
				NotFound()
2851
			end
2852
		else
2853
			MoveTo(Pos)
2854
		end
2855
	end,"Teleports you to that place")
2856
	--end of teleports
2857
	Add_Command("allcmds",function(Args) 
2858
		local Args = GetArgs(Args);local Pos  = CFrame.new(916, 79, 2311)
2859
		Notif("Tiger admin has "..tostring(CommandsGot).." commands in total!")
2860
	end,"Tells you how much commands tiger admin has")
2861
end
2862
do
2863
	local Check_Prefix = function(TXT)
2864
		if TXT:sub(1, #Prefix) ~= Prefix then
2865
			return "Not"
2866
		end
2867
		return "Is"
2868
	end
2869
	Temp.Chat = plr.Chatted:Connect(function(c)
2870
		if c then
2871
			c = c:lower()
2872
			Execute_Command(c,c)
2873
		end
2874
	end)
2875
	Temp.CommandBar = CommandBar.FocusLost:Connect(function(IsEnter)
2876
		if IsEnter then
2877
			if unloaded then return end
2878
			if Check_Prefix(CommandBar.Text) == "Not" then
2879
				local TextGot = CommandBar.Text
2880
				CommandBar.Text = ""
2881
				local Executed = Execute_Command(Prefix..TextGot:lower(),Prefix..TextGot:lower())
2882
				if not Executed then
2883
					Notif("Unknown command!")
2884
				end
2885
			else
2886
				local TextGot = CommandBar.Text
2887
				CommandBar.Text = ""
2888
				local Executed =Execute_Command(TextGot,TextGot)
2889
				if not Executed then
2890
					Notif("Unknown command!")
2891
				end
2892
			end
2893
		end
2894
	end)
2895
	local layout = {}
2896
	for i,v in pairs(CommandsList:GetChildren()) do
2897
		if v and v:IsA("TextLabel") then
2898
			layout[#layout+1]=v
2899
		end
2900
	end
2901
	SearchBar.Changed:Connect(function(Changed)
2902
		if Changed:lower() == "text"  then
2903
			CommandsList.CanvasPosition = Vector2.new(0, 0)
2904
			if #SearchBar.Text >0 then
2905
				for i,v in pairs(CommandsList:GetChildren()) do
2906
					if v:IsA("TextLabel") then
2907
						if not string.lower(v.Text):match(string.lower(SearchBar.Text)) then
2908
							v.Parent = ScreenGui
2909
							v.Visible = false
2910
						end
2911
					end
2912
				end
2913
				for i,v in pairs(ScreenGui:GetChildren()) do
2914
					if v.Name == "TEMP_CMD" then
2915
						if string.lower(v.Text):match(string.lower(SearchBar.Text)) then
2916
							v.Parent = CommandsList
2917
							v.Visible = true
2918
						end
2919
					end
2920
				end
2921
			elseif #SearchBar.Text <1 then
2922
				for i,v in pairs(layout) do
2923
					v.Parent = ScreenGui
2924
					v.Visible = false
2925
				end
2926
				task.wait()
2927
				for i,v in pairs(layout) do
2928
					if v then
2929
						v.Parent = CommandsList
2930
						v.Visible = true
2931
					end
2932
				end
2933
			end
2934
		end
2935
	end)
2936
	Running = false
2937
	UIS.InputBegan:connect(function(UserInput,Typing)
2938
		if not unloaded and not Typing then
2939
			if UserInput.KeyCode == Enum.KeyCode.LeftShift then
2940
				Running = true
2941
			end
2942
			if UserInput.KeyCode == Enum.KeyCode.Space and States.Godmode then
2943
				game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):ChangeState(3)
2944
			end
2945
			if UserInput.KeyCode == Enum.KeyCode.F and States.OnePunch and not Running then --//Onepunch nothing advanced just to support weak exploits
2946
				local a = getpos()*CFrame.new(0,0,2)
2947
				for i,v in pairs(game:GetService("Players"):GetPlayers()) do
2948
					if v and v~= plr and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
2949
						if (a.Position-plr.Character:FindFirstChild("HumanoidRootPart").Position).Magnitude <3 and not Running then
2950
							for i =1,13 do
2951
								task.spawn(function()
2952
									game.ReplicatedStorage["meleeEvent"]:FireServer(v)
2953
								end)
2954
							end
2955
						end
2956
					end
2957
				end
2958
			end
2959
			if UserInput.KeyCode == Enum.KeyCode.Semicolon and not unloaded then
2960
				task.wait(.03)
2961
				CommandBar:CaptureFocus()
2962
			end
2963
		end
2964
	end)
2965
	UIS.InputEnded:connect(function(UserInput,Typing)
2966
		if UserInput.KeyCode == Enum.KeyCode.LeftShift then
2967
			Running = false
2968
		end
2969
	end)
2970
2971
end
2972
plr.CharacterAdded:Connect(function(NewChar)
2973
	if unloaded then return end
2974
	Temp.Respawned_132 = true
2975
	char = NewChar
2976
	task.spawn(function()
2977
		--//Antibring
2978
		if States.Antibring then
2979
			char.ChildAdded:Connect(function(a)
2980
				if unloaded or not a then return end
2981
				if a:IsA("Tool") and not table.find(Whitelisted_ITEMS,a) and not a:FindFirstChild("ISWHITELISTED") then
2982
					plr.Character:FindFirstChild("HumanoidRootPart").Anchored = true
2983
					a:Destroy()
2984
					task.spawn(function()
2985
						repeat
2986
							game:GetService("RunService").Stepped:Wait()
2987
							a:Destroy()
2988
						until not a or a and a.Parent == nil
2989
					end)
2990
					task.spawn(function()
2991
						task.wait()
2992
						plr.Character:FindFirstChild("HumanoidRootPart").Anchored = false
2993
						pcall(function()
2994
							game:GetService("Debris"):AddItem(a,0)
2995
						end)
2996
					end)
2997
				end
2998
			end)
2999
		end
3000
		--//Autorespawn
3001
		if States.autore then
3002
			repeat task.wait() until char and char:FindFirstChildOfClass("Humanoid")
3003
			char:FindFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
3004
			char:FindFirstChildOfClass("Humanoid").Died:Connect(function()
3005
				if unloaded then return end
3006
				refresh()
3007
			end)
3008
		end
3009
		--//AutoItems
3010
		repeat task.wait() until char and char:FindFirstChildOfClass("Humanoid")
3011
		task.spawn(function()
3012
			if unloaded then return end
3013
			wait(.6)
3014
			if States.AutoItems then
3015
				All_Guns()
3016
			end
3017
		end)
3018
		--//Anti annoying falling thing
3019
		task.spawn(function()
3020
			if unloaded then return end
3021
			char:FindFirstChildOfClass("Humanoid").StateChanged:Connect(function(_,a)
3022
				if a == Enum.HumanoidStateType.FallingDown then
3023
					game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):ChangeState(2)
3024
				end
3025
			end)
3026
		end)
3027
		--//Anti "arrest"
3028
		task.spawn(function()
3029
			plr.Character:FindFirstChild("Head").ChildAdded:Connect(function(a)
3030
				if a and a:IsA("BillboardGui") and States.AntiArrest then
3031
					refresh()
3032
					WaitForRespawn()
3033
				end
3034
			end)
3035
		end)
3036
		--//AntiTase
3037
		task.spawn(function()
3038
			repeat task.wait() until plr.Character:FindFirstChild("ClientInputHandler")
3039
			wait(.3)
3040
			if States.AntiTase then
3041
				for i,v in pairs(getconnections(workspace:WaitForChild("Remote").tazePlayer.OnClientEvent)) do
3042
					v:Disable()
3043
				end
3044
			end
3045
		end)
3046
		--//Killaura part
3047
		task.spawn(function()
3048
			repeat task.wait()until plr.Character and char and char:FindFirstChildOfClass("Humanoid")
3049
3050
			if States.KillAura then
3051
				CreateKillPart()
3052
			end
3053
		end)
3054
	end)
3055
	for i,v in pairs(plr.Backpack:GetChildren()) do
3056
		Whitelisted_ITEMS[#Whitelisted_ITEMS+1]=v
3057
		Instance.new("BoolValue",v).Name = "ISWHITELISTED"
3058
	end
3059
end)
3060
3061
task.spawn(function()
3062
	local Vests = function(player)
3063
		if not player or not player.Character then
3064
			return 0
3065
		end
3066
		local i1 = 0
3067
		for i,v in pairs(player.Character:GetChildren()) do
3068
			if v and v.Name:lower() == "vest" then
3069
				i1+=1
3070
			end
3071
		end
3072
		return i1
3073
	end
3074
	while wait(.1) do
3075
		--//Slow loop
3076
		if unloaded then break end
3077
3078
		if States.FastPunch then
3079
			getsenv(game.Players.LocalPlayer.Character.ClientInputHandler).cs.isFighting = false
3080
		end
3081
		if States.AntiTouch then
3082
			pcall(function()
3083
				for i,v in pairs(game:GetService("Players"):GetPlayers()) do
3084
					if v and v ~=plr and States.AntiTouch then
3085
						if (plr.Character.HumanoidRootPart.Position-v.Character.HumanoidRootPart.Position).magnitude <3.5 and not IsBringing then
3086
							for i =1,13 do
3087
								task.spawn(function()
3088
									game.ReplicatedStorage["meleeEvent"]:FireServer(v)
3089
								end)
3090
							end
3091
						end
3092
					end
3093
				end
3094
			end)
3095
		end
3096
		pcall(function()
3097
			for i,v in pairs(plr.Backpack:GetChildren()) do
3098
				if v and not v:FindFirstChild("ISWHITELISTED") then
3099
					Whitelisted_ITEMS[#Whitelisted_ITEMS+1]=v
3100
					Instance.new("BoolValue",v).Name = "ISWHITELISTED"
3101
				end
3102
			end
3103
			for i,v in pairs(Whitelisted_ITEMS) do
3104
				if not v or v and v.Parent == nil then
3105
					Whitelisted_ITEMS[i]=nil
3106
				end
3107
			end
3108
			game:GetService('StarterGui'):SetCoreGuiEnabled('Backpack', true)
3109
			for i,v in pairs(game:GetService("Players"):GetPlayers()) do
3110
				local ves= Vests(v)
3111
				if ves>1 then
3112
					repeat game:GetService("RunService").Stepped:Wait()
3113
						pcall(function()
3114
							v.Character:FindFirstChild("vest"):Destroy()
3115
						end)
3116
					until Vests(v) <2
3117
				end
3118
			end
3119
		end)
3120
	end
3121
end)
3122
task.spawn(function()
3123
	while wait(1) do --//Even SLOWER loop
3124
		if unloaded then
3125
			break
3126
		end
3127
		for i,v in pairs(Reload_Guns) do
3128
			if v then
3129
				task.spawn(function()
3130
					game:GetService("ReplicatedStorage").ReloadEvent:FireServer(v)
3131
				end)
3132
			end
3133
		end
3134
		if States.AntiShield then
3135
			for i,v in pairs(game:GetService("Players"):GetPlayers()) do
3136
				if v and v.Character and v:FindFirstChild("Torso") and v:FindFirstChild("Torso"):FindFirstChild("ShieldFolder") then
3137
					v.Torso:FindFirstChild("ShieldFolder"):Destroy()
3138
				end
3139
			end
3140
		end
3141
		if #loopkilling>0 then
3142
			for i,v in pairs(loopkilling) do
3143
				if v and game:GetService("Players"):FindFirstChild(v) then
3144
					MKILL(game:GetService("Players"):FindFirstChild(v))
3145
					wait()
3146
				end
3147
			end
3148
		end
3149
	end
3150
end)
3151
do--Take over client scripts and anticrash
3152
	pcall(function()
3153
		game:GetService("Players").LocalPlayer.PlayerScripts.ClientGunReplicator.Disabled = true
3154
	end)
3155
	--ClientGunReplicator
3156
	local BulletCoolDown = false
3157
	Temp.GunHandler =game:GetService("ReplicatedStorage"):WaitForChild("ReplicateEvent").OnClientEvent:connect(function(Amount, Value)
3158
		if #Amount <70 and not BulletCoolDown then
3159
			BulletCoolDown =true
3160
			for i = 1, #Amount do
3161
				local Bullet = Instance.new("Part", workspace.CurrentCamera)
3162
				Bullet.Name = "RayPart"
3163
				Bullet.Material = Enum.Material.Neon
3164
				Bullet.Anchored = true
3165
				Bullet.CanCollide = false
3166
				Bullet.Transparency = 0.5
3167
				Bullet.formFactor = Enum.FormFactor.Custom
3168
				Bullet.Size = Vector3.new(0.2, 0.2, Amount[i].Distance)
3169
				Bullet.CFrame = Amount[i].Cframe
3170
				game.Debris:AddItem(Bullet, 0.05)
3171
				Instance.new("BlockMesh", Bullet).Scale = Vector3.new(0.5, 0.5, 1)
3172
				if Value then
3173
					Bullet.BrickColor = BrickColor.new("Cyan")
3174
					local Light = Instance.new("SurfaceLight", Bullet)
3175
					Light.Color = Color3.new(0, 0.9176470588235294, 1)
3176
					Light.Range = 5
3177
					Light.Face = "Bottom"
3178
					Light.Brightness = 10
3179
					Light.Angle = 180
3180
					task.spawn(function()
3181
						for v7 = 1, 10 do
3182
							Bullet.Transparency = Bullet.Transparency + 0.1
3183
							Light.Brightness = Light.Brightness - 1
3184
							wait()
3185
						end
3186
					end)
3187
				else
3188
					Bullet.BrickColor = BrickColor.Yellow()
3189
				end
3190
			end
3191
			wait(.01)
3192
			BulletCoolDown = false
3193
		end
3194
	end)
3195
	local CoolDown = false
3196
	Temp.SoundHandler = game:GetService("ReplicatedStorage"):WaitForChild("SoundEvent").OnClientEvent:connect(function(Sound1, p4)
3197
		if CoolDown then
3198
			CoolDown = true
3199
			local Sound = Sound1:Clone()
3200
			Sound.Parent = Sound1.Parent
3201
			Sound:Play()
3202
			Sound.Played:Connect(function()
3203
				wait()
3204
				game:GetService("Debris"):AddItem(Sound,0.001)
3205
			end)
3206
			wait(.1)
3207
			CoolDown = false
3208
		end
3209
	end)
3210
	Temp.WarnHandler = game:GetService("ReplicatedStorage"):WaitForChild("WarnEvent").OnClientEvent:connect(function(Text)
3211
		local WarnGui = game:GetService("ReplicatedStorage").gooeys.WarnGui:Clone()
3212
		WarnGui.Parent = plr.PlayerGui
3213
		if Text == 1 then
3214
			WarnGui.Frame.desc.Text = "This is your last warning. You will become a prisoner if you kill an innocent player 1 more time."
3215
		else
3216
			WarnGui.Frame.desc.Text = "Do not kill innocent people! You will be arrested and jailed if you kill " .. Text .. " more times."
3217
		end
3218
		WarnGui.Frame.LocalScript.Disabled = false
3219
	end)
3220
end
3221
task.spawn(function()
3222
	local RawMetatable = getrawmetatable(game)
3223
	local __NameCall = RawMetatable.__namecall
3224
	local __Index = RawMetatable.__index
3225
	local LocalPlayer = game.Players.LocalPlayer
3226
	setreadonly(RawMetatable, false)
3227
	local Services = {
3228
		Players = game:GetService("Players"),
3229
		UserInputService = game:GetService("UserInputService")
3230
	}
3231
	local Camera = workspace.CurrentCamera
3232
	local function NotObstructing(Destination, Ancestor)
3233
		local ObstructingParts = Camera.GetPartsObscuringTarget(Camera, {Destination}, {Ancestor, LocalPlayer.Character})
3234
3235
		for i,v in ipairs(ObstructingParts) do
3236
			pcall(function()
3237
				if v.Transparency >= 1 then
3238
					table.remove(ObstructingParts, i)
3239
				end
3240
			end)
3241
		end
3242
3243
		if #ObstructingParts <= 0 then
3244
			return true
3245
		end
3246
		local RaycastParameters = RaycastParams.new()
3247
		RaycastParameters.IgnoreWater = true
3248
		RaycastParameters.FilterType = Enum.RaycastFilterType.Blacklist
3249
		RaycastParameters.FilterDescendantsInstances = {LocalPlayer.Character}
3250
3251
		RaycastParameters.FilterDescendantsInstances = {LocalPlayer.Character}
3252
3253
		local Origin = Camera.CFrame.Position
3254
		local Direction = (Destination - Origin).Unit * 500
3255
		local RayResult = workspace.Raycast(workspace, Origin, Direction, RaycastParameters) or {
3256
			Instance = nil;
3257
			Position = Origin + Direction;
3258
			Material = Enum.Material.Air;
3259
		}
3260
3261
		if RayResult.Instance and (RayResult.Instance.IsDescendantOf(RayResult.Instance, Ancestor) or RayResult.Instance == Ancestor) then
3262
			return true
3263
		end
3264
		return false
3265
	end
3266
	local function ClosestPlayerToCursor(Distance)
3267
		local Closest = nil
3268
		local Position = nil
3269
		local ShortestDistance = Distance or math.huge
3270
3271
		local MousePosition = Services.UserInputService.GetMouseLocation(Services.UserInputService)
3272
		for i, v in ipairs(Services.Players.GetPlayers(Services.Players)) do
3273
			if v ~= LocalPlayer and (v.Team ~= LocalPlayer.Team) and v.Character and v.Character:FindFirstChildOfClass("Humanoid") and v.Character:FindFirstChildOfClass("Humanoid").Health>0 then
3274
3275
				if NotObstructing(v.Character.PrimaryPart.Position, v.Character) == false then
3276
					continue
3277
				end
3278
				local ViewportPosition, OnScreen = Camera.WorldToViewportPoint(Camera, v.Character.PrimaryPart.Position)
3279
				local Magnitude = (Vector2.new(ViewportPosition.X, ViewportPosition.Y) - MousePosition).Magnitude
3280
3281
				if Magnitude < ShortestDistance  then
3282
					Closest = v
3283
					Position = ViewportPosition
3284
					ShortestDistance = Magnitude
3285
				end
3286
			end
3287
		end
3288
3289
		return Closest, Position
3290
	end
3291
3292
	RawMetatable.__index = newcclosure(function(Self, Index)
3293
		if States.SilentAim and checkcaller() == false then
3294
			if typeof(Self) == "Instance" and (Self:IsA("PlayerMouse") or Self:IsA("Mouse")) then
3295
				if Index == "Hit" then
3296
					local Closest = ClosestPlayerToCursor(120)
3297
					if Closest then
3298
						local Velocity = Closest.Character.PrimaryPart.AssemblyLinearVelocity
3299
						local Prediction = Velocity.Unit
3300
						if Velocity.Magnitude == 0 then
3301
							Prediction = Vector3.new(0, 0, 0)
3302
						end
3303
						return CFrame.new(Closest.Character.Head.Position + Prediction)
3304
					end
3305
				end
3306
			end
3307
		end
3308
		return __Index(Self, Index)
3309
	end)
3310
end)
3311
3312
do
3313
	Temp.PPP = game:GetService("RunService").Stepped:Connect(function()
3314
		if not unloaded then
3315
			if not unloaded and Parts[1] and States.KillAura then
3316
				Parts[1].CFrame = CFrame.new(plr.Character.HumanoidRootPart.Position)
3317
				print(Parts[1])
3318
			end
3319
		end
3320
	end)
3321
end
3322
plr.Backpack.ChildAdded:Connect(function(v)
3323
	if v and v:IsA("Tool") then
3324
		if v and v:IsA("Tool") and not table.find(Whitelisted_ITEMS,v) then
3325
			Whitelisted_ITEMS[#Whitelisted_ITEMS+1]=v
3326
			Instance.new("BoolValue",v).Name = "ISWHITELISTED"
3327
		end
3328
	end
3329
end)
3330
task.spawn(function()
3331
	while task.wait() do
3332
		if GetHumanoid() and GetHumanoid().WalkSpeed >6 and Running and Resfreshing then
3333
			GetHumanoid().WalkSpeed = 24
3334
		else
3335
			if Resfreshing and GetHumanoid() then
3336
				if GetHumanoid().WalkSpeed <6 then
3337
					if GetHumanoid().WalkSpeed ~=0 then
3338
						GetHumanoid().WalkSpeed = 5
3339
					end
3340
				else
3341
					GetHumanoid().WalkSpeed =16
3342
				end
3343
			end
3344
		end
3345
		pcall(function()
3346
			if States.AntiArrest == true and unloaded == false then
3347
				for i,v in pairs(game.Players:GetPlayers()) do
3348
					if v ~= game.Players.LocalPlayer then
3349
						if (v.Character.HumanoidRootPart.Position - plr.Character.HumanoidRootPart.Position).magnitude <14 and v.Character.Humanoid.Health >0 and not IsBringing then
3350
							if v.Character:FindFirstChildOfClass("Tool") and v.Character:FindFirstChild("Handcuffs") and not v.Character:FindFirstChild("Handcuffs"):FindFirstChild("ISWHITELISTED") then
3351
								local args = {
3352
									[1] = v
3353
								}
3354
								for i =1,3 do
3355
									task.spawn(function()
3356
										game:GetService("ReplicatedStorage").meleeEvent:FireServer(unpack(args))
3357
									end)
3358
								end
3359
								print("KILL")
3360
							end
3361
						end
3362
					end
3363
				end
3364
			end
3365
		end)
3366
		pcall(function()
3367
			if States.KillAura == true and unloaded == false then
3368
				for i,v in pairs(game.Players:GetPlayers()) do
3369
					if v ~= game.Players.LocalPlayer then
3370
						if not table.find(Whitelisted,v.Name) and (v.Character.HumanoidRootPart.Position - plr.Character.HumanoidRootPart.Position).magnitude <14 and v.Character.Humanoid.Health >0 and not IsBringing then
3371
							local args = {
3372
								[1] = v
3373
							}
3374
							for i =1,2 do
3375
								task.spawn(function()
3376
									game:GetService("ReplicatedStorage").meleeEvent:FireServer(unpack(args))
3377
								end)
3378
							end
3379
3380
						end
3381
					end
3382
				end
3383
			end
3384
		end)
3385
	end
3386
end)
3387
game:GetService("Players").PlayerAdded:Connect(function(p)
3388
	repeat task.wait() until p and p.Character
3389
	wait()
3390
	if p ~= plr and States.AntiPunch then
3391
		AntiPunchC(p)
3392
	end
3393
end)
3394
3395
---//poop skid fr
3396
local Arg1_P=""
3397
local function commandPLAYER(G)
3398
	if Arg1_P == Prefix..G then
3399
		return true
3400
	else
3401
		return false
3402
	end
3403
end
3404
3405
function AdminChatted(Text,Speaker)
3406
	Speaker = game:GetService("Players"):FindFirstChild(Speaker)
3407
	if unloaded or Temp.RankCooldown then return end
3408
	local TXT = string.lower(Text)
3409
	local SPLITED = TXT:split(" ")
3410
	Arg1_P = SPLITED[1]
3411
	local CmdsList = "[ADMIN]: !bring player, !cmds, !criminal player, !goto player, !kill [player,all], !fling [player], !car, !loopkill [player]"
3412
	local CmdsList2 = "[ADMIN]: !unloopkill [player], !tase [player,all], !yard, !crimbase, !armory, !prison, !opendoors, !cuffs [player]"
3413
3414
	local Arg2_P = SPLITED[2]
3415
	local Arg3_P = SPLITED[3]
3416
	local Arg4_P = SPLITED[4]
3417
	Temp.RankCooldown = true
3418
	task.spawn(function()
3419
		wait(.7852)
3420
		Temp.RankCooldown = false
3421
	end)
3422
	if commandPLAYER("car") then
3423
		local org = getpos()
3424
		MoveTo(Speaker.Character:GetPrimaryPartCFrame())
3425
		pcall(function()
3426
			local OldPos = game:GetService("Players").LocalPlayer.Character:GetPrimaryPartCFrame()
3427
			game:GetService("Players").LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(-910, 95, 2157))
3428
			wait()
3429
			local car = nil
3430
			task.spawn(function()
3431
				car = game:GetService("Workspace").CarContainer.ChildAdded:Wait()
3432
			end)
3433
			repeat wait(.1)
3434
				local ohInstance1 = game:GetService("Workspace").Prison_ITEMS.buttons:GetChildren()[8]["Car Spawner"]
3435
				workspace.Remote.ItemHandler:InvokeServer(ohInstance1)
3436
			until car
3437
			repeat task.wait() until car:FindFirstChild("RWD") and car:FindFirstChild("Body") and car:FindFirstChild("Body"):FindFirstChild("VehicleSeat")
3438
			car.PrimaryPart = car.RWD
3439
			game:GetService("Players").LocalPlayer.Character:SetPrimaryPartCFrame(OldPos)
3440
			local Done = false
3441
			car.Body.VehicleSeat:Sit(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid"))
3442
			repeat 
3443
				game:GetService("RunService").RenderStepped:Wait()
3444
				car:SetPrimaryPartCFrame(OldPos)
3445
				game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame =CFrame.new(car.Body.VehicleSeat.Position)
3446
				car.Body.VehicleSeat:Sit(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid"))
3447
				if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Sit == true then
3448
					Done = true
3449
				end
3450
			until Done
3451
			unsit()
3452
		end)
3453
		wait(.1)
3454
		MoveTo(org)
3455
	end
3456
	if commandPLAYER("cuffs") then
3457
		local Args = Arg2_P
3458
		if Args then
3459
			local Player = FindPlayer(Args)
3460
			if Player then
3461
				bring(Player,Player.Character:GetPrimaryPartCFrame(),"a",true)
3462
			end
3463
		else
3464
			bring(Speaker,Speaker.Character:GetPrimaryPartCFrame(),"a",true)
3465
		end
3466
	end
3467
	if commandPLAYER("kill") then
3468
		local Args = Arg2_P
3469
		local Check1 = function(ar)
3470
			for i,v in pairs(game:GetService("Teams"):GetChildren()) do
3471
				if v and v.Name:lower() == ar:lower() then
3472
					return v
3473
				end
3474
			end
3475
			return nil
3476
		end
3477
		if Args then
3478
			if Args == "all" then
3479
				Kill_All()
3480
			elseif Check1(Args)  then
3481
				Kill_All(Check1(Args))
3482
			else
3483
				local r = FindPlayer(Args)
3484
				if r then
3485
					kill(r)
3486
				else
3487
					NotFound()
3488
				end
3489
			end
3490
		else
3491
			Notif("Missing arg2 !kill player")
3492
		end
3493
	end
3494
	if commandPLAYER("fling") then
3495
		local r = FindPlayer(Arg2_P)
3496
		if r then
3497
			if r.Character:FindFirstChildOfClass("Humanoid") and r.Character:FindFirstChildOfClass("Humanoid").Health <1 then
3498
				Msg(Speaker,"[ADMIN]: Player is dead please try again.")
3499
				return
3500
			end
3501
			if not Speaker.Character then
3502
				Notif("Please try again (Character not found).")
3503
				return
3504
			end
3505
			bring(r,nil,nil,"fling")
3506
		else
3507
			Msg(Speaker,"Player not found!")
3508
			NotFound()
3509
		end
3510
	end
3511
	if commandPLAYER("loopkill") then
3512
		local r = FindPlayer(Arg2_P)
3513
		if Arg2_P=="all" then
3514
			task.spawn(function()
3515
				if Temp.LkAll==false then
3516
					Temp.LkAll = true
3517
					repeat wait()
3518
						Kill_All()
3519
					until Temp.LkAll == nil
3520
				end
3521
			end)
3522
			return
3523
		end
3524
		if r then
3525
			loopkilling[#loopkilling+1]=r.Name
3526
			Notif("loop killing "..r.Name)
3527
		else
3528
			NotFound()
3529
		end
3530
	end
3531
	if commandPLAYER("tase") then
3532
		local r = FindPlayer(Arg2_P)
3533
		if Arg2_P == "all" then
3534
			tase_all()
3535
			return
3536
		end
3537
		if r then
3538
			tase(r)
3539
		end
3540
	end
3541
3542
	if commandPLAYER("crimbase") then
3543
		local Pos = CFrame.new(-858.08990478516, 94.476051330566, 2093.8288574219)
3544
		bring(Speaker,Pos)
3545
	end
3546
	if commandPLAYER("tower") then
3547
		local Pos = CFrame.new(822, 131, 2588)
3548
		bring(Speaker,Pos)
3549
	end
3550
	if commandPLAYER("armory") then
3551
		local Pos  = CFrame.new(789, 100, 2260)
3552
		bring(Speaker,Pos)
3553
	end
3554
	if commandPLAYER("prison") then
3555
		local Pos = CFrame.new(918.77, 100, 2379.07)
3556
		bring(Speaker,Pos)
3557
	end
3558
	if commandPLAYER("yard") then
3559
		local Pos = CFrame.new(791, 98, 2498)
3560
		bring(Speaker,Pos)
3561
	end
3562
	if commandPLAYER("unloopkill") then
3563
		local r = FindPlayer(Arg2_P)
3564
		if Arg2_P=="all" then
3565
			Notif("Unloop killed all")
3566
			Temp.LkAll = nil
3567
			return
3568
		end
3569
		if r then
3570
			table.remove(loopkilling,table.find(loopkilling,r.Name))
3571
			Notif("unlooped "..r.Name)
3572
		else
3573
			NotFound()
3574
		end
3575
	end
3576
	if commandPLAYER("bring") then
3577
		local r = FindPlayer(Arg2_P)
3578
		if r then
3579
			if r.Character:FindFirstChildOfClass("Humanoid") and r.Character:FindFirstChildOfClass("Humanoid").Health <1 then
3580
				Msg(Speaker,"[ADMIN]: Player is dead please try again.")
3581
				return
3582
			end
3583
			if not Speaker.Character then
3584
				Notif("Please try again (Character not found).")
3585
				return
3586
			end
3587
			bring(r,Speaker.Character:GetPrimaryPartCFrame()*CFrame.new(0,5,0))
3588
		else
3589
			Msg(Speaker,"[ADMIN]: Player not found!")
3590
			NotFound()
3591
		end
3592
	end
3593
	if commandPLAYER("opendoors") then
3594
		local LastTeam =plr.TeamColor.Name
3595
		ChangeTeam(game.Teams.Guards)
3596
		wait(.7)
3597
		task.spawn(function()
3598
			local Arg_1 = game:GetService("Workspace")["Prison_ITEMS"].buttons["Prison Gate"]["Prison Gate"]
3599
			local Event = game:GetService("Workspace").Remote.ItemHandler
3600
			Event:InvokeServer(Arg_1)
3601
		end)
3602
		for i,v in pairs(game:GetService("Workspace").Doors:GetChildren()) do
3603
			if v then
3604
				if v:FindFirstChild("block") and v:FindFirstChild("block"):FindFirstChild("hitbox") then
3605
					firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart,v.block.hitbox,0)
3606
					firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart,v.block.hitbox,1)
3607
				end
3608
			end
3609
		end
3610
		wait(1)
3611
		Last_Team(LastTeam)
3612
	end
3613
	if commandPLAYER("criminal") then
3614
		local r = FindPlayer(Arg2_P)
3615
		if r then
3616
			if r.Character:FindFirstChildOfClass("Humanoid") and r.Character:FindFirstChildOfClass("Humanoid").Health <1 then
3617
				Msg(Speaker,"[ADMIN]: Player is dead please try again.")
3618
				return
3619
			end
3620
			if not Speaker.Character then
3621
				Notif("Please try again (Character not found).")
3622
				return
3623
			end
3624
			bring(r,r.Character:GetPrimaryPartCFrame()*CFrame.new(0,1,0),nil,"crim")
3625
		else
3626
			Msg(Speaker,"[ADMIN]: Player not found!")
3627
			NotFound()
3628
		end
3629
	end
3630
	if commandPLAYER("goto") then
3631
		local r = FindPlayer(Arg2_P)
3632
		if r then
3633
			if not Speaker.Character then
3634
				Notif("Please try again (Character not found).")
3635
				return
3636
			end
3637
			bring(Speaker,r.Character:GetPrimaryPartCFrame()*CFrame.new(0,1,0),nil,"crim")
3638
		else
3639
			Msg(Speaker,"[ADMIN]: Player not found!")
3640
			NotFound()
3641
		end
3642
	end
3643
	if commandPLAYER("cmds") then
3644
		Msg(Speaker,CmdsList)
3645
		wait(.1)
3646
		Msg(Speaker,CmdsList2)
3647
	end
3648
end
3649
3650
plr:GetMouse().Button1Up:Connect(function()
3651
	local Target = plr:GetMouse().Target
3652
	if States.ClickArrest or States.ClickKill then
3653
		if Target and Target.Parent and Target.Parent:FindFirstChildOfClass("Humanoid") and game:GetService("Players"):FindFirstChild(Target.Parent.Name) or game:GetService("Players"):FindFirstChild(Target.Parent.Parent.Name) then
3654
			local TargetModelPlr = game:GetService("Players"):FindFirstChild(Target.Parent.Name) or game:GetService("Players"):FindFirstChild(Target.Parent.Parent.Name)
3655
			if States.ClickArrest then
3656
				if TargetModelPlr.Team ~= game:GetService("Teams").Guards then
3657
					local ohInstance1 = Target
3658
					workspace.Remote.arrest:InvokeServer(ohInstance1)
3659
				end
3660
			end
3661
			if States.ClickKill then
3662
				if TargetModelPlr.Team ~= game:GetService("Teams").Guards then
3663
					kill(TargetModelPlr)
3664
				end
3665
			end
3666
		end
3667
	end
3668
end)
3669
local DefaultChatSystemChatEvents = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents
3670
DefaultChatSystemChatEvents.OnMessageDoneFiltering.OnClientEvent:Connect(function(MessageData, ChannelName)
3671
	if unloaded then return end
3672
	if table.find(States.Admined,MessageData.FromSpeaker)  then
3673
		AdminChatted(MessageData.Message,MessageData.FromSpeaker)
3674
	end
3675
end)
3676
refresh()
3677
plr.PlayerGui.Home.fadeFrame.Visible = false--//black bar
3678
CmdBarFrame:TweenPosition(UDim2.new(0.5, 0, 0.899999998, 0)-UDim2.new(0,0,.05,0),"Out","Back",.5)
3679
Notif("Успешная загрузка! Спасибо за использование",3)