beb876730

프리즌 라이프 올킬 스크립트(타이거 어드민2.0)

Jul 19th, 2024
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.71 KB | None | 0 0
  1. repeat task.wait() until game:IsLoaded()
  2. local Temp = {Loopkill={},LkTEAMS={}}
  3. local TigerAdmin_UI = Instance.new("ScreenGui")
  4. local Main = Instance.new("Frame")
  5. local UICorner = Instance.new("UICorner")
  6. local CommandsList = Instance.new("ScrollingFrame")
  7. local UIStroke = Instance.new("UIStroke")
  8. local UIListLayout = Instance.new("UIListLayout")
  9. local UIStroke_2 = Instance.new("UIStroke")
  10. local CommandBar = Instance.new("TextBox")
  11. local UIStroke_3 = Instance.new("UIStroke")
  12. local Title = Instance.new("TextLabel")
  13. local Disc = Instance.new("TextLabel")
  14. local Temp_Clone = Instance.new("TextButton")
  15. local UIStroke_4 = Instance.new("UIStroke")
  16. local Notif = Instance.new("Frame")
  17. local UIStroke_5 = Instance.new("UIStroke")
  18. local UICorner_2 = Instance.new("UICorner")
  19. local Text = Instance.new("TextLabel")
  20. local UITextSizeConstraint = Instance.new("UITextSizeConstraint")
  21. TigerAdmin_UI.Name = "TigerAdmin_UI"
  22. local PreferedParent = nil
  23. xpcall(function()
  24. PreferedParent = (game:GetService("CoreGui"))
  25. TigerAdmin_UI.Parent = PreferedParent
  26. end, function()
  27. PreferedParent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
  28. TigerAdmin_UI.Parent = PreferedParent
  29. end)
  30. TigerAdmin_UI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  31. TigerAdmin_UI.ResetOnSpawn = false
  32. Main.Name = "Main"
  33. Main.Parent = TigerAdmin_UI
  34. Main.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
  35. Main.BorderColor3 = Color3.fromRGB(0, 0, 0)
  36. Main.BorderSizePixel = 0
  37. Main.Position = UDim2.new(0, 0, 0.245635912, 0)
  38. Main.Size = UDim2.new(0, 311, 0, 440)
  39. UICorner.CornerRadius = UDim.new(0, 3)
  40. UICorner.Parent = Main
  41. CommandsList.Name = "CommandsList"
  42. CommandsList.Parent = Main
  43. CommandsList.Active = true
  44. CommandsList.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  45. CommandsList.BackgroundTransparency = 1.000
  46. CommandsList.BorderColor3 = Color3.fromRGB(0, 0, 0)
  47. CommandsList.BorderSizePixel = 0
  48. CommandsList.Position = UDim2.new(0.0311283227, 0, 0.076167196, 0)
  49. CommandsList.AutomaticCanvasSize = Enum.AutomaticSize.Y
  50. CommandsList.Size = UDim2.new(0, 286, 0, 345)
  51. CommandsList.BottomImage = "rbxassetid://5168609593"
  52. CommandsList.MidImage = "rbxassetid://5168609593"
  53. CommandsList.ScrollBarImageTransparency = 0.510
  54. CommandsList.ScrollBarThickness = 6
  55. CommandsList.TopImage = "rbxassetid://5168609593"
  56. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  57. UIStroke.Color = Color3.fromRGB(255, 255, 255)
  58. UIStroke.Transparency = 0.680
  59. UIStroke.Parent = CommandsList
  60. UIListLayout.Parent = CommandsList
  61. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  62. UIListLayout.Padding = UDim.new(0, 4)
  63. UIStroke_2.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  64. UIStroke_2.Color = Color3.fromRGB(255, 255, 255)
  65. UIStroke_2.Transparency = 0.680
  66. UIStroke_2.Parent = Main
  67. CommandBar.Name = "CommandBar"
  68. CommandBar.Parent = Main
  69. CommandBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  70. CommandBar.BackgroundTransparency = 1.000
  71. CommandBar.BorderColor3 = Color3.fromRGB(0, 0, 0)
  72. CommandBar.BorderSizePixel = 0
  73. CommandBar.Position = UDim2.new(0.0289389063, 0, 0.890909076, 0)
  74. CommandBar.Size = UDim2.new(0, 289, 0, 39)
  75. CommandBar.ClearTextOnFocus = false
  76. CommandBar.Font = Enum.Font.SourceSans
  77. CommandBar.PlaceholderText = "Input Commands here!"
  78. CommandBar.Text = ""
  79. CommandBar.TextColor3 = Color3.fromRGB(223, 223, 223)
  80. CommandBar.TextSize = 14.000
  81. UIStroke_3.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  82. UIStroke_3.Color = Color3.fromRGB(255, 255, 255)
  83. UIStroke_3.Transparency = 0.680
  84. UIStroke_3.Parent = CommandBar
  85. Title.Name = "Title"
  86. Title.Parent = Main
  87. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  88. Title.BackgroundTransparency = 1.000
  89. Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  90. Title.BorderSizePixel = 0
  91. Title.Position = UDim2.new(0.0311283227, 0, 0.0147420019, 0)
  92. Title.Size = UDim2.new(0, 301, 0, 16)
  93. Title.Font = Enum.Font.Gotham
  94. Title.Text = "TIGER ADMIN"
  95. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  96. Title.TextScaled = true
  97. Title.TextSize = 14.000
  98. Title.TextWrapped = true
  99. Disc.Name = "Disc"
  100. Disc.Parent = Main
  101. Disc.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  102. Disc.BackgroundTransparency = 1.000
  103. Disc.BorderColor3 = Color3.fromRGB(0, 0, 0)
  104. Disc.BorderSizePixel = 0
  105. Disc.Position = UDim2.new(0, 0, 1, 0)
  106. Disc.Size = UDim2.new(0, 311, 0, 27)
  107. Disc.Visible = false
  108. Disc.Font = Enum.Font.SourceSans
  109. Disc.Text = "Description: Kills a certain player"
  110. Disc.TextColor3 = Color3.fromRGB(255, 255, 255)
  111. Disc.TextSize = 14.000
  112. Disc.TextStrokeTransparency = 0.650
  113. Temp_Clone.Name = "Temp_Clone"
  114. Temp_Clone.Parent = TigerAdmin_UI
  115. Temp_Clone.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  116. Temp_Clone.BackgroundTransparency = 1.000
  117. Temp_Clone.BorderColor3 = Color3.fromRGB(0, 0, 0)
  118. Temp_Clone.BorderSizePixel = 0
  119. Temp_Clone.Size = UDim2.new(0, 286, 0, 28)
  120. Temp_Clone.Visible = false
  121. Temp_Clone.AutoButtonColor = false
  122. Temp_Clone.Font = Enum.Font.Gotham
  123. Temp_Clone.Text = "!kill <player>"
  124. Temp_Clone.TextColor3 = Color3.fromRGB(203, 203, 203)
  125. Temp_Clone.TextSize = 14.000
  126. Temp_Clone.TextWrapped = true
  127. UIStroke_4.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  128. UIStroke_4.Color = Color3.fromRGB(255, 255, 255)
  129. UIStroke_4.Transparency = 0.680
  130. UIStroke_4.Parent = Temp_Clone
  131. Notif.Name = "Notif"
  132. Notif.Parent = TigerAdmin_UI
  133. Notif.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
  134. Notif.BorderColor3 = Color3.fromRGB(0, 0, 0)
  135. Notif.BorderSizePixel = 0
  136. Notif.Position = UDim2.new(0.00780572416, 0, 0.152119696, 0)
  137. Notif.Size = UDim2.new(0, 222, 0, 58)
  138. Notif.Visible = false
  139. UIStroke_5.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  140. UIStroke_5.Color = Color3.fromRGB(255, 255, 255)
  141. UIStroke_5.Thickness = 0.700
  142. UIStroke_5.Transparency = 0.680
  143. UIStroke_5.Parent = Notif
  144. UICorner_2.CornerRadius = UDim.new(0, 3)
  145. UICorner_2.Parent = Notif
  146. Text.Name = "Text"
  147. Text.Parent = Notif
  148. Text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  149. Text.BackgroundTransparency = 1.000
  150. Text.BorderColor3 = Color3.fromRGB(0, 0, 0)
  151. Text.BorderSizePixel = 0
  152. Text.Size = UDim2.new(0.972972989, 0, 1, 0)
  153. Text.Font = Enum.Font.SourceSans
  154. Text.Text = "Error! Jeffcool in game spotted please leave!"
  155. Text.TextColor3 = Color3.fromRGB(190, 190, 190)
  156. Text.TextScaled = true
  157. Text.TextSize = 14.000
  158. Text.TextWrapped = true
  159. UITextSizeConstraint.Parent = Text
  160. UITextSizeConstraint.MaxTextSize = 14
  161. local AllowFocus = false
  162. Temp.OrginPosMain = Main.Position
  163. Temp.OrginPosMainGone = Temp.OrginPosMain+UDim2.new(-.3,0,0,0)
  164. Temp.NotifOldPos = Notif.Position
  165. Main:TweenPosition(Temp.OrginPosMainGone,"Out","Quart")
  166. plr = game:GetService("Players").LocalPlayer
  167.  
  168. -- Services --
  169. local Players = game:GetService("Players")
  170. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  171. local TweenService = game:GetService("TweenService")
  172.  
  173. -- Player --
  174. local Player = Players.LocalPlayer
  175. local Character, Humanoid, HRP
  176. -- API --
  177. local Remote = workspace:WaitForChild("Remote")
  178. local API, Commands, States = {}, {}, {}
  179. local Settings = {
  180. Prefix = "!"
  181. }
  182. States.Unloaded = false
  183. game:GetService("UserInputService").InputEnded:Connect(function(Key,c)
  184. if States.Unloaded == false then
  185. if Key.KeyCode == Enum.KeyCode.Semicolon and not c then
  186. Main:TweenPosition(Temp.OrginPosMain,"Out","Quart",.38)
  187. CommandBar:CaptureFocus()
  188. wait(.5)
  189. AllowFocus = true
  190. end
  191. if Key.UserInputType == Enum.UserInputType.MouseButton1 and not c then
  192. if not Temp.OnGui then
  193. AllowFocus = false
  194. end
  195. end
  196. end
  197. end)
  198. Main.MouseLeave:Connect(function()
  199. Temp.OnGui = false
  200. Disc.Visible = false
  201. end)
  202. Main.MouseEnter:Connect(function()
  203. Temp.OnGui = true
  204. end)
  205. coroutine.wrap(function()
  206. while wait() do
  207. if AllowFocus then
  208. repeat task.wait() until not AllowFocus
  209. Main:TweenPosition(Temp.OrginPosMainGone,"Out","Quart",.38)
  210. Disc.Visible = false
  211. end
  212. end
  213. end)()
  214.  
  215. API.StringArgsChecker = function(Text)
  216. local List = {"all","others","me"}
  217. local Ts = game.Teams:GetChildren()
  218. for i,v in pairs(Ts) do
  219. Ts[i] = v.Name:lower()
  220. end
  221. if (table.find(List,Text:lower())) then
  222. return (table.find(List,Text:lower()) and true)
  223. end
  224. if table.find(Ts,Text) then
  225. return "Team"
  226. end
  227. return nil
  228. end
  229.  
  230. API.Tween = function(Obj,Prop,New,Time)
  231. if not Time then Time = .5 end
  232. local Tweened = game:GetService("TweenService"):Create(Obj, TweenInfo.new( Time, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 0, false,0), {[Prop] = New,})
  233. Tweened:Play()
  234. return {Stop = function() Tweened:Cancel() end, }
  235. end
  236. Temp.CMDA = 0
  237. API.AddCommand = function(Name, Function, Setting)
  238. Temp.CMDA = Temp.CMDA +1
  239. local Alts = ""
  240. Commands[Name:lower()] = {f = Function,}
  241. if Setting["Alt"] then
  242. for i,v in pairs(Setting["Alt"]) do
  243. if v and tostring(v) then
  244. Commands[v] = Commands[Name:lower()]
  245. Alts = Alts.."/!"..v
  246. end
  247. end
  248. end
  249. local CommandLabel = Temp_Clone:Clone()
  250. if Setting["Type"] then Setting["Type"] = Setting["Type"]:lower() end
  251. if Setting["Type"] and Setting["Type"] == "toggle" then
  252. Setting["Type"] = "<ON/OFF>"
  253. elseif Setting["Type"] and Setting["Type"] == "player" then
  254. Setting["Type"] = "<Player>"
  255. elseif Setting["Type"] and Setting["Type"] == "all" then
  256. Setting["Type"] = "<Player,All,Me>"
  257. elseif Settings and Settings["Type"] ~=nil then
  258. Setting["Type"] = "<"..Setting["Type"]..">"
  259. else
  260. Setting["Type"] = ""
  261.  
  262. end
  263.  
  264. CommandLabel.Text = Settings.Prefix..Name..Alts.." "..Setting["Type"]
  265. CommandLabel.Visible = true
  266. CommandLabel.Parent = CommandsList
  267. CommandLabel.MouseButton1Up:Connect(function()
  268. CommandBar.Text = Settings.Prefix..Name
  269. CommandBar:CaptureFocus()
  270. end)
  271. CommandLabel.MouseEnter:Connect(function()
  272. API.Tween(CommandLabel,"BackgroundTransparency",.67,.4)
  273. Disc.Visible = true
  274. Disc.Text = Setting["Description"]
  275. end)
  276. CommandLabel.MouseLeave:Connect(function()
  277. API.Tween(CommandLabel,"BackgroundTransparency",1,.4)
  278. end)
  279. end
  280. API.FindPlayer =function(String,IgnoreError)
  281. if not String then
  282. return nil
  283. end
  284. if String:lower() == "me" then
  285. return plr
  286. end
  287. String = String:gsub("%s+", "")
  288. for _, v in pairs(game:GetService("Players"):GetPlayers()) do
  289. if v.Name:lower():match("^" .. String:lower()) or v.DisplayName:lower():match("^" .. String:lower()) then
  290. return v
  291. end
  292. end
  293. if not IgnoreError then
  294. API.Notify("No players in server matching the name '"..String.."'")
  295. end
  296. return nil
  297. end
  298. API.FindCommand = function(cmd)
  299. cmd=string.gsub(cmd,"!","")
  300. local Command = Commands[cmd]
  301. if Command then
  302. return Command.f
  303. end
  304. return Command
  305. end
  306.  
  307. API.Notify = function(Text,Dur)
  308. pcall(function()
  309. local a = Instance.new("ScreenGui",PreferedParent)
  310. local NotifNew = Notif:Clone()
  311. NotifNew.Visible = true
  312. NotifNew.Parent = a
  313. NotifNew.Position = Temp.NotifOldPos-UDim2.new(1,0,0,0)
  314. task.spawn(function()
  315. NotifNew:TweenPosition(Temp.NotifOldPos,"Out","Quart",.8)
  316. NotifNew:FindFirstChild("Text").Text = Text or "No notification text given."
  317. wait((Dur) or 3)
  318. NotifNew:TweenPosition(Temp.NotifOldPos-UDim2.new(1,0,0,0),"Out","Quart",.8)
  319. wait(.9)
  320. NotifNew:Destroy()
  321. end)
  322. end)
  323. end
  324. API.GetGun =function(Item)
  325. task.spawn(function()
  326. local isAlreadyThere = plr.Backpack:FindFirstChild(Item) or plr.Character:FindFirstChild(Item)
  327. if isAlreadyThere then
  328. return isAlreadyThere
  329. else
  330. pcall(function()
  331. task.spawn(function()
  332. workspace:FindFirstChild("Remote")['ItemHandler']:InvokeServer({Position = Player.Character.Head.Position,Parent = workspace.Prison_ITEMS:FindFirstChild(Item, true)})
  333. end)
  334. end)
  335. end
  336. end)
  337. end
  338. API.MoveTo = function(Cframe)
  339. if typeof(Cframe):lower() == "position" then Cframe = CFrame.new(Cframe) end
  340. for i =1,3 do
  341. task.wait()
  342. plr.Character:FindFirstChild("HumanoidRootPart").CFrame = Cframe
  343. end
  344. end
  345. API.IsFound = function(Name)
  346. local t = (plr.Backpack:FindFirstChild(Name) or plr.Character:FindFirstChild(Name))
  347. if t and t:IsA("Tool") then
  348. return t
  349. end
  350. return nil
  351. end
  352. API.GetPosition = function()
  353. return plr.Character:FindFirstChild("HumanoidRootPart").CFrame
  354. end
  355. API.TestA = function()
  356. for i =1,10 do --//STOP IT HOLY SHIT WHY WONT IT WORK
  357. Temp.Respawned:Disconnect()
  358. end
  359. Temp.Respawned = nil
  360. end
  361. function API.Refresh(Team,Position,NoForce) --// v2.0
  362. if typeof(Position):lower() == "position" then Position = CFrame.new(Position) end
  363. local LastPosition = API.GetPosition()
  364. local LastCameraPosition = workspace.CurrentCamera.CFrame
  365. if not Team then Team = plr.Team end
  366. local done = false
  367. Temp.Respawned = plr.CharacterAdded:Connect(function(c)
  368. if done then return end
  369. done = true
  370. task.spawn(function()
  371. workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
  372. wait(.1)
  373. workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  374. workspace.CurrentCamera.CameraSubject = plr.Character:WaitForChild("Humanoid")
  375.  
  376. end)
  377. task.spawn(function()
  378. c:WaitForChild("ForceField"):Destroy()
  379. end)
  380. for i =1,3 do
  381. c:WaitForChild("HumanoidRootPart").CFrame = LastPosition
  382. game:GetService("RunService").Stepped:Wait()
  383. end
  384. API.TestA()
  385. Position = nil--// why the fuck it keep spawning somewhere else!!!! GRRRRR
  386. NoForce = nil
  387. LastCameraPosition = nil
  388. Team = nil
  389. end)
  390. if Team ~= game.Teams.Criminals then
  391. Position = Position
  392. workspace.Remote.TeamEvent:FireServer(Team.TeamColor.Name)
  393. else
  394. repeat
  395. game:GetService("RunService").Stepped:Wait()
  396. if firetouchinterest then
  397. firetouchinterest(plr.Character:FindFirstChildOfClass("Part"), game:GetService("Workspace")["Criminals Spawn"]:GetChildren()[1], 0)
  398. firetouchinterest(plr.Character:FindFirstChildOfClass("Part"), game:GetService("Workspace")["Criminals Spawn"]:GetChildren()[1], 1)
  399. end
  400. game:GetService("Workspace")["Criminals Spawn"]:GetChildren()[1].Transparency = 1
  401. game:GetService("Workspace")["Criminals Spawn"]:GetChildren()[1].CanCollide = false
  402. game:GetService("Workspace")["Criminals Spawn"]:GetChildren()[1].CFrame = API:GetPosition()
  403. until plr.Team == game:GetService("Teams").Criminals
  404. game:GetService("Workspace")["Criminals Spawn"]:GetChildren()[1].CFrame = CFrame.new(0, 3125, 0)
  405. end
  406. return nil
  407. end
  408. function API.ChangeTeam(Team)
  409. API.Refresh(Team,nil,true)
  410. end
  411. function API.GuardsFull(a)
  412. if #game:GetService("Teams").Guards:GetPlayers()==8 then
  413. if a then
  414. if Player.Team == game.Teams.Guards then
  415. return false
  416. end
  417. end
  418. return false
  419. end
  420. return true
  421. end
  422. API.KillTeam = function(Team)
  423. local LastT, Bullets,OrginTeam = nil,{}, plr.Team
  424. local function Fire()
  425. API.GetGun("M9")
  426. local Gun = plr.Backpack:FindFirstChild("M9")
  427. repeat task.wait()
  428. Gun = plr.Backpack:FindFirstChild("M9")
  429. API.GetGun("M9")
  430. until Gun
  431. task.spawn(function()
  432. game:GetService("ReplicatedStorage"):WaitForChild("ShootEvent"):FireServer(Bullets, Gun)
  433. game:GetService("ReplicatedStorage").ReloadEvent:FireServer(Gun)
  434. end)
  435. end
  436. if Team ~= "all" then
  437. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  438. if v and v ~= plr and v.Team == Team then
  439. for i =1,15 do
  440. Bullets[#Bullets+1] = {
  441. ["RayObject"] = Ray.new(Vector3.new(), Vector3.new()),
  442. ["Distance"] = 0,
  443. ["Cframe"] = CFrame.new(),
  444. ["Hit"] = v.Character:FindFirstChild("Head"),
  445. }
  446. end
  447. end
  448. end
  449. if Team ~= game.Teams.Inmates then
  450. API.ChangeTeam(game.Teams.Inmates)
  451. else
  452. API.ChangeTeam(game.Teams.Criminals)
  453. end
  454. wait(.1)
  455. Fire()
  456. wait(.5)
  457. if plr.Team ~=OrginTeam then
  458. API.ChangeTeam(OrginTeam)
  459. end
  460. else
  461. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  462. if v and v ~= plr and v.Character then
  463. for i =1,15 do
  464. Bullets[#Bullets+1] = {
  465. ["RayObject"] = Ray.new(Vector3.new(), Vector3.new()),
  466. ["Distance"] = 0,
  467. ["Cframe"] = CFrame.new(),
  468. ["Hit"] = v.Character:FindFirstChild("Head"),
  469. }
  470. end
  471. end
  472. end
  473. if plr.Team ~= game.Teams.Inmates then
  474. API.ChangeTeam(game.Teams.Inmates)
  475. end
  476. Fire()
  477. wait(.1)
  478. API.ChangeTeam(game.Teams.Criminals)
  479. wait()
  480. Fire()
  481. wait(.5)
  482. if plr.Team ~=OrginTeam then
  483. API.ChangeTeam(OrginTeam)
  484. end
  485. end
  486.  
  487. end
  488. API.GetCar = function(To)
  489. if not To then To = API.GetPosition() end
  490. local Car = nil
  491. local L = API.GetPosition()
  492. for i,v in pairs(game:GetService("Workspace").CarContainer:GetChildren()) do
  493. if v and v:IsA("Model") then
  494. if v:WaitForChild("Body"):WaitForChild("VehicleSeat").Occupant == nil then
  495. Car = v
  496. end
  497. end
  498. end
  499. if not Car then
  500. coroutine.wrap(function()
  501. if not Car then
  502. Car = game:GetService("Workspace").CarContainer.ChildAdded:Wait()
  503. end
  504. end)()
  505. API.MoveTo(game:GetService("Workspace").Prison_ITEMS.buttons:GetChildren()[7]["Car Spawner"].CFrame*CFrame.new(0,2.5,0))
  506. wait(.23)
  507. repeat task.wait()
  508. task.spawn(function()
  509. workspace.Remote.ItemHandler:InvokeServer(game:GetService("Workspace").Prison_ITEMS.buttons:GetChildren()[7]["Car Spawner"])
  510. end)
  511. until Car
  512. end
  513. repeat task.wait() until Car
  514. Car:WaitForChild("Body"):WaitForChild("VehicleSeat")
  515. Car.PrimaryPart = Car.Body.VehicleSeat
  516. local Seat = Car.Body.VehicleSeat
  517. API.MoveTo(To)
  518. repeat task.wait()
  519. Car:SetPrimaryPartCFrame(To)
  520. Seat:Sit(plr.Character:FindFirstChildOfClass("Humanoid"))
  521. until plr.Character:FindFirstChildOfClass("Humanoid").Sit == true
  522. Car:SetPrimaryPartCFrame(To)
  523. plr.Character:FindFirstChildOfClass('Humanoid').Sit = false
  524. wait()
  525. API.MoveTo(L)
  526. end
  527. API.FindShield = function()
  528. local Shield = Players:FindFirstChild("Riot Shield", true)
  529. if not Shield then
  530. for _,Target in pairs(Players:GetPlayers()) do
  531. if Target.Character and Target.Character:FindFirstChild("Riot Shield") then
  532. Shield = Target.Character["Riot Shield"]
  533. break
  534. end
  535. end
  536. end
  537. return Shield
  538. end
  539. API.Bring = function(Target,TeleportTo)
  540. if not TeleportTo then TeleportTo = API.GetPosition() end
  541. local CarSelected = nil
  542. local Seat = nil
  543. local Attempts = 0
  544. for i,v in pairs(game:GetService("Workspace").CarContainer:GetChildren()) do
  545. if v then
  546. if v:WaitForChild("Body"):WaitForChild("VehicleSeat").Occupant == nil then
  547. CarSelected = v
  548. end
  549. end
  550. end
  551. if not CarSelected then
  552. coroutine.wrap(function()
  553. if not CarSelected then
  554. CarSelected = game:GetService("Workspace").CarContainer.ChildAdded:Wait()
  555. end
  556. end)()
  557. API.MoveTo(game:GetService("Workspace").Prison_ITEMS.buttons:GetChildren()[7]["Car Spawner"].CFrame*CFrame.new(0,2.5,0))
  558. wait(.23)
  559. repeat task.wait()
  560. task.spawn(function()
  561. workspace.Remote.ItemHandler:InvokeServer(game:GetService("Workspace").Prison_ITEMS.buttons:GetChildren()[7]["Car Spawner"])
  562. end)
  563. until CarSelected
  564. end
  565. repeat game:GetService("RunService").RenderStepped:Wait() until CarSelected ~= nil
  566. if CarSelected then
  567. CarSelected:WaitForChild("Body"):WaitForChild("VehicleSeat")
  568. CarSelected.PrimaryPart = CarSelected.Body.VehicleSeat
  569. Seat = CarSelected.Body.VehicleSeat
  570. CarSelected:SetPrimaryPartCFrame(plr.Character:GetPrimaryPartCFrame())
  571. repeat task.wait()
  572. Seat:Sit(plr.Character:FindFirstChildOfClass("Humanoid"))
  573. until plr.Character:FindFirstChildOfClass("Humanoid").Sit == true
  574. repeat game:GetService("RunService").RenderStepped:Wait()
  575. Attempts = Attempts+1
  576. if not Target.Character or Target.Character:FindFirstChildOfClass("Humanoid").Health <1 then
  577. break
  578. end
  579. CarSelected:SetPrimaryPartCFrame(Target.Character:GetPrimaryPartCFrame()*CFrame.new(0,-.2,-5))
  580. until Target.Character:FindFirstChildOfClass("Humanoid").Sit == true or Attempts >500
  581. for i =1,5 do
  582. task.wait()
  583. CarSelected:SetPrimaryPartCFrame(TeleportTo)
  584. end
  585. end
  586. end
  587.  
  588. API.Kill = function(Target,Attempt,StopChangeTeam)
  589. local ChangeTeam = nil
  590. if Target.Team == plr.Team then
  591. ChangeTeam = plr.Team
  592. if Target.Team ~= game.Teams.Inmates then
  593. API.Refresh(game.Teams.Inmates,API.GetPosition(),true)
  594. elseif Target.Team ~= game.Teams.Criminals then
  595. API.Refresh(game.Teams.Criminals,API.GetPosition(),true)
  596. else
  597. API.Refresh(game.Teams.Inmates,API.GetPosition(),true)
  598. end
  599. end
  600. if Target == plr then
  601. plr.Character:FindFirstChildOfClass("Humanoid").Health = 0
  602. return
  603. end
  604. local BulletTable = {}
  605. if Target.Character:FindFirstChildOfClass("Humanoid") and Target.Character:FindFirstChildOfClass("Humanoid").Health <1 then
  606. return
  607. end
  608. local PewPew = nil
  609. for i =1,15 do
  610. BulletTable[#BulletTable+1] = {
  611. ["RayObject"] = Ray.new(Vector3.new(), Vector3.new()),
  612. ["Distance"] = 0,
  613. ["Cframe"] = CFrame.new(),
  614. ["Hit"] = Target.Character:FindFirstChild("Head"),
  615. }
  616. end
  617. repeat API.GetGun("Remington 870") game:GetService("RunService").RenderStepped:Wait() PewPew = Player.Backpack:FindFirstChild("Remington 870") or Player.Character:FindFirstChild("Remington 870") until PewPew
  618. task.spawn(function()
  619. game:GetService("ReplicatedStorage"):WaitForChild("ShootEvent"):FireServer(BulletTable, PewPew)
  620. game:GetService("ReplicatedStorage").ReloadEvent:FireServer(PewPew)
  621. end)
  622. wait(.25)
  623. if Target.Character:FindFirstChildOfClass("Humanoid").Health >0 then
  624. wait(.4)
  625. task.spawn(function()
  626. game:GetService("ReplicatedStorage"):WaitForChild("ShootEvent"):FireServer(BulletTable, PewPew)
  627. game:GetService("ReplicatedStorage").ReloadEvent:FireServer(PewPew)
  628. end)
  629. wait(.25)
  630. if not StopChangeTeam then
  631. API.Refresh(ChangeTeam,API.GetPosition(),true)
  632. end
  633. return
  634. end
  635. if ChangeTeam and not StopChangeTeam then
  636. API.Refresh(ChangeTeam,API.GetPosition(),true)
  637. end
  638. end
  639. API.Guns = function()
  640. if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, 96651) then
  641. API.GetGun("M4A1")
  642. end
  643. API.GetGun("AK-47")
  644. task.spawn(function()
  645. API:GetGun("Remington 870")
  646. end)
  647. API:GetGun("M9")
  648. end
  649. API.ChangeToggle = function(Name,arg2)
  650. if States[Name] == nil then
  651. States[Name] = false
  652. end
  653. if States[Name] ~= nil then
  654. if arg2 then
  655. if arg2 == "on" then
  656. States[Name] = true
  657. elseif arg2 == "off" then
  658. States[Name] = false
  659. end
  660. return
  661. end
  662. States[Name] = not States[Name]
  663. end
  664. end
  665. API.ExecuteCommand = function(Text)
  666. if States.Unloaded then return end
  667. if string.sub(Text, #Settings.Prefix, 1) ~= Settings.Prefix then
  668. return
  669. end
  670. Text=Text:lower()
  671. local Split = string.split(Text, " ")
  672. local Command = API.FindCommand(Split[1])
  673. if not Command then
  674. API.Notify("No command found under '"..Text:split(" ")[1].."'")
  675. return
  676. end
  677. local Success, Error = pcall(task.spawn,Command, Split)
  678. if not Success then
  679. warn("--// TIGER ADMIN ERROR \\\\\--\nCommand: "..Text:split(" ")[1].."\n"..Error)
  680. end
  681. end
  682. ---
  683. function API.BadArea(Player)
  684. local mod = require(game.ReplicatedStorage["Modules_client"]["RegionModule_client"])
  685. local a = pcall(function()
  686. if mod.findRegion(Player.Character) then
  687. mod = mod.findRegion(Player.Character)["Name"]
  688. end
  689. end)
  690. if not a then
  691. return
  692. end
  693. for i, v in pairs(game:GetService("ReplicatedStorage").PermittedRegions:GetChildren()) do
  694. if v and mod == v.Value then
  695. return false
  696. end
  697. end
  698. return true
  699. end
  700. -- Commands --
  701. API.AddCommand("unload", function(Args)
  702. States = {}
  703. States.Unloaded = true
  704. API.Notify("Unloaded Gui, States and stopped most loops.")
  705. Main:TweenPosition(Main.Position+UDim2.new(0,0,1,0),"In","Back",.45)
  706. wait(.46)
  707. TigerAdmin_UI:Destroy()
  708. end,{["Description"] = "Unloads the script",})
  709. API.AddCommand("fix", function(Args)
  710. if Temp.ViewingPlayer then
  711. Temp.ViewingPlayer:Disconnect()
  712. end
  713. workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  714. workspace.CurrentCamera.CameraSubject = plr.Character.Humanoid
  715. plr.Character:WaitForChild("HumanoidRootPart").Anchored = false
  716. plr.Character:WaitForChild("Humanoid").WalkSpeed = 16
  717. end,{["Description"] = "Fixes Camera and player character",})
  718. ----------------------------------------------------------// <PLAYER> / <ALL> COMMANDS
  719. API.AddCommand("kill", function(Args)
  720. if Args[2] then
  721. local t = {}
  722. local index = {}
  723. for i,v in pairs(game:GetService("Teams"):GetChildren()) do
  724. table.insert(t,v.Name:lower())
  725. table.insert(index,v)
  726. end
  727. if table.find(t,Args[2]) then
  728. API.KillTeam(index[table.find(t,Args[2])])
  729. return
  730. end
  731. if API.StringArgsChecker(Args[2]) == nil then
  732. local Target = API.FindPlayer(Args[2])
  733. if Target then
  734. API.Kill(Target)
  735. end
  736. else
  737. API.KillTeam("all")
  738. end
  739. end
  740. end,{["Description"] = "Kills player(s)",["Type"] = "all",})
  741. API.AddCommand("arrest", function(Args)
  742. if Args[2] and Args[2] == "all" then
  743. local LastPosition = API.GetPosition()
  744. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  745. if v and v~= game:GetService("Players").LocalPlayer and v.Team == game.Teams.Criminals or (API:BadArea(v) and v.Team == game.Teams.Inmates) and v.Character.PrimaryPart and v.Character:FindFirstChildOfClass("Humanoid").Health>0 then
  746. repeat game:GetService("RunService").Stepped:Wait()
  747. API.MoveTo(v.Character:GetPrimaryPartCFrame()*CFrame.new(0,0,-4.5))
  748. task.spawn(function()
  749. workspace.Remote.arrest:InvokeServer(v.Character.PrimaryPart)
  750. end)
  751. until v.Character["Head"]:FindFirstChildOfClass("BillboardGui")
  752. API.MoveTo(LastPosition)
  753. wait(.7)
  754. end
  755. end
  756. API.MoveTo(LastPosition)
  757. elseif Args[2] and Args[2]~="all" then
  758. local LastPosition = API.GetPosition()
  759. local Target = API.FindPlayer(Args[2])
  760. if Target then
  761. if Target.Team == game.Teams.Guards or not API.BadArea(Target) then
  762. return API.Notify("Can't arrest this player!")
  763. end
  764. repeat game:GetService("RunService").Stepped:Wait()
  765. API.MoveTo(Target.Character:GetPrimaryPartCFrame()*CFrame.new(0,0,-4.5))
  766. task.spawn(function()
  767. workspace.Remote.arrest:InvokeServer(Target.Character.PrimaryPart)
  768. end)
  769. until Target.Character["Head"]:FindFirstChildOfClass("BillboardGui")
  770. end
  771. API.MoveTo(LastPosition)
  772. end
  773. end,{["Description"] = "Arrests a player",["Type"] = "Player,All"})
  774. API.AddCommand("bring", function(Args)
  775. local Target = API.FindPlayer(Args[2])
  776. if Target then
  777. API.Bring(Target)
  778. end
  779. end,{["Description"] = "Brings a player to you",["Type"] = "player"})
  780. API.AddCommand("goto", function(Args)
  781. local Target = API.FindPlayer(Args[2])
  782. if Target then
  783. API.MoveTo(Target.Character:GetPrimaryPartCFrame()*CFrame.new(0,0,2.5))
  784. end
  785. end,{["Description"] = "Teleports you to a player",["Type"] = "player"})
  786. API.AddCommand("view", function(Args)
  787. local Target = API.FindPlayer(Args[2])
  788. if Target then
  789. if Temp.ViewingPlayer then
  790. Temp.ViewingPlayer:Disconnect()
  791. end
  792. Temp.ViewingPlayer = game:GetService("RunService").RenderStepped:Connect(function()
  793. pcall(function()
  794. task.spawn(function()
  795. workspace.CurrentCamera.CameraSubject = Target.Character:WaitForChild("Humanoid")
  796. end)
  797. end)
  798. end)
  799. API.Notify("Now viewing this player.")
  800. end
  801. end,{["Description"] = "Spy on a player",["Type"] = "player"})
  802. API.AddCommand("unview", function(Args)
  803. if Temp.ViewingPlayer then
  804. Temp.ViewingPlayer:Disconnect()
  805. Temp.ViewingPlayer = nil
  806. end
  807. workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  808. workspace.CurrentCamera.CameraSubject = plr.Character.Humanoid
  809. API.Notify("Stopped view.")
  810. end,{["Description"] = "Stops view command.",})
  811. API.AddCommand("loopkill", function(Args)
  812. local Target = API.FindPlayer(Args[2])
  813. local t = {}
  814. local index = {}
  815. for i,v in pairs(game:GetService("Teams"):GetChildren()) do
  816. table.insert(t,v.Name:lower())
  817. table.insert(index,v)
  818. end
  819. if table.find(t,Args[2]) then
  820. local TeamFound = index[table.find(t,Args[2])]
  821. Temp.LkTEAMS[#Temp.LkTEAMS+1] = TeamFound
  822. return
  823. end
  824. if API.StringArgsChecker(Args[2]) == nil then
  825. local Target = API.FindPlayer(Args[2])
  826. if Target then
  827. if not table.find(Temp.Loopkill,Target.Name) then
  828. Temp.Loopkill[#Temp.Loopkill+1] = Target.Name
  829. API.Notify("Now loop killing player.")
  830. end
  831. end
  832. else
  833. Temp.LKALL = true
  834. API.Notify("Started looping")
  835.  
  836. end
  837. end,{["Description"] = "Spam kills the player even if he leaves",["Type"] = "all"})
  838. API.AddCommand("unloopkill", function(Args)
  839. local t = {}
  840. local index = {}
  841. for i,v in pairs(game:GetService("Teams"):GetChildren()) do
  842. table.insert(t,v.Name:lower())
  843. table.insert(index,v)
  844. end
  845. if table.find(t,Args[2]) then
  846. local TeamFound = index[table.find(t,Args[2])]
  847. for i,v in pairs(Temp.LkTEAMS) do
  848. if v == TeamFound then
  849. Temp.LkTEAMS[i] = nil
  850. end
  851. end
  852. API.Notify("Stopped looping")
  853. return
  854. end
  855. if API.StringArgsChecker(Args[2]) == nil then
  856. local Target = API.FindPlayer(Args[2])
  857. if Target then
  858. if table.find(Temp.Loopkill,Target.Name) then
  859. table.remove(Temp.Loopkill,table.find(Temp.Loopkill,Target.Name))
  860. API.Notify("Stopped loopkilling this player.")
  861. end
  862. end
  863. else
  864. Temp.LKALL = false
  865. API.Notify("Stopped looping")
  866.  
  867. end
  868. end,{["Description"] = "Stops loopkilling a player",["Type"] = "all"})
  869. ------------------------------------------------------------------------//<ON><OFF> COMMANDS
  870. API.AddCommand("autoitems", function(Args)
  871. local StateToChange = "AutoItems"
  872. API.ChangeToggle(StateToChange,Args[2])
  873. end,{["Description"] = "Gives you tools everytime you die",["Type"] = "toggle"})
  874. API.AddCommand("autorespawn", function(Args)
  875. local StateToChange = "AutoRespawn"
  876. API.ChangeToggle(StateToChange,Args[2])
  877. API.Refresh(plr.Team)
  878. end,{["Description"] = "Respawns you back to your position after you die",["Type"] = "toggle",["Alt"] = {"autore"}})
  879. ----------------------------------------------------------------OTHER
  880. API.AddCommand("removecars", function(Args)
  881. local p = API.GetPosition()
  882. for i,v in pairs(workspace.CarContainer:GetChildren()) do
  883. if v:WaitForChild("Body"):WaitForChild("VehicleSeat").Occupant == nil then
  884. for i= 1,3 do
  885. task.wait()
  886. v:WaitForChild("Body"):WaitForChild("VehicleSeat"):Sit(plr.Character:FindFirstChildOfClass("Humanoid"))
  887. end
  888. repeat task.wait() until plr.Character:FindFirstChildOfClass("Humanoid").Sit == true
  889. v:WaitForChild("Body"):WaitForChild("VehicleSeat")
  890. v.PrimaryPart = v.Body.VehicleSeat
  891.  
  892. for i =1,3 do
  893. task.wait()
  894. v:SetPrimaryPartCFrame(CFrame.new(99999,workspace.FallenPartsDestroyHeight+15,999999))
  895. end
  896. wait(.25)
  897. plr.Character:FindFirstChildOfClass("Humanoid").Sit = false
  898. end
  899. end
  900. wait()
  901. API.MoveTo(p)
  902. end,{["Description"] = "Trys to remove all cars around the ma[",})
  903. API.AddCommand("refresh", function(Args)
  904. API.Refresh(plr.Team,API.GetPosition(),true)
  905. end,{["Description"] = "Reloads your character",["Alt"] = {"re"}})
  906. API.AddCommand("inmate", function(Args)
  907. API.Refresh(game.Teams.Inmates,API.GetPosition(),true)
  908. end,{["Description"] = "Reloads your character into inmates team",})
  909. API.AddCommand("guard", function(Args)
  910. API.Refresh(game.Teams.Guards,API.GetPosition(),true)
  911. end,{["Description"] = "Reloads your character into inmates guards",})
  912. API.AddCommand("criminal", function(Args)
  913. API.Refresh(game.Teams.Criminals,API.GetPosition(),true)
  914. end,{["Description"] = "Reloads your character into inmates criminals",})
  915. API.AddCommand("car", function(Args)
  916. API.GetCar()
  917. end,{["Description"] = "Brings a car to you",})
  918. API.AddCommand("lag", function(Args)
  919. if not API.GuardsFull(true) then
  920. API.Refresh(game.Teams.Guards,API.GetPosition(),true)
  921. else
  922. API.GetGun("M9")
  923. repeat task.wait() until API.IsFound("M9")
  924. end
  925. for i =1,45 do
  926. game:GetService("ReplicatedStorage"):WaitForChild("ShootEvent"):FireServer({}, API.GetGun("M9"))
  927. end
  928. API.Notify("Lagged the server.")
  929. end,{["Description"] = "Lags the server",})
  930. API.AddCommand("crashserver", function(Args)
  931. API.Notify("Attempting to crash the server this might take some time.")
  932. if not API.GuardsFull(true) then
  933. API.Refresh(game.Teams.Guards,API.GetPosition(),true)
  934. else
  935. API.GetGun("M9")
  936. repeat task.wait() until API.IsFound("M9")
  937. end
  938. for i =1,10000000000 do
  939. game:GetService("RunService").Stepped:Wait()
  940. game:GetService("ReplicatedStorage"):WaitForChild("ShootEvent"):FireServer({},(plr.Backpack:FindFirstChild("M9") or plr.Character:FindFirstChild("M9")))
  941. end
  942. end,{["Description"] = "Tries to crash the server",})
  943. API.AddCommand("guns", function(Args)
  944. API.Guns()
  945. end,{["Description"] = "Gives you all guns",})
  946. API.AddCommand("m9", function(Args)
  947. API.GetGun("M9")
  948. end,{["Description"] = "Gives you a m9",})
  949. API.AddCommand("ak", function(Args)
  950. API.GetGun("AK-47")
  951. end,{["Description"] = "Gives you a ak",})
  952. API.AddCommand("shotgun", function(Args)
  953. API.GetGun("Remington 870")
  954. end,{["Description"] = "Gives you a shotgun",})
  955. API.AddCommand("m4", function(Args)
  956. API.GetGun("M4A1")
  957. end,{["Description"] = "Gives you a gun",})
  958. API.AddCommand("knife", function(Args)
  959. workspace.Remote.ItemHandler:InvokeServer({Position=game:GetService("Players").LocalPlayer.Character.Head.Position,Parent=workspace.Prison_ITEMS.single["Crude Knife"]})
  960. end,{["Description"] = "Gives you a knife",})
  961. API.AddCommand("hammer", function(Args)
  962. workspace.Remote.ItemHandler:InvokeServer({Position=game:GetService("Players").LocalPlayer.Character.Head.Position,Parent=workspace.Prison_ITEMS.single["Hammer"]})
  963. end,{["Description"] = "Gives you a hammer",})
  964. API.AddCommand("allcmds", function(Args)
  965. API.Notify("Tiger admin has "..tostring(Temp.CMDA).." commands.")
  966. end,{["Description"] = "Tells you how much commands Tiger admin has",})
  967. API.AddCommand("shield", function()
  968. local Shield = API.FindShield()
  969. if not Shield then
  970. API.Notify("Shield could not be found.")
  971. return
  972. end
  973. repeat task.wait()
  974. Remote.equipShield:FireServer(Shield)
  975. until Player.Character and Player.Character:FindFirstChild("shield", true) and Player.Character:FindFirstChild("shield",true).Transparency < 1
  976. if Player.Character:FindFirstChild("shield",true).CanCollide then
  977. API.Notify("Warning: This shield has collisions")
  978. end
  979. end, {["Description"] = "Will try to find a shield and equip one for you."})
  980. API.AddCommand("armory", function(Args)
  981. local Pos = CFrame.new(835.3958129882812, 99.98998260498047, 2269.98046875)
  982. local Target = API.FindPlayer(Args[2])
  983. if not Target then
  984. API.MoveTo(Pos)
  985. else
  986. API.Bring(Target,Pos)
  987. end
  988. end,{["Description"] = "Teleports you to the armory",})
  989. API.AddCommand("prison", function(Args)
  990. local Pos = CFrame.new(914.2466430664062, 99.98998260498047, 2365.96923828125)
  991. local Target = API.FindPlayer(Args[2])
  992. if not Target then
  993. API.MoveTo(Pos)
  994. else
  995. API.Bring(Target,Pos)
  996. end
  997. end,{["Description"] = "Teleports you to the prison",["Alt"] = {"nex"}})
  998. API.AddCommand("cafe", function(Args)
  999. local Pos = CFrame.new(918.4052124023438, 99.98993682861328, 2228.078857421875)
  1000. local Target = API.FindPlayer(Args[2])
  1001. if not Target then
  1002. API.MoveTo(Pos)
  1003. else
  1004. API.Bring(Target,Pos)
  1005. end
  1006. end,{["Description"] = "Teleports you to the cafe",})
  1007. API.AddCommand("tower", function(Args)
  1008. local Pos = CFrame.new(822.0411987304688, 130.03990173339844, 2570.348876953125)
  1009. local Target = API.FindPlayer(Args[2])
  1010. if not Target then
  1011. API.MoveTo(Pos)
  1012. else
  1013. API.Bring(Target,Pos)
  1014. end
  1015. end,{["Description"] = "Teleports you to the tower at yard",})
  1016. API.AddCommand("crimbase", function(Args)
  1017. local Pos = CFrame.new(-860.5330200195312, 94.47602844238281, 2099.54833984375)
  1018. local Target = API.FindPlayer(Args[2])
  1019. if not Target then
  1020. API.MoveTo(Pos)
  1021. else
  1022. API.Bring(Target,Pos)
  1023. end
  1024. end,{["Description"] = "Teleports you to the criminals base",})
  1025. plr.CharacterAdded:Connect(function(NewChar)
  1026. NewChar:WaitForChild("Humanoid")
  1027. if States.AutoItems then
  1028. API.Guns()
  1029. end
  1030. if States.AutoRespawn then
  1031. NewChar:WaitForChild("Humanoid").BreakJointsOnDeath = not States.AutoRespawn
  1032. NewChar:WaitForChild("Humanoid").Died:Connect(function()
  1033. if not States.Unloaded and States.AutoRespawn == true then
  1034. API.Refresh(plr.Team,API.GetPosition())
  1035. task.spawn(function()
  1036. if States.AutoItems then
  1037. wait(.5)
  1038. API.Guns()
  1039. end
  1040. end)
  1041. end
  1042. end)
  1043. end
  1044. end)
  1045. Player.Chatted:Connect(API.ExecuteCommand)
  1046. CommandBar.FocusLost:Connect(function(a)
  1047. local txt = CommandBar.Text
  1048. if a and #txt >0 then
  1049. if string.sub(txt,1,1) ~= Settings.Prefix then
  1050. txt = Settings.Prefix..txt
  1051. end
  1052. API.ExecuteCommand(txt)
  1053. end
  1054. CommandBar.Text = ""
  1055. end)
  1056. CommandBar.Changed:Connect(function()
  1057. if CommandBar.Text:find(";") and Settings.Prefix ~= ";" then
  1058. CommandBar.Text = CommandBar.Text:gsub(";","")
  1059. end
  1060. end)
  1061.  
  1062. --------------// FIELD OF LOOPS!
  1063. task.spawn(function()
  1064. while wait(1) do --//Loopkill Optimized
  1065. if Temp.LKALL == true then
  1066. API.KillTeam("all")
  1067. end
  1068. for i,v in pairs(Temp.LkTEAMS) do
  1069. if v then
  1070. API.KillTeam(v)
  1071. end
  1072. end
  1073. if States.Unloaded then break end
  1074. if Temp.Loopkill and #Temp.Loopkill >0 then
  1075. for i,v in pairs(Temp.Loopkill) do
  1076. if v then
  1077. local Target = game:GetService("Players"):FindFirstChild(v)
  1078. if Target then
  1079. API.Kill(Target,nil,true)
  1080. wait(.7)
  1081. else
  1082. table.remove(Temp.Loopkill,i)
  1083. end
  1084. end
  1085. end
  1086. end
  1087. end
  1088. end)
  1089. API.Notify("Press ';' to open Tiger Admin Menu. Welcome to Tiger Admin 2.0",4)
Add Comment
Please, Sign In to add comment