So I made a script that will follow a player if it gets within 100 meters and kill them if they get close enough and if a block gets in the way of the object then it will destroy it in 10 seconds and keep following the player unless there out of the zone where the object follows them.
Here's the script I made:
Script.Raptor.if is within 100m.follow.death block if Raptor encounteres block.then wait 30 destroy
Thanks