Is There a way to expand the players Hitbox

Is there a way to expand the players Hitboxes?
if so, How do I do it

i don’t know if this is the best way but you could just add a transparent part with canColide off into the player and weld it to a part in the player (if you don’t want the part to move during animations use the HumanoidRootPart) and the you can just include it in your hit detection system.

1 Like

okay so how do i add weld a part into a player?

This should work, ofcourse you can edit the name,size and offset

local players = game:GetService("Players")

players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		local hrp = char:WaitForChild("HumanoidRootPart")
		local extraHitbox = Instance.new("Part")
		extraHitbox.Parent = char
		extraHitbox.Name = "Hitbox"
		extraHitbox.Anchored = false
		extraHitbox.CanCollide = false
		extraHitbox.Transparency = 1
		extraHitbox.Size = Vector3.new(5,5,5) --Put wanted size here
		extraHitbox.Position = hrp.Position + Vector3.new(0,0,0)--Vector3 not needed persee but used for offsetting part
		local weld = Instance.new("WeldConstraint")
		weld.Parent = extraHitbox
		weld.Part0 = weld.Parent
		weld.Part1 = hrp
	end)
end)
6 Likes

Resizing the HumanoidRootPart should work. What is this for? It might cause issues if you expand it on the server, but doing it client-side if you’re making it easier for players to hit an enemy (eg with a setting), then this should work.

where should i put this script to order to work?

This should go on a server-sided script on ServerScriptService, but one thing… if you don’t have an extense knowledge on scripting you probably won’t be able to work with a custom Hitbox, be careful about this cause it will change the way you detect collisions with the character.

1 Like

well okay thanks for letting me know