SHOW:
|
|
- or go back to the newest paste.
1 | - | local limbcollider = Instance.new("Part", owner.Character:findFirstChild("Right Arm")) |
1 | + | clicked = false |
2 | - | limbcollider.Size = Vector3.new(1.4,1,1) |
2 | + | clicked3 = false |
3 | - | limbcollider.Shape = "Cylinder" |
3 | + | block = owner.Character.HumanoidRootPart |
4 | - | limbcollider.Transparency = 1 |
4 | + | arm = Instance.new("Part",script) |
5 | - | limbcollider.Name = "LimbCollider" |
5 | + | arm.Size = Vector3.new(0.75,2,0.75) |
6 | - | local limbcolliderweld = Instance.new("Weld", limbcollider) |
6 | + | owner.Character["Left Arm"]:Destroy() |
7 | - | limbcolliderweld.Part0 = owner.Character:findFirstChild("Right Arm") |
7 | + | owner.Character["Right Arm"]:Destroy() |
8 | - | limbcolliderweld.Part1 = limbcollider |
8 | + | |
9 | - | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) |
9 | + | |
10 | - | local limbcollider2 = Instance.new("Part", owner.Character:findFirstChild("Left Arm")) |
10 | + | |
11 | - | limbcollider2.Size = Vector3.new(1.4,1,1) |
11 | + | a1.Parent = block |
12 | - | limbcollider2.Shape = "Cylinder" |
12 | + | a2.Parent = arm |
13 | - | limbcollider2.Transparency = 1 |
13 | + | Socket.Parent = block |
14 | - | limbcollider2.Name = "LimbCollider" |
14 | + | |
15 | - | local limbcolliderweld2 = Instance.new("Weld", limbcollider) |
15 | + | |
16 | - | limbcolliderweld2.Part0 = owner.Character:findFirstChild("Left Arm") |
16 | + | a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(-1.5,0.5,0) |
17 | - | limbcolliderweld2.Part1 = limbcollider2 |
17 | + | a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0,1,0) |
18 | - | limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) |
18 | + | arm3 = Instance.new("Part",script) |
19 | - | local limbcollider3 = Instance.new("Part", owner.Character:findFirstChild("Right Leg")) |
19 | + | arm3.Size = Vector3.new(0.75,2,0.75) |
20 | - | limbcollider3.Size = Vector3.new(1.3,1,1) |
20 | + | local Socket3 = Instance.new("BallSocketConstraint") |
21 | - | limbcollider3.Shape = "Cylinder" |
21 | + | local a5 = Instance.new("Attachment") |
22 | - | limbcollider3.Transparency = 1 |
22 | + | local a6 = Instance.new("Attachment") |
23 | - | limbcollider3.Name = "LimbCollider" |
23 | + | a5.Parent = arm |
24 | - | local limbcolliderweld3 = Instance.new("Weld", limbcollider) |
24 | + | a6.Parent = arm3 |
25 | - | limbcolliderweld3.Part0 = owner.Character:findFirstChild("Right Leg") |
25 | + | Socket3.Parent = block |
26 | - | limbcolliderweld3.Part1 = limbcollider3 |
26 | + | Socket3.Attachment0 = a5 |
27 | - | limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) |
27 | + | Socket3.Attachment1 = a6 |
28 | - | local limbcollider4 = Instance.new("Part", owner.Character:findFirstChild("Left Leg")) |
28 | + | a5.WorldCFrame = a5.Parent.CFrame * CFrame.new(0,-1,0) |
29 | - | limbcollider4.Size = Vector3.new(1.3,1,1) |
29 | + | a6.WorldCFrame = a6.Parent.CFrame * CFrame.new(0,1,0) |
30 | - | limbcollider4.Shape = "Cylinder" |
30 | + | arm2 = Instance.new("Part",script) |
31 | - | limbcollider4.Transparency = 1 |
31 | + | arm2.Size = Vector3.new(0.75,2,0.75) |
32 | - | limbcollider4.Name = "LimbCollider" |
32 | + | local Socket2 = Instance.new("BallSocketConstraint") |
33 | - | local limbcolliderweld4 = Instance.new("Weld", limbcollider) |
33 | + | local a3 = Instance.new("Attachment") |
34 | - | limbcolliderweld4.Part0 = owner.Character:findFirstChild("Left Leg") |
34 | + | local a4 = Instance.new("Attachment") |
35 | - | limbcolliderweld4.Part1 = limbcollider4 |
35 | + | a3.Parent = block |
36 | - | limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) |
36 | + | a4.Parent = arm2 |
37 | - | function killfunction(part) |
37 | + | Socket2.Parent = block |
38 | - | for i,v in pairs(owner.Character:GetDescendants()) do |
38 | + | Socket2.Attachment0 = a3 |
39 | - | if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then |
39 | + | Socket2.Attachment1 = a4 |
40 | a3.WorldCFrame = a3.Parent.CFrame * CFrame.new(1.5,0.5,0) | |
41 | a4.WorldCFrame = a4.Parent.CFrame * CFrame.new(0,1,0) | |
42 | arm4 = Instance.new("Part",script) | |
43 | - | a1.Parent = v.Part0 |
43 | + | arm4.Size = Vector3.new(0.75,2,0.75) |
44 | - | a2.Parent = v.Part1 |
44 | + | local Socket4 = Instance.new("BallSocketConstraint") |
45 | - | Socket.Parent = v.Parent |
45 | + | local a7 = Instance.new("Attachment") |
46 | local a8 = Instance.new("Attachment") | |
47 | a7.Parent = arm2 | |
48 | - | a1.CFrame = v.C0 |
48 | + | a8.Parent = arm4 |
49 | - | a2.CFrame = v.C1 |
49 | + | Socket4.Parent = block |
50 | - | Socket.LimitsEnabled = true |
50 | + | Socket4.Attachment0 = a7 |
51 | - | Socket.TwistLimitsEnabled = true |
51 | + | Socket4.Attachment1 = a8 |
52 | - | v:Destroy() |
52 | + | a7.WorldCFrame = a7.Parent.CFrame * CFrame.new(0,-1,0) |
53 | - | end |
53 | + | a8.WorldCFrame = a8.Parent.CFrame * CFrame.new(0,1,0) |
54 | - | end |
54 | + | hand = Instance.new("Part",owner.Character.Head) |
55 | hand.Size = Vector3.new(1,1,1) | |
56 | - | owner.Character.Humanoid.RequiresNeck = false |
56 | + | hand.Name = "Hand" |
57 | - | owner.Character.Humanoid.PlatformStand = true |
57 | + | local Socket5 = Instance.new("BallSocketConstraint") |
58 | - | for i,v in pairs(owner.Character:GetDescendants()) do |
58 | + | local a9 = Instance.new("Attachment") |
59 | - | if v:IsA("BasePart") then |
59 | + | local a10 = Instance.new("Attachment") |
60 | - | v.Touched:connect(killfunction) |
60 | + | a9.Parent = arm4 |
61 | a10.Parent = hand | |
62 | Socket5.Parent = block | |
63 | - | |
63 | + | Socket5.Attachment0 = a9 |
64 | - | local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent") |
64 | + | Socket5.Attachment1 = a10 |
65 | - | local Mouse = owner:GetMouse() |
65 | + | a9.WorldCFrame = a9.Parent.CFrame * CFrame.new(0,-1,0) |
66 | - | function KeyDown(key) |
66 | + | hand2 = Instance.new("Part",owner.Character.Head) |
67 | - | key = key:lower() |
67 | + | hand2.Size = Vector3.new(1,1,1) |
68 | - | if key:byte() == 32 then |
68 | + | hand2.Name = "Hand2" |
69 | - | local Up = Instance.new("BodyVelocity",owner.Character.HumanoidRootPart) |
69 | + | local Socket6 = Instance.new("BallSocketConstraint") |
70 | - | Up.MaxForce = Vector3.new(0,1000000,0) |
70 | + | local a11 = Instance.new("Attachment") |
71 | - | Up.Velocity = Vector3.new(0,25,0) |
71 | + | local a12 = Instance.new("Attachment") |
72 | - | wait(0.25) |
72 | + | a11.Parent = arm3 |
73 | - | Up:Destroy() |
73 | + | a12.Parent = hand2 |
74 | Socket6.Parent = block | |
75 | Socket6.Attachment0 = a11 | |
76 | - | Mouse.KeyDown:Connect(KeyDown) |
76 | + | Socket6.Attachment1 = a12 |
77 | - | ]],owner.PlayerGui)) |
77 | + | a11.WorldCFrame = a11.Parent.CFrame * CFrame.new(0,-1,0) |
78 | - | |
78 | + | hand.Anchored = true |
79 | - | local Velocideez = Instance.new("BodyVelocity") |
79 | + | hand2.Anchored = true |
80 | - | Velocideez.Parent = owner.Character.Torso |
80 | + | arm.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1,0) |
81 | - | |
81 | + | arm2.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1,0) |
82 | - | while true do |
82 | + | arm3.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1,-2) |
83 | - | wait() |
83 | + | arm4.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1,-2) |
84 | - | owner.Character.Torso.BodyVelocity.Velocity = Vector3.new(owner.Character.Humanoid.MoveDirection.z * 100,0,owner.Character.Humanoid.MoveDirection.x * 100) |
84 | + | hand.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1,-2) |
85 | - | owner.Character.Torso.BodyVelocity.MaxForce = Vector3.new(5000,5000,5000) |
85 | + | hand2.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1,-2) |
86 | - | if owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then |
86 | + | for i,v in pairs(script:GetDescendants()) do |
87 | - | owner.Character.Torso.BodyVelocity.MaxForce = Vector3.new(5000,5000,5000) |
87 | + | if v:IsA("Part") then |
88 | - | owner.Character.Torso.BodyVelocity.MaxForce = Vector3.new(0,0,0) |
88 | + | v.CanCollide = false |
89 | - | end |
89 | + | v:SetNetworkOwner(owner) |
90 | end | |
91 | end | |
92 | hand.CanCollide = false | |
93 | hand2.CanCollide = false | |
94 | local hit = Instance.new("Sound", owner.Character.Head) | |
95 | hit.SoundId = "rbxassetid://7242037470" | |
96 | hit.Volume = 2.75 | |
97 | E = Instance.new("RemoteEvent",owner.Character) | |
98 | E.Name = "The" | |
99 | cangrab = false | |
100 | cangrab2 = false | |
101 | count = 0 | |
102 | count2 = 0 | |
103 | held = nil | |
104 | held2 = nil | |
105 | oldowner = nil | |
106 | oldowner2 = nil | |
107 | E.OnServerEvent:Connect(function(plr,action,target) | |
108 | pcall(function() | |
109 | if action == "grab" then | |
110 | count = count + 1 | |
111 | clicked = true | |
112 | hit:Play() | |
113 | wait(0.5) | |
114 | clicked = false | |
115 | if count == 1 then | |
116 | wait() | |
117 | if (owner.Character.Torso.CFrame.Position - target.CFrame.Position).magnitude <= 10 then | |
118 | target:SetNetworkOwner(owner) | |
119 | alignposition = Instance.new("Weld") | |
120 | alignposition.Parent = hand2 | |
121 | alignposition.Part0 = hand2 | |
122 | alignposition.Part1 = target | |
123 | end | |
124 | elseif count == 2 then | |
125 | alignposition:Destroy() | |
126 | wait() | |
127 | count = 0 | |
128 | end | |
129 | elseif action == "grab2" then | |
130 | count2 = count2 + 1 | |
131 | clicked2 = true | |
132 | hit:Play() | |
133 | wait(0.5) | |
134 | clicked2 = false | |
135 | if count2 == 1 then | |
136 | wait() | |
137 | if (owner.Character.Torso.CFrame.Position - target.CFrame.Position).magnitude <= 10 then | |
138 | target:SetNetworkOwner(owner) | |
139 | alignposition2 = Instance.new("Weld") | |
140 | alignposition2.Parent = hand | |
141 | alignposition2.Part0 = hand | |
142 | alignposition2.Part1 = target | |
143 | end | |
144 | elseif count2 == 2 then | |
145 | alignposition2:Destroy() | |
146 | wait() | |
147 | count2 = 0 | |
148 | end | |
149 | end | |
150 | end) | |
151 | end) | |
152 | NLS([[ | |
153 | remote2 = owner.Character:WaitForChild("lookremote2") | |
154 | E = owner.Character:WaitForChild("The") | |
155 | hand = owner.Character.Head:WaitForChild("Hand") | |
156 | hand2 = owner.Character.Head:WaitForChild("Hand2") | |
157 | mouse = owner:GetMouse() | |
158 | clicked1 = false | |
159 | clicked2 = false | |
160 | mouse.KeyDown:Connect(function(key) | |
161 | key = key:lower() | |
162 | if key == "q" then | |
163 | clicked2 = true | |
164 | E:FireServer("grab",mouse.Target) | |
165 | wait(0.75) | |
166 | clicked2 = false | |
167 | E:FireServer("stop") | |
168 | elseif key == "e" then | |
169 | clicked1 = true | |
170 | E:FireServer("grab2",mouse.Target) | |
171 | wait(0.75) | |
172 | clicked1 = false | |
173 | E:FireServer("stop") | |
174 | end | |
175 | end) | |
176 | ]],owner.PlayerGui) | |
177 | weight = Instance.new("Part", owner.Character) | |
178 | weight.CanCollide = false | |
179 | weight.Transparency = 1 | |
180 | weight.Size = Vector3.new(20,20,20) | |
181 | weight.CanTouch = false | |
182 | weight.CFrame = owner.Character.Torso.CFrame | |
183 | owner.Character.Torso.Anchored = true | |
184 | weightweld = Instance.new("Weld") | |
185 | weightweld.Parent = owner.Character.Torso | |
186 | weightweld.Part0 = owner.Character.Torso | |
187 | weightweld.Part1 = weight | |
188 | weightweld.C1 = CFrame.new(0,50,0) | |
189 | task.wait() | |
190 | owner.Character.Torso.Anchored = false | |
191 | NLS([[ -- thank rufus for head look and stuf | |
192 | owner = game:GetService("Players").LocalPlayer | |
193 | owner.Character:WaitForChild("Head") | |
194 | mouse = owner:GetMouse() | |
195 | local remote = owner.Character:WaitForChild("lookremote") | |
196 | local part = Instance.new("Part", owner.Character.Head) | |
197 | part.Size = Vector3.new(0.1,0.1,0.1) | |
198 | part.Transparency = 1 | |
199 | part.CanCollide = false | |
200 | part.Name = "camera" | |
201 | part:BreakJoints() | |
202 | local weld = Instance.new("Weld", part) | |
203 | weld.Part0 = owner.Character.Head | |
204 | weld.Part1 = part | |
205 | weld.C0 = CFrame.new(0,0,-1) | |
206 | while game:GetService("RunService").RenderStepped:wait() do | |
207 | remote:FireServer(mouse.Hit.p, mouse.Origin.p, workspace.CurrentCamera.CFrame) | |
208 | if (workspace.CurrentCamera.CFrame.p - part.Position).magnitude <= 1.7 then | |
209 | game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(mouse.Hit.p.x,game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z)) | |
210 | workspace.CurrentCamera.FieldOfView = 100 | |
211 | for i,v in pairs(owner.Character:GetChildren()) do | |
212 | if v.ClassName == "Part" or v.ClassName == "MeshPart" and v.Name ~= "Head" then | |
213 | v.LocalTransparencyModifier = 0 | |
214 | end | |
215 | if v.ClassName == "Accessory" then | |
216 | v.Handle.Transparency = 1 | |
217 | end | |
218 | end | |
219 | if owner.Character.Head:findFirstChildOfClass("Decal") then | |
220 | owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 1 | |
221 | end | |
222 | owner.Character.Head.Transparency = 1 | |
223 | workspace.CurrentCamera.CameraSubject = part | |
224 | else | |
225 | for i,v in pairs(owner.Character:GetChildren()) do | |
226 | if v.ClassName == "Accessory" then | |
227 | v.Handle.Transparency = 0 | |
228 | end | |
229 | end | |
230 | workspace.CurrentCamera.FieldOfView = 70 | |
231 | owner.Character.Head.Transparency = 0 | |
232 | if owner.Character.Head:findFirstChildOfClass("Decal") then | |
233 | owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 0 | |
234 | end | |
235 | workspace.CurrentCamera.CameraSubject = owner.Character | |
236 | end | |
237 | end | |
238 | ]], owner.Character) | |
239 | local remote = Instance.new("RemoteEvent", owner.Character) | |
240 | remote.Name = "lookremote" | |
241 | local remote2 = Instance.new("RemoteEvent", owner.Character) | |
242 | remote2.Name = "lookremote2" | |
243 | local headd = Instance.new("Weld", owner.Character.Torso) | |
244 | headd.Part0 = owner.Character.Torso | |
245 | headd.Part1 = owner.Character.Head | |
246 | headd.C0 = CFrame.new(0,1,0) | |
247 | headd.Name = "HeaddWeld" | |
248 | function look(plr, where, origin, cameracf) | |
249 | if plr == owner then | |
250 | local lookvector = owner.Character.Torso.CFrame:toObjectSpace(cameracf).lookVector.unit | |
251 | headd.C0 = CFrame.new(0,1,0) * CFrame.Angles(lookvector.y,0,0) | |
252 | headd.C0 = headd.C0 * CFrame.Angles(0,-lookvector.x,0) | |
253 | headd.C0 = headd.C0 * CFrame.new(0,0.5,0) | |
254 | end | |
255 | end | |
256 | remote.OnServerEvent:connect(look) | |
257 | function arms(plr,where1,where2) | |
258 | hand3.CFrame = where1 | |
259 | hand4.CFrame = where2 | |
260 | end | |
261 | remote2.OnServerEvent:connect(arms) | |
262 | while true do | |
263 | wait(game:GetService("RunService").Heartbeat) | |
264 | remote2:FireServer(hand3.CFrame,hand4.CFrame) | |
265 | if not clicked and not clicked3 then | |
266 | hand.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1.5,-2.5) | |
267 | hand2.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1.5,-2.5) | |
268 | elseif clicked then | |
269 | hand.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1.5,-4) | |
270 | hand2.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1.5,-2.5) | |
271 | elseif clicked3 then | |
272 | hand.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1.5,-2.5) | |
273 | hand2.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1.5,-4) | |
274 | end | |
275 | end |