local brick = game.Workspace --the part that u wnt to have explode when touched brick.Touched:connect(function(hit) if hit.Parent and hit.Parent.Humanoid then humanoid = hit.Parent.Humanoid explode = Instance.new("Explosion", brick) end)
function ont (hit) local humanoid = hit.Parent:FindFirstChild("Humanoid") if humanoid then local e = Instance.new("Explosion") e.Parent = script.Parent e.Position = script.Parent.Position end end script.Parent.Touched:connect(ont)
There you go, that should work!