Home » Scripts » HitBox Manager Script For Dead Spells

HitBox Manager Script For Dead Spells

Photo of author
Published by

This Is keyless script work only on Dead Spells roblox game.

we Have Tested Script with xeno executor and its working perfectly. also Its keyless script so you use it without issues.

below is list of features:

  • Enable Hitbox Update
  • Hitbox Increase Size

copy the script below

local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")
local Lighting = game:GetService("Lighting")

local visualHitboxesFolder = Instance.new("Folder")
visualHitboxesFolder.Name = "VisualHitboxes"
visualHitboxesFolder.Parent = Workspace

local originalProperties = {}
local visualHitboxes = {}
local hitboxIncrease = 0
local isEnabled = false
local isFullbright = false
local defaultWalkSpeed = 16
local defaultJumpPower = 50

local Window = Rayfield:CreateWindow({
    Name = "Hitbox Manager",
    LoadingTitle = "Hitbox Control",
    LoadingSubtitle = "by xAI",
    ConfigurationSaving = {
        Enabled = true,
        FolderName = "HitboxConfig",
        FileName = "HitboxSettings"
    }
})

local HitboxTab = Window:CreateTab("Hitbox Controls", nil)

local Toggle = HitboxTab:CreateToggle({
    Name = "Enable Hitbox Update",
    CurrentValue = false,
    Callback = function(Value)
        isEnabled = Value
        if not Value then
            for _, hitbox in pairs(visualHitboxes) do
                hitbox:Destroy()
            end
            table.clear(visualHitboxes)
            for model, props in pairs(originalProperties) do
                if model and model:FindFirstChild("HumanoidRootPart") then
                    model.HumanoidRootPart.Size = props.Size
                    model.HumanoidRootPart.CanCollide = props.CanCollide
                end
            end
        end
    end
})

local Slider = HitboxTab:CreateSlider({
    Name = "Hitbox Increase Size",
    Range = {0, 50},
    Increment = 1,
    CurrentValue = 20,
    Callback = function(Value)
        hitboxIncrease = Value
    end
})

local MiscTab = Window:CreateTab("Misc", nil)

local FlyButton = MiscTab:CreateButton({
    Name = "Fly",
    Callback = function()
        loadstring(game:HttpGet("https://raw.githubusercontent.com/XNEOFF/FlyGuiV3/main/FlyGuiV3.txt"))()
    end
})

local InfiniteYieldButton = MiscTab:CreateButton({
    Name = "Infinite Yield",
    Callback = function()
        loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
    end
})

local SpeedSlider = MiscTab:CreateSlider({
    Name = "Walk Speed",
    Range = {16, 100},
    Increment = 1,
    CurrentValue = defaultWalkSpeed,
    Callback = function(Value)
        local player = Players.LocalPlayer
        local character = player.Character
        if character and character:FindFirstChild("Humanoid") then
            character.Humanoid.WalkSpeed = Value
        end
    end
})

local InfiniteJumpToggle = MiscTab:CreateToggle({
    Name = "Infinite Jump",
    CurrentValue = false,
    Callback = function(Value)
        local player = Players.LocalPlayer
        if Value then
            local connection
            connection = game:GetService("UserInputService").JumpRequest:Connect(function()
                if player.Character and player.Character:FindFirstChild("Humanoid") then
                    player.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
                end
            end)
            InfiniteJumpToggle.Connection = connection
        else
            if InfiniteJumpToggle.Connection then
                InfiniteJumpToggle.Connection:Disconnect()
                InfiniteJumpToggle.Connection = nil
            end
        end
    end
})

local UnlockCamButton = MiscTab:CreateButton({
    Name = "Unlock Camera",
    Callback = function()
        local player = Players.LocalPlayer
        if player then
            player.DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Invisicam
            game:GetService("StarterPlayer").CameraMode = Enum.CameraMode.Classic
        end
    end
})

local FullbrightToggle = MiscTab:CreateToggle({
    Name = "Fullbright",
    CurrentValue = false,
    Callback = function(Value)
        isFullbright = Value
        if Value then
            Lighting.Brightness = 2
            Lighting.GlobalShadows = false
            Lighting.FogEnd = 9e9
            Lighting.ClockTime = 12
        else
            Lighting.Brightness = 1
            Lighting.GlobalShadows = true
            Lighting.FogEnd = 100000
            Lighting.ClockTime = 14
        end
    end
})

local function createVisualHitbox(humanoidRootPart)
    local visualHitbox = Instance.new("Part")
    visualHitbox.Name = "VisualHitbox"
    visualHitbox.Size = humanoidRootPart.Size
    visualHitbox.Position = humanoidRootPart.Position
    visualHitbox.Anchored = false
    visualHitbox.CanCollide = false
    visualHitbox.Transparency = 0.7
    visualHitbox.BrickColor = BrickColor.new("Really red")
    visualHitbox.Parent = visualHitboxesFolder

    local weld = Instance.new("WeldConstraint")
    weld.Part0 = humanoidRootPart
    weld.Part1 = visualHitbox
    weld.Parent = visualHitbox

    return visualHitbox
end

local function processMob(model)
    local humanoidRootPart = model:FindFirstChild("HumanoidRootPart")
    if humanoidRootPart then
        if not originalProperties[model] then
            originalProperties[model] = {
                Size = humanoidRootPart.Size,
                CanCollide = humanoidRootPart.CanCollide
            }
        end

        if isEnabled then
            humanoidRootPart.Size = originalProperties[model].Size + Vector3.new(hitboxIncrease, hitboxIncrease, hitboxIncrease)
            humanoidRootPart.CanCollide = false

            if not visualHitboxes[model] then
                visualHitboxes[model] = createVisualHitbox(humanoidRootPart)
            else
                visualHitboxes[model].Size = humanoidRootPart.Size
            end
        end
    end
end

RunService.Heartbeat:Connect(function()
    if isEnabled then
        for _, model in pairs(Workspace.Models:GetChildren()) do
            processMob(model)
        end
    end
    if isFullbright then
        Lighting.Brightness = 2
        Lighting.GlobalShadows = false
        Lighting.FogEnd = 9e9
        Lighting.ClockTime = 12
    end
end)

Latest Posts

Leave a Comment