Advertisement
ViperSoftware

Realistic Hood Testing Viper.gg V1

Nov 16th, 2024
3,762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.57 KB | None | 0 0
  1. -- Services
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4. local UserInputService = game:GetService("UserInputService")
  5. local LocalPlayer = Players.LocalPlayer
  6.  
  7. -- Speed Hack Configuration
  8. local SpeedMultiplier = 5
  9.  
  10. -- Aimbot Configuration
  11. local AimbotEnabled = true
  12. local FOVRadius = 100
  13. local Smoothness = 0.05
  14.  
  15. -- ESP Configuration
  16. local ESPEnabled = true
  17. local ESP_COLOR = Color3.new(0, 1, 0) -- Green color
  18. local TEXT_FONT = Enum.Font.Gotham
  19. local TEXT_SIZE = 14
  20.  
  21. -- UI for FOV Circle
  22. local FOVCircle = Drawing.new("Circle")
  23. FOVCircle.Radius = FOVRadius
  24. FOVCircle.Color = Color3.new(0, 1, 0) -- Green
  25. FOVCircle.Thickness = 2
  26. FOVCircle.Filled = false
  27. FOVCircle.Visible = true
  28.  
  29. local function updateFOVCircle()
  30. local mousePosition = UserInputService:GetMouseLocation()
  31. FOVCircle.Position = Vector2.new(mousePosition.X, mousePosition.Y)
  32. FOVCircle.Radius = FOVRadius
  33. end
  34.  
  35. -- Function to find the nearest target within the FOV
  36. local function getNearestTarget()
  37. local mousePosition = UserInputService:GetMouseLocation()
  38. local closestPlayer = nil
  39. local shortestDistance = FOVRadius
  40.  
  41. for _, player in pairs(Players:GetPlayers()) do
  42. if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("Head") then
  43. local head = player.Character.Head
  44. local screenPosition, onScreen = workspace.CurrentCamera:WorldToViewportPoint(head.Position)
  45.  
  46. if onScreen then
  47. local distance = (Vector2.new(screenPosition.X, screenPosition.Y) - mousePosition).Magnitude
  48. if distance < shortestDistance then
  49. closestPlayer = player
  50. shortestDistance = distance
  51. end
  52. end
  53. end
  54. end
  55.  
  56. return closestPlayer
  57. end
  58.  
  59. -- Aimbot Logic
  60. RunService.RenderStepped:Connect(function()
  61. if not AimbotEnabled then return end
  62.  
  63. updateFOVCircle()
  64.  
  65. local target = getNearestTarget()
  66. if target and target.Character and target.Character:FindFirstChild("Head") then
  67. local head = target.Character.Head
  68. local camera = workspace.CurrentCamera
  69. local currentCFrame = camera.CFrame
  70. local targetCFrame = CFrame.new(camera.CFrame.Position, head.Position)
  71.  
  72. workspace.CurrentCamera.CFrame = currentCFrame:Lerp(targetCFrame, Smoothness)
  73. end
  74. end)
  75.  
  76. -- Function to create ESP with Chams
  77. local function createESP(player)
  78. if player == LocalPlayer then return end
  79.  
  80. local character = player.Character or player.CharacterAdded:Wait()
  81. local head = character:WaitForChild("Head", 5)
  82. if not head then return end
  83.  
  84. -- Billboard GUI for names
  85. local billboard = Instance.new("BillboardGui")
  86. billboard.Adornee = head
  87. billboard.Size = UDim2.new(0, 150, 0, 30)
  88. billboard.StudsOffset = Vector3.new(0, 3, 0)
  89. billboard.AlwaysOnTop = true
  90.  
  91. local textLabel = Instance.new("TextLabel", billboard)
  92. textLabel.Size = UDim2.new(1, 0, 1, 0)
  93. textLabel.BackgroundTransparency = 1
  94. textLabel.TextColor3 = ESP_COLOR
  95. textLabel.TextStrokeTransparency = 0.5
  96. textLabel.Font = TEXT_FONT
  97. textLabel.TextSize = TEXT_SIZE
  98. textLabel.Text = player.Name
  99.  
  100. billboard.Parent = head
  101.  
  102. -- Chams (Highlight)
  103. local highlight = Instance.new("Highlight")
  104. highlight.Adornee = character
  105. highlight.FillColor = ESP_COLOR
  106. highlight.FillTransparency = 0.5
  107. highlight.OutlineColor = ESP_COLOR
  108. highlight.OutlineTransparency = 0
  109. highlight.Parent = character
  110. end
  111.  
  112. RunService.RenderStepped:Connect(function()
  113. if ESPEnabled then
  114. for _, player in pairs(Players:GetPlayers()) do
  115. if player.Character and not player.Character:FindFirstChild("Highlight") then
  116. createESP(player)
  117. end
  118. end
  119. end
  120. end)
  121.  
  122. -- Speed Hack Logic
  123. local function applySpeedHack()
  124. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  125. LocalPlayer.Character.Humanoid.WalkSpeed = 16 * SpeedMultiplier
  126. end
  127. end
  128.  
  129. RunService.Heartbeat:Connect(applySpeedHack)
  130.  
  131. -- GUI Setup
  132. local ScreenGui = Instance.new("ScreenGui", game.CoreGui)
  133. local MainFrame = Instance.new("Frame", ScreenGui)
  134. MainFrame.Size = UDim2.new(0, 300, 0, 400)
  135. MainFrame.Position = UDim2.new(0.5, -150, 0.5, -200)
  136. MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  137.  
  138. local Title = Instance.new("TextLabel", MainFrame)
  139. Title.Size = UDim2.new(1, 0, 0, 50)
  140. Title.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  141. Title.Text = "Cheat Control Hub"
  142. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  143. Title.Font = Enum.Font.GothamBold
  144. Title.TextSize = 18
  145.  
  146. -- Speed Hack Slider
  147. local SpeedHackSlider = Instance.new("TextBox", MainFrame)
  148. SpeedHackSlider.Size = UDim2.new(0.9, 0, 0, 40)
  149. SpeedHackSlider.Position = UDim2.new(0.05, 0, 0.15, 0)
  150. SpeedHackSlider.PlaceholderText = "Speed Multiplier: " .. SpeedMultiplier
  151. SpeedHackSlider.Font = Enum.Font.Gotham
  152. SpeedHackSlider.TextSize = 16
  153. SpeedHackSlider.TextColor3 = Color3.fromRGB(255, 255, 255)
  154. SpeedHackSlider.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  155.  
  156. SpeedHackSlider.FocusLost:Connect(function()
  157. local newSpeed = tonumber(SpeedHackSlider.Text)
  158. if newSpeed then
  159. SpeedMultiplier = newSpeed
  160. SpeedHackSlider.PlaceholderText = "Speed Multiplier: " .. SpeedMultiplier
  161. end
  162. end)
  163.  
  164. -- Aimbot Toggle
  165. local AimbotToggle = Instance.new("TextButton", MainFrame)
  166. AimbotToggle.Size = UDim2.new(0.9, 0, 0, 40)
  167. AimbotToggle.Position = UDim2.new(0.05, 0, 0.25, 0)
  168. AimbotToggle.Text = "Toggle Aimbot"
  169. AimbotToggle.Font = Enum.Font.Gotham
  170. AimbotToggle.TextSize = 16
  171. AimbotToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  172. AimbotToggle.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  173.  
  174. AimbotToggle.MouseButton1Click:Connect(function()
  175. AimbotEnabled = not AimbotEnabled
  176. AimbotToggle.Text = AimbotEnabled and "Aimbot: ON" or "Aimbot: OFF"
  177. end)
  178.  
  179. -- FOV Slider
  180. local FOVSlider = Instance.new("TextBox", MainFrame)
  181. FOVSlider.Size = UDim2.new(0.9, 0, 0, 40)
  182. FOVSlider.Position = UDim2.new(0.05, 0, 0.35, 0)
  183. FOVSlider.PlaceholderText = "FOV Radius: " .. FOVRadius
  184.  
  185. FOVSlider.FocusLost:Connect(function()
  186. local newFOV = tonumber(FOVSlider.Text)
  187. if newFOV then
  188. FOVRadius = newFOV
  189. FOVSlider.PlaceholderText = "FOV Radius: " .. FOVRadius
  190. end
  191. end)
  192.  
  193. -- Smoothness Slider
  194. local SmoothnessSlider = Instance.new("TextBox", MainFrame)
  195. SmoothnessSlider.Size = UDim2.new(0.9, 0, 0, 40)
  196. SmoothnessSlider.Position = UDim2.new(0.05, 0, 0.45, 0)
  197. SmoothnessSlider.PlaceholderText = "Smoothness: " .. Smoothness
  198.  
  199. SmoothnessSlider.FocusLost:Connect(function()
  200. local newSmoothness = tonumber(SmoothnessSlider.Text)
  201. if newSmoothness then
  202. Smoothness = newSmoothness
  203. SmoothnessSlider.PlaceholderText = "Smoothness: " .. Smoothness
  204. end
  205. end)
  206.  
  207. -- ESP Toggle
  208. local ESPToggle = Instance.new("TextButton", MainFrame)
  209. ESPToggle.Size = UDim2.new(0.9, 0, 0, 40)
  210. ESPToggle.Position = UDim2.new(0.05, 0, 0.55, 0)
  211. ESPToggle.Text = "Toggle ESP"
  212. ESPToggle.Font = Enum.Font.Gotham
  213. ESPToggle.TextSize = 16
  214. ESPToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  215. ESPToggle.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  216.  
  217. ESPToggle.MouseButton1Click:Connect(function()
  218. ESPEnabled = not ESPEnabled
  219. ESPToggle.Text = ESPEnabled and "ESP: ON" or "ESP: OFF"
  220. end)
  221.  
  222. -- Toggle GUI Visibility
  223. UserInputService.InputBegan:Connect(function(input)
  224. if input.KeyCode == Enum.KeyCode.Insert then
  225. MainFrame.Visible = not MainFrame.Visible
  226. end
  227. end)
  228.  
Tags: Roblox Script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement