Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

This tank's cannon won't do damage, does anyone know how to add that into the script?

Asked by 4 years ago
Edited 4 years ago

I am a developer for a game, and they want me to fix a tank for them, I believe I know what the problem is, but I don't know how to fix it. The problem is that when you fire the cannon on the tank, it has an explosion but that explosion doesn't do damage. I just need help adding something to the script so that it does damage. Here is the script:

local Explo = Instance.new ("Sound")
    Explo.SoundId = "rbxassetid://689314212"
    Explo.PlayOnRemove = false
    Explo.Parent = Engine
    Explo:play()


    wait()
    local Explosion = Instance.new("Explosion")
    Explosion.BlastRadius = 5
    Explosion.BlastPressure = 1
    Explosion.Parent = game.Workspace
    Explosion.Position = Engine.Position
    Explosion.DestroyJointRadiusPercent = 0

0
Explosion doesnt normally do damage. It insta kills? voidofdeathfire 148 — 4y
1
Also not a request site... You had 0 attempt and wanted us to do it. voidofdeathfire 148 — 4y
0
I attempted, it just didn't work, I just need help adding a script because I have no idea how to do it. satrasatra 8 — 4y

Answer this question