Advertisement
kingmohamed

New heck

Jun 14th, 2022 (edited)
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.02 KB | None | 0 0
  1.  
  2. local Settings = {
  3. Silent = false,
  4. FovUsed = false,
  5. Fov = 100,
  6. Boxes = false,
  7. Names = false
  8. }
  9. local Locations = {
  10. ["Tyrones Guns"] = Vector3.new(481.709137, 48.0050011, -607.184204),
  11. ["Tyrones Guns 2"] = Vector3.new(-565.284302, 7.99984598, -737.196106),
  12. ["Hood Fitness"] = Vector3.new(-73.8321609, 21.755003, -589.94519),
  13. ["Hood Kicks"] = Vector3.new(-191.520126, 21.755003, -410.607056),
  14. ["Da Furniture"] = Vector3.new(-490.54541, 21.75, -125.106834),
  15. ["Da Casino"] = Vector3.new(-903.9823, 21.75, -167.42247),
  16. ["Da Bank"] = Vector3.new(-422.269836, 22.6496277, -284.017639),
  17. ["Hospital"] = Vector3.new(85.076828, 21.755003, -486.052185),
  18. ["Police Station"] = Vector3.new(-268.431824, 21.2549973, -132.52446),
  19. ["Gas Station"] = Vector3.new(568.421204, 49.0000458, -257.565735),
  20. ["Klips"] = Vector3.new(13.4705801, 21.75, -117.35498),
  21. }
  22. local RunService = game:GetService("RunService")
  23. local UserInputService = game:GetService("UserInputService")
  24. local Camera = game:GetService("Workspace").CurrentCamera
  25. local Players = game:GetService("Players")
  26. local Player = Players.LocalPlayer
  27. local Mouse = Player:GetMouse()
  28. local Metatable = getrawmetatable(game)
  29. local Index = Metatable.__index
  30. local Target = nil
  31. Client = {
  32. Toggles = {
  33. CashRegFarm = false,
  34. AutoFarm = false,
  35. CashDropRegFarm = false,
  36. WalkSpeed = false
  37. },
  38. Values = {
  39. Walkspeed = 16
  40. }
  41. }
  42. function GetCombat()
  43. if game.Players.LocalPlayer.Character:FindFirstChild('Combat') then
  44. return game.Players.LocalPlayer.Character:FindFirstChild('Combat')
  45. elseif game.Players.LocalPlayer.Backpack:FindFirstChild('Combat') then
  46. game.Players.LocalPlayer.Character.Humanoid:EquipTool(game.Players.LocalPlayer.Backpack:FindFirstChild('Combat'))
  47. return game.Players.LocalPlayer.Character:FindFirstChild('Combat')
  48. else
  49. return nil
  50. end
  51. end
  52. function GrabCash()
  53. for i,v in pairs(game:GetService("Workspace").Ignored.Drop:GetChildren()) do
  54. if v.Name == 'MoneyDrop' and game.Players.LocalPlayer.Character:FindFirstChild('HumanoidRootPart') and (v.Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude < 15 then
  55. fireclickdetector(v.ClickDetector)
  56. wait(.3)
  57. end
  58. end
  59. end
  60. function GetCash()
  61. for i,v in pairs(game:GetService("Workspace").Ignored.Drop:GetChildren()) do
  62. if v.Name == 'MoneyDrop' and game.Players.LocalPlayer.Character:FindFirstChild('HumanoidRootPart') and (v.Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude < 15 then
  63. return v
  64. end
  65. end
  66. return nil
  67. end
  68. function GetCashRegister()
  69. for i,v in pairs(game:GetService("Workspace").Cashiers:GetChildren()) do
  70. if v:FindFirstChild("Humanoid") and v:FindFirstChild('Head') and v.Humanoid.Health > 0 and v:FindFirstChild('Open') then
  71. return v
  72. end
  73. end
  74. end
  75. function GetShoes()
  76. for i,v in pairs(game:GetService("Workspace").Ignored.Drop:GetChildren()) do
  77. if v.Name == 'MeshPart' and v:FindFirstChild('ClickDetector') then
  78. if game.Players.LocalPlayer.Character:FindFirstChild('HumanoidRootPart') then
  79. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(v.CFrame.p + Vector3.new(0,2,0)))
  80. wait(.4)
  81. fireclickdetector(v.ClickDetector)
  82. end
  83. end
  84. end
  85. if game.Players.LocalPlayer.Character:FindFirstChild('HumanoidRootPart') and game.Players.LocalPlayer.Character.BodyEffects.ShoesCollect.Value ~= 0 then
  86. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(game:GetService("Workspace").Ignored["Clean the shoes on the floor and come to me for cash"].HumanoidRootPart.CFrame.p + Vector3.new(2,2,0)))
  87. wait(.2)
  88. fireclickdetector(game:GetService("Workspace").Ignored["Clean the shoes on the floor and come to me for cash"].ClickDetector)
  89. end
  90. end
  91. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Mapple7777/UI-Librarys/main/UI-1/UI.lua"))()
  92.  
  93. local Window = Library:Create("Script-Hub","Base Battle")
  94. local Main = Window:Tab('Main')
  95. local Tps = Window:Tab('Teleports')
  96. local Farming = Window:Tab('Autofarm')
  97. Farming:Toggle('AutoFarm',function(state)
  98. Client.Toggles.AutoFarm = state
  99. end)
  100. Farming:Label('Options')
  101. Farming:Toggle('Farm Shoes When No Cash Registers',function(state)
  102. Client.Toggles.CashRegFarm = state
  103. end)
  104. Farming:Toggle('Farm Medical Job When No Registers',function(state)
  105. Client.Toggles.CashDropRegFarm = state
  106. end)
  107.  
  108.  
  109. Main:Button('God Block',function(state)
  110. game.Players.LocalPlayer.Character.BodyEffects.Defense.CurrentTimeBlock:Destroy()
  111. game.Players.LocalPlayer.Character.BodyEffects.Defense:Destroy()
  112. end)
  113. Main:Toggle('WalkSpeed',function(state)
  114. Client.Toggles.WalkSpeed = state
  115. if game.Players.LocalPlayer.Character:FindFirstChild('Animate') then
  116. getsenv(game.Players.LocalPlayer.Character.Animate).checkingSPEED = function() return nil end
  117. end
  118. if Client.Toggles.WalkSpeed == true then
  119. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Client.Values.WalkSpeed
  120. else
  121. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  122. end
  123. end)
  124. Main:Slider('WalkSpeed Value',10,150,function(num)
  125. Client.Values.WalkSpeed = num
  126. if Client.Toggles.WalkSpeed == true then
  127. if game.Players.LocalPlayer.Character:FindFirstChild('Animate') then
  128. getsenv(game.Players.LocalPlayer.Character.Animate).checkingSPEED = function() return nil end
  129. end
  130. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Client.Values.WalkSpeed
  131. end
  132. end)
  133. Main:Toggle('Inf Jump',function(state)
  134. Client.Toggles.InfJump = state
  135. end)
  136. Main:Toggle('No Clip',function(state)
  137. Client.Toggles.NoClip = state
  138. end)
  139. game:GetService("RunService").Stepped:Connect(function()
  140. if Client.Toggles.NoClip then
  141. for i, v in ipairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
  142. if v:IsA("BasePart")then
  143. v.CanCollide = false
  144. end
  145. end
  146. end
  147. end)
  148. game.Players.LocalPlayer.Character.Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  149. if game.Players.LocalPlayer.Character:FindFirstChild('Animate') then
  150. getsenv(game.Players.LocalPlayer.Character.Animate).checkingSPEED = function() return nil end
  151. end
  152. if Client.Toggles.WalkSpeed == true then
  153. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Client.Values.WalkSpeed
  154. end
  155. end)
  156. game.Players.LocalPlayer.CharacterAdded:Connect(function(Char)
  157. repeat wait() until Char:FindFirstChild('Humanoid')
  158. Char.Humanoid.WalkSpeed = 17
  159. Char.Humanoid.JumpPower = 51
  160. Char.Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  161. if game.Players.LocalPlayer.Character:FindFirstChild('Animate') then
  162. getsenv(game.Players.LocalPlayer.Character.Animate).checkingSPEED = function() return nil end
  163. end
  164. if Client.Toggles.WalkSpeed == true then
  165. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Client.Values.WalkSpeed
  166. end
  167. end)
  168. Char.Humanoid:GetPropertyChangedSignal("JumpPower"):Connect(function()
  169. if Client.Toggles.JumpPower == true then
  170. game.Players.LocalPlayer.Character.Humanoid.JumpPower = Client.Values.JumpPower
  171. end
  172. end)
  173. end)
  174. game:GetService("UserInputService").JumpRequest:connect(function()
  175. if Client.Toggles.InfJump then
  176. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  177. end
  178. end)
  179. local Circle = Drawing.new("Circle")
  180. Circle.Color = Color3.new(1, 1, 1)
  181. Circle.Thickness = 1
  182. Circle.Radius = Settings.Fov
  183. Circle.Visible = Settings.FovUsed
  184. Circle.NumSides = 1000
  185. Circle.Filled = false
  186. Circle.Transparency = 1
  187.  
  188. Main:Toggle('Silent Aim', function(Bool)
  189. Settings.Silent = Bool
  190. end)
  191.  
  192. Main:Toggle('Use Fov', function(Bool)
  193. Settings.FovUsed = Bool
  194. Circle.Visible = Bool
  195. end)
  196.  
  197. Main:Slider('Fov', 1, 1000, function(Number)
  198. Settings.Fov = Number
  199. Circle.Radius = Number
  200. end)
  201.  
  202. Main:Toggle('Box Esp', function(Bool)
  203. Settings.Boxes = Bool
  204. end)
  205.  
  206. Main:Toggle('Name Esp', function(Bool)
  207. Settings.Names = Bool
  208. end)
  209.  
  210. Tps:Textbox("Tp To Player", false, function(Text)
  211. if Players:FindFirstChild(Text) then
  212. Player.Character:MoveTo(Players[Text].Character.HumanoidRootPart.Position)
  213. end
  214. end)
  215.  
  216. for i, v in pairs(Locations) do
  217. Tps:Button(i, function()
  218. Player.Character:MoveTo(v)
  219. end)
  220. end
  221.  
  222. function DrawText()
  223. local Text = Drawing.new("Text")
  224. Text.Color = Color3.fromRGB(190, 190, 0)
  225. Text.Size = 20
  226. Text.Outline = true
  227. Text.Center = true
  228.  
  229. return Text
  230. end
  231.  
  232. function DrawSquare()
  233. local Box = Drawing.new("Square")
  234. Box.Color = Color3.fromRGB(190, 190, 0)
  235. Box.Thickness = 0.5
  236. Box.Filled = false
  237. Box.Transparency = 1
  238.  
  239. return Box
  240. end
  241.  
  242. function IsPlayerAlive(player)
  243. if player.Character ~= nil and player.Character:FindFirstChild("HumanoidRootPart") then
  244. return true
  245. end
  246.  
  247. return false
  248. end
  249.  
  250. function GetOffset(part, pos)
  251. local FarPosition = Camera:WorldToViewportPoint(Vector3.new(part.Position.X, part.Position.Y + (part.Size.Y / 2), part.Position.Z))
  252.  
  253. return FarPosition.Y - pos.Y
  254. end
  255.  
  256. function GetCorners(player)
  257. local TopY = 69696969
  258. local BottomY = -69696969
  259. local RightX = -69696969
  260. local LeftX = 69696969
  261. local Offsets
  262. local Positions = {}
  263.  
  264. for i, v in next, player.Character:GetChildren() do
  265. if v.ClassName == "MeshPart" or v.Name == "Head" then
  266. local Position, OnScreen = Camera:WorldToViewportPoint(v.Position)
  267. Positions[v.Name] = Position
  268. Offsets = GetOffset(v, Position)
  269.  
  270. if OnScreen then
  271. if Position.Y < TopY then
  272. TopY = Position.Y
  273. end
  274. if Position.Y > BottomY then
  275. BottomY = Position.Y
  276. end
  277. if Position.X < LeftX then
  278. LeftX = Position.X
  279. end
  280. if Position.X > RightX then
  281. RightX = Position.X
  282. end
  283. end
  284. end
  285. end
  286.  
  287. return {TopLeft = Vector2.new(LeftX + Offsets, TopY + Offsets), TopRight = Vector2.new(RightX - Offsets, TopY + Offsets), BottomLeft = Vector2.new(LeftX + Offsets, BottomY - Offsets), BottomRight = Vector2.new(RightX - Offsets, BottomY - Offsets), Positions = Positions}
  288. end
  289.  
  290. function GetClosest()
  291. local Closest = nil;
  292. local Magnitude = math.huge
  293.  
  294. for i, v in next, Players:GetPlayers() do
  295. if v ~= Player and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
  296. local Position, Visible = Camera:WorldToScreenPoint(v.Character["HumanoidRootPart"].Position)
  297.  
  298. if Visible then
  299. local Mouse = Player:GetMouse()
  300. local Distance = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(Position.X, Position.Y)).Magnitude
  301.  
  302. if not Settings.FovUsed and Distance < Magnitude or Settings.FovUsed and Distance < Magnitude and Distance < Settings.Fov then
  303. Closest = v
  304. Magnitude = Distance
  305. end
  306. end
  307. end
  308. end
  309.  
  310. return Closest
  311. end
  312.  
  313. setreadonly(Metatable, false)
  314.  
  315. Metatable.__index = newcclosure(function(self, Property)
  316. if Settings.Silent and self == Mouse and Property == "Hit" and Target ~= nil then
  317.  
  318. return CFrame.new(Target.Character.Head.Position)
  319. end
  320.  
  321. return Index(self, Property)
  322. end)
  323.  
  324. setreadonly(Metatable, true)
  325.  
  326. function AddEsp(player)
  327. local Box = DrawSquare()
  328. local Name = DrawText()
  329.  
  330. RunService.Stepped:Connect(function()
  331. IsAlive = IsPlayerAlive(player)
  332.  
  333. if IsAlive and player.Character:FindFirstChild("HumanoidRootPart") then
  334. local Corners = GetCorners(player)
  335. local Positions = Corners.Positions
  336. local xDist = Corners.BottomRight.X - Corners.TopLeft.X
  337. local yDist = Corners.BottomRight.Y - Corners.TopLeft.Y
  338. local RootPosition, OnScreen = Camera:WorldToViewportPoint(player.Character.HumanoidRootPart.Position)
  339.  
  340. if Settings.Boxes then
  341. Box.Visible = OnScreen
  342. Box.Size = Vector2.new(xDist, yDist)
  343. Box.Position = Corners.TopLeft
  344. else
  345. Box.Visible = false
  346. end
  347. if Settings.Names then
  348. Name.Visible = OnScreen
  349. Name.Position = Vector2.new(Corners.BottomRight.X - (xDist / 2), Corners.TopLeft.Y - 45)
  350. Name.Text = "[ " .. player.Name .. " ]"
  351. else
  352. Name.Visible = false
  353. end
  354. else
  355. Box.Visible = false
  356. Name.Visible = false
  357. end
  358. end)
  359. end
  360.  
  361. for i, v in pairs(Players:GetPlayers()) do
  362. if v ~= Player then
  363. AddEsp(v)
  364. end
  365. end
  366.  
  367. Players.PlayerAdded:Connect(function(player)
  368. if v ~= Player then
  369. AddEsp(player)
  370. end
  371. end)
  372.  
  373. RunService.RenderStepped:Connect(function()
  374. local Mouse = UserInputService:GetMouseLocation()
  375.  
  376. Circle.Position = Vector2.new(Mouse.X, Mouse.Y)
  377. Target = GetClosest()
  378. end)
  379. while true do wait()
  380. pcall(function()
  381. if Client.Toggles.AutoFarm then
  382. CurrCash = GetCashRegister()
  383. if CurrCash ~= nil then
  384. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CurrCash.Head.CFrame * CFrame.new(.4,0,3))
  385. Combat = GetCombat()
  386. Combat:Activate()
  387. repeat wait(1.2)
  388. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CurrCash.Head.CFrame * CFrame.new(.4,0,3))
  389. Combat = GetCombat()
  390. Combat:Activate()
  391. until CurrCash.Humanoid.Health < 0 or Client.Toggles.AutoFarm == false
  392. repeat wait(.1)
  393. GrabCash()
  394. until GetCash() == nil or Client.Toggles.AutoFarm == false
  395. else
  396. if Client.Toggles.CashRegFarm == true then
  397. GetShoes()
  398. end
  399. if Client.Toggles.CashDropRegFarm and game:GetService("Workspace").Ignored.HospitalJob:FindFirstChildOfClass('Model') then
  400. for i,v in pairs(game:GetService("Workspace").Ignored.HospitalJob:GetChildren()) do
  401. if v:IsA('Part') then
  402. if string.match(game:GetService("Workspace").Ignored.HospitalJob:FindFirstChildOfClass('Model').Name,v.Name) then
  403. if game.Players.LocalPlayer.Character:FindFirstChild('HumanoidRootPart') then
  404. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(v.CFrame * CFrame.new(.2,0,-2))
  405. wait(.5)
  406. fireclickdetector(v.ClickDetector)
  407. wait(.2)
  408. if game:GetService("Workspace").Ignored.HospitalJob:FindFirstChildOfClass('Model') then
  409. fireclickdetector(game:GetService("Workspace").Ignored.HospitalJob:FindFirstChildOfClass('Model').ClickDetector)
  410. end
  411. end
  412. end
  413. end
  414. end
  415. end
  416. end
  417. end
  418. end)
  419. end
  420.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement