Script hitbox
Key RequiredUniversal

Script hitbox

Universal ScriptDOLLYNHODOLLYNHO 33.7K views 626 executesUpdated Nov 22, 2023
Unrated
00
Lua Script•43 lines (1617 chars)
local HeadSize = 30
local IsScriptEnabled = true
local IsTeamCheckEnabled = false

local function ModifyPlayerPart(part)
    part.Size = Vector3.new(HeadSize, HeadSize, HeadSize)
    part.Transparency = 0.7
    part.BrickColor = BrickColor.new("Really blue")
    part.Material = Enum.Material.Neon
    part.CanCollide = false
end

game:GetService('RunService').RenderStepped:Connect(function()
    if IsScriptEnabled then
        local localPlayer = game:GetService('Players').LocalPlayer
        if not localPlayer then return end
        
        local localPlayerTeam = localPlayer.Team
        
        for _, player in ipairs(game:GetService('Players'):GetPlayers()) do
            if player ~= localPlayer and player.Character then
                if IsTeamCheckEnabled then
                    local playerTeam = player.Team
                    if playerTeam ~= localPlayerTeam then
                        local humanoidRootPart = player.Character:FindFirstChild("HumanoidRootPart")
                        if humanoidRootPart then
                            pcall(function()
                                ModifyPlayerPart(humanoidRootPart)
                            end)
                        end
                    end
                else
                    local humanoidRootPart = player.Character:FindFirstChild("HumanoidRootPart")
                    if humanoidRootPart then
                        pcall(function()
                            ModifyPlayerPart(humanoidRootPart)
                        end)
                    end
                end
            end
        end
    end
end)

Features & Information

Credit mine

Community Comments (5)

DOLLYNHODOLLYNHONov 22, 2023(edited)

Can I make one for my head?

vxstyvxstyNov 23, 2023(edited)

@DOLLYNHO mf who are you talking to

DOLLYNHODOLLYNHONov 23, 2023(edited)

I am Brazilian

DOLLYNHODOLLYNHONov 23, 2023(edited)

I'm the dolly

DOLLYNHODOLLYNHONov 23, 2023(edited)

@Vxsty It was you who said that the script wasn't mine

More Scripts for Universal Scripts