Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Load Obsidian UI
- local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Obscure-Git/Obsidian/main/source.lua"))()
- --// Buat Window
- local Window = Library:CreateWindow("Hitbox Controller")
- -- Variabel
- local player = game.Players.LocalPlayer
- local hitboxEnabled = false
- local hitboxSize = 5
- -- Fungsi Expand Hitbox
- local function expandHitbox(char)
- if not hitboxEnabled then return end
- local hrp = char:FindFirstChild("HumanoidRootPart")
- if hrp then
- hrp.Size = Vector3.new(hitboxSize, hitboxSize, hitboxSize)
- hrp.Transparency = 0.7
- hrp.BrickColor = BrickColor.new("Bright red")
- hrp.Material = Enum.Material.Neon
- hrp.CanCollide = false
- end
- end
- -- Toggle untuk enable/disable hitbox
- Window:Toggle("Enable Hitbox", {flag = "HitboxToggle"}, function(state)
- hitboxEnabled = state
- for _,v in pairs(game.Players:GetPlayers()) do
- if v ~= player and v.Character then
- expandHitbox(v.Character)
- end
- end
- end)
- -- Slider untuk atur ukuran hitbox
- Window:Slider("Hitbox Size", {min = 2, max = 20, default = 5, precise = true, flag = "HitboxSize"}, function(val)
- hitboxSize = val
- if hitboxEnabled then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v ~= player and v.Character then
- expandHitbox(v.Character)
- end
- end
- end
- end)
- -- Auto apply ke player baru
- game.Players.PlayerAdded:Connect(function(plr)
- plr.CharacterAdded:Connect(function(char)
- task.wait(1)
- expandHitbox(char)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment