Hi there Biocommand here, What I am trying to do is a gui that when you click on it it makes you explode and cause damage in buildings, etc. I have already made the code but it isnĀ“t working is anything wrong here?
script.Parent.MouseButton1Down:connect(function() function explode(player) print("exploding player") character = game.Workspace:findFirstChild(player.Name) local explosion = Instance.new("Explosion")--Creates The Explosion. explosion.Position = character.Torso.Position --Where The Explosion Is. explosion.BlastRadius = BlastRad explosion.Parent = game.Workspace --It Has To Be Visible Correct? end end)