Advertisement
jkdhjdfhjdfhj

Untitled

Oct 7th, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.67 KB | None | 0 0
  1. --[[ // CREDITS \\--
  2.  
  3. YESOK FOR DEVELOPMENT
  4. https://v3rmillion.net/member.php?action=profile&uid=514695
  5.  
  6. JAN FOR ESP
  7. https://v3rmillion.net/member.php?action=profile&uid=557102
  8.  
  9. CRISHOUX FOR STRUCID/NERF-FPS FUNCTIONS
  10. https://v3rmillion.net/member.php?action=profile&uid=490270
  11. --]]
  12.  
  13. warn("Loading...")
  14.  
  15. local Players = game:GetService("Players")
  16. local UserInput = game:GetService("UserInputService")
  17. local HTTP = game:GetService("HttpService")
  18. local RunServ = game:GetService("RunService")
  19. local CoreGui = game:GetService("CoreGui")
  20.  
  21. local PlaceId = game.PlaceId
  22. local LocalPlayer = Players.LocalPlayer
  23. local CharacterAdded
  24. local Camera = workspace.CurrentCamera
  25. local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
  26. PlayerGui:SetTopbarTransparency(1)
  27. local Mouse = LocalPlayer:GetMouse()
  28. getgenv().methodsTable = {"Ray", "Raycast", "FindPartOnRay", "FindPartOnRayWithIgnoreList", "FindPartOnRayWithWhitelist"}
  29.  
  30. local rigType = string.split(tostring(LocalPlayer.Character:WaitForChild("Humanoid").RigType), ".")[3]
  31. local selected_teamType = "Regular"
  32. local selected_rigType
  33.  
  34. local rigTypeR6 = {
  35. ["Head"] = true,
  36. ["Torso"] = true,
  37. ["LowerTorso"] = true,
  38. ["Left Arm"] = true,
  39. ["Right Arm"] = true,
  40. ["Left Leg"] = true,
  41. ["Right Leg"] = true
  42. }
  43.  
  44. local rigTypeR15 = {
  45. ["Head"] = true,
  46. ["UpperTorso"] = true,
  47. ["LowerTorso"] = true,
  48. ["LeftUpperArm"] = true,
  49. ["RightUpperArm"] = true,
  50. ["RightLowerArm"] = true,
  51. ["LeftLowerArm"] = true,
  52. ["LeftHand"] = true,
  53. ["RightHand"] = true,
  54. ["LeftUpperLeg"] = true,
  55. ["RightUpperLeg"] = true,
  56. ["LeftLowerLeg"] = true,
  57. ["RightLowerLeg"] = true,
  58. ["LeftFoot"] = true,
  59. ["RightFoot"] = true
  60. }
  61.  
  62. local rigTypeStrucid = {
  63. ["LeftLowerArm"] = true,
  64. ["RightLowerArm"] = true,
  65. ["Head"] = true,
  66. ["LeftUpperLeg"] = true,
  67. ["LeftUpperLeg"] = true,
  68. ["RightLowerLeg"] = true,
  69. ["Neck"] = true,
  70. ["RightFoot"] = true,
  71. ["UpperTorso"] = true,
  72. ["LeftLowerLeg"] = true,
  73. ["LowerTorso"] = true,
  74. ["RightUpperLeg"] = true,
  75. ["LeftUpperArm"] = true,
  76. ["RightUpperArm"] = true
  77. }
  78.  
  79. local rigTypeAceOfSpadez = {
  80. ["Head"] = true,
  81. ["LeftFoot"] = true,
  82. ["LowerLeftArm"] = true,
  83. ["LowerLeftLeg"] = true,
  84. ["LowerRightArm"] = true,
  85. ["LowerRightLeg"] = true,
  86. ["LowerTorso"] = true,
  87. ["RightFoot"] = true,
  88. ["MidTorso"] = true,
  89. ["UpperLeftArm"] = true,
  90. ["UpperLeftLeg"] = true,
  91. ["UpperRightArm"] = true,
  92. ["UpperRightLeg"] = true,
  93. ["UpperTorso"] = true,
  94. ["LeftHandle"] = true,
  95. ["RightHandle"] = true,
  96. ["Shoulders"] = true,
  97. ["Torso"] = true
  98. }
  99.  
  100. local rigTypeStandardIssue = {
  101. ["lowerrightleg"] = true,
  102. ["leftforearm"] = true,
  103. ["lowerleftleg"] = true,
  104. ["waist"] = true,
  105. ["Torso"] = true,
  106. ["rightforearm"] = true,
  107. ["Head"] = true,
  108. }
  109.  
  110. local rigTypeRecoil = {
  111. ["Head"] = true,
  112. ["LeftFoot"] = true,
  113. ["RightFoot"] = true,
  114. ["LeftLowerLeg"] = true,
  115. ["LeftUpperLeg"] = true,
  116. ["RightLowerLeg"] = true,
  117. ["RightUpperLeg"] = true,
  118. ["UpperTorso"] = true,
  119. ["LowerTorso"] = true,
  120. ["LeftUpperArm"] = true,
  121. ["RightUpperArm"] = true,
  122. ["LeftLowerArm"] = true,
  123. ["RightLowerArm"] = true,
  124. ["RightHand"] = true,
  125. ["LeftHand"] = true
  126. }
  127.  
  128. local rigTypePloyguns = {
  129. ["Head"] = true,
  130. ["Right Forearm"] = true,
  131. ["Right Leg"] = true,
  132. ["Right Foreleg"] = true,
  133. ["Left Arm"] = true,
  134. ["Right Hand"] = true,
  135. ["Right Foot"] = true,
  136. ["Right Arm"] = true,
  137. ["Left Hand"] = true,
  138. ["Left Foreleg"] = true,
  139. ["Left Leg"] = true,
  140. ["Hips"] = true,
  141. ["Torso"] = true,
  142. ["Left Foot"] = true,
  143. ["Mid"] = true
  144. }
  145.  
  146. local rigTypeKineticCode = {
  147. ["UpperTorso"] = true,
  148. ["Head"] = true,
  149. ["Hips"] = true,
  150. ["LeftArm"] = true,
  151. ["LeftFoot"] = true,
  152. ["LeftHip"] = true,
  153. ["LeftKnuckles"] = true,
  154. ["LeftLeg"] = true,
  155. ["LeftPalm"] = true,
  156. ["LeftShoulder"] = true,
  157. ["LowerTorso"] = true,
  158. ["Neck"] = true,
  159. ["RightArm"] = true,
  160. ["RightFoot"] = true,
  161. ["RightHip"] = true,
  162. ["RightKnuckles"] = true,
  163. ["RightLeg"] = true,
  164. ["RightPalm"] = true,
  165. ["RightShoulder"] = true
  166. }
  167.  
  168. if PlaceId == 2377868063 then
  169. selected_rigType = rigTypeStrucid
  170. elseif PlaceId == 2555870920 then
  171. selected_rigType = rigTypeAceOfSpadez
  172. elseif PlaceId == 388599755 then
  173. selected_rigType = rigTypePloyguns
  174. elseif PlaceId == 1837257681 then
  175. selected_rigType = rigTypeStandardIssue
  176. elseif PlaceId == 4651779470 then
  177. selected_rigType = rigTypeRecoil
  178. selected_teamType = "Recoil"
  179. elseif PlaceId == 4738545896 then
  180. selected_rigType = rigTypeR15
  181. selected_teamType = "ShootOut"
  182. elseif PlaceId == 3210442546 then
  183. selected_rigType = rigTypeR15
  184. selected_teamType = "IslandRoyale"
  185. elseif PlaceId == 401356052 then
  186. selected_rigType = rigTypeKineticCode
  187. elseif PlaceId == 983224898 then
  188. selected_teamType = "WildRevolvers"
  189. selected_rigType = rigTypeR15
  190. elseif rigType == "R6" then
  191. selected_rigType = rigTypeR6
  192. elseif rigType == "R15" then
  193. selected_rigType = rigTypeR15
  194. end
  195.  
  196. print("Rig Type: " .. rigType)
  197. print("Team Type: " .. selected_teamType)
  198.  
  199. local function teamType(player)
  200. if selected_teamType == "Recoil" then
  201. return player:FindFirstChild("GameStats").Team.Value
  202. elseif selected_teamType == "ShootOut" then
  203. if player == LocalPlayer then
  204. return tostring(BrickColor.new(0.172549, 0.329412, 1))
  205. else
  206. for _, Player in next, Players:GetPlayers() do
  207. if Player.Character then
  208. if Player.Character:FindFirstChild("Head") then
  209. if Player.Character == player.Character then
  210. if Player.Character.Head:FindFirstChild("NameTag") then
  211. NameTag = Player.Character.Head.NameTag.TextLabel
  212. if string.find(tostring(BrickColor.new(NameTag.TextColor3)), "red") then
  213. return tostring(BrickColor.new(NameTag.TextColor3))
  214. elseif string.find(tostring(BrickColor.new(NameTag.TextStrokeColor3)), "blue") then
  215. return tostring(BrickColor.new(NameTag.TextStrokeColor3))
  216. end
  217. end
  218. end
  219. end
  220. end
  221. end
  222. end
  223. elseif selected_teamType == "IslandRoyale" then
  224. return player:FindFirstChild("TeamName").Value
  225. elseif selected_teamType == "WildRevolvers" then
  226. if player == LocalPlayer then
  227. return tostring(BrickColor.new(0, 255, 0))
  228. else
  229. for _, Player in next, game.Players:GetPlayers() do
  230. if Player.Character then
  231. if Player.Character:FindFirstChild("Head") then
  232. if Player.Character == player.Character then
  233. return tostring(BrickColor.new(Player.Character.Head.HeadTag.Label.TextColor3))
  234. end
  235. end
  236. end
  237. end
  238. end
  239. else
  240. if player.Team or player.TeamColor then
  241. local teamplayer = player.Team or player.TeamColor
  242. return teamplayer
  243. end
  244. end
  245. end
  246.  
  247. local function characterType(player)
  248. if player.Character or workspace:FindFirstChild(player.Name) then
  249. local playerCharacter = player.Character or workspace:FindFirstChild(player.Name)
  250. return playerCharacter
  251. end
  252. end
  253.  
  254. local function FFA()
  255. sameTeam = 0
  256. for _, player in next, Players:GetPlayers() do
  257. if teamType(player) == teamType(LocalPlayer) then
  258. sameTeam = sameTeam + 1
  259. end
  260. end
  261. if sameTeam == #Players:GetChildren() then
  262. return true
  263. else
  264. return false
  265. end
  266. end
  267.  
  268. local function returnVisibility(player)
  269. if getgenv().VisibiltyCheck then
  270. if characterType(player) then
  271. if player.Character:FindFirstChild(getgenv().SelectedPart) then
  272. CastPoint = {LocalPlayer.Character[getgenv().SelectedPart].Position, player.Character[getgenv().SelectedPart].Position}
  273. IgnoreList = {player.Character, LocalPlayer.Character}
  274. local castpointparts = workspace.CurrentCamera:GetPartsObscuringTarget(CastPoint, IgnoreList)
  275. if unpack(castpointparts) then
  276. return false
  277. end
  278. end
  279. end
  280. end
  281. return true
  282. end
  283.  
  284. local function returnRay(args, hit)
  285. if PlaceId == 2377868063 then
  286. args[3] = {workspace.IgnoreThese, LocalPlayer.Character, workspace.BuildStuff, workspace.Map}
  287. return args[3]
  288. elseif PlaceId == 625364452 then
  289. return hit, hit.Position, Vector3.new(0, 0, 0), hit.Material
  290. else
  291. CCF = Camera.CFrame.p
  292. args[2] = Ray.new(CCF, (hit.Position + Vector3.new(0,(CCF-hit.Position).Magnitude/getgenv().Distance,0) - CCF).unit * (getgenv().Distance * 10))
  293. return args[2]
  294. end
  295. end
  296.  
  297. print("FFA: " .. tostring(FFA()))
  298. print("Visibility Check: " .. tostring(getgenv().VisibiltyCheck))
  299. print("Target ESP: " .. tostring(getgenv().VisibiltyCheck))
  300.  
  301. local function createBox(player)
  302. local lines = Instance.new("Frame")
  303. lines.Name = player.Name
  304. lines.BackgroundTransparency = 1
  305. lines.AnchorPoint = Vector2.new(0.5,0.5)
  306.  
  307. local outlines = Instance.new("Folder", lines)
  308. outlines.Name = "outlines"
  309. local inlines = Instance.new("Folder", lines)
  310. inlines.Name = "inlines"
  311.  
  312. local outline1 = Instance.new("Frame", outlines)
  313. outline1.Name = "left"
  314. outline1.BorderSizePixel = 0
  315. outline1.BackgroundColor3 = Color3.new(0,0,0)
  316. outline1.Size = UDim2.new(0,-1,1,0)
  317.  
  318. local outline2 = Instance.new("Frame", outlines)
  319. outline2.Name = "right"
  320. outline2.BorderSizePixel = 0
  321. outline2.BackgroundColor3 = Color3.new(0,0,0)
  322. outline2.Position = UDim2.new(1,0,0,0)
  323. outline2.Size = UDim2.new(0,1,1,0)
  324.  
  325. local outline3 = Instance.new("Frame", outlines)
  326. outline3.Name = "up"
  327. outline3.BorderSizePixel = 0
  328. outline3.BackgroundColor3 = Color3.new(0,0,0)
  329. outline3.Size = UDim2.new(1,0,0,-1)
  330.  
  331. local outline4 = Instance.new("Frame", outlines)
  332. outline4.Name = "down"
  333. outline4.BorderSizePixel = 0
  334. outline4.BackgroundColor3 = Color3.new(0,0,0)
  335. outline4.Position = UDim2.new(0,0,1,0)
  336. outline4.Size = UDim2.new(1,0,0,1)
  337.  
  338. local inline1 = Instance.new("Frame", inlines)
  339. inline1.Name = "left"
  340. inline1.BorderSizePixel = 0
  341. inline1.Size = UDim2.new(0,1,1,0)
  342.  
  343. local inline2 = Instance.new("Frame", inlines)
  344. inline2.Name = "right"
  345. inline2.BorderSizePixel = 0
  346. inline2.Position = UDim2.new(1,0,0,0)
  347. inline2.Size = UDim2.new(0,-1,1,0)
  348.  
  349. local inline3 = Instance.new("Frame", inlines)
  350. inline3.Name = "up"
  351. inline3.BorderSizePixel = 0
  352. inline3.Size = UDim2.new(1,0,0,1)
  353.  
  354. local inline4 = Instance.new("Frame", inlines)
  355. inline4.Name = "down"
  356. inline4.BorderSizePixel = 0
  357. inline4.Position = UDim2.new(0,0,1,0)
  358. inline4.Size = UDim2.new(1,0,0,-1)
  359.  
  360. local text = Instance.new("TextLabel")
  361. text.Name = "nametag"
  362. text.Position = UDim2.new(0.5,0,0,-9)
  363. text.Size = UDim2.new(0,100,0,-20)
  364. text.AnchorPoint = Vector2.new(0.5,0.5)
  365. text.BackgroundTransparency = 1
  366. text.TextColor3 = Color3.new(1,1,1)
  367. text.Font = Enum.Font.Code
  368. text.TextSize = 16
  369. text.TextStrokeTransparency = 0
  370.  
  371. for _,v in pairs(inlines:GetChildren()) do
  372. v.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  373. end
  374.  
  375. return lines
  376. end
  377.  
  378. local function updateEsp(player, folder)
  379. RunServ:BindToRenderStep("Get_Target_ESP", 1, function()
  380. local playerCharacter = characterType(player)
  381. local xMin = Camera.ViewportSize.X
  382. local yMin = Camera.ViewportSize.Y
  383. local xMax = 0
  384. local yMax = 0
  385. if returnVisibility(player) and teamType(player) ~= teamType(LocalPlayer) or FFA() and returnVisibility(player) then
  386. if player ~= LocalPlayer and player == getTarget() and playerCharacter and playerCharacter:FindFirstChild("Humanoid") and playerCharacter.Humanoid.Health > 0 then
  387. local box = folder
  388. local _, onScreen = Camera:WorldToScreenPoint(playerCharacter[getgenv().SelectedPart].Position)
  389. if onScreen and box then
  390. box.Visible = true
  391. local function getCorners(obj, size)
  392. local corners = {
  393. Vector3.new(obj.X+size.X/2, obj.Y+size.Y/2, obj.Z+size.Z/2);
  394. Vector3.new(obj.X-size.X/2, obj.Y+size.Y/2, obj.Z+size.Z/2);
  395.  
  396. Vector3.new(obj.X-size.X/2, obj.Y-size.Y/2, obj.Z-size.Z/2);
  397. Vector3.new(obj.X+size.X/2, obj.Y-size.Y/2, obj.Z-size.Z/2);
  398.  
  399. Vector3.new(obj.X-size.X/2, obj.Y+size.Y/2, obj.Z-size.Z/2);
  400. Vector3.new(obj.X+size.X/2, obj.Y+size.Y/2, obj.Z-size.Z/2);
  401.  
  402. Vector3.new(obj.X-size.X/2, obj.Y-size.Y/2, obj.Z+size.Z/2);
  403. Vector3.new(obj.X+size.X/2, obj.Y-size.Y/2, obj.Z+size.Z/2);
  404. }
  405. return corners
  406. end
  407. local cornerCount = 1
  408. local allCorners = {}
  409. for _, bodyPart in next, playerCharacter:GetChildren() do
  410. if selected_rigType[bodyPart.Name] then
  411. local fetchCorners = getCorners(bodyPart.CFrame, bodyPart.Size)
  412. for _, corner in next, fetchCorners do
  413. table.insert(allCorners, cornerCount, corner)
  414. cornerCount = cornerCount + 1
  415. end
  416. end
  417. end
  418. for _, corner in next, allCorners do
  419. local pos = Camera:WorldToScreenPoint(corner)
  420. if pos.X > xMax then
  421. xMax = pos.X
  422. end
  423. if pos.X < xMin then
  424. xMin = pos.X
  425. end
  426. if pos.Y > yMax then
  427. yMax = pos.Y
  428. end
  429. if pos.Y < yMin then
  430. yMin = pos.Y
  431. end
  432. end
  433. local xSize = xMax - xMin
  434. local ySize = yMax - yMin
  435. box.Position = UDim2.new(0,xMin+(Vector2.new(xMax,0)-Vector2.new(xMin,0)).magnitude/2,0,yMin+(Vector2.new(0,yMax)-Vector2.new(0,yMin)).magnitude/2)
  436. box.Size = UDim2.new(0,xSize,0,ySize)
  437. end
  438. end
  439. end
  440. end)
  441. end
  442.  
  443. spawn(function()
  444. repeat
  445. for Hue = 0,1,0.003 do
  446. getgenv().Rainbow = Color3.fromHSV(Hue,1,1)
  447. wait()
  448. end
  449. until false
  450. end)
  451.  
  452. spawn(function()
  453. local Circle = Drawing.new('Circle')
  454. Circle.Transparency = 1
  455. Circle.Thickness = 1.5
  456. Circle.Visible = true
  457. Circle.Color = Color3.fromRGB(255,0,0)
  458. Circle.Filled = false
  459. Circle.Radius = getgenv().FOV
  460.  
  461. local TargetText = Drawing.new("Text")
  462. getgenv().SelectedTarget = ""
  463. TargetText.Text = ""
  464. TargetText.Size = 17
  465. TargetText.Center = true
  466. TargetText.Visible = true
  467. TargetText.Color = Color3.fromRGB(255,0,0)
  468. TargetText.Font = Drawing.Fonts.Monospace
  469.  
  470. local lineX = Drawing.new("Line")
  471. lineX.Transparency = 1
  472. lineX.Thickness = 1.5
  473. lineX.Visible = true
  474. lineX.Color = Color3.fromRGB(255,0,0)
  475.  
  476. local lineY = Drawing.new("Line")
  477. lineX.Transparency = 1
  478. lineY.Thickness = 1.5
  479. lineY.Visible = true
  480. lineY.Color = Color3.fromRGB(255,0,0)
  481.  
  482. RunServ:BindToRenderStep("Get_Fov",1,function()
  483. local Length = 10
  484. local Middle = 37
  485. Circle.Visible = getgenv().CircleVisibility
  486. TargetText.Visible = getgenv().CircleVisibility
  487. lineX.Visible = getgenv().CircleVisibility
  488. lineY.Visible = getgenv().CircleVisibility
  489. Circle.Color = getgenv().Rainbow
  490. lineX.Color = getgenv().Rainbow
  491. lineY.Color = getgenv().Rainbow
  492. Circle.Radius = getgenv().FOV
  493. Circle.Position = Vector2.new(Mouse.X,Mouse.Y+Middle)
  494. TargetText.Position = Vector2.new(Mouse.X,Mouse.Y+Middle-180)
  495. lineX.From = Vector2.new((Mouse.X)+Length+1,Mouse.Y-0.5+Middle)
  496. lineX.To = Vector2.new(Mouse.X-Length,Mouse.Y-0.5+Middle)
  497. lineY.From = Vector2.new(Mouse.X,Mouse.Y+Length+Middle)
  498. lineY.To = Vector2.new(Mouse.X,Mouse.Y-Length+Middle)
  499. TargetText.Text = getgenv().SelectedTarget
  500. end)
  501. end)
  502.  
  503. function getTarget()
  504. local closestTarg = math.huge
  505. local Target = nil
  506.  
  507. for _, Player in next, Players:GetPlayers() do
  508. if Player ~= LocalPlayer and returnVisibility(Player) and teamType(Player) ~= teamType(LocalPlayer) or FFA() and Player ~= LocalPlayer and returnVisibility(Player) then
  509. local playerCharacter = characterType(Player)
  510. if playerCharacter then
  511. local playerHumanoid = playerCharacter:FindFirstChild("Humanoid")
  512. local playerHumanoidRP = playerCharacter:FindFirstChild(getgenv().SelectedPart)
  513. if playerHumanoidRP and playerHumanoid then
  514. local hitVector, onScreen = Camera:WorldToScreenPoint(playerHumanoidRP.Position)
  515. if onScreen and playerHumanoid.Health > 0 then
  516. local CCF = Camera.CFrame.p
  517. if workspace:FindPartOnRayWithIgnoreList(Ray.new(CCF, (playerHumanoidRP.Position-CCF).unit * getgenv().Distance),{Player}) then
  518. local hitTargMagnitude = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(hitVector.X, hitVector.Y)).magnitude
  519. if hitTargMagnitude < closestTarg and hitTargMagnitude <= getgenv().FOV then
  520. Target = Player
  521. closestTarg = hitTargMagnitude
  522. end
  523. else
  524. end
  525. else
  526. end
  527. end
  528. end
  529. end
  530. end
  531. return Target
  532. end
  533.  
  534. local mt = getrawmetatable(game)
  535. setreadonly(mt, false)
  536. local index = mt.__index
  537. local namecall = mt.__namecall
  538. local hookfunc
  539.  
  540. mt.__namecall = newcclosure(function(...)
  541. local method = getnamecallmethod()
  542. local args = {...}
  543. for _, rayMethod in next, getgenv().methodsTable do
  544. if tostring(method) == rayMethod and Hit then
  545. returnRay(args, Hit)
  546. return namecall(unpack(args))
  547. end
  548. end
  549. return namecall(unpack(args))
  550. end)
  551.  
  552. mt.__index = newcclosure(function(func, idx)
  553. if func == Mouse and tostring(idx) == "Hit" and Hit then
  554. return Hit.CFrame
  555. end
  556. return index(func, idx)
  557. end)
  558.  
  559. hookfunc = hookfunction(workspace.FindPartOnRayWithIgnoreList, function(...)
  560. local args = {...}
  561. if Hit then
  562. if PlaceId == 625364452 then
  563. return returnRay(args, Hit)
  564. else
  565. returnRay(args, Hit)
  566. end
  567. end
  568. return hookfunc(unpack(args))
  569. end)
  570.  
  571. fovVal = Instance.new("ObjectValue", game)
  572. fovVal.Changed:Connect(function(player)
  573. if CoreGui:FindFirstChild("Get_ESP", true) then
  574. RunServ:UnbindFromRenderStep("Get_Target_ESP")
  575. CoreGui["Get_ESP"].Folder:ClearAllChildren()
  576. else
  577. local ScreenGui = Instance.new("ScreenGui", CoreGui)
  578. ScreenGui.Name = "Get_ESP"
  579. Instance.new("Folder", ScreenGui)
  580. end
  581. for _, Player in next, Players:GetPlayers() do
  582. if Player == player and Player.Character.Humanoid.Health > 0 and getgenv().TargetESP then
  583. wait()
  584. espBox = createBox(Player)
  585. updateEsp(Player, espBox)
  586. espBox.Parent = CoreGui["Get_ESP"].Folder
  587. end
  588. end
  589. end)
  590.  
  591. RunServ:BindToRenderStep("Get_Target",1,function()
  592. local Target = getTarget()
  593. if not Target then
  594. Hit = nil
  595. getgenv().SelectedTarget = ""
  596. fovVal.Value = nil
  597. else
  598. getgenv().SelectedTarget = Target.Name .. "\n" .. math.floor((LocalPlayer.Character[getgenv().SelectedPart].Position - Target.Character[getgenv().SelectedPart].Position).magnitude) .. " Studs"
  599. fovVal.Value = Target
  600. end
  601. if UserInput:IsMouseButtonPressed(0) then
  602. if Target then
  603. Hit = Target.Character[getgenv().SelectedPart]
  604. end
  605. else
  606. Hit = nil
  607. end
  608. end)
  609.  
  610. warn("Loaded!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement