Advertisement
hy3n4scripts

Roblox Dahood Script

Jun 28th, 2023
3,887
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.82 KB | None | 0 0
  1. ---Subscribe to Hy3n4 Scripts
  2. ---Works on any dahood game
  3.  
  4. getgenv().Prediction = ( .1239592 ) -- [ PREDICTION: Lower Prediction: Lower Ping | Higher Prediction: Higher Ping ]
  5.  
  6. getgenv().FOV = ( 150 ) -- [ FOV RADIUS: Increases Or Decreases FOV Radius ]
  7.  
  8. getgenv().AimKey = ( "p" ) -- [ TOGGLE KEY: Toggles Silent Aim On And Off ]
  9.  
  10. getgenv().Notifier = false
  11.  
  12. getgenv().FOV_VISIBLE = false -- [ Self Explanatory ]
  13.  
  14. getgenv().DontShootThesePeople = { -- [ WHITELIST TABLE: List Of Who NOT To Shoot, edit like this. "Contain quotations with their name and then a semi-colon afterwards for each line" ; ]
  15.  
  16. "AimLockPsycho";
  17. "JakeTheMiddleMan";
  18.  
  19. }
  20.  
  21. --[[
  22. Do Not Edit Anything Beyond This Point.
  23. ]]
  24.  
  25. local SilentAim = true
  26. local LocalPlayer = game:GetService("Players").LocalPlayer
  27. local Players = game:GetService("Players")
  28. local Mouse = LocalPlayer:GetMouse()
  29. local Camera = game:GetService("Workspace").CurrentCamera
  30. local connections = getconnections(game:GetService("LogService").MessageOut)
  31. for _, v in ipairs(connections) do
  32. v:Disable()
  33. end
  34.  
  35. getrawmetatable = getrawmetatable
  36. setreadonly = setreadonly
  37. getconnections = getconnections
  38. hookmetamethod = hookmetamethod
  39. getgenv = getgenv
  40. Drawing = Drawing
  41.  
  42. local FOV_CIRCLE = Drawing.new("Circle")
  43. FOV_CIRCLE.Visible = getgenv().FOV_VISIBLE
  44. FOV_CIRCLE.Filled = false
  45. FOV_CIRCLE.Thickness = 1
  46. FOV_CIRCLE.Transparency = 1
  47. FOV_CIRCLE.Color = Color3.new(0, 1, 0)
  48. FOV_CIRCLE.Radius = getgenv().FOV
  49. FOV_CIRCLE.Position = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
  50.  
  51. local Options = {
  52. Torso = "HumanoidRootPart";
  53. Head = "Head";
  54. }
  55.  
  56. local function MoveFovCircle()
  57. pcall(function()
  58. local DoIt = true
  59. spawn(function()
  60. while DoIt do task.wait()
  61. FOV_CIRCLE.Position = Vector2.new(Mouse.X, (Mouse.Y + 36))
  62. end
  63. end)
  64. end)
  65. end coroutine.wrap(MoveFovCircle)()
  66.  
  67. game.StarterGui:SetCore("SendNotification", {Title = "Silent Aim ON", Text = "TOGGLED", Duration = 5,}) -- initially on.
  68.  
  69. local function ItsOn()
  70. game.StarterGui:SetCore("SendNotification", {Title = "Silent Aim ON", Text = "TOGGLED", Duration = 5,})
  71. end
  72. local function ItsOff()
  73. game.StarterGui:SetCore("SendNotification", {Title = "Silent Aim OFF", Text = "UN-TOGGLED", Duration = 5,})
  74. end
  75.  
  76. Mouse.KeyDown:Connect(function(KeyPressed)
  77. if KeyPressed == (getgenv().AimKey:lower()) then
  78. if SilentAim == false then
  79. FOV_CIRCLE.Color = Color3.new(0, 1, 0)
  80. SilentAim = true
  81. ItsOn()
  82. elseif SilentAim == true then
  83. FOV_CIRCLE.Color = Color3.new(1, 0, 0)
  84. SilentAim = false
  85. ItsOff()
  86. end
  87. end
  88. end)
  89. Mouse.KeyDown:Connect(function(Rejoin)
  90. if Rejoin == "=" then
  91. local LocalPlayer = game:GetService("Players").LocalPlayer
  92. game:GetService("TeleportService"):Teleport(game.PlaceId, LocalPlayer)
  93. end
  94. end)
  95.  
  96. local oldIndex = nil
  97. oldIndex = hookmetamethod(game, "__index", function(self, Index)
  98. if self == Mouse and (Index == "Hit") then
  99. if SilentAim then
  100. local Distance = 9e9
  101. local Target = nil
  102. local Players = game:GetService("Players")
  103. local LocalPlayer = game:GetService("Players").LocalPlayer
  104. local Camera = game:GetService("Workspace").CurrentCamera
  105. for _, v in pairs(Players:GetPlayers()) do
  106. if not table.find(getgenv().DontShootThesePeople, v.Name) then
  107. if v ~= LocalPlayer and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Humanoid") and v.Character:FindFirstChild("Humanoid").Health > 0 then
  108. local Enemy = v.Character
  109. local CastingFrom = CFrame.new(Camera.CFrame.Position, Enemy[Options.Torso].CFrame.Position) * CFrame.new(0, 0, -4)
  110. local RayCast = Ray.new(CastingFrom.Position, CastingFrom.LookVector * 9000)
  111. local World, ToSpace = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(RayCast, {LocalPlayer.Character:FindFirstChild("Head")})
  112. local RootWorld = (Enemy[Options.Torso].CFrame.Position - ToSpace).magnitude
  113. if RootWorld < 4 then
  114. local RootPartPosition, Visible = Camera:WorldToScreenPoint(Enemy[Options.Torso].Position)
  115. if Visible then
  116. local Real_Magnitude = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(RootPartPosition.X, RootPartPosition.Y)).Magnitude
  117. if Real_Magnitude < Distance and Real_Magnitude < FOV_CIRCLE.Radius then
  118. Distance = Real_Magnitude
  119. Target = Enemy
  120. end
  121. end
  122. end
  123. end
  124. end
  125. end
  126.  
  127. if Target ~= nil and Target[Options.Torso] and Target:FindFirstChild("Humanoid").Health > 0 then
  128. if SilentAim then
  129. local ShootThis = Target[Options.Torso]
  130. local Predicted_Position = ShootThis.CFrame + (ShootThis.Velocity * getgenv().Prediction + Vector3.new(0,-.5,0))
  131. return ((Index == "Hit" and Predicted_Position))
  132. end
  133. end
  134. end
  135. end
  136. return oldIndex(self, Index)
  137. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement