SHOW:
|
|
- or go back to the newest paste.
1 | - | function killfunction(part) |
1 | + | local limbcollider = Instance.new("Part", owner.Character:findFirstChild("Right Arm")) |
2 | - | for i,v in pairs(owner.Character:GetDescendants()) do |
2 | + | limbcollider.Size = Vector3.new(1.4,1,1) |
3 | limbcollider.Shape = "Cylinder" | |
4 | limbcollider.Transparency = 1 | |
5 | limbcollider.Name = "LimbCollider" | |
6 | local limbcolliderweld = Instance.new("Weld", limbcollider) | |
7 | limbcolliderweld.Part0 = owner.Character:findFirstChild("Right Arm") | |
8 | limbcolliderweld.Part1 = limbcollider | |
9 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
10 | local limbcollider2 = Instance.new("Part", owner.Character:findFirstChild("Left Arm")) | |
11 | limbcollider2.Size = Vector3.new(1.4,1,1) | |
12 | limbcollider2.Shape = "Cylinder" | |
13 | limbcollider2.Transparency = 1 | |
14 | limbcollider2.Name = "LimbCollider" | |
15 | local limbcolliderweld2 = Instance.new("Weld", limbcollider) | |
16 | - | end |
16 | + | limbcolliderweld2.Part0 = owner.Character:findFirstChild("Left Arm") |
17 | limbcolliderweld2.Part1 = limbcollider2 | |
18 | limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
19 | for i,v in pairs(owner.Character["Left Arm"]:GetDescendants()) do | |
20 | - | killfunction() |
20 | + | |
21 | - | |
21 | + | |
22 | - | local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent") |
22 | + | |
23 | - | owner.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Physics) |
23 | + | |
24 | - | for i,v in pairs(owner.Character:GetDescendants()) do |
24 | + | |
25 | - | pcall(function() |
25 | + | |
26 | - | v.CanCollide = false |
26 | + | |
27 | - | end) |
27 | + | |
28 | Socket.Attachment1 = a2 | |
29 | - | pcall(function() |
29 | + | |
30 | - | workspace.CurrentCamera.CameraSubject = owner.Character.Torso |
30 | + | |
31 | - | workspace.CurrentCamera.CameraSubject = owner.Character.UpperTorso |
31 | + | |
32 | - | end) |
32 | + | Socket.TwistLimitsEnabled = true |
33 | - | local Mouse = owner:GetMouse() |
33 | + | |
34 | - | function KeyDown(key) |
34 | + | |
35 | - | key = key:lower() |
35 | + | |
36 | - | if key:byte() == 32 then |
36 | + | for i,v in pairs(owner.Character["Right Arm"]:GetDescendants()) do |
37 | - | local Up = Instance.new("BodyVelocity",owner.Character.HumanoidRootPart) |
37 | + | |
38 | - | Up.MaxForce = Vector3.new(0,1000000,0) |
38 | + | |
39 | - | Up.Velocity = Vector3.new(0,25,0) |
39 | + | |
40 | - | wait(0.25) |
40 | + | |
41 | - | Up:Destroy() |
41 | + | |
42 | - | end |
42 | + | |
43 | - | end |
43 | + | |
44 | - | Mouse.KeyDown:Connect(KeyDown) |
44 | + | |
45 | - | ]],owner.PlayerGui)) |
45 | + | |
46 | - | |
46 | + | |
47 | - | local Velocity = Instance.new("BodyAngularVelocity") |
47 | + | |
48 | - | Velocity.Parent = owner.Character.HumanoidRootPart |
48 | + | |
49 | - | |
49 | + | Socket.TwistLimitsEnabled = true |
50 | - | while true do |
50 | + | |
51 | - | wait() |
51 | + | |
52 | - | Velocity.AngularVelocity = Vector3.new(owner.Character.Humanoid.MoveDirection.z * 10,0,owner.Character.Humanoid.MoveDirection.x * -10) |
52 | + | |
53 | - | Velocity.MaxTorque = Vector3.new(5000,5000,5000) |
53 | + | for i,v in pairs(owner.Character.Head:GetDescendants()) do |
54 | - | if owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then |
54 | + | |
55 | - | Velocity.MaxTorque = Vector3.new(0,0,0) |
55 | + | |
56 | - | end |
56 | + | |
57 | - | end |
57 | + | |
58 | a1.Parent = v.Part0 | |
59 | a2.Parent = v.Part1 | |
60 | Socket.Parent = v.Parent | |
61 | Socket.Attachment0 = a1 | |
62 | Socket.Attachment1 = a2 | |
63 | a1.CFrame = v.C0 | |
64 | a2.CFrame = v.C1 | |
65 | Socket.LimitsEnabled = true | |
66 | Socket.TwistLimitsEnabled = true | |
67 | v:Destroy() | |
68 | end | |
69 | end | |
70 | owner.Character.Humanoid.RequiresNeck = false | |
71 | owner.Character.Humanoid.WalkSpeed = 32 |