Bomb not exploding

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?

unction onTouched(hit)
	explosion = Instance.new("Explosion")
	explosion.BlastRadius = 25
	explosion.BlastPressure = 100
	explosion.Parent = workspace
	explosion.Position = script.Parent.Position
end

script.Parent.Touched:connect(onTouched)

Oops, yes there is an f in function it didnt paste

I just tested this code and it seems like it’s working fine, are there any errors in the output?

No, I have no idea why its not working tbh

i think it has something to do with it being cloned from replicatedstorage

Is it a server or a local script?

server should it be local

max charsss

Is the script that you’re copying the bomb from a local script? If so then it should be a normal script

its a normal script

aaaaaaaaaaaaaaa

Try This:

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)