Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to add rocket jump functionality to this script?

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

2 comments

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?

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.

2 answers

✓ Accepted answer

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.