Wouldn't it go something like
function onImpact(player) local bob = Instance.new("Explosion"); bob.Position = game.Workspace.Part.Position; bob.BlastRadius = 200; bob.Parent = workspace; end; script.Parent.Touched:connect(onImpact)
Next time you post a question, please use the Lua formatting so it is easier to debug your code.
Anyways, what kind of nuke are you talking about? One that destroys everything and sets the Material
to CorrodedMetal
? or just an Explosion
? If just an Explosion
, then yes, that would work.