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

How to add rocket jump functionality to this script?

Asked by 10 years ago

It's a rocket launcher script, and I already tried, but I broke it. Anyway to add it without it breaking?

function blow(hit, missile)
    if missile  == nil then return end
    if swooshSound then swooshSound:stop() end
    explosion = Instance.new("Explosion")
    explosion.Position = missile.Position
    explosion.BlastPressure = 0
    explosion.BlastRadius = 5
    -- find instigator tag
    local creator = missile:FindFirstChild("creator")
    explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
    explosion.Parent = game.Workspace   
    if explosionSound then explosionSound:Play() end
    wait(.1)
    if missile then missile:Remove() end
end
0
The first thing I noticed that you didn't add the Explosions Position, may want to edit that, the seconds thing I noticed was where does 'blow()' connect to which event? TheeDeathCaster 2368 — 10y
0
Actually, I do have it, I just posted a part of the code. I can give you the model so you can look at it further. TheRings0fSaturn 28 — 10y

2 answers

Log in to vote
0
Answered by 10 years ago

One major component of the rocket jump feature that I see missing would be explosion.DestroyJointRadiusPercent = 0

Ad
Log in to vote
0
Answered by 10 years ago

either you don't have explosionSound defined or you don't meet the requirements for rocket jump.

Answer this question