Universal Script 📌
1.6k Views
1.4k Executions

Hitbox

Universal Script 📌
MKcSCRIPTS
MKcSCRIPTSFirst script
10 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Aumente a minha hitbox, e deixe o jogo mais fácil.

View Raw
-- CONFIGURAÇÕES
local HITBOX_SIZE = Vector3.new(10, 10, 10) -- tamanho da hitbox
local SPHERE_COLOR = Color3.fromRGB(255, 0, 0) -- vermelho
local SPHERE_TRANSPARENCY = 0.6

-- FUNÇÃO PRINCIPAL
local function applyHitbox(character)
	local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

	-- Aumenta a hitbox
	humanoidRootPart.Size = HITBOX_SIZE
	humanoidRootPart.CanCollide = false
	humanoidRootPart.Transparency = 1 -- invisível

	-- Remove esfera antiga se existir
	if humanoidRootPart:FindFirstChild("HitboxSphere") then
		humanoidRootPart.HitboxSphere:Destroy()
	end

	-- Cria a esfera visual
	local sphere = Instance.new("SphereHandleAdornment")
	sphere.Name = "HitboxSphere"
	sphere.Adornee = humanoidRootPart
	sphere.Radius = HITBOX_SIZE.X / 2
	sphere.Color3 = SPHERE_COLOR
	sphere.Transparency = SPHERE_TRANSPARENCY
	sphere.AlwaysOnTop = true
	sphere.ZIndex = 5
	sphere.Parent = humanoidRootPart
end

-- APLICA EM TODOS OS PLAYERS
game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		task.wait(0.5)
		applyHitbox(character)
	end)
end)


Comments

1
Log in to join the conversation. Login
remotecontrol's profile picture
remotecontrol10 months ago

ai

1

More universal scripts

See all
Universal Script 📌
3.9k
26.6k
4 months ago
Script hub
1.0k
28
3 days ago
Key System
Script hub
3.5M
1.0M
1 year ago
Key System
Script hub
2.7M
643.6k
4 months ago
Key System

Script hub

#3 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
5.2k
8.8k
2 months ago