Bestmmm22

Untitled

Aug 27th, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.82 KB | None | 0 0
  1. -- Shadow .lol Hitbox
  2. local Players = game:GetService("Players")
  3. local LocalPlayer = Players.LocalPlayer
  4.  
  5. -- UI Setup
  6. local ScreenGui = Instance.new("ScreenGui")
  7. ScreenGui.Parent = game.CoreGui
  8. ScreenGui.Name = "ShadowLolHitbox"
  9.  
  10. local Frame = Instance.new("Frame")
  11. Frame.Size = UDim2.new(0, 200, 0, 120)
  12. Frame.Position = UDim2.new(0.35, 0, 0.3, 0)
  13. Frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  14. Frame.Active = true
  15. Frame.Draggable = true
  16. Frame.Parent = ScreenGui
  17.  
  18. local Title = Instance.new("TextLabel")
  19. Title.Size = UDim2.new(1, 0, 0, 30)
  20. Title.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  21. Title.Text = "Shadow .lol Hitbox"
  22. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  23. Title.Parent = Frame
  24.  
  25. local Toggle = Instance.new("TextButton")
  26. Toggle.Size = UDim2.new(1, 0, 0, 40)
  27. Toggle.Position = UDim2.new(0, 0, 0, 40)
  28. Toggle.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  29. Toggle.Text = "Enable Hitbox"
  30. Toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  31. Toggle.Parent = Frame
  32.  
  33. -- Vars
  34. local hitboxEnabled = false
  35. local hitboxSize = Vector3.new(10, 10, 10)
  36.  
  37. -- Function to apply hitbox
  38. local function setHitbox(char)
  39.     local hrp = char:FindFirstChild("HumanoidRootPart")
  40.     if hrp then
  41.         hrp.Size = hitboxSize
  42.         hrp.Transparency = 0.7
  43.         hrp.Color = Color3.fromRGB(255, 0, 0)
  44.         hrp.Material = Enum.Material.Neon
  45.         hrp.CanCollide = false
  46.     end
  47. end
  48.  
  49. -- Apply to specific player
  50. local function applyHitbox(player)
  51.     if player ~= LocalPlayer then
  52.         -- Saat respawn
  53.         player.CharacterAdded:Connect(function(char)
  54.             task.wait(1)
  55.             if hitboxEnabled then
  56.                 setHitbox(char)
  57.             end
  58.         end)
  59.         -- Kalau player udah ada char sekarang
  60.         if player.Character and hitboxEnabled then
  61.             setHitbox(player.Character)
  62.         end
  63.     end
  64. end
  65.  
  66. -- Toggle button
  67. Toggle.MouseButton1Click:Connect(function()
  68.     hitboxEnabled = not hitboxEnabled
  69.     if hitboxEnabled then
  70.         Toggle.Text = "Disable Hitbox"
  71.         for _, p in ipairs(Players:GetPlayers()) do
  72.             applyHitbox(p)
  73.         end
  74.     else
  75.         Toggle.Text = "Enable Hitbox"
  76.         for _, p in ipairs(Players:GetPlayers()) do
  77.             if p ~= LocalPlayer and p.Character then
  78.                 local hrp = p.Character:FindFirstChild("HumanoidRootPart")
  79.                 if hrp then
  80.                     hrp.Size = Vector3.new(2, 2, 1) -- default ukuran Roblox
  81.                     hrp.Transparency = 0
  82.                     hrp.Color = Color3.fromRGB(163, 162, 165)
  83.                     hrp.Material = Enum.Material.Plastic
  84.                     hrp.CanCollide = true
  85.                 end
  86.             end
  87.         end
  88.     end
  89. end)
  90.  
  91. -- Auto apply for every new player
  92. Players.PlayerAdded:Connect(function(player)
  93.     applyHitbox(player)
  94. end)
Advertisement
Add Comment
Please, Sign In to add comment