I want the NPC to catch up to me when pathfinding, but it's not working, or is it better to just increase the attack range in the module script?
Part of the module script:
Zombie = {
MaxHealth = 30,
WalkSpeed = 100,
JumpPower = 50,
AttackDamage = 10,
AttackCooldown = 3,
--KnockBackForce = 100,
wanderDistance = 15,
wanderCooldown = {2,5}, -- While wandering, walk in a random direction every _ to _ seconds
Range = 100,
AttackRange = 4,
TimeBeforeDespawn = 150, --2.5 minutes
RespawnCooldown = 150, -- 2.5 minutes
DEBUGMODE = true,
Costs = {
Water = math.huge ,
Neon = math.huge,
Plastic = 1
}
The file is the pathfinding script
** You are now Level 2! **