null
nil
-
false
-0.5
0.5
3
0
-0.5
0.5
3
0
23
-0.5
0.5
0
-1.1920929e-007
1.00000012
0
1.00000012
-1.1920929e-007
0
0
0
-1.00000024
true
true
0
true
true
0.5
0
0.300000012
-0.5
0.5
3
0
-0.5
0.5
3
0
false
Rocket
0
-0.5
0.5
3
0
0
0
0
-0.5
0.5
3
0
0
0
0
0
1
1
1
4
-
true
Swoosh
0
false
rbxasset://sounds\Rocket whoosh 01.wav
0.699999988
-
false
Explosion
0
true
rbxasset://sounds\collide.wav
1
-
Script
r = game:service("RunService")
shaft = script.Parent
position = Vector3.new(0,0,0)
function fly()
direction = shaft.CFrame.lookVector
position = position + direction
error = position - shaft.Position
shaft.Velocity = 7*error
end
function blow()
swoosh:Stop()
explosion = Instance.new("Explosion")
explosion.Position = shaft.Position
explosion.Parent = game.Workspace
connection:disconnect()
shaft:remove()
end
t, s = r.Stepped:wait()
swoosh = script.Parent.Swoosh
swoosh:Play()
position = shaft.Position
d = t + 10.0 - s
connection = shaft.Touched:connect(blow)
while t < d do
fly()
t = r.Stepped:wait()
end
script.Parent.Explosion.PlayOnRemove = false
swoosh:Stop()
shaft:remove()