Hello, I'm creating a game where Enemy NPC's try to get to the center of your base. When the NPC's do, they only explode on one side. How can I fix this?
Example: https://imgur.com/a/8CSH4r9
Code for Wall:
local Path = game:GetService("PathfindingService"):ComputeSmoothPathAsync(workspace.Start.Position,workspace.Wall.Position+ Vector3.new(3,0,0),500) -- PathFinding
local Positions = Path:GetPointCoordinates()
and
local Explode = Instance.new("Explosion",workspace)
Explode.Position = Enemy.HumanoidRootPart.Position
Explode.BlastPressure = 0
workspace.Wall.Health.Value = workspace.Wall.Health.Value - Enemy.Damage.Value
Alive = false
Enemy:Destroy() -- [B]
All help is appreciated.
**Full code: ** (Please excuse the excessive amount of comments near the end)

3 comments
I don't know why the bold is working...
I recommend using .Touched on the wall
@qChaos I inserted this script into the Wall itself, and, although it does explode, it doesn't explode at the right place. Code: .function Explode(hit) Instance.new("Explosion",workspace) Explode.Position = workspace.Wall.Position end script.Parent.Touched:connect(Explode)