Elisonpp

Ohio script

Feb 26th, 2025 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.34 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local MainFrame = Instance.new("Frame")
  3. local Title = Instance.new("TextLabel")
  4. local ESPButton = Instance.new("TextButton")
  5. local AimbotButton = Instance.new("TextButton")
  6. local ScriptHint = Instance.new("TextLabel")
  7.  
  8. -- Configuração da GUI
  9. ScreenGui.Parent = game.CoreGui
  10.  
  11. MainFrame.Name = "MainFrame"
  12. MainFrame.Parent = ScreenGui
  13. MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  14. MainFrame.Size = UDim2.new(0, 300, 0, 200)
  15. MainFrame.Position = UDim2.new(0.35, 0, 0.3, 0)
  16. MainFrame.BorderSizePixel = 2
  17. MainFrame.Draggable = true
  18. MainFrame.Active = true
  19.  
  20. Title.Parent = MainFrame
  21. Title.Text = "Script Hub"
  22. Title.Size = UDim2.new(1, 0, 0, 30)
  23. Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  24. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  25. Title.Font = Enum.Font.GothamBold
  26. Title.TextSize = 18
  27.  
  28. ESPButton.Parent = MainFrame
  29. ESPButton.Text = "ESP Line"
  30. ESPButton.Size = UDim2.new(0, 260, 0, 40)
  31. ESPButton.Position = UDim2.new(0.05, 0, 0.2, 0)
  32. ESPButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  33. ESPButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  34. ESPButton.Font = Enum.Font.GothamBold
  35. ESPButton.TextSize = 16
  36.  
  37. AimbotButton.Parent = MainFrame
  38. AimbotButton.Text = "Aimbot Line"
  39. AimbotButton.Size = UDim2.new(0, 260, 0, 40)
  40. AimbotButton.Position = UDim2.new(0.05, 0, 0.5, 0)
  41. AimbotButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  42. AimbotButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  43. AimbotButton.Font = Enum.Font.GothamBold
  44. AimbotButton.TextSize = 16
  45.  
  46. ScriptHint.Parent = MainFrame
  47. ScriptHint.Text = "BY darker 9898"
  48. ScriptHint.Size = UDim2.new(1, 0, 0, 30)
  49. ScriptHint.Position = UDim2.new(0, 0, 0.8, 0)
  50. ScriptHint.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  51. ScriptHint.TextColor3 = Color3.fromRGB(255, 255, 255)
  52. ScriptHint.Font = Enum.Font.GothamBold
  53. ScriptHint.TextSize = 14
  54.  
  55. -- Área para adicionar os scripts
  56. local function ESP_Line()
  57. local Players = game:GetService("Players")
  58. local RunService = game:GetService("RunService")
  59. local LocalPlayer = Players.LocalPlayer
  60. local Camera = workspace.CurrentCamera
  61.  
  62. local ESPFolder = Instance.new("Folder", game.CoreGui)
  63. ESPFolder.Name = "ESP_Lines"
  64.  
  65. local function CreateESPLine(player)
  66. if player == LocalPlayer then return end
  67.  
  68. local line = Drawing.new("Line")
  69. line.Color = Color3.fromRGB(255, 0, 0) -- Cor da linha (vermelho)
  70. line.Thickness = 1
  71. line.Transparency = 1
  72.  
  73. local function Update()
  74. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  75. local rootPart = player.Character.HumanoidRootPart
  76. local screenPos, onScreen = Camera:WorldToViewportPoint(rootPart.Position)
  77.  
  78. if onScreen then
  79. line.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y)
  80. line.To = Vector2.new(screenPos.X, screenPos.Y)
  81. line.Visible = true
  82. else
  83. line.Visible = false
  84. end
  85. else
  86. line.Visible = false
  87. end
  88. end
  89.  
  90. local connection
  91. connection = RunService.RenderStepped:Connect(Update)
  92.  
  93. player.CharacterRemoving:Connect(function()
  94. line:Remove()
  95. connection:Disconnect()
  96. end)
  97. end
  98.  
  99. for _, player in pairs(Players:GetPlayers()) do
  100. CreateESPLine(player)
  101. end
  102.  
  103. Players.PlayerAdded:Connect(CreateESPLine)
  104. print("ESP Line ativado!")
  105. end
  106.  
  107. local function Aimbot_Line()
  108. -- Configurações
  109. local AimPart = "Head" -- Parte do corpo para mirar
  110. local LineColor = Color3.fromRGB(255, 0, 0) -- Cor da linha
  111.  
  112. -- Variáveis
  113. local Players = game:GetService("Players")
  114. local LocalPlayer = Players.LocalPlayer
  115. local Camera = game.Workspace.CurrentCamera
  116. local Target = nil
  117. local AimlockEnabled = false
  118.  
  119. -- Criar interface do botão
  120. local ScreenGui = Instance.new("ScreenGui", game.CoreGui)
  121. local AimlockButton = Instance.new("TextButton", ScreenGui)
  122. AimlockButton.Size = UDim2.new(0, 100, 0, 50)
  123. AimlockButton.Position = UDim2.new(0.8, 0, 0.8, 0)
  124. AimlockButton.Text = "Aimlock: OFF"
  125. AimlockButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  126. AimlockButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  127. AimlockButton.Font = Enum.Font.SourceSansBold
  128. AimlockButton.TextSize = 20
  129. AimlockButton.BorderSizePixel = 2
  130.  
  131. -- Criar a linha
  132. local Beam = Instance.new("Beam", game.Workspace)
  133. local Attachment0 = Instance.new("Attachment", Camera)
  134. local Attachment1 = Instance.new("Attachment")
  135. Beam.Attachment0 = Attachment0
  136. Beam.Attachment1 = Attachment1
  137. Beam.Width0 = 0.1
  138. Beam.Width1 = 0.1
  139. Beam.Color = ColorSequence.new(LineColor)
  140. Beam.Enabled = false
  141.  
  142. -- Função para encontrar o alvo mais próximo
  143. local function GetClosestPlayer()
  144. local closest, distance = nil, math.huge
  145. for _, player in pairs(Players:GetPlayers()) do
  146. if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild(AimPart) then
  147. local part = player.Character[AimPart]
  148. local screenPos, onScreen = Camera:WorldToViewportPoint(part.Position)
  149. if onScreen then
  150. local magnitude = (Vector2.new(screenPos.X, screenPos.Y) - Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)).Magnitude
  151. if magnitude < distance then
  152. distance = magnitude
  153. closest = part
  154. end
  155. end
  156. end
  157. end
  158. return closest
  159. end
  160.  
  161. -- Função para ativar/desativar o Aimlock
  162. local function ToggleAimlock()
  163. AimlockEnabled = not AimlockEnabled
  164. AimlockButton.Text = "Aimlock: " .. (AimlockEnabled and "ON" or "OFF")
  165.  
  166. if AimlockEnabled then
  167. Target = GetClosestPlayer()
  168. if Target then
  169. Attachment1.Parent = Target
  170. Attachment1.Position = Vector3.new(0, 0, 0)
  171. Beam.Enabled = true
  172. end
  173. else
  174. Beam.Enabled = false
  175. Target = nil
  176. end
  177. end
  178.  
  179. -- Conectar botão de toque ao Aimlock
  180. AimlockButton.MouseButton1Click:Connect(ToggleAimlock)
  181.  
  182. -- Atualizar a mira no alvo
  183. game:GetService("RunService").RenderStepped:Connect(function()
  184. if AimlockEnabled and Target then
  185. Camera.CFrame = CFrame.new(Camera.CFrame.Position, Target.Position)
  186. end
  187.  
  188. ESPButton.MouseButton1Click:Connect(ESP_Line)
  189. AimbotButton.MouseButton1Click:Connect(Aimbot_Line)
Advertisement
Add Comment
Please, Sign In to add comment