null
nil
-
0
true
0
0
0
1
0
0
0
1
0
0
0
1
JetPack
[RBX0]
-
false
-0.5
0.5
0
0
-0.5
0.5
2
0
21
-78.443512
0.939333558
126.296539
0.0259844642
-0.999661744
-0.000927666435
-0.00495104166
0.000798278896
-0.999987483
0.999649763
0.0259890556
-0.0049269083
false
true
0
true
true
false
0.5
0
0.300000012
-0.5
0.5
0
0
-0.5
0.5
3
0
false
P9
0
-0.5
0.5
0
0
0
0
0
-0.5
0.5
0
0
0.5
0
0
0
0
1
1
1
-
false
-0.5
0.5
0
0
-0.5
0.5
4
0
24
-78.0138397
0.952302277
123.584496
0.000927666435
-0.0259844642
-0.999661744
0.999987483
0.00495104166
0.000798278896
0.0049269083
-0.999649763
0.0259890556
true
true
0
true
true
false
0.5
2
0.300000012
-0.5
0.5
0
0
-0.5
0.5
0
0
false
P3
0
-0.5
0.5
0
0
0
0
0
-0.5
0.5
3
0
0
0
0
0
1
1
0.400000006
2
-
BodyVelocity
1250
0
0
0
0
0
0
-
true
Sound
-1
false
rbxasset://sounds\hit.wav
1
-
false
-0.5
0.5
0
0
-0.5
0.5
0
0
26
-78.5318604
0.956167161
122.897736
0.999661744
0.0259844642
-0.000927666435
-0.000798278896
-0.00495104166
-0.999987483
-0.0259890556
0.999649763
-0.0049269083
false
true
0
true
true
false
0.5
0
0.300000012
-0.5
0.5
0
0
-0.5
0.5
3
0
false
P2
0
-0.5
0.5
4
0
0
0
0
-0.5
0.5
2
0
0
0
0
0
2
1
1
1
-
false
-0.5
0.5
0
0
-0.5
0.5
2
0
21
-77.4438477
0.938535273
126.270554
0.0259844642
-0.999661744
-0.000927666435
-0.00495104166
0.000798278896
-0.999987483
0.999649763
0.0259890556
-0.0049269083
false
true
0
true
true
false
0.5
0
0.300000012
-0.5
0.5
0
0
-0.5
0.5
3
0
false
P8
0
-0.5
0.5
0
0
0
0
0
-0.5
0.5
0
0
0.5
0
0
0
0
1
1
1
-
false
-0.5
0.5
0
0
-0.5
0.5
0
0
26
-77.532196
0.955368876
122.87175
0.999661744
0.0259844642
-0.000927666435
-0.000798278896
-0.00495104166
-0.999987483
-0.0259890556
0.999649763
-0.0049269083
false
true
0
true
true
false
0.5
0
0.300000012
-0.5
0.5
0
0
-0.5
0.5
3
0
false
P1
0
-0.5
0.5
4
0
0
0
0
-0.5
0.5
2
0
0
0
0
0
2
1
1
1
-
false
-0.5
0.5
0
0
-0.5
0.5
0
0
26
-77.4958191
0.948437393
124.271255
0.0259844642
-0.999661744
-0.000927666435
-0.00495104166
0.000798278896
-0.999987483
0.999649763
0.0259890556
-0.0049269083
true
true
0
true
true
false
0.5
0
0.300000012
-0.5
0.5
1
0
-0.5
0.5
3
0
false
P4
0
-0.5
0.5
4
0
0
0
0
-0.5
0.5
2
0
0
0
0
0
2
1
1
1
-
false
-0.5
0.5
0
0
-0.5
0.5
2
0
26
-78.4954834
0.949235678
124.297241
0.0259844642
-0.999661744
-0.000927666435
-0.00495104166
0.000798278896
-0.999987483
0.999649763
0.0259890556
-0.0049269083
true
true
0
true
true
false
0.5
0
0.300000012
-0.5
0.5
1
0
-0.5
0.5
3
0
false
P5
0
-0.5
0.5
4
0
0
0
0
-0.5
0.5
0
0
0
0
0
0
2
1
1
1
-
false
-0.5
0.5
0
0
-0.5
0.5
0
0
26
-77.4698334
0.943486333
125.270905
0.0259844642
-0.999661744
-0.000927666435
-0.00495104166
0.000798278896
-0.999987483
0.999649763
0.0259890556
-0.0049269083
true
true
0
true
true
false
0.5
0
0.300000012
-0.5
0.5
1
0
-0.5
0.5
3
0
false
P6
0
-0.5
0.5
4
0
0
0
0
-0.5
0.5
2
0
0
0
0
0
2
1
1
1
-
false
-0.5
0.5
0
0
-0.5
0.5
2
0
26
-78.4694977
0.944284618
125.29689
0.0259844642
-0.999661744
-0.000927666435
-0.00495104166
0.000798278896
-0.999987483
0.999649763
0.0259890556
-0.0049269083
true
true
0
true
true
false
0.5
0
0.300000012
-0.5
0.5
1
0
-0.5
0.5
3
0
false
P7
0
-0.5
0.5
4
0
0
0
0
-0.5
0.5
0
0
0
0
0
0
2
1
1
1
-
false
Script
connection = nil
humanoid = nil
on = false
startSpeed = 5
maxSpeed = 30
maxFuel = 20
fuel = maxFuel
sound = script.Parent.P3.Sound
controller = script.Parent.P3.BodyVelocity
burner1 = script.Parent.P8
burner2 = script.Parent.P9
--rot = CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
rot = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
function turnOff()
sound:pause()
controller.maxForce= Vector3.new(0,0,0)
burner1.Transparency = 1
burner2.Transparency = 1
on = false
end
function onJump(isJumping)
if isJumping then
-- toggle the jetpack
if (not on) and (fuel>0) then
controller.velocity = Vector3.new(0,startSpeed,0)
controller.maxForce = Vector3.new(0,4e+003,0)
on = true
sound:play()
else
turnOff()
end
end
end
function attach(h)
if h==humanoid then
return
end
print("attaching to " .. h.Name)
humanoid = h
if connection~=nil then
connection:disconnect()
end
connection = h.Jumping:connect(onJump)
local torso = h.Parent.Torso
script.Parent.P3.CFrame = torso.CFrame * CFrame.new(Vector3.new(0,1,1)) * rot
script.Parent.P4:makeJoints()
script.Parent.P5:makeJoints()
--script.Parent.P6:makeJoints()
--script.Parent.P7:makeJoints()
script.Parent.P1.CanCollide = false
script.Parent.P2.CanCollide = false
script.Parent.P3.CanCollide = false
end
function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
attach(h)
end
end
script.Parent.P1.Touched:connect(onTouched)
script.Parent.P2.Touched:connect(onTouched)
script.Parent.P3.Touched:connect(onTouched)
script.Parent.P4.Touched:connect(onTouched)
script.Parent.P5.Touched:connect(onTouched)
script.Parent.P6.Touched:connect(onTouched)
script.Parent.P7.Touched:connect(onTouched)
-- monitor rocket fuel
while true do
local dt = wait(0.3)
if on then
fuel = fuel - dt
if controller.velocity.y < maxSpeed then
controller.velocity = controller.velocity + Vector3.new(0,4*dt,0)
end
else
if fuel<maxFuel then
fuel = fuel + dt
end
end
sound.Volume = fuel / maxFuel
if fuel <= 0 then
turnOff()
elseif on then
-- adjust burners
burner1.Transparency = 1 - fuel / maxFuel * (0.8 - 0.4 * math.random())
burner2.Transparency = 1 - fuel / maxFuel * (0.8 - 0.4 * math.random())
end
end