Hi! I’m making a bomb which is cloned from replicatedstorage into workspace with this script enabled, but for some reason they dont explode on impact. any ideas why?
function onTouched(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local explosion = Instance.new("Explosion")
explosion.BlastRadius = 25
explosion.BlastPressure = 100
explosion.Parent = workspace
explosion.Position = script.Parent.Position
end
end
script.Parent.Touched:connect(onTouched)