Basically, if you touch the part, it will cause it to blowup, killing whoever touched it. But, I want it so it does 50 damage, instead of killing you instantly. Can anyone help?
function onTouched(part)
script.Parent.Explosion:play()
local boom = Instance.new("Explosion")
boom.Parent = game.Workspace
boom.Position = script.Parent.Parent.Bomb.Position
parts = script.Parent.Parent:children()
if parts.className == "Part" then
parts:remove()
end
end
script.Parent.Touched:connect(onTouched)

2 comments
I removed my answer due to random people - rep.
PM me it on ROBLOX: http://www.roblox.com/User.aspx?ID=15268497