lllkkklkk

tiger admin

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