Bestmmm22

Untitled

Aug 27th, 2025
66
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.61 KB | None | 0 0
  1. -- Shadow .lol Hitbox
  2. local Players = game:GetService("Players")
  3. local LocalPlayer = Players.LocalPlayer
  4. -- UI Setup
  5. local ScreenGui = Instance.new("ScreenGui")
  6. ScreenGui.Parent = game.CoreGui
  7. ScreenGui.Name = "ShadowLolHitbox"
  8. -- Frame utama
  9. local Frame = Instance.new("Frame")
  10. Frame.Size = UDim2.new(0, 200, 0, 120)
  11. Frame.Position = UDim2.new(0.35, 0, 0.3, 0)
  12. Frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  13. Frame.Active = true
  14. Frame.Draggable = true
  15. Frame.Parent = ScreenGui
  16. local Title = Instance.new("TextLabel")
  17. Title.Size = UDim2.new(1, 0, 0, 30)
  18. Title.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  19. Title.Text = "Shadow .lol Hitbox"
  20. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  21. Title.Parent = Frame
  22. local Toggle = Instance.new("TextButton")
  23. Toggle.Size = UDim2.new(1, 0, 0, 40)
  24. Toggle.Position = UDim2.new(0, 0, 0, 40)
  25. Toggle.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  26. Toggle.Text = "Enable Hitbox"
  27. Toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  28. Toggle.Parent = Frame
  29. -- Tombol Hide
  30. local HideBtn = Instance.new("TextButton")
  31. HideBtn.Size = UDim2.new(1, 0, 0, 30)
  32. HideBtn.Position = UDim2.new(0, 0, 0, 85)
  33. HideBtn.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
  34. HideBtn.Text = "Hide Menu"
  35. HideBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  36. HideBtn.Parent = Frame
  37. -- Tombol untuk munculin kembali
  38. local ShowBtn = Instance.new("TextButton")
  39. ShowBtn.Size = UDim2.new(0, 40, 0, 40)
  40. ShowBtn.Position = UDim2.new(0, 10, 0, 10)
  41. ShowBtn.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  42. ShowBtn.Text = "☰"
  43. ShowBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  44. ShowBtn.Visible = false
  45. ShowBtn.Parent = ScreenGui
  46. -- Vars
  47. local hitboxEnabled = false
  48. local hitboxSize = Vector3.new(10, 10, 10)
  49. -- Function to apply hitbox to one character
  50. local function setHitbox(char)
  51.     local hrp = char:FindFirstChild("HumanoidRootPart")
  52.     if hrp then
  53.         hrp.Size = hitboxSize
  54.         hrp.Transparency = 0.7
  55.         hrp.Color = Color3.fromRGB(255, 255, 255) -- Putih
  56.         hrp.Material = Enum.Material.Neon
  57.         hrp.CanCollide = false
  58.     end
  59. end
  60. -- Function to restore normal HRP
  61. local function resetHitbox(char)
  62.     local hrp = char:FindFirstChild("HumanoidRootPart")
  63.     if hrp then
  64.         hrp.Size = Vector3.new(2, 2, 1)
  65.         hrp.Transparency = 0
  66.         hrp.Color = Color3.fromRGB(163, 162, 165)
  67.         hrp.Material = Enum.Material.Plastic
  68.         hrp.CanCollide = true
  69.     end
  70. end
  71. -- Loop apply hitbox ke semua player lain
  72. local function applyLoop()
  73.     while hitboxEnabled do
  74.         for _, p in ipairs(Players:GetPlayers()) do
  75.             if p ~= LocalPlayer and p.Character then
  76.                 setHitbox(p.Character)
  77.             end
  78.         end
  79.         task.wait(1)
  80.     end
  81. end
  82. -- Toggle button
  83. Toggle.MouseButton1Click:Connect(function()
  84.     hitboxEnabled = not hitboxEnabled
  85.     if hitboxEnabled then
  86.         Toggle.Text = "Disable Hitbox"
  87.         task.spawn(applyLoop)
  88.     else
  89.         Toggle.Text = "Enable Hitbox"
  90.         for _, p in ipairs(Players:GetPlayers()) do
  91.             if p ~= LocalPlayer and p.Character then
  92.                 resetHitbox(p.Character)
  93.             end
  94.         end
  95.     end
  96. end)
  97. -- Hide button
  98. HideBtn.MouseButton1Click:Connect(function()
  99.     Frame.Visible = false
  100.     ShowBtn.Visible = true
  101. end)
  102. -- Show button
  103. ShowBtn.MouseButton1Click:Connect(function()
  104.     Frame.Visible = true
  105.     ShowBtn.Visible = false
  106. end)
  107. -- Kalau ada player baru join
  108. Players.PlayerAdded:Connect(function(p)
  109.     p.CharacterAdded:Connect(function(char)
  110.         if hitboxEnabled then
  111.             task.wait(1)
  112.             setHitbox(char)
  113.         end
  114.     end)
  115. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment