Nevzyn

Hitbox expander

Aug 22nd, 2025
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.97 KB | None | 0 0
  1. --[[
  2.  
  3. Open source
  4. Made by !vcsk0#1516
  5. Credits to me
  6.  
  7. Credits to the Owner Who Made The ESP Script
  8.  
  9. --]]
  10.  
  11. local CoreGui = game:GetService("StarterGui")
  12. local Players = game:GetService("Players")
  13. local RunService = game:GetService("RunService")
  14. local LocalPlayer = Players.LocalPlayer
  15.  
  16. local function isNumber(str)
  17. if tonumber(str) ~= nil or str == 'inf' then
  18. return true
  19. end
  20. end
  21.  
  22. --// Environment Variables
  23. getgenv().HitboxSize = 15
  24. getgenv().HitboxTransparency = 0.9
  25.  
  26. getgenv().HitboxStatus = false
  27. getgenv().TeamCheck = false
  28.  
  29. --// Defer loading these until character is available
  30. pcall(function()
  31. getgenv().Walkspeed = LocalPlayer.Character.Humanoid.WalkSpeed
  32. getgenv().Jumppower = LocalPlayer.Character.Humanoid.JumpPower
  33. end)
  34.  
  35.  
  36. getgenv().TPSpeed = 3
  37. getgenv().TPWalk = false
  38.  
  39. --// UI
  40.  
  41. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Vcsk/UI-Library/main/Source/MyUILib(Unamed).lua"))();
  42. local Window = Library:Create("Hitbox Expander")
  43.  
  44. local ToggleGui = Instance.new("ScreenGui")
  45. local Toggle = Instance.new("TextButton")
  46.  
  47. ToggleGui.Name = "ToggleGui_HE"
  48. ToggleGui.Parent = game.CoreGui
  49.  
  50. Toggle.Name = "Toggle"
  51. Toggle.Parent = ToggleGui
  52. Toggle.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  53. Toggle.BackgroundTransparency = 0.660
  54. Toggle.Position = UDim2.new(0, 0, 0.454706937, 0)
  55. Toggle.Size = UDim2.new(0.0650164187, 0, 0.0888099447, 0)
  56. Toggle.Font = Enum.Font.SourceSans
  57. Toggle.Text = "Toggle"
  58. Toggle.TextScaled = true
  59. Toggle.TextColor3 = Color3.fromRGB(40, 40, 40)
  60. Toggle.TextSize = 24.000
  61. Toggle.TextXAlignment = Enum.TextXAlignment.Left
  62. Toggle.Active = true
  63. Toggle.Draggable = true
  64. Toggle.MouseButton1Click:connect(function()
  65. Library:ToggleUI()
  66. end)
  67.  
  68. local HomeTab = Window:Tab("Home","rbxassetid://10888331510")
  69. local PlayerTab = Window:Tab("Players","rbxassetid://12296135476")
  70. local VisualTab = Window:Tab("Visuals","rbxassetid://12308581351")
  71.  
  72. HomeTab:InfoLabel("only works on some games!")
  73.  
  74. HomeTab:Section("Settings")
  75.  
  76. HomeTab:TextBox("Hitbox Size", function(value)
  77. if isNumber(value) then
  78. getgenv().HitboxSize = tonumber(value)
  79. end
  80. end)
  81.  
  82. HomeTab:TextBox("Hitbox Transparency", function(number)
  83. if isNumber(number) then
  84. getgenv().HitboxTransparency = tonumber(number)
  85. end
  86. end)
  87.  
  88. HomeTab:Section("Main")
  89.  
  90. --// A função do Toggle agora apenas muda o estado. O loop principal cuida do resto.
  91. HomeTab:Toggle("Status: ", function(state)
  92. getgenv().HitboxStatus = state
  93. end)
  94.  
  95. HomeTab:Toggle("Team Check", function(state)
  96. getgenv().TeamCheck = state
  97. end)
  98.  
  99. --[[
  100. ========================================================================================
  101. // //
  102. // *** INÍCIO DA CORREÇÃO PRINCIPAL *** //
  103. // //
  104. ========================================================================================
  105.  
  106. Este loop único e centralizado gerencia a aplicação e remoção da hitbox para todos os jogadores.
  107. Ele roda a cada frame, garantindo que novos jogadores ou jogadores que renascem
  108. sejam afetados imediatamente, sem criar múltiplos loops e causar lag.
  109. ]]
  110. RunService.RenderStepped:Connect(function()
  111. for _, player in ipairs(Players:GetPlayers()) do
  112. if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  113. local hrp = player.Character.HumanoidRootPart
  114.  
  115. -- Decide se a hitbox deve ser aplicada neste jogador
  116. local shouldApplyHitbox = false
  117. if getgenv().HitboxStatus then
  118. if getgenv().TeamCheck then
  119. -- Se o TeamCheck está ativo, aplica apenas se o time for diferente
  120. if LocalPlayer.Team ~= player.Team then
  121. shouldApplyHitbox = true
  122. end
  123. else
  124. -- Se o TeamCheck está inativo, aplica para todos
  125. shouldApplyHitbox = true
  126. end
  127. end
  128.  
  129. -- Aplica ou reseta a hitbox com base na decisão acima
  130. if shouldApplyHitbox then
  131. -- Aplica a hitbox expandida
  132. pcall(function()
  133. hrp.Size = Vector3.new(getgenv().HitboxSize, getgenv().HitboxSize, getgenv().HitboxSize)
  134. hrp.Transparency = getgenv().HitboxTransparency
  135. hrp.BrickColor = BrickColor.new("Really black")
  136. hrp.Material = Enum.Material.Neon
  137. hrp.CanCollide = false
  138. end)
  139. else
  140. -- Reseta a hitbox para o padrão
  141. pcall(function()
  142. hrp.Size = Vector3.new(2, 2, 1)
  143. hrp.Transparency = 1
  144. hrp.BrickColor = BrickColor.new("Medium stone grey")
  145. hrp.Material = Enum.Material.Plastic
  146. hrp.CanCollide = false -- Mantendo como no script original
  147. end)
  148. end
  149. end
  150. end
  151. end)
  152. --[[
  153. ========================================================================================
  154. // //
  155. // *** FIM DA CORREÇÃO PRINCIPAL *** //
  156. // //
  157. ========================================================================================
  158. ]]
  159.  
  160. HomeTab:Keybind("Toggle UI", Enum.KeyCode.F, function()
  161. Library:ToggleUI()
  162. end)
  163.  
  164. PlayerTab:TextBox("WalkSpeed", function(value)
  165. if isNumber(value) then
  166. getgenv().Walkspeed = tonumber(value)
  167. pcall(function()
  168. LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(value)
  169. end)
  170. end
  171. end)
  172.  
  173. PlayerTab:Toggle("Loop WalkSpeed", function(state)
  174. getgenv().loopW = state
  175. RunService.Heartbeat:Connect(function()
  176. if getgenv().loopW == true then
  177. pcall(function()
  178. LocalPlayer.Character.Humanoid.WalkSpeed = getgenv().Walkspeed
  179. end)
  180. end
  181. end)
  182. end)
  183.  
  184. PlayerTab:TextBox("JumpPower", function(value)
  185. if isNumber(value) then
  186. getgenv().Jumppower = tonumber(value)
  187. pcall(function()
  188. LocalPlayer.Character.Humanoid.JumpPower = tonumber(value)
  189. end)
  190. end
  191. end)
  192.  
  193. PlayerTab:Toggle("Loop JumpPower", function(state)
  194. getgenv().loopJ = state
  195. RunService.Heartbeat:Connect(function()
  196. if getgenv().loopJ == true then
  197. pcall(function()
  198. LocalPlayer.Character.Humanoid.JumpPower = getgenv().Jumppower
  199. end)
  200. end
  201. end)
  202. end)
  203.  
  204. PlayerTab:TextBox("TP Speed", function(value)
  205. if isNumber(value) then
  206. getgenv().TPSpeed = tonumber(value)
  207. end
  208. end)
  209.  
  210. PlayerTab:Toggle("TP Walk", function(s)
  211. getgenv().TPWalk = s
  212. if not s then return end -- Para o loop se o toggle for desativado
  213.  
  214. task.spawn(function()
  215. while getgenv().TPWalk and task.wait() do
  216. pcall(function()
  217. local chr = LocalPlayer.Character
  218. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  219. if hum and hum.MoveDirection.Magnitude > 0 then
  220. local speed = getgenv().TPSpeed or 3
  221. chr:TranslateBy(hum.MoveDirection * speed)
  222. end
  223. end)
  224. end
  225. end)
  226. end)
  227.  
  228. PlayerTab:Slider("Fov", game.Workspace.CurrentCamera.FieldOfView,120, function(v)
  229. game.Workspace.CurrentCamera.FieldOfView = v
  230. end)
  231.  
  232. PlayerTab:Toggle("Noclip", function(s)
  233. getgenv().Noclip = s
  234. game:GetService("RunService").Heartbeat:Connect(function()
  235. if getgenv().Noclip == true then
  236. pcall(function()
  237. for _, part in ipairs(LocalPlayer.Character:GetDescendants()) do
  238. if part:IsA("BasePart") then
  239. part.CanCollide = false
  240. end
  241. end
  242. end)
  243. end
  244. end)
  245. end)
  246.  
  247. PlayerTab:Toggle("Infinite Jump", function(s)
  248. getgenv().InfJ = s
  249. game:GetService("UserInputService").JumpRequest:connect(function()
  250. if getgenv().InfJ == true then
  251. pcall(function()
  252. LocalPlayer.Character:FindFirstChildOfClass('Humanoid'):ChangeState("Jumping")
  253. end)
  254. end
  255. end)
  256. end)
  257.  
  258. PlayerTab:Button("Rejoin", function()
  259. game:GetService("TeleportService"):Teleport(game.PlaceId, LocalPlayer)
  260. end)
  261.  
  262. VisualTab:InfoLabel("Wait 3-10 seconds")
  263.  
  264. VisualTab:Toggle("Character Highlight", function(state)
  265. getgenv().enabled = state --Toggle on/off
  266. getgenv().filluseteamcolor = true --Toggle fill color using player team color on/off
  267. getgenv().outlineuseteamcolor = true --Toggle outline color using player team color on/off
  268. getgenv().fillcolor = Color3.new(0, 0, 0) --Change fill color, no need to edit if using team color
  269. getgenv().outlinecolor = Color3.new(1, 1, 1) --Change outline color, no need to edit if using team color
  270. getgenv().filltrans = 0.5 --Change fill transparency
  271. getgenv().outlinetrans = 0.5 --Change outline transparency
  272.  
  273. loadstring(game:HttpGet("https://raw.githubusercontent.com/Vcsk/RobloxScripts/main/Highlight-ESP.lua"))()
  274. end)
  275.  
  276. if game.PlaceId == 3082002798 then
  277. local GamesTab = Window:Tab("Games","rbxassetid://15426471035")
  278. GamesTab:InfoLabel("Game: "..game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name)
  279. GamesTab:Button("No Cooldown", function()
  280. for i, v in pairs(game:GetService('ReplicatedStorage')['Shared_Modules'].Tools:GetDescendants()) do
  281. if v:IsA('ModuleScript') then
  282. local Module = require(v)
  283. Module.DEBOUNCE = 0
  284. end
  285. end
  286. end)
  287. end
Advertisement
Add Comment
Please, Sign In to add comment