Advertisement
Guest User

bombline cheat | Solara | 2024

a guest
Sep 18th, 2024
1,740
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.84 KB | Gaming | 0 0
  1. Discord: https://discord.gg/4YcKxcZbCs
  2.  
  3.  
  4.  
  5. local Players = game:GetService("Players")
  6. local LocalPlayer = Players.LocalPlayer or Players:GetPropertyChangedSignal("LocalPlayer"):Wait()
  7. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  8. local Humanoid = Character:WaitForChild("Humanoid")
  9. local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
  10. local Mouse = LocalPlayer:GetMouse()
  11. local RunService = game:GetService("RunService")
  12. local UIS = game:GetService("UserInputService")
  13. local Camera = workspace.CurrentCamera
  14. local CurrentTarget = nil
  15.  
  16. local Connections = {
  17. CharacterAdded = {}
  18. }
  19.  
  20. table.insert(Connections.CharacterAdded, LocalPlayer.CharacterAdded:Connect(function(Char)
  21. Character = Char
  22. Humanoid = Char:WaitForChild("Humanoid")
  23. HumanoidRootPart = Char:WaitForChild("HumanoidRootPart")
  24. end))
  25.  
  26. local Aimbot = {}; do
  27. local Loops = {RenderStepped = {}, Heartbeat = {}, Stepped = {}}
  28. function Aimbot:BindToRenderStepped(id, callback)
  29. if not Loops.RenderStepped[id] then
  30. Loops.RenderStepped[id] = RunService.RenderStepped:Connect(callback)
  31. end
  32. end
  33. function Aimbot:UnbindFromRenderStepped(id)
  34. if Loops.RenderStepped[id] then
  35. Loops.RenderStepped[id]:Disconnect()
  36. Loops.RenderStepped[id] = nil
  37. end
  38. end
  39. function Aimbot:StoreCurrentTarget(Player)
  40. CurrentTarget = Player
  41. end
  42. function Aimbot:IfHolding()
  43. return UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton2)
  44. end
  45. function Aimbot:DistanceCheck(Player, Distance)
  46. shared.DistanceCheck = shared.DistanceCheck or true
  47. shared.Distance = shared.Distance or 100
  48.  
  49. if Distance and shared.DistanceCheck then
  50. return (Player.Character.HumanoidRootPart.Position - HumanoidRootPart.Position).Magnitude <= Distance
  51. else
  52. return true
  53. end
  54. end
  55. function Aimbot:TeamCheck(Player, Toggle)
  56. if Toggle then
  57. return Player.Team ~= LocalPlayer.Team
  58. else
  59. return true
  60. end
  61. end
  62. function Aimbot:GetClosestPlayerToMouse()
  63. local ClosestPlayer = nil
  64. local ClosestPlayerDistance = math.huge
  65.  
  66. for _, Player in next, Players:GetPlayers() do
  67. if Player ~= LocalPlayer and Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
  68. local ScreenPoint = Camera:WorldToViewportPoint(Player.Character.HumanoidRootPart.Position)
  69. local MousePoint = Vector2.new(Mouse.X, Mouse.Y)
  70. local Distance = (MousePoint - Vector2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
  71. local _, OnScreen = Camera:WorldToViewportPoint(Player.Character.HumanoidRootPart.Position)
  72.  
  73. if Aimbot:DistanceCheck(Player, shared.Distance) and OnScreen and Distance < ClosestPlayerDistance then
  74. ClosestPlayer = Player
  75. ClosestPlayerDistance = Distance
  76. end
  77. end
  78. end
  79.  
  80. return ClosestPlayer
  81. end
  82. function Aimbot:GetClosestFromDistance()
  83. local ClosestPlayer = nil
  84. local ClosestPlayerDistance = math.huge
  85.  
  86. for _, Player in next, Players:GetPlayers() do
  87. if Player ~= LocalPlayer and Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
  88. local Distance = (Player.Character.HumanoidRootPart.Position - HumanoidRootPart.Position).Magnitude
  89.  
  90. if Aimbot:DistanceCheck(Player, shared.Distance) and Distance < ClosestPlayerDistance then
  91. ClosestPlayer = Player
  92. ClosestPlayerDistance = Distance
  93. end
  94. end
  95. end
  96.  
  97. return ClosestPlayer
  98. end
  99. function Aimbot:DoMethod()
  100. shared.Method = shared.Method or "Closest To Mouse"
  101.  
  102. if shared.Method == "Closest To Mouse" then
  103. return self:GetClosestPlayerToMouse()
  104. elseif shared.Method == "Distance" then
  105. return self:GetClosestFromDistance()
  106. end
  107. end
  108. Aimbot:StoreCurrentTarget(Aimbot:DoMethod())
  109. function Aimbot:Update()
  110. getgenv().Smoothness = shared.Smoothness or .25
  111. getgenv().TeamCheck = shared.TeamCheck or false
  112. getgenv().SelectedView = shared.SelectedView or "First Person"
  113. getgenv().TargetPart = shared.TargetPart or "Head"
  114.  
  115. if CurrentTarget and CurrentTarget.Character then
  116. local Vector = Camera:WorldToViewportPoint(CurrentTarget.Character:WaitForChild(TargetPart).Position)
  117.  
  118. if not self:IfHolding() then
  119. self:StoreCurrentTarget(self:DoMethod())
  120. elseif self:IfHolding() and self:TeamCheck(CurrentTarget, TeamCheck) then
  121. if SelectedView == "First Person" and UIS.MouseBehavior == Enum.MouseBehavior.LockCenter then
  122. Camera.CFrame = Camera.CFrame:Lerp(CFrame.new(Camera.CFrame.Position, CurrentTarget.Character:WaitForChild(TargetPart).Position), smooSmoothnessthness)
  123. elseif SelectedView == "Third Person" and UIS.MouseBehavior == Enum.MouseBehavior.Default then
  124. mousemoverel((Vector.X - Mouse.X) / 2 * Smoothness, (Vector.Y - Mouse.Y - 35) / 2 * Smoothness)
  125. elseif SelectedView == "Auto" then
  126. if UIS.MouseBehavior == Enum.MouseBehavior.LockCenter then
  127. Camera.CFrame = Camera.CFrame:Lerp(CFrame.new(Camera.CFrame.Position, CurrentTarget.Character:WaitForChild(TargetPart).Position), Smoothness)
  128. elseif UIS.MouseBehavior == Enum.MouseBehavior.Default then
  129. mousemoverel((Vector.X - Mouse.X) / 2 * Smoothness, (Vector.Y - Mouse.Y - 35) / 2 * Smoothness)
  130. end
  131. end
  132. end
  133. else
  134. self:StoreCurrentTarget(self:DoMethod())
  135. end
  136. end
  137. function Aimbot:Toggle(boolean)
  138. if boolean then
  139. self:BindToRenderStepped("Aimbot", function()
  140. self:Update()
  141. end)
  142. else
  143. self:UnbindFromRenderStepped("Aimbot")
  144. end
  145. end
  146. end
  147. local Esp = {}; do
  148. Instance.new("ScreenGui",game.CoreGui).Name = "Kaoru"
  149. local ChamsFolder = Instance.new("Folder")
  150. ChamsFolder.Name = "ChamsFolder"
  151. for _,v in next, game.CoreGui:GetChildren() do
  152. if v:IsA'ScreenGui' and v.Name == 'Kaoru' then
  153. ChamsFolder.Parent = v
  154. end
  155. end
  156. Players.PlayerRemoving:Connect(function(plr)
  157. if ChamsFolder:FindFirstChild(plr.Name) then
  158. ChamsFolder[plr.Name]:Destroy()
  159. end
  160. end)
  161. local Loops = {RenderStepped = {}, Heartbeat = {}, Stepped = {}}
  162. function Esp:BindToRenderStepped(id, callback)
  163. if not Loops.RenderStepped[id] then
  164. Loops.RenderStepped[id] = RunService.RenderStepped:Connect(callback)
  165. end
  166. end
  167. function Esp:UnbindFromRenderStepped(id)
  168. if Loops.RenderStepped[id] then
  169. Loops.RenderStepped[id]:Disconnect()
  170. Loops.RenderStepped[id] = nil
  171. end
  172. end
  173. function Esp:TeamCheck(Player, Toggle)
  174. if Toggle then
  175. return Player.Team ~= LocalPlayer.Team
  176. else
  177. return true
  178. end
  179. end
  180. function Esp:Update()
  181. for _, Player in next, Players:GetChildren() do
  182. if ChamsFolder:FindFirstChild(Player.Name) then
  183. Chams = ChamsFolder[Player.Name]
  184. Chams.Enabled = false
  185. Chams.FillColor = Color3.fromRGB(255, 255, 255)
  186. Chams.OutlineColor = Color3.fromHSV(tick()%5/5,1,1)
  187. end
  188. if Player ~= LocalPlayer and Player.Character then
  189. if ChamsFolder:FindFirstChild(Player.Name) == nil then
  190. local chamfolder = Instance.new("Highlight")
  191. chamfolder.Name = Player.Name
  192. chamfolder.Parent = ChamsFolder
  193. Chams = chamfolder
  194. end
  195. Chams.Enabled = true
  196. Chams.Adornee = Player.Character
  197. Chams.OutlineTransparency = 0
  198. Chams.DepthMode = Enum.HighlightDepthMode[(true and "AlwaysOnTop" or "Occluded")]
  199. Chams.FillTransparency = 1
  200. end
  201. end
  202. end
  203. function Esp:Toggle(boolean)
  204. if boolean then
  205. self:BindToRenderStepped("Esp", function()
  206. self:Update()
  207. end)
  208. else
  209. self:UnbindFromRenderStepped("Esp")
  210. ChamsFolder:ClearAllChildren()
  211. end
  212. end
  213. end
  214.  
  215. local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Rayfield/main/source'))()
  216. local Window = Rayfield:CreateWindow({
  217. Name = "FPS Universal",
  218. LoadingTitle = "FPS Universal",
  219. LoadingSubtitle = "By: Kaoru~#6438",
  220. ConfigurationSaving = {
  221. Enabled = true,
  222. FolderName = "FPS-Universal-Kaoru",
  223. FileName = "reddyhub"
  224. },
  225. })
  226.  
  227. local Main = Window:CreateTab('Main')
  228. Main:CreateSection("Aimbot")
  229.  
  230. Main:CreateToggle({
  231. Name = "Aimbot",
  232. CurrentValue = false,
  233. Callback = function(AimAssistToggle)
  234. Aimbot:Toggle(AimAssistToggle)
  235. end,
  236. })
  237.  
  238. Main:CreateSection("Aimbot Settings")
  239.  
  240. Main:CreateDropdown({
  241. Name = "Method",
  242. Options = {"Closest To Mouse", "Distance"},
  243. CurrentOption = "Closest To Mouse",
  244. Callback = function(Method)
  245. shared.Method = Method
  246. end,
  247. })
  248.  
  249. Main:CreateDropdown({
  250. Name = "Target Part",
  251. Options = {
  252. "Head",
  253. "Torso",
  254. "Right Arm",
  255. "Left Arm",
  256. "Right Leg",
  257. "Left Leg"
  258. },
  259. CurrentOption = "Head",
  260. Callback = function(TargetPart)
  261. if TargetPart == "Torso" then
  262. shared.TargetPart = "HumanoidRootPart"
  263. elseif TargetPart ~= "Torso" then
  264. shared.TargetPart = TargetPart
  265. end
  266. end,
  267. })
  268.  
  269. Main:CreateDropdown({
  270. Name = "Selected View",
  271. Options = {"First Person", "Third Person", "Auto"},
  272. CurrentOption = "First Person",
  273. Callback = function(SelectedView)
  274. shared.SelectedView = SelectedView
  275. end,
  276. })
  277.  
  278. Main:CreateSlider({
  279. Name = "Smoothness",
  280. Range = {0, 1},
  281. Increment = .01,
  282. CurrentValue = .25,
  283. Callback = function(Smoothness)
  284. shared.Smoothness = Smoothness
  285. end,
  286. })
  287.  
  288. Main:CreateToggle({
  289. Name = "Distance Check",
  290. CurrentValue = true,
  291. Callback = function(DistanceCheckToggle)
  292. shared.DistanceCheck = DistanceCheckToggle
  293. end,
  294. })
  295.  
  296. Main:CreateSlider({
  297. Name = "Distance",
  298. Range = {0, 1000},
  299. Increment = 1,
  300. CurrentValue = 100,
  301. Callback = function(Distance)
  302. shared.Distance = Distance
  303. end,
  304. })
  305.  
  306. Main:CreateToggle({
  307. Name = "Team Check",
  308. CurrentValue = false,
  309. Callback = function(TeamCheckToggle)
  310. shared.TeamCheck = TeamCheckToggle
  311. end,
  312. })
  313.  
  314. Main:CreateSection("Esp")
  315.  
  316. Main:CreateToggle({
  317. Name = "Esp",
  318. CurrentValue = false,
  319. Callback = function(EspToggle)
  320. Esp:Toggle(EspToggle)
  321. end,
  322. })
  323.  
  324. Main:CreateSection("Esp Settings")
  325.  
  326. Main:CreateToggle({
  327. Name = "Team Check",
  328. CurrentValue = false,
  329. Callback = function(ESPTeamCheck)
  330. shared.ESPTeamCheck = ESPTeamCheck
  331. end,
  332. })
  333.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement