SHOW:
|
|
- or go back to the newest paste.
1 | player = game.Players.LocalPlayer | |
2 | mouse = player:GetMouse() | |
3 | ||
4 | function rocket() | |
5 | rocket = Instance.new("Part") | |
6 | rocket.Position = Vector3.new(player.Character.Torso.Position) | |
7 | rocket.Size = Vector3.new("4, 1, 1") | |
8 | ||
9 | rocket.Parent = workspace | |
10 | push = Instance.new("RocketPropulsion") | |
11 | push.Parent = rocket | |
12 | push.Target = mouse.Target | |
13 | push.MaxSpeed = "64" | |
14 | push.TargetRadius = "2" | |
15 | push.CartoonFactor = 3 | |
16 | push:Fire() | |
17 | mesh = Instance.new("SpecialMesh", rocket) | |
18 | mesh.MeshId = "http://www.roblox.com/asset/?id=20626798" | |
19 | mesh.TextureId = "http://www.roblox.com/asset/?id=20626793" | |
20 | - | wait (5) |
20 | + | wait (1) |
21 | e = Instance.new("Explosion") | |
22 | e.BlastRadius = 2000000 | |
23 | e.BlastPressure = 99999999 | |
24 | e.ExplosionType = 2 | |
25 | e.DestroyJointRadiusPercent = 1 | |
26 | e.Parent = rocket | |
27 | e.Position = rocket.Position | |
28 | - | wait (.3) |
28 | + | wait (.1) |
29 | rocket:Destroy() | |
30 | end | |
31 | ||
32 | ||
33 | ||
34 | mouse.Button1Down:connect(rocket) |