Explosion.Touched:Connect(function(humTouched)
if humTouched.Parent:FindFirstChild("Humanoid") and humTouched.Parent.Name ~= Player.Name then
local EnemyHumanoid = humTouched.Parent.Humanoid
EnemyHumanoid:TakeDamage(dmg)
end
end)
My script is having problems with dealing damage to other players and npcs and i cant really figure out the problem since ive checked all my spelling and nothing is wrong

2 comments
Thanks i will try this
It only damages players but doesnt damage npcs