#How to make a hitbox follow a player?

1 messages · Page 1 of 1 (latest)

timber ridge
#

I'm making a move that dashes straight forward 50 studs.

The issue is using getpartsboundinbox is infront of the player but only at the start of the dash. How do I keep the hitbox follow in front of the player throughout the dash?

faint goblet
#

@timber ridge

#

Hey

#

Use a weld

#

Instance.new("WeldConstraint)

timber ridge
#

on get partsbound in box...?

faint goblet
#

uh

#

wait getpartsboundinbox

#

but do you have a hitbox for that?

#

like what box are you using

#

@timber ridge

timber ridge
#

that is the hitbox

faint goblet
#

ohh

#

got it

#

idk then

timber ridge
#

it checks for players in the given size and position

faint goblet
#

cause i use a part as the box

swift hearth
#

Exactly how u said

#

Just make the hitbox origin move with the player