SHOW:
|
|
- or go back to the newest paste.
1 | local bf = Instance.new("BodyForce", owner.Character.Head) | |
2 | bf.Force = Vector3.new(0,workspace.Gravity * owner.Character.Head:GetMass() * 2,0) | |
3 | - | limbcollider.Shape = "Cylinder" |
3 | + | |
4 | limbcollider.Size = Vector3.new(1.4,1,1) | |
5 | limbcollider.Transparency = 1 | |
6 | limbcollider.Name = "LimbCollider" | |
7 | local limbcolliderweld = Instance.new("Weld", limbcollider) | |
8 | limbcolliderweld.Part0 = owner.Character:findFirstChild("Right Arm") | |
9 | limbcolliderweld.Part1 = limbcollider | |
10 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
11 | local limbcollider2 = Instance.new("Part", owner.Character:findFirstChild("Left Arm")) | |
12 | - | limbcollider2.Shape = "Cylinder" |
12 | + | |
13 | limbcollider2.Transparency = 1 | |
14 | limbcollider2.Name = "LimbCollider" | |
15 | - | local limbcolliderweld2 = Instance.new("Weld", limbcollider) |
15 | + | local limbcolliderweld2 = Instance.new("Weld", limbcollider2) |
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 | - | local limbcollider3 = Instance.new("Part", owner.Character:findFirstChild("Right Leg")) |
19 | + | local limbcollider3 = Instance.new("Part", owner.Character.Head) |
20 | - | limbcollider3.Size = Vector3.new(1.3,1,1) |
20 | + | limbcollider3.Size = Vector3.new(0.5,0.5,0.5) |
21 | - | limbcollider3.Shape = "Cylinder" |
21 | + | limbcollider3.Shape = "Ball" |
22 | limbcollider3.Transparency = 1 | |
23 | limbcollider3.Name = "LimbCollider" | |
24 | - | local limbcolliderweld3 = Instance.new("Weld", limbcollider) |
24 | + | local limbcolliderweld = Instance.new("Weld", limbcollider3) |
25 | - | limbcolliderweld3.Part0 = owner.Character:findFirstChild("Right Leg") |
25 | + | limbcolliderweld.Part0 = owner.Character.Head |
26 | - | limbcolliderweld3.Part1 = limbcollider3 |
26 | + | limbcolliderweld.Part1 = limbcollider3 |
27 | - | limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) |
27 | + | |
28 | - | local limbcollider4 = Instance.new("Part", owner.Character:findFirstChild("Left Leg")) |
28 | + | |
29 | - | limbcollider4.Size = Vector3.new(1.3,1,1) |
29 | + | pcall(function() |
30 | - | limbcollider4.Shape = "Cylinder" |
30 | + | if v:IsA("Motor6D") then |
31 | - | limbcollider4.Transparency = 1 |
31 | + | v.Enabled = false |
32 | - | limbcollider4.Name = "LimbCollider" |
32 | + | |
33 | - | local limbcolliderweld4 = Instance.new("Weld", limbcollider) |
33 | + | end) |
34 | - | limbcolliderweld4.Part0 = owner.Character:findFirstChild("Left Leg") |
34 | + | |
35 | - | limbcolliderweld4.Part1 = limbcollider4 |
35 | + | function the() |
36 | - | limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) |
36 | + | |
37 | - | function killfunction(part) |
37 | + | |
38 | local a2 = Instance.new("Attachment") | |
39 | - | if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then |
39 | + | a1.Parent = owner.Character["Left Arm"] |
40 | a2.Parent = owner.Character.Torso | |
41 | Socket.Parent = owner.Character["Left Arm"] | |
42 | Socket.Attachment0 = a1 | |
43 | - | a1.Parent = v.Part0 |
43 | + | |
44 | - | a2.Parent = v.Part1 |
44 | + | a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0) |
45 | - | Socket.Parent = v.Parent |
45 | + | a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-1.5,0.5,0) |
46 | end | |
47 | function the5() | |
48 | - | a1.CFrame = v.C0 |
48 | + | |
49 | - | a2.CFrame = v.C1 |
49 | + | |
50 | - | Socket.LimitsEnabled = true |
50 | + | |
51 | - | Socket.TwistLimitsEnabled = true |
51 | + | a1.Parent = owner.Character["Left Leg"] |
52 | - | v:Destroy() |
52 | + | a2.Parent = owner.Character.Torso |
53 | - | end |
53 | + | Socket.Parent = owner.Character["Left Leg"] |
54 | - | end |
54 | + | |
55 | Socket.Attachment1 = a2 | |
56 | a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.75,0) | |
57 | - | owner.Character.Humanoid.PlatformStand = true |
57 | + | a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-0.5,-1.25,0) |
58 | end | |
59 | - | if v:IsA("BasePart") then |
59 | + | function the6() |
60 | - | v.Touched:connect(killfunction) |
60 | + | |
61 | local a1 = Instance.new("Attachment") | |
62 | local a2 = Instance.new("Attachment") | |
63 | - | |
63 | + | a1.Parent = owner.Character["Right Leg"] |
64 | - | local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent") |
64 | + | a2.Parent = owner.Character.Torso |
65 | - | local Mouse = owner:GetMouse() |
65 | + | Socket.Parent = owner.Character["Right Leg"] |
66 | - | function KeyDown(key) |
66 | + | |
67 | - | key = key:lower() |
67 | + | |
68 | - | if key:byte() == 32 then |
68 | + | a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.75,0) |
69 | - | local Up = Instance.new("BodyVelocity",owner.Character.HumanoidRootPart) |
69 | + | a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0.5,-1.25,0) |
70 | - | Up.MaxForce = Vector3.new(0,1000000,0) |
70 | + | local limbcollider = Instance.new("Part", owner.Character:findFirstChild("Right Leg")) |
71 | - | Up.Velocity = Vector3.new(0,25,0) |
71 | + | |
72 | - | wait(0.25) |
72 | + | |
73 | - | Up:Destroy() |
73 | + | |
74 | - | end |
74 | + | |
75 | - | end |
75 | + | limbcolliderweld.Part0 = owner.Character:findFirstChild("Right Leg") |
76 | - | Mouse.KeyDown:Connect(KeyDown) |
76 | + | |
77 | - | ]],owner.PlayerGui)) |
77 | + | |
78 | - | |
78 | + | local limbcollider2 = Instance.new("Part", owner.Character:findFirstChild("Left Leg")) |
79 | - | local Velocideez = Instance.new("BodyVelocity") |
79 | + | |
80 | - | Velocideez.Parent = owner.Character.Torso |
80 | + | |
81 | - | |
81 | + | |
82 | - | while true do |
82 | + | local limbcolliderweld2 = Instance.new("Weld", limbcollider2) |
83 | - | wait() |
83 | + | limbcolliderweld2.Part0 = owner.Character:findFirstChild("Left Leg") |
84 | - | owner.Character.Torso.BodyVelocity.Velocity = Vector3.new(owner.Character.Humanoid.MoveDirection.z * 100,0,owner.Character.Humanoid.MoveDirection.x * 100) |
84 | + | |
85 | - | owner.Character.Torso.BodyVelocity.MaxForce = Vector3.new(5000,5000,5000) |
85 | + | |
86 | - | if owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then |
86 | + | |
87 | - | owner.Character.Torso.BodyVelocity.MaxForce = Vector3.new(5000,5000,5000) |
87 | + | function the4() |
88 | - | owner.Character.Torso.BodyVelocity.MaxForce = Vector3.new(0,0,0) |
88 | + | |
89 | - | end |
89 | + | |
90 | local a2 = Instance.new("Attachment") | |
91 | a1.Parent = owner.Character.HumanoidRootPart | |
92 | a2.Parent = owner.Character.Torso | |
93 | Socket.Parent = owner.Character.HumanoidRootPart | |
94 | Socket.Attachment0 = a1 | |
95 | Socket.Attachment1 = a2 | |
96 | a1.WorldCFrame = a1.Parent.CFrame | |
97 | a2.WorldCFrame = a1.Parent.CFrame | |
98 | end | |
99 | function the3() | |
100 | local Socket = Instance.new("BallSocketConstraint") | |
101 | local a1 = Instance.new("Attachment") | |
102 | local a2 = Instance.new("Attachment") | |
103 | a1.Parent = owner.Character.Head | |
104 | a2.Parent = owner.Character.Torso | |
105 | Socket.Parent = owner.Character.Head | |
106 | Socket.Attachment0 = a1 | |
107 | Socket.Attachment1 = a2 | |
108 | a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,-0.5,0) | |
109 | a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0,1.0625,0) | |
110 | Socket.TwistLimitsEnabled = true | |
111 | Socket.LimitsEnabled = true | |
112 | end | |
113 | function the2() | |
114 | local Socket = Instance.new("BallSocketConstraint") | |
115 | local a1 = Instance.new("Attachment") | |
116 | local a2 = Instance.new("Attachment") | |
117 | a1.Parent = owner.Character["Right Arm"] | |
118 | a2.Parent = owner.Character.Torso | |
119 | Socket.Parent = owner.Character["Right Arm"] | |
120 | Socket.Attachment0 = a1 | |
121 | Socket.Attachment1 = a2 | |
122 | a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0) | |
123 | a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(1.5,0.5,0) | |
124 | end | |
125 | the() | |
126 | the2() | |
127 | the3() | |
128 | the4() | |
129 | the5() | |
130 | the6() | |
131 | owner.Character.Humanoid.RequiresNeck = false | |
132 | H = Instance.new("Sound",owner.Character.Head) | |
133 | H.SoundId = "rbxassetid://2101700076" | |
134 | H.Volume = 2 | |
135 | H.Looped = true | |
136 | game:GetService("RunService").Heartbeat:Connect(function() | |
137 | if owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then | |
138 | H:Stop() | |
139 | owner.Character.Humanoid.WalkSpeed = 5 | |
140 | elseif owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) then | |
141 | if not H.IsPlaying then | |
142 | H:Play() | |
143 | end | |
144 | owner.Character.Humanoid.WalkSpeed = owner.Character.Humanoid.WalkSpeed + 0.5 | |
145 | end | |
146 | end) | |
147 | local density = 1 | |
148 | local friction = 1 | |
149 | local elasticity = 0 | |
150 | local frictionWeight = 100000000000 | |
151 | local elasticityWeight = 0 | |
152 | local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight) | |
153 | for i,v in pairs(owner.Character:GetDescendants()) do | |
154 | pcall(function() | |
155 | v.CustomPhysicalProperties = physProperties | |
156 | end) | |
157 | end | |
158 | for i,v in pairs(owner.Character:GetDescendants()) do | |
159 | if v:IsA("Part") then | |
160 | local nocollide = Instance.new("NoCollisionConstraint",owner.Character.HumanoidRootPart) | |
161 | nocollide.Part0 = v | |
162 | nocollide.Part1 = owner.Character.HumanoidRootPart | |
163 | end | |
164 | end |