Advertisement
GGH52Lan

Universal hitbox expander not mine

Aug 21st, 2023
779
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.57 KB | None | 1 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.  
  14. getgenv().HitboxSize = 15
  15. getgenv().HitboxTransparency = 0.7
  16.  
  17. getgenv().HitboxStatus = false
  18. getgenv().TeamCheck = false
  19. getgenv().FriendCheck = false
  20.  
  21. getgenv().Walkspeed = 16
  22. getgenv().Jumppower = 50
  23.  
  24. --// UI
  25.  
  26. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Vcsk/UI-Library/main/Source/MyUILib(Unamed).lua"))();
  27. local Window = Library:Create("Hitbox Expander")
  28.  
  29. local ToggleGui = Instance.new("ScreenGui")
  30. local Toggle = Instance.new("TextButton")
  31.  
  32. ToggleGui.Name = "ToggleGui_HE"
  33. ToggleGui.Parent = game.CoreGui
  34.  
  35. Toggle.Name = "Toggle"
  36. Toggle.Parent = ToggleGui
  37. Toggle.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  38. Toggle.BackgroundTransparency = 0.660
  39. Toggle.Position = UDim2.new(0, 0, 0.454706937, 0)
  40. Toggle.Size = UDim2.new(0.0650164187, 0, 0.0888099447, 0)
  41. Toggle.Font = Enum.Font.SourceSans
  42. Toggle.Text = "Toggle"
  43. Toggle.TextScaled = true
  44. Toggle.TextColor3 = Color3.fromRGB(40, 40, 40)
  45. Toggle.TextSize = 24.000
  46. Toggle.TextXAlignment = Enum.TextXAlignment.Left
  47. Toggle.Active = true
  48. Toggle.Draggable = true
  49. Toggle.MouseButton1Click:connect(function()
  50.     Library:ToggleUI()
  51. end)
  52.  
  53. local HomeTab = Window:Tab("Home","rbxassetid://10888331510")
  54. local PlayerTab = Window:Tab("Players","rbxassetid://12296135476")
  55. local VisualTab = Window:Tab("Visuals","rbxassetid://12308581351")
  56.  
  57. HomeTab:Section("Settings")
  58.  
  59. HomeTab:Slider("Hitbox Size (Slider)", 0,300, function(value)
  60.     getgenv().HitboxSize = value
  61. end)
  62.  
  63. HomeTab:TextBox("Hitbox Size (TextBox)", function(value)
  64.     getgenv().HitboxSize = value
  65. end)
  66.  
  67. HomeTab:TextBox("Hitbox Transparency", function(number)
  68.     getgenv().HitboxTransparency = number
  69. end)
  70.  
  71. HomeTab:Section("Main")
  72.  
  73. HomeTab:Toggle("Status: ", function(state)
  74.     getgenv().HitboxStatus = state
  75.     game:GetService('RunService').RenderStepped:connect(function()
  76.         if HitboxStatus == true and TeamCheck == false and FriendCheck == false then
  77.             for i,v in next, game:GetService('Players'):GetPlayers() do
  78.                 if v.Name ~= game:GetService('Players').LocalPlayer.Name then
  79.                     pcall(function()
  80.                         v.Character.HumanoidRootPart.Size = Vector3.new(HitboxSize, HitboxSize, HitboxSize)
  81.                         v.Character.HumanoidRootPart.Transparency = HitboxTransparency
  82.                         v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really black")
  83.                         v.Character.HumanoidRootPart.Material = "Neon"
  84.                         v.Character.HumanoidRootPart.CanCollide = false
  85.                     end)
  86.                 end
  87.             end
  88.         elseif HitboxStatus == true and TeamCheck == false and FriendCheck == true then
  89.             for i,v in next, game:GetService('Players'):GetPlayers() do
  90.                 for i2,v2 in pairs(game:GetService('Players'):GetChildren()) do
  91.                     if v.Name ~= game:GetService('Players').LocalPlayer.Name and not v2:IsFriendsWith(game:GetService('Players').LocalPlayer.UserId) then
  92.                         pcall(function()
  93.                             v.Character.HumanoidRootPart.Size = Vector3.new(HitboxSize, HitboxSize, HitboxSize)
  94.                             v.Character.HumanoidRootPart.Transparency = HitboxTransparency
  95.                             v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really black")
  96.                             v.Character.HumanoidRootPart.Material = "Neon"
  97.                             v.Character.HumanoidRootPart.CanCollide = false
  98.                         end)
  99.                     end
  100.                 end
  101.             end
  102.         elseif HitboxStatus == true and TeamCheck == true and FriendCheck == false then
  103.             for i,v in next, game:GetService('Players'):GetPlayers() do
  104.                 if game:GetService('Players').LocalPlayer.Team ~= v.Team then
  105.                     pcall(function()
  106.                         v.Character.HumanoidRootPart.Size = Vector3.new(HitboxSize, HitboxSize, HitboxSize)
  107.                         v.Character.HumanoidRootPart.Transparency = HitboxTransparency
  108.                         v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really black")
  109.                         v.Character.HumanoidRootPart.Material = "Neon"
  110.                         v.Character.HumanoidRootPart.CanCollide = false
  111.                     end)
  112.                 end
  113.             end
  114.         elseif HitboxStatus == true and TeamCheck == true and FriendCheck == true then
  115.             for i,v in next, game:GetService('Players'):GetPlayers() do
  116.                 if game:GetService('Players').LocalPlayer.Team ~= v.Team and not game:GetService('Players'):IsFriendsWith(UserId) then
  117.                     pcall(function()
  118.                         v.Character.HumanoidRootPart.Size = Vector3.new(HitboxSize, HitboxSize, HitboxSize)
  119.                         v.Character.HumanoidRootPart.Transparency = HitboxTransparency
  120.                         v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really black")
  121.                         v.Character.HumanoidRootPart.Material = "Neon"
  122.                         v.Character.HumanoidRootPart.CanCollide = false
  123.                     end)
  124.                 end
  125.             end
  126.         else
  127.             for i,v in next, game:GetService('Players'):GetPlayers() do
  128.                 if v.Name ~= game:GetService('Players').LocalPlayer.Name then
  129.                     pcall(function()
  130.                         v.Character.HumanoidRootPart.Size = Vector3.new(2,2,1)
  131.                         v.Character.HumanoidRootPart.Transparency = 1
  132.                         v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Medium stone grey")
  133.                         v.Character.HumanoidRootPart.Material = "Plastic"
  134.                         v.Character.HumanoidRootPart.CanCollide = false
  135.                     end)
  136.                 end
  137.             end
  138.         end
  139.     end)
  140. end)
  141.  
  142. HomeTab:Toggle("Team Check", function(state)
  143.     getgenv().TeamCheck = state
  144. end)
  145.  
  146. HomeTab:Keybind("Toggle UI", Enum.KeyCode.F, function()
  147.     Library:ToggleUI()
  148. end)
  149.  
  150. PlayerTab:Slider("WalkSpeed", 16,500, function(value)
  151.     getgenv().Walkspeed = value
  152.     pcall(function()
  153.         game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = value
  154.     end)
  155. end)
  156.  
  157. PlayerTab:Slider("JumpPower", 50,1000, function(value)
  158.     getgenv().Jumppower = value
  159.     pcall(function()
  160.         game:GetService("Players").LocalPlayer.Character.Humanoid.JumpPower = value
  161.     end)
  162. end)
  163.  
  164. PlayerTab:Slider("Fov", 70,120, function(v)
  165.      game.Workspace.CurrentCamera.FieldOfView = v
  166. end)
  167.  
  168. PlayerTab:Toggle("Loop WalkSpeed/JumpPower", function(state)
  169.     getgenv().loopWJ = state
  170.     game:GetService("RunService").Heartbeat:Connect(function()
  171.         if loopWJ == true then
  172.             pcall(function()
  173.                 game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = Walkspeed
  174.                 game:GetService("Players").LocalPlayer.Character.Humanoid.JumpPower = Jumppower
  175.             end)
  176.         end
  177.     end)
  178. end)
  179.  
  180. PlayerTab:Toggle("Loop WalkSpeed", function(state)
  181.     getgenv().loopW = state
  182.     game:GetService("RunService").Heartbeat:Connect(function()
  183.         if loopW == true then
  184.             pcall(function()
  185.                 game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = Walkspeed
  186.             end)
  187.         end
  188.     end)
  189. end)
  190.  
  191. PlayerTab:Toggle("Loop JumpPower", function(state)
  192.     getgenv().loopJ = state
  193.     game:GetService("RunService").Heartbeat:Connect(function()
  194.         if loopJ == true then
  195.             pcall(function()
  196.                 game:GetService("Players").LocalPlayer.Character.Humanoid.JumpPower = Jumppower
  197.             end)
  198.         end
  199.     end)
  200. end)
  201.  
  202. PlayerTab:Toggle("Noclip", function(s)
  203.     getgenv().Noclip = s
  204.     game:GetService("RunService").Heartbeat:Connect(function()
  205.         if Noclip == true then
  206.             game:GetService("RunService").Stepped:wait()
  207.             game.Players.LocalPlayer.Character.Head.CanCollide = false
  208.             game.Players.LocalPlayer.Character.Torso.CanCollide = false
  209.         end
  210.     end)
  211. end)
  212.  
  213. PlayerTab:Toggle("Infinite Jump", function(s)
  214. getgenv().InfJ = s
  215.     game:GetService("UserInputService").JumpRequest:connect(function()
  216.         if InfJ == true then
  217.             game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  218.         end
  219.     end)
  220. end)
  221.  
  222. PlayerTab:Button("Rejoin", function()
  223.     game:GetService("TeleportService"):Teleport(game.PlaceId, game:GetService("Players").LocalPlayer)
  224. end)
  225.  
  226. VisualTab:Toggle("Character Highlight", function(state)
  227. getgenv().enabled = state --Toggle on/off
  228. getgenv().filluseteamcolor = true --Toggle fill color using player team color on/off
  229. getgenv().outlineuseteamcolor = true --Toggle outline color using player team color on/off
  230. getgenv().fillcolor = Color3.new(0, 0, 0) --Change fill color, no need to edit if using team color
  231. getgenv().outlinecolor = Color3.new(1, 1, 1) --Change outline color, no need to edit if using team color
  232. getgenv().filltrans = 0.5 --Change fill transparency
  233. getgenv().outlinetrans = 0.5 --Change outline transparency
  234.  
  235. loadstring(game:HttpGet("https://raw.githubusercontent.com/Vcsk/RobloxScripts/main/Highlight-ESP.lua"))()
  236. end)
  237.  
  238. VisualTab:Toggle("(Everyone) ESP Name", function(state)
  239.     getgenv().ESPName = state
  240. end)
  241.  
  242. VisualTab:Toggle("(Enemy Only) ESP Name (soon!)", function(state)
  243.     getgenv().TeamCheckkk = state
  244. end)
  245.  
  246. local c = workspace.CurrentCamera
  247. local ps = game:GetService("Players")
  248. local lp = ps.LocalPlayer
  249. local rs = game:GetService("RunService")
  250.  
  251. local function esp(p,cr)
  252.     local h = cr:WaitForChild("Humanoid")
  253.     local hrp = cr:WaitForChild("Head")
  254.  
  255.     local text = Drawing.new("Text")
  256.     text.Visible = false
  257.     text.Center = true
  258.     text.Outline = false
  259.     text.Font = 3
  260.     text.Size = 16.16
  261.     text.Color = Color3.new(170,170,170)
  262.  
  263.     local conection
  264.     local conection2
  265.     local conection3
  266.  
  267.     local function dc()
  268.         text.Visible = false
  269.         text:Remove()
  270.         if conection then
  271.             conection:Disconnect()
  272.             conection = nil
  273.         end
  274.         if conection2 then
  275.             conection2:Disconnect()
  276.             conection2 = nil
  277.         end
  278.         if conection3 then
  279.             conection3:Disconnect()
  280.             conection3 = nil
  281.         end
  282.     end
  283.  
  284.     conection2 = cr.AncestryChanged:Connect(function(_,parent)
  285.         if not parent then
  286.             dc()
  287.         end
  288.     end)
  289.  
  290.     conection3 = h.HealthChanged:Connect(function(v)
  291.         if (v<=0) or (h:GetState() == Enum.HumanoidStateType.Dead) then
  292.             dc()
  293.         end
  294.     end)
  295.  
  296.     conection = rs.RenderStepped:Connect(function()
  297.         local hrp_pos,hrp_onscreen = c:WorldToViewportPoint(hrp.Position)
  298.         if hrp_onscreen and ESPName == true then
  299.             text.Position = Vector2.new(hrp_pos.X, hrp_pos.Y - 27)
  300.             text.Text = p.DisplayName.." (@"..p.Name..")"
  301.             text.Visible = true
  302.         else
  303.             text.Visible = false
  304.         end
  305.     end)
  306. end
  307.  
  308. local function p_added(p)
  309.     if p.Character then
  310.         esp(p,p.Character)
  311.     end
  312.     p.CharacterAdded:Connect(function(cr)
  313.         esp(p,cr)
  314.     end)
  315. end
  316.  
  317. for i,p in next, ps:GetPlayers() do
  318.     if p ~= lp then
  319.         p_added(p)
  320.     end
  321. end
  322.  
  323. ps.PlayerAdded:Connect(p_added)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement