MacXGamingChannel

ROBLOX "HITBOX" WORK ANY GAME/NOT ALL

Jun 15th, 2024
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.33 KB | None | 0 0
  1. -- trench war
  2.  
  3.  
  4.  
  5. -- Gui to Lua
  6. -- Version: 3.2
  7.  
  8. -- Instances:
  9.  
  10. local ScreenGui = Instance.new("ScreenGui")
  11. local main = Instance.new("Frame")
  12. local label = Instance.new("TextLabel")
  13. local Hitbox = Instance.new("TextButton")
  14. local VisualGUI = Instance.new("TextButton")
  15. local Fly = Instance.new("TextButton")
  16.  
  17. --Properties:
  18.  
  19. ScreenGui.Parent = game.CoreGui
  20.  
  21. main.Name = "main"
  22. main.Parent = ScreenGui
  23. main.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
  24. main.BorderColor3 = Color3.fromRGB(255, 0, 0)
  25. main.Position = UDim2.new(0.609401703, 0, 0.570754707, 0)
  26. main.Size = UDim2.new(0, 355, 0, 207)
  27. main.Active = true
  28. main.Draggable = true
  29.  
  30. label.Name = "label"
  31. label.Parent = main
  32. label.BackgroundColor3 = Color3.fromRGB(170, 85, 0)
  33. label.Size = UDim2.new(0, 355, 0, 48)
  34. label.Font = Enum.Font.SourceSans
  35. label.Text = "Trench War GUI made by Penguin"
  36. label.TextColor3 = Color3.fromRGB(0, 0, 0)
  37. label.TextScaled = true
  38. label.TextSize = 14.000
  39. label.TextWrapped = true
  40.  
  41. Hitbox.Name = "Hitbox"
  42. Hitbox.Parent = main
  43. Hitbox.BackgroundColor3 = Color3.fromRGB(170, 170, 170)
  44. Hitbox.Position = UDim2.new(0.0478873253, 0, 0.280193239, 0)
  45. Hitbox.Size = UDim2.new(0, 146, 0, 53)
  46. Hitbox.Font = Enum.Font.SourceSans
  47. Hitbox.Text = "Hitbox"
  48. Hitbox.TextColor3 = Color3.fromRGB(0, 0, 0)
  49. Hitbox.TextSize = 40.000
  50. Hitbox.MouseButton1Down:connect(function()
  51. _G.HeadSize = 10
  52.  
  53. _G.Disabled = true
  54.  
  55. game:GetService('RunService').RenderStepped:connect(function()
  56. if _G.Disabled then
  57. for i,v in next, game:GetService('Players'):GetPlayers() do
  58. if v.Name ~= game:GetService('Players').LocalPlayer.Name then
  59. pcall(function()
  60. v.Character.HumanoidRootPart.Size = Vector3.new(_G.HeadSize,_G.HeadSize,_G.HeadSize)
  61. v.Character.HumanoidRootPart.Transparency = 0.7
  62. v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really black")
  63. v.Character.HumanoidRootPart.Material = "Neon"
  64. v.Character.HumanoidRootPart.CanCollide = false
  65. end)
  66. end
  67. end
  68. end
  69. end)
  70. end)
  71.  
  72. VisualGUI.Name = "VisualGUI"
  73. VisualGUI.Parent = main
  74. VisualGUI.BackgroundColor3 = Color3.fromRGB(170, 170, 170)
  75. VisualGUI.Position = UDim2.new(0.523943663, 0, 0.280193239, 0)
  76. VisualGUI.Size = UDim2.new(0, 157, 0, 53)
  77. VisualGUI.Font = Enum.Font.SourceSans
  78. VisualGUI.Text = "VisualGUI"
  79. VisualGUI.TextColor3 = Color3.fromRGB(0, 0, 0)
  80. VisualGUI.TextSize = 40.000
  81. VisualGUI.TextWrapped = true
  82. VisualGUI.MouseButton1Down:connect(function()
  83. -- press v to use aimbot and press q to disable aimbot
  84. loadstring(game:HttpGet("https://pastebin.com/raw/uw2P2fbY", true))()
  85.  
  86. PLAYER = game.Players.LocalPlayer
  87. MOUSE = PLAYER:GetMouse()
  88. CC = game.Workspace.CurrentCamera
  89.  
  90. ENABLED = false
  91. ESP_ENABLED = false
  92.  
  93. _G.FREE_FOR_ALL = false
  94.  
  95. _G.BIND = 118
  96. _G.ESP_BIND = 49
  97. _G.CHANGE_AIM = 'q'
  98.  
  99. _G.AIM_AT = 'Head'
  100.  
  101. wait(1)
  102.  
  103. function GetNearestPlayerToMouse()
  104. local PLAYERS = {}
  105. local PLAYER_HOLD = {}
  106. local DISTANCES = {}
  107. for i, v in pairs(game.Players:GetPlayers()) do
  108. if v ~= PLAYER then
  109. table.insert(PLAYERS, v)
  110. end
  111. end
  112. for i, v in pairs(PLAYERS) do
  113. if _G.FREE_FOR_ALL == false then
  114. if v and (v.Character) ~= nil and v.TeamColor ~= PLAYER.TeamColor then
  115. local AIM = v.Character:FindFirstChild(_G.AIM_AT)
  116. if AIM ~= nil then
  117. local DISTANCE = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  118. local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  119. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  120. local DIFF = math.floor((POS - AIM.Position).magnitude)
  121. PLAYER_HOLD[v.Name .. i] = {}
  122. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  123. PLAYER_HOLD[v.Name .. i].plr = v
  124. PLAYER_HOLD[v.Name .. i].diff = DIFF
  125. table.insert(DISTANCES, DIFF)
  126. end
  127. end
  128. elseif _G.FREE_FOR_ALL == true then
  129. local AIM = v.Character:FindFirstChild(_G.AIM_AT)
  130. if AIM ~= nil then
  131. local DISTANCE = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  132. local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  133. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  134. local DIFF = math.floor((POS - AIM.Position).magnitude)
  135. PLAYER_HOLD[v.Name .. i] = {}
  136. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  137. PLAYER_HOLD[v.Name .. i].plr = v
  138. PLAYER_HOLD[v.Name .. i].diff = DIFF
  139. table.insert(DISTANCES, DIFF)
  140. end
  141. end
  142. end
  143.  
  144. if unpack(DISTANCES) == nil then
  145. return false
  146. end
  147.  
  148. local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
  149. if L_DISTANCE > 20 then
  150. return false
  151. end
  152.  
  153. for i, v in pairs(PLAYER_HOLD) do
  154. if v.diff == L_DISTANCE then
  155. return v.plr
  156. end
  157. end
  158. return false
  159. end
  160.  
  161. GUI_MAIN = Instance.new('ScreenGui', game.CoreGui)
  162. GUI_TARGET = Instance.new('TextLabel', GUI_MAIN)
  163. GUI_AIM_AT = Instance.new('TextLabel', GUI_MAIN)
  164.  
  165. GUI_MAIN.Name = 'AIMBOT'
  166.  
  167. GUI_TARGET.Size = UDim2.new(0,200,0,30)
  168. GUI_TARGET.BackgroundTransparency = 0.5
  169. GUI_TARGET.BackgroundColor = BrickColor.new('Fossil')
  170. GUI_TARGET.BorderSizePixel = 0
  171. GUI_TARGET.Position = UDim2.new(0.5,-100,0,0)
  172. GUI_TARGET.Text = 'AIMBOT : OFF'
  173. GUI_TARGET.TextColor3 = Color3.new(1,1,1)
  174. GUI_TARGET.TextStrokeTransparency = 1
  175. GUI_TARGET.TextWrapped = true
  176. GUI_TARGET.FontSize = 'Size24'
  177. GUI_TARGET.Font = 'SourceSansBold'
  178.  
  179. GUI_AIM_AT.Size = UDim2.new(0,200,0,20)
  180. GUI_AIM_AT.BackgroundTransparency = 0.5
  181. GUI_AIM_AT.BackgroundColor = BrickColor.new('Fossil')
  182. GUI_AIM_AT.BorderSizePixel = 0
  183. GUI_AIM_AT.Position = UDim2.new(0.5,-100,0,30)
  184. GUI_AIM_AT.Text = 'AIMING : HEAD'
  185. GUI_AIM_AT.TextColor3 = Color3.new(1,1,1)
  186. GUI_AIM_AT.TextStrokeTransparency = 1
  187. GUI_AIM_AT.TextWrapped = true
  188. GUI_AIM_AT.FontSize = 'Size18'
  189. GUI_AIM_AT.Font = 'SourceSansBold'
  190.  
  191. local TRACK = false
  192.  
  193. function CREATE(BASE, TEAM)
  194. local ESP_MAIN = Instance.new('BillboardGui', PLAYER.PlayerGui)
  195. local ESP_DOT = Instance.new('Frame', ESP_MAIN)
  196. local ESP_NAME = Instance.new('TextLabel', ESP_MAIN)
  197.  
  198. ESP_MAIN.Name = 'ESP'
  199. ESP_MAIN.Adornee = BASE
  200. ESP_MAIN.AlwaysOnTop = true
  201. ESP_MAIN.ExtentsOffset = Vector3.new(0, 1, 0)
  202. ESP_MAIN.Size = UDim2.new(0, 5, 0, 5)
  203.  
  204. ESP_DOT.Name = 'DOT'
  205. ESP_DOT.BackgroundColor = BrickColor.new('Bright red')
  206. ESP_DOT.BackgroundTransparency = 0.3
  207. ESP_DOT.BorderSizePixel = 0
  208. ESP_DOT.Position = UDim2.new(-0.5, 0, -0.5, 0)
  209. ESP_DOT.Size = UDim2.new(2, 0, 2, 0)
  210. ESP_DOT.Visible = true
  211. ESP_DOT.ZIndex = 10
  212.  
  213. ESP_NAME.Name = 'NAME'
  214. ESP_NAME.BackgroundColor3 = Color3.new(255, 255, 255)
  215. ESP_NAME.BackgroundTransparency = 1
  216. ESP_NAME.BorderSizePixel = 0
  217. ESP_NAME.Position = UDim2.new(0, 0, 0, -40)
  218. ESP_NAME.Size = UDim2.new(1, 0, 10, 0)
  219. ESP_NAME.Visible = true
  220. ESP_NAME.ZIndex = 10
  221. ESP_NAME.Font = 'ArialBold'
  222. ESP_NAME.FontSize = 'Size14'
  223. ESP_NAME.Text = BASE.Parent.Name:upper()
  224. ESP_NAME.TextColor = BrickColor.new('Bright red')
  225. end
  226.  
  227. function CLEAR()
  228. for _,v in pairs(PLAYER.PlayerGui:children()) do
  229. if v.Name == 'ESP' and v:IsA('BillboardGui') then
  230. v:Destroy()
  231. end
  232. end
  233. end
  234.  
  235. function FIND()
  236. CLEAR()
  237. TRACK = true
  238. spawn(function()
  239. while wait() do
  240. if TRACK then
  241. CLEAR()
  242. for i,v in pairs(game.Players:GetChildren()) do
  243. if v.Character and v.Character:FindFirstChild('Head') then
  244. if _G.FREE_FOR_ALL == false then
  245. if v.TeamColor ~= PLAYER.TeamColor then
  246. if v.Character:FindFirstChild('Head') then
  247. CREATE(v.Character.Head, true)
  248. end
  249. end
  250. else
  251. if v.Character:FindFirstChild('Head') then
  252. CREATE(v.Character.Head, true)
  253. end
  254. end
  255. end
  256. end
  257. end
  258. end
  259. wait(1)
  260. end)
  261. end
  262.  
  263. MOUSE.KeyDown:connect(function(KEY)
  264. KEY = KEY:lower():byte()
  265. if KEY == _G.BIND then
  266. ENABLED = true
  267. end
  268. end)
  269.  
  270. MOUSE.KeyUp:connect(function(KEY)
  271. KEY = KEY:lower():byte()
  272. if KEY == _G.BIND then
  273. ENABLED = false
  274. end
  275. end)
  276.  
  277. MOUSE.KeyDown:connect(function(KEY)
  278. KEY = KEY:lower():byte()
  279. if KEY == _G.ESP_BIND then
  280. if ESP_ENABLED == false then
  281. FIND()
  282. ESP_ENABLED = true
  283. print('ESP : ON')
  284. elseif ESP_ENABLED == true then
  285. wait()
  286. CLEAR()
  287. TRACK = false
  288. ESP_ENABLED = true
  289. print('ESP : OFF')
  290. end
  291. end
  292. end)
  293.  
  294. MOUSE.KeyDown:connect(function(KEY)
  295. if KEY == _G.CHANGE_AIM then
  296. if _G.AIM_AT == 'Head' then
  297. _G.AIM_AT = 'Torso'
  298. GUI_AIM_AT.Text = 'AIMING : TORSO'
  299. elseif _G.AIM_AT == 'Torso' then
  300. _G.AIM_AT = 'Head'
  301. GUI_AIM_AT.Text = 'AIMING : HEAD'
  302. end
  303. end
  304. end)
  305.  
  306. game:GetService('RunService').RenderStepped:connect(function()
  307. if ENABLED then
  308. local TARGET = GetNearestPlayerToMouse()
  309. if (TARGET ~= false) then
  310. local AIM = TARGET.Character:FindFirstChild(_G.AIM_AT)
  311. if AIM then
  312. CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AIM.CFrame.p)
  313. end
  314. GUI_TARGET.Text = 'AIMBOT : '.. TARGET.Name:sub(1, 5)
  315. else
  316. GUI_TARGET.Text = 'AIMBOT : OFF'
  317. end
  318. end
  319. end)
  320.  
  321. repeat
  322. wait()
  323. if ESP_ENABLED == true then
  324. FIND()
  325. end
  326. until ESP_ENABLED == false
  327. wait()
  328. _G.FREE_FOR_ALL = false
  329. _G.BIND = 118 -- LEFT ALT
  330. _G.ESP_BIND = 49 -- RIGHT CTRL
  331. end)
  332.  
  333. Fly.Name = "Fly"
  334. Fly.Parent = main
  335. Fly.BackgroundColor3 = Color3.fromRGB(170, 170, 170)
  336. Fly.Position = UDim2.new(0.0478873253, 0, 0.657004833, 0)
  337. Fly.Size = UDim2.new(0, 146, 0, 50)
  338. Fly.Font = Enum.Font.SourceSans
  339. Fly.Text = "Fly"
  340. Fly.TextColor3 = Color3.fromRGB(0, 0, 0)
  341. Fly.TextSize = 40.000
  342. Fly.MouseButton1Down:connect(function()
  343. --ARCEUS X FLY V2 SCRIPT BY me_ozoneYT
  344. loadstring("\108\111\97\100\115\116\114\105\110\103\40\103\97\109\101\58\72\116\116\112\71\101\116\40\40\39\104\116\116\112\115\58\47\47\103\105\115\116\46\103\105\116\104\117\98\117\115\101\114\99\111\110\116\101\110\116\46\99\111\109\47\109\101\111\122\111\110\101\89\84\47\98\102\48\51\55\100\102\102\57\102\48\97\55\48\48\49\55\51\48\52\100\100\100\54\55\102\100\99\100\51\55\48\47\114\97\119\47\101\49\52\101\55\52\102\52\50\53\98\48\54\48\100\102\53\50\51\51\52\51\99\102\51\48\98\55\56\55\48\55\52\101\98\51\99\53\100\50\47\97\114\99\101\117\115\37\50\53\50\48\120\37\50\53\50\48\102\108\121\37\50\53\50\48\50\37\50\53\50\48\111\98\102\108\117\99\97\116\111\114\39\41\44\116\114\117\101\41\41\40\41\10\10")()
  345. end)
Add Comment
Please, Sign In to add comment