SHARE
TWEET

ADMIN COMMANDS PRISON LIFE(BETA)

a guest Jun 16th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(0.01)
  2.  
  3. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  4.     Text = "[Prison Life Commands] : Gay shit loaded!";
  5.     Color = Color3.new(0, 185, 0);
  6.     Font = Enum.Font.SourceSansBold;
  7.     FontSize = Enum.FontSize.Size24;
  8. })
  9.  
  10. local waittime = math.random(2,3)
  11. wait(waittime)
  12.  
  13. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  14.     Text = "[Gay Kid] : idk enjoy.";
  15.     Color = Color3.new(0, 185, 0);
  16.     Font = Enum.Font.SourceSansBold;
  17.     FontSize = Enum.FontSize.Size24;
  18. })
  19.  
  20. local Player = game.Players.LocalPlayer
  21.  
  22. Player.Chatted:connect(function(cht)
  23.     if cht:match(":cmds") then
  24.         -- Farewell Infortality.
  25. -- Version: 2.82
  26. -- Instances:
  27. local ScreenGui = Instance.new("ScreenGui")
  28. local cmd = Instance.new("ScrollingFrame")
  29. local commandstext = Instance.new("TextLabel")
  30. local close = Instance.new("TextButton")
  31. local TextButton = Instance.new("TextButton")
  32. local TextButton_2 = Instance.new("TextButton")
  33. local TextButton_3 = Instance.new("TextButton")
  34. local TextButton_4 = Instance.new("TextButton")
  35. local TextButton_5 = Instance.new("TextButton")
  36. local TextButton_6 = Instance.new("TextButton")
  37. --Properties:
  38. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  39. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  40.  
  41. cmd.Name = "cmd"
  42. cmd.Parent = ScreenGui
  43. cmd.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  44. cmd.Position = UDim2.new(0.252631575, 0, 0.17823343, 0)
  45. cmd.Size = UDim2.new(0, 658, 0, 407)
  46. cmd.CanvasSize = UDim2.new(0, 0, 4, 0)
  47.  
  48. commandstext.Name = "commandstext"
  49. commandstext.Parent = cmd
  50. commandstext.BackgroundColor3 = Color3.new(1, 1, 1)
  51. commandstext.BackgroundTransparency = 1
  52. commandstext.Position = UDim2.new(0.0258358624, 0, -0.00014544907, 0)
  53. commandstext.Size = UDim2.new(0, 609, 0, 50)
  54. commandstext.Font = Enum.Font.GothamBlack
  55. commandstext.Text = "Commands"
  56. commandstext.TextColor3 = Color3.new(1, 1, 1)
  57. commandstext.TextScaled = true
  58. commandstext.TextSize = 14
  59. commandstext.TextWrapped = true
  60.  
  61. close.Name = "close"
  62. close.Parent = cmd
  63. close.BackgroundColor3 = Color3.new(1, 1, 1)
  64. close.BackgroundTransparency = 1
  65. close.BorderSizePixel = 0
  66. close.Size = UDim2.new(0, 49, 0, 34)
  67. close.Font = Enum.Font.Cartoon
  68. close.Text = "X"
  69. close.TextColor3 = Color3.new(1, 0, 0)
  70. close.TextScaled = true
  71. close.TextSize = 14
  72. close.TextWrapped = true
  73. close.MouseButton1Down:connect(function()
  74.     cmd.Visible = false
  75. end)
  76.  
  77. TextButton.Parent = cmd
  78. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  79. TextButton.BackgroundTransparency = 1
  80. TextButton.BorderSizePixel = 0
  81. TextButton.Position = UDim2.new(0.262917936, 0, 0.0237862132, 0)
  82. TextButton.Size = UDim2.new(0, 289, 0, 50)
  83. TextButton.Font = Enum.Font.SourceSans
  84. TextButton.Text = ":btools"
  85. TextButton.TextColor3 = Color3.new(1, 1, 1)
  86. TextButton.TextScaled = true
  87. TextButton.TextSize = 14
  88. TextButton.TextWrapped = true
  89.  
  90. TextButton_2.Parent = cmd
  91. TextButton_2.BackgroundColor3 = Color3.new(1, 1, 1)
  92. TextButton_2.BackgroundTransparency = 1
  93. TextButton_2.BorderSizePixel = 0
  94. TextButton_2.Position = UDim2.new(0.262917936, 0, 0.0462625548, 0)
  95. TextButton_2.Size = UDim2.new(0, 289, 0, 50)
  96. TextButton_2.Font = Enum.Font.SourceSans
  97. TextButton_2.Text = ":speed"
  98. TextButton_2.TextColor3 = Color3.new(1, 1, 1)
  99. TextButton_2.TextScaled = true
  100. TextButton_2.TextSize = 14
  101. TextButton_2.TextWrapped = true
  102.  
  103. TextButton_3.Parent = cmd
  104. TextButton_3.BackgroundColor3 = Color3.new(1, 1, 1)
  105. TextButton_3.BackgroundTransparency = 1
  106. TextButton_3.BorderSizePixel = 0
  107. TextButton_3.Position = UDim2.new(0.262917936, 0, 0.0699218661, 0)
  108. TextButton_3.Size = UDim2.new(0, 289, 0, 50)
  109. TextButton_3.Font = Enum.Font.SourceSans
  110. TextButton_3.Text = ":normal speed"
  111. TextButton_3.TextColor3 = Color3.new(1, 1, 1)
  112. TextButton_3.TextScaled = true
  113. TextButton_3.TextSize = 14
  114. TextButton_3.TextWrapped = true
  115.  
  116. TextButton_4.Parent = cmd
  117. TextButton_4.BackgroundColor3 = Color3.new(1, 1, 1)
  118. TextButton_4.BackgroundTransparency = 1
  119. TextButton_4.BorderSizePixel = 0
  120. TextButton_4.Position = UDim2.new(0.262917936, 0, 0.0939754918, 0)
  121. TextButton_4.Size = UDim2.new(0, 289, 0, 50)
  122. TextButton_4.Font = Enum.Font.SourceSans
  123. TextButton_4.Text = ":kill all"
  124. TextButton_4.TextColor3 = Color3.new(1, 1, 1)
  125. TextButton_4.TextScaled = true
  126. TextButton_4.TextSize = 14
  127. TextButton_4.TextWrapped = true
  128.  
  129. TextButton_5.Parent = cmd
  130. TextButton_5.BackgroundColor3 = Color3.new(1, 1, 1)
  131. TextButton_5.BackgroundTransparency = 1
  132. TextButton_5.BorderSizePixel = 0
  133. TextButton_5.Position = UDim2.new(0.262917936, 0, 0.117240474, 0)
  134. TextButton_5.Size = UDim2.new(0, 289, 0, 50)
  135. TextButton_5.Font = Enum.Font.SourceSans
  136. TextButton_5.Text = ":guns"
  137. TextButton_5.TextColor3 = Color3.new(1, 1, 1)
  138. TextButton_5.TextScaled = true
  139. TextButton_5.TextSize = 14
  140. TextButton_5.TextWrapped = true
  141.  
  142. TextButton_6.Parent = cmd
  143. TextButton_6.BackgroundColor3 = Color3.new(1, 1, 1)
  144. TextButton_6.BackgroundTransparency = 1
  145. TextButton_6.BorderSizePixel = 0
  146. TextButton_6.Position = UDim2.new(0.262917936, 0, 0.143660039, 0)
  147. TextButton_6.Size = UDim2.new(0, 289, 0, 50)
  148. TextButton_6.Font = Enum.Font.SourceSans
  149. TextButton_6.Text = ":aimbot"
  150. TextButton_6.TextColor3 = Color3.new(1, 1, 1)
  151. TextButton_6.TextScaled = true
  152. TextButton_6.TextSize = 14
  153. TextButton_6.TextWrapped = true
  154. -- Scripts:
  155.     elseif cht:match(":speed") then
  156.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 75
  157.     elseif cht:match(":normal speed") then
  158.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  159.     elseif cht:match(":guns") then
  160.         for i,v in pairs(Workspace.Prison_ITEMS.giver:GetChildren()) do
  161.  
  162. lol = Workspace.Remote.ItemHandler:InvokeServer(v.ITEMPICKUP)
  163. print(lol)
  164.         end
  165.     elseif cht:match(":kill all") then
  166.         workspace.Remote.TeamEvent:FireServer("Medium stone grey")
  167.  
  168. game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  169.  
  170. wait(0.5)
  171. function kill(a)
  172. local A_1 =
  173. {
  174. [1] =
  175. {
  176. ["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-391.152252, 8.65560055, -83.2166901)),
  177. ["Distance"] = 3.2524313926697,
  178. ["Cframe"] = CFrame.new(840.310791, 101.334137, 2267.87988, 0.0636406094, 0.151434347, -0.986416459, 0, 0.988420188, 0.151741937, 0.997972965, -0.00965694897, 0.0629036576),
  179. ["Hit"] = a.Character.Head
  180. },
  181.   [2] =
  182. {
  183. ["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-392.481476, -8.44939327, -76.7261353)),
  184. ["Distance"] = 3.2699294090271,
  185. ["Cframe"] = CFrame.new(840.290466, 101.184189, 2267.93506, 0.0964837447, 0.0589403138, -0.993587971, 4.65661287e-10, 0.998245299, 0.0592165813, 0.995334625, -0.00571343815, 0.0963144377),
  186. ["Hit"] = a.Character.Head
  187. },
  188. [3] =
  189. {
  190. ["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-389.21701, -2.50536323, -92.2163162)),
  191. ["Distance"] = 3.1665518283844,
  192. ["Cframe"] = CFrame.new(840.338867, 101.236496, 2267.80371, 0.0166504811, 0.0941716284, -0.995416701, 1.16415322e-10, 0.995554805, 0.0941846818, 0.999861419, -0.00156822044, 0.0165764652),
  193. ["Hit"] = a.Character.Head
  194. },
  195. [4] =
  196. {
  197. ["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-393.353973, 3.13988972, -72.5452042)),
  198. ["Distance"] = 3.3218522071838,
  199. ["Cframe"] = CFrame.new(840.277222, 101.285957, 2267.9707, 0.117109694, 0.118740402, -0.985994935, -1.86264515e-09, 0.992826641, 0.119563118, 0.993119001, -0.0140019981, 0.116269611),
  200. ["Hit"] = a.Character.Head
  201. },
  202. [5] =
  203. {
  204. ["RayObject"] = Ray.new(Vector3.new(845.555908, 101.429337, 2269.43945), Vector3.new(-390.73172, 3.2097764, -85.5477524)),
  205. ["Distance"] = 3.222757101059,
  206. ["Cframe"] = CFrame.new(840.317993, 101.286423, 2267.86035, 0.0517584644, 0.123365127, -0.991010666, 0, 0.992340803, 0.123530701, 0.99865967, -0.00639375951, 0.0513620302),
  207. ["Hit"] = a.Character.Head
  208. }
  209. }
  210. local A_2 = game.Players.LocalPlayer.Backpack["Remington 870"]
  211. local Event = game:GetService("ReplicatedStorage").ShootEvent
  212. Event:FireServer(A_1, A_2)
  213. Event:FireServer(A_1, A_2)
  214. end
  215.  
  216. for i,v in pairs(game.Players:GetChildren())do
  217. if v.Name ~= game.Players.LocalPlayer.Name then
  218. kill(v)
  219. end
  220. end
  221. wait(1)
  222. workspace.Remote.TeamEvent:FireServer("Bright orange")
  223.     elseif cht:match(":btools") then
  224.         local tool1   = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  225. tool1.BinType = "Hammer"
  226.     elseif cht:match(":aimbot") then
  227.         local plrs = game:GetService("Players")
  228. local TeamBased = true ; local teambasedswitch = "o"
  229. local presskeytoaim = true; local aimkey = "e"
  230. local raycast = false
  231.  
  232. local espupdatetime = 5; autoesp = false
  233.  
  234.  
  235.  
  236. local lockaim = true; local lockangle = 5
  237.  
  238.  
  239.  
  240. --function findwat(folder, what)
  241. --  for i, smth in pairs(folder:GetChildren()) do
  242. --      if string.find(string.lower(tostring(smth)), string.lower(what)) then
  243. --          return smth
  244. --      end
  245. --  end
  246. --end
  247. --
  248. --local plrs = findwat(game, "Players")
  249.  
  250.  
  251.  
  252.  
  253. local Gui = Instance.new("ScreenGui")
  254. local Move = Instance.new("Frame")
  255. local Main = Instance.new("Frame")
  256. local EspStatus = Instance.new("TextLabel")
  257. local st1 = Instance.new("TextLabel")
  258. local st1_2 = Instance.new("TextLabel")
  259. local st1_3 = Instance.new("TextLabel")
  260. local Name = Instance.new("TextLabel")
  261. --Properties:
  262. Gui.Name = "Gui"
  263. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  264.  
  265. Move.Name = "Move"
  266. Move.Parent = Gui
  267. Move.BackgroundColor3 = Color3.new(0.545098, 0, 0)
  268. Move.BackgroundTransparency = 1
  269. Move.BorderSizePixel = 0
  270. Move.Draggable = true
  271. Move.Position = UDim2.new(0.005, 0, -0.15, 0)
  272. Move.Size = UDim2.new(0.28141585, 0, 0.0320388414, 0)
  273.  
  274. Main.Name = "Main"
  275. Main.Parent = Move
  276. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  277. Main.Position = UDim2.new(0, -7, 20.9960003, 0)
  278. Main.Size = UDim2.new(1, 0, 5.79699993, 0)
  279. Main.Style = Enum.FrameStyle.RobloxSquare
  280.  
  281. EspStatus.Name = "EspStatus"
  282. EspStatus.Parent = Main
  283. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  284. EspStatus.BackgroundTransparency = 1
  285. EspStatus.Position = UDim2.new(0, 0, 0.300000012, 0)
  286. EspStatus.Size = UDim2.new(1, 0, 0.162, 0)
  287. EspStatus.Font = Enum.Font.ArialBold
  288. EspStatus.Text = "Press O to change team based mode"
  289. EspStatus.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  290. EspStatus.TextScaled = true
  291. EspStatus.TextWrapped = true
  292.  
  293. st1.Name = "st1"
  294. st1.Parent = Main
  295. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  296. st1.BackgroundTransparency = 1
  297. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  298. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  299. st1.Font = Enum.Font.ArialBold
  300. st1.Text = ""
  301. st1.TextColor3 = Color3.new(0.0784314, 0.541176, 0)
  302. st1.TextScaled = true
  303. st1.TextSize = 14
  304. st1.TextWrapped = true
  305.  
  306. st1_2.Name = "st1"
  307. st1_2.Parent = Main
  308. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  309. st1_2.BackgroundTransparency = 1
  310. st1_2.Position = UDim2.new(0, 0, 0.875999987, 0)
  311. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  312. st1_2.Font = Enum.Font.ArialBold
  313. st1_2.Text = "Press E to lock on a person inside ur view"
  314. st1_2.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  315. st1_2.TextScaled = true
  316. st1_2.TextWrapped = true
  317.  
  318. st1_3.Name = "st1"
  319. st1_3.Parent = Main
  320. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  321. st1_3.BackgroundTransparency = 1
  322. st1_3.Position = UDim2.new(0, 0, 0.54, 0)
  323. st1_3.Size = UDim2.new(1, 0, 0.261999995, 0)
  324. st1_3.Font = Enum.Font.ArialBold
  325. st1_3.Text = "Press L to enable esp loop and press T to update esp"
  326. st1_3.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  327. st1_3.TextScaled = true
  328. st1_3.TextWrapped = true
  329.  
  330.  
  331. Name.Name = "Name"
  332. Name.Parent = Move
  333. Name.BackgroundColor3 = Color3.new(0.545098, 0, 0)
  334. Name.BackgroundTransparency = 1
  335. Name.Position = UDim2.new(0, 25, 20.9860001, 0)
  336. Name.Size = UDim2.new(0.838, 0, 1.27999997, 0)
  337. Name.Font = Enum.Font.Arcade
  338. Name.Text = "ARSENAL GUI"
  339. Name.TextColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  340. Name.TextScaled = true
  341. Name.TextSize = 12
  342. Name.TextWrapped = true
  343. -- Scripts:
  344.  
  345.  
  346. local plrsforaim = {}
  347.  
  348. local lplr = game:GetService("Players").LocalPlayer
  349. Move.Draggable = true
  350. Gui.ResetOnSpawn = false
  351. Gui.Name = "Chat"
  352. Gui.DisplayOrder = 999
  353.  
  354.     Gui.Parent = plrs.LocalPlayer.PlayerGui
  355.  
  356.  
  357. f = {}
  358. local espforlder
  359.  
  360. f.addesp = function()
  361.     --print("ESP ran")
  362.     if espforlder then
  363.     else
  364.         espforlder = Instance.new("Folder")
  365.         espforlder.Parent = game.Workspace.CurrentCamera
  366.     end
  367.     for i, v in pairs(espforlder:GetChildren()) do
  368.         v:Destroy()
  369.     end
  370.     for _, plr in pairs(plrs:GetChildren()) do
  371.         if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  372.             if TeamBased == true then
  373.                 if plr.Team.Name ~= plrs.LocalPlayer.Team.Name  then
  374.                     local e = espforlder:FindFirstChild(plr.Name)
  375.                     if not e then
  376.                         --print("Added esp for team based")
  377.                         local bill = Instance.new("BillboardGui", espforlder)
  378.                         bill.Name = plr.Name
  379.                         bill.AlwaysOnTop = true
  380.                         bill.Size = UDim2.new(1,0,1,0)
  381.                         bill.Adornee = plr.Character.Head
  382.                         local Frame = Instance.new('Frame',bill)
  383.                         Frame.Active = true
  384.                         Frame.BackgroundColor3 = Color3.new(0.862745, 0.0784314, 0.235294)
  385.                         Frame.BackgroundTransparency = 0
  386.                         Frame.BorderSizePixel = 0
  387.                         Frame.AnchorPoint = Vector2.new(.5, .5)
  388.                         Frame.Position = UDim2.new (0.5,0,0.5,0)
  389.                         Frame.Size = UDim2.new (1,0,1,0)
  390.                         Frame.Rotation = 0
  391.                         plr.Character.Humanoid.Died:Connect(function()
  392.                             bill:Destroy()
  393.                         end)
  394.                     end
  395.                 end
  396.             else
  397.                 local e = espforlder:FindFirstChild(plr.Name)
  398.                 if not e then
  399.                     --print("Added esp")
  400.                     local bill = Instance.new("BillboardGui", espforlder)
  401.                     bill.Name = plr.Name
  402.                     bill.AlwaysOnTop = true
  403.                     bill.Size = UDim2.new(1,0,1,0)
  404.                     bill.Adornee = plr.Character.Head
  405.                     local Frame = Instance.new('Frame',bill)
  406.                     Frame.Active = true
  407.                     Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
  408.                     Frame.BackgroundTransparency = 0
  409.                     Frame.BorderSizePixel = 0
  410.                     Frame.AnchorPoint = Vector2.new(.5, .5)
  411.                     Frame.Position = UDim2.new (0.5,0,0.5,0)
  412.                     Frame.Size = UDim2.new (1,0,1,0)
  413.                     Frame.Rotation = 0
  414.                     plr.Character.Humanoid.Died:Connect(function()
  415.                         bill:Destroy()
  416.                     end)
  417.                 end
  418.             end
  419.            
  420.            
  421.         end
  422.     end
  423. end
  424. local cam = game.Workspace.CurrentCamera
  425.  
  426. local mouse = lplr:GetMouse()
  427. local switch = false
  428. local key = "k"
  429. local aimatpart = nil
  430. mouse.KeyDown:Connect(function(a)
  431.     if a == "t" then
  432.         print("worked1")
  433.         f.addesp()
  434.     elseif a == "u" then
  435.         if raycast == true then
  436.             raycast = false
  437.         else
  438.             raycast = true
  439.         end
  440.     elseif a == "l" then
  441.         if autoesp == false then
  442.             autoesp = true
  443.         else
  444.             autoesp = false
  445.         end
  446.     end
  447.     if a == "j" then
  448.         if mouse.Target then
  449.             mouse.Target:Destroy()
  450.         end
  451.     end
  452.     if a == key then
  453.         if switch == false then
  454.             switch = true
  455.         else
  456.             switch = false
  457.             if aimatpart ~= nil then
  458.                 aimatpart = nil
  459.             end
  460.         end
  461.     elseif a == teambasedswitch then
  462.         if TeamBased == true then
  463.             TeamBased = false
  464.             teambasedstatus.Text = tostring(TeamBased)
  465.         else
  466.             TeamBased = true
  467.             teambasedstatus.Text = tostring(TeamBased)
  468.         end
  469.     elseif a == aimkey then
  470.         if not aimatpart then
  471.             local maxangle = math.rad(20)
  472.             for i, plr in pairs(plrs:GetChildren()) do
  473.                 if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  474.                     if TeamBased == true then
  475.                         if plr.Team.Name ~= lplr.Team.Name then
  476.                             local an = checkfov(plr.Character.Head)
  477.                             if an < maxangle then
  478.                                 maxangle = an
  479.                                 aimatpart = plr.Character.Head
  480.                             end
  481.                         end
  482.                     else
  483.                         local an = checkfov(plr.Character.Head)
  484.                             if an < maxangle then
  485.                                 maxangle = an
  486.                                 aimatpart = plr.Character.Head
  487.                             end
  488.                             print(plr)
  489.                     end
  490.                     plr.Character.Humanoid.Died:Connect(function()
  491.                         if aimatpart.Parent == plr.Character or aimatpart == nil then
  492.                             aimatpart = nil
  493.                         end
  494.                     end)
  495.                 end
  496.             end
  497.         else
  498.             aimatpart = nil
  499.         end
  500.     end
  501. end)
  502.  
  503. function getfovxyz (p0, p1, deg)
  504.     local x1, y1, z1 = p0:ToOrientation()
  505.     local cf = CFrame.new(p0.p, p1.p)
  506.     local x2, y2, z2 = cf:ToOrientation()
  507.     --local d = math.deg
  508.     if deg then
  509.         --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  510.     else
  511.         return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  512.     end
  513. end
  514.  
  515. function getaimbotplrs()
  516.     plrsforaim = {}
  517.     for i, plr in pairs(plrs:GetChildren()) do
  518.         if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
  519.            
  520.             if TeamBased == true then
  521.                 if plr.Team.Name ~= lplr.Team.Name then
  522.                     local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  523.                     local r = Ray.new(cf, cf.LookVector * 10000)
  524.                     local ign = {}
  525.                     for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  526.                         if v:IsA("BasePart") then
  527.                             table.insert(ign , v)
  528.                         end
  529.                     end
  530.                     local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  531.                     if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  532.                         table.insert(plrsforaim, obj)
  533.                     end
  534.                 end
  535.             else
  536.                 local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  537.                 local r = Ray.new(cf, cf.LookVector * 10000)
  538.                 local ign = {}
  539.                 for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  540.                     if v:IsA("BasePart") then
  541.                         table.insert(ign , v)
  542.                     end
  543.                 end
  544.                 local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  545.                 if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  546.                     table.insert(plrsforaim, obj)
  547.                 end
  548.             end
  549.            
  550.            
  551.         end
  552.     end
  553. end
  554.  
  555. function aimat(part)
  556.     cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  557. end
  558. function checkfov (part)
  559.     local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  560.     local angle = math.abs(fov.X) + math.abs(fov.Y)
  561.     return angle
  562. end
  563.  
  564. game:GetService("RunService").RenderStepped:Connect(function()
  565.     if aimatpart then
  566.         aimat(aimatpart)
  567.         if aimatpart.Parent == plrs.LocalPlayer.Character then
  568.             aimatpart = nil
  569.         end
  570.     end
  571.    
  572.    
  573. --  if switch == true then
  574. --      local maxangle = 99999
  575. --     
  576. --      --print("Loop")
  577. --      if true and raycast == false then
  578. --          for i, plr in pairs(plrs:GetChildren()) do
  579. --              if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  580. --                  if TeamBased then
  581. --                      if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then
  582. --                          local an = checkfov(plr.Character.Head)
  583. --                          if an < maxangle then
  584. --                              maxangle = an
  585. --                              aimatpart = plr.Character.Head
  586. --                              if an < lockangle then
  587. --                                  break
  588. --                              end
  589. --                          end
  590. --                      end
  591. --                  else
  592. --                      local an = checkfov(plr.Character.Head)
  593. --                          if an < maxangle then
  594. --                              maxangle = an
  595. --                              aimatpart = plr.Character.Head
  596. --                              if an < lockangle then
  597. --                                  break
  598. --                              end
  599. --                          end
  600. --                  end
  601. --                 
  602. --                 
  603. --                 
  604. --                 
  605. --              end
  606. --          end
  607. --      elseif raycast == true then
  608. --         
  609. --      end
  610.        
  611.         if raycast == true and switch == false and not aimatpart then
  612.             getaimbotplrs()
  613.             aimatpart = nil
  614.             local maxangle = 999
  615.             for i, v in ipairs(plrsforaim) do
  616.                 if v.Parent ~= lplr.Character then
  617.                     local an = checkfov(v)
  618.                     if an < maxangle and v ~= lplr.Character.Head then
  619.                         maxangle = an
  620.                         aimatpart = v
  621.                         print(v:GetFullName())
  622.                         v.Parent.Humanoid.Died:connect(function()
  623.                             aimatpart = nil
  624.                         end)
  625.                     end
  626.                 end
  627.             end
  628.        
  629.     end
  630. end)
  631. delay(0, function()
  632.     while wait(espupdatetime) do
  633.         if autoesp == true then
  634.             pcall(function()
  635.             f.addesp()
  636.             end)
  637.         end
  638.     end
  639. end)
  640. warn("loaded")
  641.     end
  642. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top