Josiahiscool73

da strike

Aug 23rd, 2025
73
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.27 KB | None | 0 0
  1. --// Dahood games
  2. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  3.  
  4. local Window = Rayfield:CreateWindow({
  5. Name = "Capybara Hub | Dahood Games",
  6. Icon = 0,
  7. LoadingTitle = "Open source, Safe, Free, Undetected",
  8. LoadingSubtitle = "by Wesd",
  9. ShowText = "Capybara hub",
  10. Theme = "Default",
  11. ToggleUIKeybind = "K",
  12. ConfigurationSaving = {
  13. Enabled = true,
  14. FolderName = nil,
  15. FileName = "CapybaraHub_DahoodGames"
  16. }
  17. })
  18.  
  19. local Tab = Window:CreateTab("Main", 4483362458)
  20. local PriorityTab = Window:CreateTab("Target Priority", 4483362458)
  21.  
  22. -- Silent Aim Settings
  23. local SilentAimEnabled = false
  24. local PredictionEnabled = false
  25. local PredictionAmount = 0.15
  26. local FOVRadius = 100
  27. local FOVCircleVisible = true
  28. local FOVCircleColor = Color3.fromRGB(255, 255, 255)
  29. local FOVCircleThickness = 1.5
  30.  
  31. -- Priority Settings
  32. local IgnoreDead = true
  33. local DeadHPThreshold = 0
  34. local IgnoreTeam = false
  35. local WallPriority = false
  36. local PriorityMode = "Closest to Crosshair"
  37.  
  38. -- Target Bind
  39. local TargetBindKey = Enum.KeyCode.T
  40. local LockedTarget = nil
  41. local TargetBindActive = false
  42.  
  43. -- Mouse, Camera
  44. local mouse = game.Players.LocalPlayer:GetMouse()
  45. local camera = workspace.CurrentCamera
  46.  
  47. -- Create FOV Circle
  48. local fovCircle = Drawing.new("Circle")
  49. fovCircle.Radius = FOVRadius
  50. fovCircle.Color = FOVCircleColor
  51. fovCircle.Thickness = FOVCircleThickness
  52. fovCircle.Transparency = 1
  53. fovCircle.Filled = false
  54.  
  55. -- Highlight Instance
  56. local currentHighlight = nil
  57.  
  58. -- Update FOV Circle
  59. task.spawn(function()
  60. while task.wait() do
  61. fovCircle.Visible = FOVCircleVisible
  62. fovCircle.Position = Vector2.new(mouse.X, mouse.Y + game:GetService("GuiService"):GetGuiInset().Y)
  63. fovCircle.Radius = FOVRadius
  64. fovCircle.Color = FOVCircleColor
  65. fovCircle.Thickness = FOVCircleThickness
  66. end
  67. end)
  68.  
  69. -- Check if Player is Behind Wall
  70. local function IsBehindWall(char)
  71. local hrp = char:FindFirstChild("HumanoidRootPart")
  72. if not hrp then return true end
  73. local ray = Ray.new(camera.CFrame.Position, (hrp.Position - camera.CFrame.Position).Unit * (hrp.Position - camera.CFrame.Position).Magnitude)
  74. local hitPart = workspace:FindPartOnRayWithIgnoreList(ray, {game.Players.LocalPlayer.Character})
  75. return hitPart and hitPart:IsDescendantOf(char) == false
  76. end
  77.  
  78. -- Apply Highlight
  79. local function HighlightTarget(player)
  80. if currentHighlight then
  81. currentHighlight:Destroy()
  82. currentHighlight = nil
  83. end
  84. if player and player.Character then
  85. local highlight = Instance.new("Highlight")
  86. highlight.Adornee = player.Character
  87. highlight.FillColor = Color3.fromRGB(255, 0, 0)
  88. highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  89. highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  90. highlight.Parent = player.Character
  91. currentHighlight = highlight
  92. end
  93. end
  94.  
  95. -- Get Target
  96. local function GetTarget()
  97. if TargetBindActive and LockedTarget and LockedTarget.Character then
  98. return LockedTarget
  99. end
  100.  
  101. local candidates = {}
  102. local visibleCandidates = {}
  103.  
  104. for _, player in pairs(game.Players:GetPlayers()) do
  105. if player ~= game.Players.LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  106. local humanoid = player.Character:FindFirstChild("Humanoid")
  107. if humanoid then
  108. if IgnoreDead and humanoid.Health <= DeadHPThreshold then
  109. continue
  110. end
  111. if IgnoreTeam and player.Team == game.Players.LocalPlayer.Team then
  112. continue
  113. end
  114. local pos, onScreen = camera:WorldToViewportPoint(player.Character.HumanoidRootPart.Position)
  115. if onScreen then
  116. local mag = (Vector2.new(mouse.X, mouse.Y) - Vector2.new(pos.X, pos.Y)).Magnitude
  117. if mag <= FOVRadius then
  118. local behindWall = IsBehindWall(player.Character)
  119. table.insert(candidates, {Player = player, Mag = mag, HP = humanoid.Health, Wall = behindWall})
  120. if not behindWall then
  121. table.insert(visibleCandidates, {Player = player, Mag = mag, HP = humanoid.Health, Wall = behindWall})
  122. end
  123. end
  124. end
  125. end
  126. end
  127. end
  128.  
  129. local listToUse = (WallPriority and #visibleCandidates > 0) and visibleCandidates or candidates
  130. if #listToUse == 0 then return nil end
  131.  
  132. if PriorityMode == "Closest to Crosshair" then
  133. table.sort(listToUse, function(a, b) return a.Mag < b.Mag end)
  134. elseif PriorityMode == "Lowest HP" then
  135. table.sort(listToUse, function(a, b) return a.HP < b.HP end)
  136. elseif PriorityMode == "Highest HP" then
  137. table.sort(listToUse, function(a, b) return a.HP > b.HP end)
  138. end
  139.  
  140. return listToUse[1].Player
  141. end
  142.  
  143. -- Keybind Handling
  144. game:GetService("UserInputService").InputBegan:Connect(function(input, gpe)
  145. if gpe then return end
  146. if input.KeyCode == TargetBindKey then
  147. if not TargetBindActive then
  148. local potentialTarget = GetTarget()
  149. if potentialTarget then
  150. LockedTarget = potentialTarget
  151. TargetBindActive = true
  152. end
  153. else
  154. LockedTarget = nil
  155. TargetBindActive = false
  156. end
  157. end
  158. end)
  159.  
  160. -- Silent Aim Loop
  161. task.spawn(function()
  162. while task.wait() do
  163. if SilentAimEnabled then
  164. local target = GetTarget()
  165. HighlightTarget(target)
  166. if target then
  167. local hrp = target.Character and target.Character:FindFirstChild("HumanoidRootPart")
  168. if hrp then
  169. local coords = hrp.Position
  170. if PredictionEnabled then
  171. coords = coords + (hrp.Velocity * PredictionAmount)
  172. end
  173. game:GetService("ReplicatedStorage"):WaitForChild("MAINEVENT"):FireServer("MOUSE", coords)
  174. end
  175. end
  176. else
  177. HighlightTarget(nil)
  178. end
  179. end
  180. end)
  181.  
  182. -- UI Controls
  183. Tab:CreateToggle({
  184. Name = "Enable Silent Aim",
  185. CurrentValue = false,
  186. Callback = function(val) SilentAimEnabled = val end
  187. })
  188.  
  189. Tab:CreateToggle({
  190. Name = "Enable Prediction",
  191. CurrentValue = false,
  192. Callback = function(val) PredictionEnabled = val end
  193. })
  194.  
  195. Tab:CreateSlider({
  196. Name = "Prediction Amount",
  197. Range = {0, 1},
  198. Increment = 0.01,
  199. Suffix = "s",
  200. CurrentValue = PredictionAmount,
  201. Callback = function(val) PredictionAmount = val end
  202. })
  203.  
  204. Tab:CreateToggle({
  205. Name = "Show FOV Circle",
  206. CurrentValue = true,
  207. Callback = function(val) FOVCircleVisible = val end
  208. })
  209.  
  210. Tab:CreateSlider({
  211. Name = "FOV Radius",
  212. Range = {50, 500},
  213. Increment = 1,
  214. Suffix = "px",
  215. CurrentValue = FOVRadius,
  216. Callback = function(val) FOVRadius = val end
  217. })
  218.  
  219. PriorityTab:CreateToggle({
  220. Name = "Ignore Dead Players",
  221. CurrentValue = true,
  222. Callback = function(val) IgnoreDead = val end
  223. })
  224.  
  225. PriorityTab:CreateSlider({
  226. Name = "Dead HP Threshold",
  227. Range = {0, 100},
  228. Increment = 1,
  229. Suffix = "hp",
  230. CurrentValue = DeadHPThreshold,
  231. Callback = function(val) DeadHPThreshold = val end
  232. })
  233.  
  234. PriorityTab:CreateToggle({
  235. Name = "Ignore Teammates",
  236. CurrentValue = false,
  237. Callback = function(val) IgnoreTeam = val end
  238. })
  239.  
  240. PriorityTab:CreateToggle({
  241. Name = "Wall Priority",
  242. CurrentValue = false,
  243. Callback = function(val) WallPriority = val end
  244. })
  245.  
  246. PriorityTab:CreateDropdown({
  247. Name = "Priority Mode",
  248. Options = {"Closest to Crosshair", "Lowest HP", "Highest HP"},
  249. CurrentOption = {PriorityMode},
  250. Callback = function(opt) PriorityMode = opt[1] end
  251. })
  252.  
  253. PriorityTab:CreateLabel("Target Bind Key: T (toggle lock on current target)")
  254.  
  255. Tab:CreateButton({
  256. Name = "Unload Script",
  257. Callback = function()
  258. if currentHighlight then currentHighlight:Destroy() end
  259. fovCircle:Remove()
  260. Rayfield:Destroy()
  261. script:Destroy()
  262. end
  263. })
Advertisement
Comments
Add Comment
Please, Sign In to add comment