Bestmmm22

Untitled

Aug 27th, 2025
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.60 KB | None | 0 0
  1. --// Load Obsidian UI
  2. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Obscure-Git/Obsidian/main/source.lua"))()
  3.  
  4. --// Buat Window
  5. local Window = Library:CreateWindow("Hitbox Controller")
  6.  
  7. -- Variabel
  8. local player = game.Players.LocalPlayer
  9. local hitboxEnabled = false
  10. local hitboxSize = 5
  11.  
  12. -- Fungsi Expand Hitbox
  13. local function expandHitbox(char)
  14.     if not hitboxEnabled then return end
  15.     local hrp = char:FindFirstChild("HumanoidRootPart")
  16.     if hrp then
  17.         hrp.Size = Vector3.new(hitboxSize, hitboxSize, hitboxSize)
  18.         hrp.Transparency = 0.7
  19.         hrp.BrickColor = BrickColor.new("Bright red")
  20.         hrp.Material = Enum.Material.Neon
  21.         hrp.CanCollide = false
  22.     end
  23. end
  24.  
  25. -- Toggle untuk enable/disable hitbox
  26. Window:Toggle("Enable Hitbox", {flag = "HitboxToggle"}, function(state)
  27.     hitboxEnabled = state
  28.     for _,v in pairs(game.Players:GetPlayers()) do
  29.         if v ~= player and v.Character then
  30.             expandHitbox(v.Character)
  31.         end
  32.     end
  33. end)
  34.  
  35. -- Slider untuk atur ukuran hitbox
  36. Window:Slider("Hitbox Size", {min = 2, max = 20, default = 5, precise = true, flag = "HitboxSize"}, function(val)
  37.     hitboxSize = val
  38.     if hitboxEnabled then
  39.         for _,v in pairs(game.Players:GetPlayers()) do
  40.             if v ~= player and v.Character then
  41.                 expandHitbox(v.Character)
  42.             end
  43.         end
  44.     end
  45. end)
  46.  
  47. -- Auto apply ke player baru
  48. game.Players.PlayerAdded:Connect(function(plr)
  49.     plr.CharacterAdded:Connect(function(char)
  50.         task.wait(1)
  51.         expandHitbox(char)
  52.     end)
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment