Bad Business - Pastebin.com (2024)

  1. wait(1)

  2. --// SERVICES \\--

  3. local playerser = game:GetService("Players")

  4. local repstor = game:GetService("ReplicatedStorage")

  5. local repfirst = game:GetService("ReplicatedFirst")

  6. local inputser = game:GetService("UserInputService")

  7. local runser = game:GetService("RunService")

  8. local coregui = game:GetService("CoreGui")

  9. local tweenser = game:GetService("TweenService")

  10. --// VARIABLES \\--

  11. local client = playerser.LocalPlayer

  12. local camera = workspace.CurrentCamera

  13. local playergui = client:WaitForChild("PlayerGui")

  14. playergui:SetTopbarTransparency(1)

  15. local mouse = client:GetMouse()

  16. local heartbeat = runser.Heartbeat

  17. local renderstep = runser.RenderStepped

  18. --// LOCALS \\--

  19. local colors = {

  20. esp = Color3.fromRGB(171, 73, 245),

  21. esp_visible = Color3.fromRGB(255, 128, 234),

  22. minDistance = Color3.fromRGB(0, 255, 127)

  23. }

  24. local options = {

  25. drawMinDistance = true, --// toggles circle visibility

  26. minDistance = 50, --// minimum distance from crosshair to lock on

  27. }

  28. local aimbotting = false

  29. local sg = Instance.new("ScreenGui", coregui)

  30. local espFolder = Instance.new("Folder", sg)

  31. local circle = Instance.new("ImageLabel")

  32. circle.Position = UDim2.new(0.5,0,0.5,-18)

  33. circle.AnchorPoint = Vector2.new(0.5,0.5)

  34. circle.Size = UDim2.new(0,options.minDistance*2,0,options.minDistance*2)

  35. circle.BackgroundTransparency = 1

  36. circle.ImageColor3 = colors.minDistance

  37. circle.Image = "rbxassetid://3400997895"

  38. if options.drawMinDistance then

  39. circle.Parent = sg

  40. end

  41. local bodyParts = { --// used for esp

  42. ["Head"] = true,

  43. ["Chest"] = true,

  44. ["Abdomen"] = true,

  45. ["Hips"] = true,

  46. ["LeftUpperArm"] = true,

  47. ["RightUpperArm"] = true,

  48. ["RightLowerArm"] = true,

  49. ["LeftLowerArm"] = true,

  50. ["LeftHand"] = true,

  51. ["RightHand"] = true,

  52. ["LeftUpperLeg"] = true,

  53. ["RightUpperLeg"] = true,

  54. ["LeftLowerLeg"] = true,

  55. ["RightLowerLeg"] = true,

  56. ["LeftFoot"] = true,

  57. ["RightFoot"] = true

  58. }

  59. --// FUNCTIONS \\--

  60. function mouseMove(x,y)

  61. if syn or SENTINEL_LOADED then

  62. mousemoverel(x,y)

  63. elseif PROTOSMASHER_LOADED then

  64. Input.MoveMouse(x,y)

  65. end

  66. end

  67. local function createBox(player)

  68. local lines = Instance.new("Frame")

  69. lines.Name = player.Name

  70. lines.BackgroundTransparency = 1

  71. lines.AnchorPoint = Vector2.new(0.5,0.5)

  72. local outlines = Instance.new("Folder", lines)

  73. outlines.Name = "outlines"

  74. local inlines = Instance.new("Folder", lines)

  75. inlines.Name = "inlines"

  76. local outline1 = Instance.new("Frame", outlines)

  77. outline1.Name = "left"

  78. outline1.BorderSizePixel = 0

  79. outline1.BackgroundColor3 = Color3.new(0,0,0)

  80. outline1.Size = UDim2.new(0,-1,1,0)

  81. local outline2 = Instance.new("Frame", outlines)

  82. outline2.Name = "right"

  83. outline2.BorderSizePixel = 0

  84. outline2.BackgroundColor3 = Color3.new(0,0,0)

  85. outline2.Position = UDim2.new(1,0,0,0)

  86. outline2.Size = UDim2.new(0,1,1,0)

  87. local outline3 = Instance.new("Frame", outlines)

  88. outline3.Name = "up"

  89. outline3.BorderSizePixel = 0

  90. outline3.BackgroundColor3 = Color3.new(0,0,0)

  91. outline3.Size = UDim2.new(1,0,0,-1)

  92. local outline4 = Instance.new("Frame", outlines)

  93. outline4.Name = "down"

  94. outline4.BorderSizePixel = 0

  95. outline4.BackgroundColor3 = Color3.new(0,0,0)

  96. outline4.Position = UDim2.new(0,0,1,0)

  97. outline4.Size = UDim2.new(1,0,0,1)

  98. local inline1 = Instance.new("Frame", inlines)

  99. inline1.Name = "left"

  100. inline1.BorderSizePixel = 0

  101. inline1.Size = UDim2.new(0,1,1,0)

  102. local inline2 = Instance.new("Frame", inlines)

  103. inline2.Name = "right"

  104. inline2.BorderSizePixel = 0

  105. inline2.Position = UDim2.new(1,0,0,0)

  106. inline2.Size = UDim2.new(0,-1,1,0)

  107. local inline3 = Instance.new("Frame", inlines)

  108. inline3.Name = "up"

  109. inline3.BorderSizePixel = 0

  110. inline3.Size = UDim2.new(1,0,0,1)

  111. local inline4 = Instance.new("Frame", inlines)

  112. inline4.Name = "down"

  113. inline4.BorderSizePixel = 0

  114. inline4.Position = UDim2.new(0,0,1,0)

  115. inline4.Size = UDim2.new(1,0,0,-1)

  116. local text = Instance.new("TextLabel", lines)

  117. text.Name = "nametag"

  118. text.Position = UDim2.new(0.5,0,0,-12)

  119. text.Size = UDim2.new(0,100,0,-20)

  120. text.AnchorPoint = Vector2.new(0.5,0.5)

  121. text.BackgroundTransparency = 1

  122. text.Text = player.Name

  123. text.Font = Enum.Font.Code

  124. text.TextSize = 14

  125. text.TextStrokeTransparency = 0

  126. local health = Instance.new("Frame", lines)

  127. health.Name = "health"

  128. health.Position = UDim2.new(0,1,1,-1)

  129. health.Size = UDim2.new(0.1,0,1,-2)

  130. health.AnchorPoint = Vector2.new(0,1)

  131. health.BackgroundTransparency = 0

  132. health.BackgroundColor3 = Color3.fromRGB(30,30,30)

  133. health.BorderSizePixel = 0

  134. local bar = Instance.new("Frame", health)

  135. bar.Name = "bar"

  136. bar.Position = UDim2.new(0,0,1,0)

  137. bar.AnchorPoint = Vector2.new(0,1)

  138. bar.BackgroundTransparency = 0

  139. bar.BackgroundColor3 = Color3.fromRGB(0,255,127)

  140. bar.BorderSizePixel = 0

  141. return lines

  142. end

  143. local function updateEsp(player, box)

  144. runser:BindToRenderStep(player.Name.."'s esp", 1, function()

  145. local clientchar = workspace.Characters:FindFirstChild(client.Name)

  146. local xMin = camera.ViewportSize.X

  147. local yMin = camera.ViewportSize.Y

  148. local xMax = 0

  149. local yMax = 0

  150. if player and player:FindFirstChild"Body" and player.Body:FindFirstChild"Head" then

  151. local screenPos, vis = camera:WorldToScreenPoint(player.PrimaryPart.Position)

  152. local nameTagPos = camera:WorldToScreenPoint(player.Body.Head.Position)

  153. if vis then

  154. box.Visible = true

  155. local function getCorners(obj, size)

  156. local corners = {

  157. Vector3.new(obj.X+size.X/2, obj.Y+size.Y/2, obj.Z+size.Z/2);

  158. Vector3.new(obj.X-size.X/2, obj.Y+size.Y/2, obj.Z+size.Z/2);

  159. Vector3.new(obj.X-size.X/2, obj.Y-size.Y/2, obj.Z-size.Z/2);

  160. Vector3.new(obj.X+size.X/2, obj.Y-size.Y/2, obj.Z-size.Z/2);

  161. Vector3.new(obj.X-size.X/2, obj.Y+size.Y/2, obj.Z-size.Z/2);

  162. Vector3.new(obj.X+size.X/2, obj.Y+size.Y/2, obj.Z-size.Z/2);

  163. Vector3.new(obj.X-size.X/2, obj.Y-size.Y/2, obj.Z+size.Z/2);

  164. Vector3.new(obj.X+size.X/2, obj.Y-size.Y/2, obj.Z+size.Z/2);

  165. }

  166. return corners

  167. end

  168. local i = 1

  169. local allCorners = {}

  170. for _,v in pairs(player.Body:GetChildren()) do

  171. if bodyParts[v.Name] then

  172. local a = getCorners(v.CFrame, v.Size)

  173. for _,v in pairs(a) do

  174. table.insert(allCorners, i, v)

  175. i = i + 1

  176. end

  177. end

  178. end

  179. for i,v in pairs(allCorners) do

  180. local pos = camera:WorldToScreenPoint(v)

  181. if pos.X > xMax then

  182. xMax = pos.X

  183. end

  184. if pos.X < xMin then

  185. xMin = pos.X

  186. end

  187. if pos.Y > yMax then

  188. yMax = pos.Y

  189. end

  190. if pos.Y < yMin then

  191. yMin = pos.Y

  192. end

  193. end

  194. local xSize = xMax - xMin

  195. local ySize = yMax - yMin

  196. 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)

  197. box.Size = UDim2.new(0,xSize,0,ySize)

  198. local ignore = {clientchar, camera, workspace:FindFirstChild"Arms"}

  199. for _,v in pairs(workspace:GetChildren()) do

  200. if v:IsA"Model" and v.Name ~= "Arms" then

  201. table.insert(ignore, 4, v)

  202. end

  203. end

  204. local ray = Ray.new(camera.CFrame.p, (player.Body.Head.Position-camera.CFrame.p).unit*1000)

  205. local hit, pos = workspace:FindPartOnRayWithIgnoreList(ray, ignore, false, false)

  206. local suffix

  207. if hit and hit:FindFirstAncestor(player.Name) then

  208. suffix = "_visible"

  209. else

  210. suffix = ""

  211. end

  212. for _,v in pairs(box.inlines:GetChildren()) do

  213. v.BackgroundColor3 = colors["esp"..suffix]

  214. end

  215. box.nametag.TextColor3 = Color3.fromRGB(255, 255, 255)

  216. if player:FindFirstChild"Health" then

  217. box.health.bar.Size = UDim2.new(1,0,player.Health.Value/150,0)

  218. end

  219. else

  220. box.Visible = false

  221. end

  222. else

  223. box.Visible = false

  224. end

  225. end)

  226. end

  227. local function checkTeam(player, caller)

  228. local omegaTeam = game.Teams.Omega.Players

  229. local betaTeam = game.Teams.Beta.Players

  230. local myTeam

  231. if omegaTeam:FindFirstChild(client.Name) then

  232. myTeam = "Omega"

  233. elseif betaTeam:FindFirstChild(client.Name) then

  234. myTeam = "Beta"

  235. end

  236. local enemyTeam

  237. if omegaTeam:FindFirstChild(player.Name) then

  238. enemyTeam = "Omega"

  239. elseif betaTeam:FindFirstChild(player.Name) then

  240. enemyTeam = "Beta"

  241. end

  242. if enemyTeam ~= myTeam then

  243. if caller == "esp" then

  244. local box = createBox(player)

  245. updateEsp(player, box)

  246. box.Parent = espFolder

  247. end

  248. return true

  249. else

  250. return false

  251. end

  252. end

  253. local function updateAim()

  254. if aimbotting then

  255. if workspace.Characters:FindFirstChild(client.Name) then

  256. local clientchar = workspace.Characters:FindFirstChild(client.Name)

  257. for _,player in pairs(workspace.Characters:GetChildren()) do

  258. if checkTeam(player, "aimbot") and player:FindFirstChild"Body" and player.Body:FindFirstChild"Head" then

  259. local ignore = {clientchar, camera, workspace:FindFirstChild"Arms"}

  260. for _,v in pairs(workspace:GetChildren()) do

  261. if v:IsA"Model" and v.Name ~= "Arms" then

  262. table.insert(ignore, 4, v)

  263. end

  264. end

  265. local ray = Ray.new(camera.CFrame.p, (player.Body.Head.Position-camera.CFrame.p).unit*1000)

  266. local hit, pos = workspace:FindPartOnRayWithIgnoreList(ray, ignore, false, false)

  267. local screenPos, vis = camera:WorldToScreenPoint(player.Body.Head.Position)

  268. if vis and (Vector2.new(mouse.X,mouse.Y).magnitude-(Vector2.new(screenPos.X,screenPos.Y).magnitude)) < options.minDistance and hit and hit:FindFirstAncestor(player.Name) then

  269. mouseMove(screenPos.X-mouse.X, screenPos.Y-mouse.Y)

  270. end

  271. end

  272. end

  273. end

  274. end

  275. end

  276. inputser.InputBegan:connect(function(input, gamep)

  277. if not gamep then

  278. if input.UserInputType == Enum.UserInputType.MouseButton2 then

  279. --aimbotting = true

  280. end

  281. end

  282. end)

  283. inputser.InputEnded:connect(function(input, gamep)

  284. if not gamep then

  285. if input.UserInputType == Enum.UserInputType.MouseButton2 then

  286. aimbotting = false

  287. end

  288. end

  289. end)

  290. for _,player in pairs(workspace.Characters:GetChildren()) do

  291. checkTeam(player, "esp")

  292. end

  293. workspace.Characters.ChildAdded:connect(function(player)

  294. checkTeam(player, "esp")

  295. end)

  296. workspace.Characters.ChildRemoved:connect(function(player)

  297. runser:UnbindFromRenderStep(player.Name.."'s esp")

  298. if espFolder:FindFirstChild(player.Name) then

  299. espFolder[player.Name]:Destroy()

  300. end

  301. end)

  302. runser:BindToRenderStep("aimbot", 2, updateAim)

  303. getrenv().warn"made by Jan#5106 eat my ass"

  304. -- Created by Peyton @ V3rmillion

  305. local LocalPlayer, Characters, ESPList, LocalCharacter = game:GetService('Players').LocalPlayer, workspace.Characters, {}

  306. local Leaderboard = LocalPlayer.PlayerGui.LeaderboardGui.Leaderboard

  307. local function GetTeam(Player)

  308. local Name = Player.Name

  309. for i,v in next, Leaderboard.Teams:GetDescendants() do

  310. if v.Name == 'NameLabel' and v.Text == Name then

  311. return v.Parent.Parent.Parent

  312. end

  313. end

  314. end

  315. local Camera, Div = workspace.CurrentCamera, Vector2.new(2,2)

  316. local function GetNearestToCenter()

  317. local Center = Camera.ViewportSize / Div

  318. local Character, CharacterDistance, ScreenPosition = nil, 0, nil

  319. -- Created by Peyton @ V3rmillion

  320. for i,v in next, Characters:GetChildren() do

  321. if v.Name ~= LocalPlayer.Name and GetTeam(v) ~= GetTeam(LocalPlayer) and v:FindFirstChild('Health') and v.Health.Value > 0 and v:FindFirstChild('Hitbox') and v.Hitbox:FindFirstChild('Head') then

  322. local clientchar = workspace.Characters:FindFirstChild(client.Name)

  323. local ignore = {clientchar, camera, workspace:FindFirstChild"Arms"}

  324. for _,v in pairs(workspace:GetChildren()) do

  325. if v:IsA"Model" and v.Name ~= "Arms" then

  326. table.insert(ignore, 4, v)

  327. end

  328. end

  329. local ray = Ray.new(camera.CFrame.p, (v.Body.Head.Position-camera.CFrame.p).unit*1000)

  330. local hit, pos = workspace:FindPartOnRayWithIgnoreList(ray, ignore, false, false)

  331. if hit and hit:FindFirstAncestor(v.Name) then

  332. local Position, OnScreen = Camera:WorldToViewportPoint(v.Hitbox.Head.Position)

  333. if OnScreen then

  334. local Vec2 = Vector2.new(Position.X, Position.Y)

  335. local Distance = (Vec2 - Center).magnitude

  336. if not Character or CharacterDistance > Distance then

  337. Character, CharacterDistance, ScreenPosition = v, Distance, Vec2

  338. end

  339. end

  340. end

  341. end

  342. end

  343. return ScreenPosition and Center and (ScreenPosition - Center) or nil

  344. end

  345. local function NewCircle()

  346. local Circle = Drawing.new('Circle')

  347. Circle.Color = Color3.new(255, 0, 0)

  348. Circle.Filled = true

  349. Circle.Transparency = 0.5

  350. Circle.Visible = true

  351. return Circle

  352. end

  353. -- Created by Peyton @ V3rmillion

  354. local function Add(Character)

  355. if Character == workspace.Characters:FindFirstChild(LocalPlayer.Name) then

  356. LocalCharacter = Character

  357. elseif GetTeam(Character) ~= GetTeam(LocalPlayer) then

  358. ESPList[Character] = NewCircle()

  359. end

  360. end

  361. local function Remove(Character)

  362. if ESPList[Character] then

  363. ESPList[Character]:Remove()

  364. ESPList[Character] = nil

  365. end

  366. end

  367. local UserInputService, AimEnable = game:GetService('UserInputService'), false

  368. local function Update()

  369. for Character,v in next, ESPList do

  370. if Character and Character.Parent ~= Characters then

  371. Remove(Characters)

  372. elseif Character:FindFirstChild('Hitbox') and Character.Hitbox:FindFirstChild('Head') then

  373. local Position, OnScreen = workspace.CurrentCamera:WorldToViewportPoint(Character.Hitbox.Head.Position)

  374. end

  375. end

  376. if AimEnable and UserInputService.MouseBehavior ~= Enum.MouseBehavior.Default and Characters:FindFirstChild(LocalPlayer.Name) and Characters[LocalPlayer.Name].Health.Value ~= 0 then

  377. local ToMove = GetNearestToCenter()

  378. if ToMove then mousemoverel(ToMove.X, ToMove.Y) end

  379. else

  380. AimEnable = false

  381. end

  382. end

  383. -- Created by Peyton @ V3rmillion

  384. for i,v in next, Characters:GetChildren() do Add(v) end

  385. Characters.ChildAdded:Connect(Add)

  386. Characters.ChildRemoved:Connect(Remove)

  387. game:GetService('RunService').RenderStepped:Connect(Update)

  388. UserInputService.InputBegan:Connect(function(input, gameProcessed) if input.UserInputType == Enum.UserInputType.MouseButton2 then AimEnable = true end end)

  389. UserInputService.InputEnded:Connect(function(input, gameProcessed) if input.UserInputType == Enum.UserInputType.MouseButton2 then AimEnable = false end end)

  390. print("Loaded Good Business by Peyton @ V3rmillion")

Bad Business - Pastebin.com (2024)
Top Articles
Latest Posts
Article information

Author: Terrell Hackett

Last Updated:

Views: 6409

Rating: 4.1 / 5 (72 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Terrell Hackett

Birthday: 1992-03-17

Address: Suite 453 459 Gibson Squares, East Adriane, AK 71925-5692

Phone: +21811810803470

Job: Chief Representative

Hobby: Board games, Rock climbing, Ghost hunting, Origami, Kabaddi, Mushroom hunting, Gaming

Introduction: My name is Terrell Hackett, I am a gleaming, brainy, courageous, helpful, healthy, cooperative, graceful person who loves writing and wants to share my knowledge and understanding with you.