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)
https://pastebin.com/gTUvznsS