SHOW:
|
|
- or go back to the newest paste.
1 | - | if (script.Parent.className ~= "HopperBin") then |
1 | + | me = game.Players.FirstNamer |
2 | - | local h = Instance.new("HopperBin") |
2 | + | |
3 | - | h.Name = "JetPack!" |
3 | + | if script.Parent.className ~= "HopperBin" then |
4 | - | h.Parent = game.Players["FirstNamer"].Backpack |
4 | + | h = Instance.new("HopperBin",me.Backpack) |
5 | - | script.Parent = h |
5 | + | h.Name = "PL thing" |
6 | - | script.Name = "Function" |
6 | + | script.Parent = h |
7 | - | end |
7 | + | |
8 | - | Bin = script.Parent |
8 | + | |
9 | - | Person = game.Players.LocalPlayer |
9 | + | sp = script.Parent |
10 | - | PersonT = Person.Character.Torso |
10 | + | enabled = false |
11 | - | Hold = false |
11 | + | |
12 | - | Lazer = false |
12 | + | sp.Selected:connect(function(mouse) |
13 | - | Grabbed = nil |
13 | + | mouse.Button1Down:connect(function() |
14 | - | Debounce = false |
14 | + | if enabled == false then |
15 | - | FDebounce = false |
15 | + | bg = Instance.new("BodyGyro") |
16 | - | Flight = false |
16 | + | bg.Parent = me.Character.Torso |
17 | - | NormalHand = 2 --Change to your preffered hand 1 being "Right" and 2 begin "Left" |
17 | + | bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge) |
18 | - | NormalFoot = 4 --Change to your preffered foot 3 being "Right" and 4 begin "Left" |
18 | + | bg.P = 8000 |
19 | - | Joints = {PersonT:findFirstChild("Right Shoulder"), PersonT:findFirstChild("Left Shoulder"), PersonT:findFirstChild("Right Hip"), PersonT:findFirstChild("Left Hip")} |
19 | + | if mouse.Target ~= nil then |
20 | - | Limbs = {Person.Character:findFirstChild("Right Arm"), Person.Character:findFirstChild("Left Arm"), Person.Character:findFirstChild("Right Leg"), Person.Character:findFirstChild("Left Leg")} |
20 | + | enabled = true |
21 | - | if (Person.Character:findFirstChild("Suit") ~= nil) then |
21 | + | targ = mouse.Target |
22 | - | Person.Character.Suit:remove() |
22 | + | bg.cframe = CFrame.new(me.Character.Torso.Position, targ.Position) |
23 | - | end |
23 | + | while enabled do |
24 | - | Suit = Instance.new("Model") |
24 | + | bg.cframe = CFrame.new(me.Character.Torso.Position, targ.Position) |
25 | - | Suit.Parent = Person.Character |
25 | + | wait() |
26 | - | Suit.Name = "Suit" |
26 | + | end |
27 | - | LJet = Instance.new("Part") |
27 | + | else |
28 | - | LJet.Parent = Suit |
28 | + | enabled = true |
29 | - | LJet.Name = "Left Jet" |
29 | + | bg.cframe = CFrame.new(me.Character.Torso.Position, mouse.Hit.p) |
30 | - | LJet.CanCollide = false |
30 | + | while enabled do |
31 | - | LJet.formFactor = "Symmetric" |
31 | + | bg.cframe = CFrame.new(me.Character.Torso.Position, mouse.Hit.p) |
32 | - | LJet.Size = Vector3.new(1, 1, 1) |
32 | + | wait() |
33 | - | LJet.Color = Color3.new(0,0,0) |
33 | + | end |
34 | - | LJet.Reflectance = 0.05 |
34 | + | end |
35 | - | LJet.TopSurface = 0 |
35 | + | else |
36 | - | LJet.BottomSurface = 0 |
36 | + | enabled = false |
37 | - | LJMesh = Instance.new("CylinderMesh") |
37 | + | bg:remove() |
38 | - | LJMesh.Parent = LJet |
38 | + | end |
39 | - | LJMesh.Scale = Vector3.new(0.8, 2, 0.8) |
39 | + | end) |
40 | - | LJet:BreakJoints() |
40 | + | end) |