Are you able to create STATIC HITBOXES like in Tower of Hell?

Hello there, I am a builder for Tower of Hell and I have recently made my own game including all of my sections I have ever created for the game.

Recently I finished the work on the game, but noticed that the hitboxes are different,
I later searched up and found out PyxlDev has used static hitboxes
image
(seeing here)

I have searched a lot but can’t seem to find anything helpful, I would be thankful if you could help me out with this one,

DerHausaufgabe

2 Likes

Heya! So yes. One trick would be to weld an invisible cancollide false uniquely named part onto the character, then change the death scripts to only register damage when the hit they detect has the same name as that part.

I think you should elaborate/provide an example.

alright, well for the creation of the part just define the character and use this code to add the part to a character when they spawn.

local part = Instance.new("Part")
part.CanCollide = false
part.Size = Vector.new(4,5,1)
part.Transparency =1
part.Name = "DamageBox"
part.CFrame = character.PrimaryPart.CFrame + Vector3.new(0,1,0) --might need to mess with this in order to get it perfectly centered
part.Parent = character

local weld = Instance.new("Weld")
weld.Name = "Weld"
weld.Part0 = part
weld.Part1 = character.PrimaryPart
weld.C0 = part.CFrame:inverse()
weld.C1 = character.PrimaryPart.CFrame:inverse()
weld.Parent = part

then separately when your death brick has an onTouched event, just run the touched part through an if statement to see if its name is “DamageBox”.

5 Likes