SHOW:
|
|
- or go back to the newest paste.
1 | - | block = owner.Character.HumanoidRootPart |
1 | + | for i,v in pairs(owner.Character:GetDescendants()) do |
2 | - | arm = Instance.new("Part",script) |
2 | + | pcall(function() |
3 | local density = 1000000000 | |
4 | local friction = 1 | |
5 | local elasticity = 0 | |
6 | local frictionWeight = 100000000000 | |
7 | local elasticityWeight = 0 | |
8 | local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight) | |
9 | v.CustomPhysicalProperties = physProperties | |
10 | if v:IsA("Decal") then | |
11 | v.Transparency = 1 | |
12 | end | |
13 | end) | |
14 | end | |
15 | script.Parent = owner.Character | |
16 | - | arm3 = Instance.new("Part",script) |
16 | + | owner.Character.Torso.Transparency = 1 |
17 | block = owner.Character.Torso | |
18 | local part1 = Instance.new("Part", script) | |
19 | part1.Shape = Enum.PartType.Ball | |
20 | part1.Size = Vector3.new(1.5, 1.5, 1.5) | |
21 | part1.Material = "SmoothPlastic" | |
22 | part1.BrickColor = BrickColor.new("Bright yellow") | |
23 | blockweld = Instance.new("Weld",block) | |
24 | blockweld.Part0 = part1 | |
25 | blockweld.Part1 = owner.Character.Head | |
26 | decal = Instance.new("Decal", part1) | |
27 | decal.Face = Enum.NormalId.Front | |
28 | - | arm2 = Instance.new("Part",script) |
28 | + | local happyFace = "http://www.roblox.com/asset/?id=83017053" |
29 | decal.Texture = happyFace | |
30 | block2 = Instance.new("Part",script) | |
31 | blockweld = Instance.new("Weld",block) | |
32 | blockweld.Part0 = block2 | |
33 | blockweld.Part1 = block | |
34 | blockweld.C0 = CFrame.new(0,-0.125,0) | |
35 | block2.Massless = true | |
36 | block2.CanTouch = false | |
37 | block2.CanQuery = false | |
38 | block2.Size = Vector3.new(2.125,1.75,1.25) | |
39 | block4 = Instance.new("Part",script) | |
40 | - | arm4 = Instance.new("Part",script) |
40 | + | blockweld3 = Instance.new("Weld",block) |
41 | blockweld3.Part0 = block4 | |
42 | blockweld3.Part1 = block | |
43 | blockweld3.C0 = CFrame.new(0,1,0) | |
44 | block4.Massless = true | |
45 | block4.CanTouch = false | |
46 | block4.CanQuery = false | |
47 | block4.Size = Vector3.new(2.0625,0.5,1.125) | |
48 | block3 = Instance.new("Part",script) | |
49 | blockweld2 = Instance.new("Weld",block) | |
50 | blockweld2.Part0 = block3 | |
51 | blockweld2.Part1 = block | |
52 | - | hand = Instance.new("Part",owner.Character.Head) |
52 | + | blockweld2.C0 = CFrame.new(0,0,2) |
53 | - | hand.Size = Vector3.new(1,1,1) |
53 | + | block3.Massless = true |
54 | - | hand.Name = "Hand" |
54 | + | block3.CanTouch = false |
55 | block3.CanQuery = false | |
56 | block3.Transparency = 1 | |
57 | block3.CanCollide = false | |
58 | local Boing = Instance.new("Sound", owner.Character.Head) | |
59 | Boing.SoundId = "rbxassetid://12222124" | |
60 | Boing.Volume = 1.5 | |
61 | Boing.PlaybackSpeed = 1.125 | |
62 | local Boing2 = Instance.new("Sound", owner.Character.Head) | |
63 | Boing2.SoundId = "rbxassetid://12222124" | |
64 | - | hand2 = Instance.new("Part",owner.Character.Head) |
64 | + | Boing2.Volume = 1.5 |
65 | - | hand2.Size = Vector3.new(1,1,1) |
65 | + | Boing2.PlaybackSpeed = 1.125 |
66 | - | hand2.Name = "Hand2" |
66 | + | hand3 = Instance.new("Part",block) |
67 | hand3.Size = Vector3.new(1,2,2) | |
68 | hand3.Name = "Hand" | |
69 | hand3.Anchored = true | |
70 | hand3.Shape = "Cylinder" | |
71 | hand3.BrickColor = BrickColor.new("Bright yellow") | |
72 | bottom = Instance.new("Part") | |
73 | bottom.CFrame = hand3.CFrame * CFrame.new(0,-0.5,0) | |
74 | hand = hand3:SubtractAsync({bottom}) | |
75 | wait() | |
76 | hand.Parent = block | |
77 | hand4 = Instance.new("Part",block) | |
78 | hand4.Size = Vector3.new(1,2,2) | |
79 | hand4.Name = "Hand2" | |
80 | hand4.Shape = "Cylinder" | |
81 | hand4.BrickColor = BrickColor.new("Bright yellow") | |
82 | - | hand.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1,-2) |
82 | + | bottom2 = Instance.new("Part") |
83 | - | hand2.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1,-2) |
83 | + | bottom2.CFrame = hand4.CFrame * CFrame.new(0,-0.5,0) |
84 | - | |
84 | + | hand2 = hand4:SubtractAsync({bottom2}) |
85 | wait() | |
86 | hand2.Anchored = false | |
87 | hand.Anchored = false | |
88 | hand2.Parent = block | |
89 | local Mesh = Instance.new("SpecialMesh") | |
90 | Mesh.Parent = hand2 | |
91 | Mesh.Offset = Vector3.new(0, 0, -1) | |
92 | Mesh.MeshId = "http://www.roblox.com/asset/?id=1151839089" | |
93 | Mesh.Scale = Vector3.new(0.02,0.02,0.02) | |
94 | local Mesh2 = Instance.new("SpecialMesh") | |
95 | Mesh2.Parent = hand | |
96 | Mesh2.Offset = Vector3.new(0, 0, -1) | |
97 | Mesh2.MeshId = "http://www.roblox.com/asset/?id=1151814157" | |
98 | Mesh2.Scale = Vector3.new(0.02,0.02,0.02) | |
99 | bp2 = Instance.new("BodyPosition",hand) | |
100 | bp2.D = 100 | |
101 | bp2.P = 10000 | |
102 | bp2.position = hand.Position | |
103 | bp = Instance.new("BodyPosition",hand2) | |
104 | bp.D = 100 | |
105 | bp.P = 10000 | |
106 | bp.position = hand2.Position | |
107 | bg = Instance.new("BodyGyro",hand) | |
108 | bg.D = 100 | |
109 | bg.P = 10000 | |
110 | bg.MaxTorque = Vector3.new(math.huge * math.huge,math.huge * math.huge,math.huge * math.huge) | |
111 | bg2 = Instance.new("BodyGyro",hand2) | |
112 | bg2.D = 100 | |
113 | bg2.P = 10000 | |
114 | bg2.MaxTorque = Vector3.new(math.huge * math.huge,math.huge * math.huge,math.huge * math.huge) | |
115 | arm6 = Instance.new("Part",script) | |
116 | arm6.Size = Vector3.new(0.75,0.75,0.75) | |
117 | arm5 = Instance.new("Part",script) | |
118 | arm5.Size = Vector3.new(0.75,0.75,0.75) | |
119 | function the() | |
120 | coroutine.wrap(function() | |
121 | clicked = false | |
122 | clicked3 = false | |
123 | owner.Character["Left Arm"]:Destroy() | |
124 | owner.Character["Right Arm"]:Destroy() | |
125 | local arm = Instance.new("Part",script) | |
126 | arm.Size = Vector3.new(0.75,2,0.75) | |
127 | local arm7 = Instance.new("Part",script) | |
128 | arm7.Size = Vector3.new(0.75,2,0.75) | |
129 | arm4 = arm7 | |
130 | local random1,random2,random3 = math.random(0,255), math.random(0,255), math.random(0,255) | |
131 | block2.Color = Color3.fromRGB(random1,random2,random3) | |
132 | local Socket = Instance.new("BallSocketConstraint") | |
133 | local a1 = Instance.new("Attachment") | |
134 | local a2 = Instance.new("Attachment") | |
135 | a1.Parent = block | |
136 | a2.Parent = arm | |
137 | Socket.Parent = block | |
138 | Socket.Attachment0 = a1 | |
139 | Socket.Attachment1 = a2 | |
140 | a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(-1.5,0.5,0) | |
141 | a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0,1,0) | |
142 | Socket.Visible = true | |
143 | local arm8 = Instance.new("Part",script) | |
144 | arm8.Size = Vector3.new(0.75,2,0.75) | |
145 | arm3 = arm8 | |
146 | local Socket3 = Instance.new("BallSocketConstraint") | |
147 | Socket3.Visible = true | |
148 | local a5 = Instance.new("Attachment") | |
149 | local a6 = Instance.new("Attachment") | |
150 | a5.Parent = arm | |
151 | a6.Parent = arm3 | |
152 | Socket3.Parent = block | |
153 | Socket3.Attachment0 = a5 | |
154 | Socket3.Attachment1 = a6 | |
155 | a5.WorldCFrame = a5.Parent.CFrame * CFrame.new(0,-1,0) | |
156 | a6.WorldCFrame = a6.Parent.CFrame * CFrame.new(0,1,0) | |
157 | local arm2 = Instance.new("Part",script) | |
158 | arm2.Size = Vector3.new(0.75,2,0.75) | |
159 | local Socket2 = Instance.new("BallSocketConstraint") | |
160 | Socket2.Visible = true | |
161 | local a3 = Instance.new("Attachment") | |
162 | local a4 = Instance.new("Attachment") | |
163 | a3.Parent = block | |
164 | a4.Parent = arm2 | |
165 | Socket2.Parent = block | |
166 | Socket2.Attachment0 = a3 | |
167 | Socket2.Attachment1 = a4 | |
168 | a3.WorldCFrame = a3.Parent.CFrame * CFrame.new(1.5,0.5,0) | |
169 | a4.WorldCFrame = a4.Parent.CFrame * CFrame.new(0,1,0) | |
170 | local Socket4 = Instance.new("BallSocketConstraint") | |
171 | Socket4.Visible = true | |
172 | local a7 = Instance.new("Attachment") | |
173 | local a8 = Instance.new("Attachment") | |
174 | a7.Parent = arm2 | |
175 | a8.Parent = arm4 | |
176 | Socket4.Parent = block | |
177 | Socket4.Attachment0 = a7 | |
178 | Socket4.Attachment1 = a8 | |
179 | a7.WorldCFrame = a7.Parent.CFrame * CFrame.new(0,-1,0) | |
180 | a8.WorldCFrame = a8.Parent.CFrame * CFrame.new(0,1,0) | |
181 | local Socket5 = Instance.new("BallSocketConstraint") | |
182 | local a13 = Instance.new("Attachment") | |
183 | local a14 = Instance.new("Attachment") | |
184 | a13.Parent = arm3 | |
185 | a14.Parent = arm5 | |
186 | Socket5.Parent = block | |
187 | Socket5.Attachment0 = a13 | |
188 | Socket5.Attachment1 = a14 | |
189 | a13.WorldCFrame = a13.Parent.CFrame * CFrame.new(0,-1,0) | |
190 | a14.WorldCFrame = a14.Parent.CFrame * CFrame.new(0,-1,0) | |
191 | local Socket6 = Instance.new("BallSocketConstraint") | |
192 | local a15 = Instance.new("Attachment") | |
193 | local a16 = Instance.new("Attachment") | |
194 | a15.Parent = arm4 | |
195 | a16.Parent = arm6 | |
196 | Socket6.Parent = block | |
197 | Socket6.Attachment0 = a15 | |
198 | Socket6.Attachment1 = a16 | |
199 | a15.WorldCFrame = a15.Parent.CFrame * CFrame.new(0,-1,0) | |
200 | a16.WorldCFrame = a16.Parent.CFrame * CFrame.new(0,-1,0) | |
201 | arm6.BrickColor = BrickColor.new("Bright yellow") | |
202 | arm5.BrickColor = BrickColor.new("Bright yellow") | |
203 | arm6.Name = "handlol2" | |
204 | arm5.Name = "handlol" | |
205 | local at300 = Instance.new("Attachment" , arm5) | |
206 | at300.CFrame = CFrame.Angles(0,0,math.rad(-90)) | |
207 | local at400 = Instance.new("Attachment" , arm5) | |
208 | at400.CFrame = CFrame.Angles(0,0,math.rad(-90)) | |
209 | spring = Instance.new("SpringConstraint" , arm5) | |
210 | spring.Attachment0 = at300 | |
211 | spring.Attachment1 = at400 | |
212 | spring.Stiffness = 20000 | |
213 | spring.Damping = 200 | |
214 | spring.FreeLength = 0 | |
215 | spring.MaxForce = 3750 | |
216 | spring.Enabled = true | |
217 | spring.Visible = true | |
218 | spring.LimitsEnabled = true | |
219 | spring.MinLength = 0 | |
220 | spring.MaxLength = math.huge | |
221 | local at100 = Instance.new("Attachment" , arm6) | |
222 | at100.CFrame = CFrame.Angles(0,0,math.rad(-90)) | |
223 | local at200 = Instance.new("Attachment" , arm6) | |
224 | at200.CFrame = CFrame.Angles(0,0,math.rad(-90)) | |
225 | local spring2 = Instance.new("SpringConstraint" , arm6) | |
226 | spring2.Attachment0 = at100 | |
227 | spring2.Attachment1 = at200 | |
228 | spring2.Stiffness = 20000 | |
229 | spring2.Damping = 200 | |
230 | spring2.FreeLength = 0 | |
231 | spring2.MaxForce = 3750 | |
232 | spring2.Enabled = true | |
233 | spring2.Visible = true | |
234 | spring2.LimitsEnabled = true | |
235 | spring2.MinLength = 0 | |
236 | spring2.MaxLength = math.huge | |
237 | local Mesh = Instance.new("SpecialMesh") | |
238 | Mesh.Parent = arm6 | |
239 | Mesh.MeshId = "http://www.roblox.com/asset/?id=7962929537" | |
240 | Mesh.Scale = Vector3.new(2, 2, 2) | |
241 | Bone = Instance.new("Bone",arm6) | |
242 | Bone.CFrame = CFrame.new(0,1,0) | |
243 | Bone.Transform = CFrame.new(-1,0,0) | |
244 | local Mesh2 = Instance.new("SpecialMesh") | |
245 | Mesh2.Parent = arm5 | |
246 | Mesh2.MeshId = "http://www.roblox.com/asset/?id=7962929537" | |
247 | Mesh2.Scale = Vector3.new(2, 2, 2) | |
248 | Socket.Radius = 0.45 | |
249 | Socket3.Radius = 0.45 | |
250 | Socket2.Radius = 0.45 | |
251 | Socket4.Radius = 0.45 | |
252 | arm.Color = Color3.fromRGB(random1,random2,random3) | |
253 | arm2.Color = Color3.fromRGB(random1,random2,random3) | |
254 | arm3.Color = Color3.fromRGB(random1,random2,random3) | |
255 | arm4.Color = Color3.fromRGB(random1,random2,random3) | |
256 | Socket.Color = arm.BrickColor | |
257 | Socket2.Color = arm.BrickColor | |
258 | Socket3.Color = arm.BrickColor | |
259 | Socket4.Color = arm.BrickColor | |
260 | arm:SetNetworkOwner(owner) | |
261 | arm2:SetNetworkOwner(owner) | |
262 | arm3:SetNetworkOwner(owner) | |
263 | arm4:SetNetworkOwner(owner) | |
264 | arm5:SetNetworkOwner(owner) | |
265 | arm6:SetNetworkOwner(owner) | |
266 | arm.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1,0) | |
267 | arm2.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1,0) | |
268 | arm3.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1,-2) | |
269 | arm4.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1,-2) | |
270 | arm5.CFrame = owner.Character.Head.CFrame * CFrame.new(1.5,-1,-2) | |
271 | arm6.CFrame = owner.Character.Head.CFrame * CFrame.new(-1.5,-1,-2) | |
272 | remote = Instance.new("RemoteEvent",owner.Character) | |
273 | remote.Name = "The" | |
274 | count = 0 | |
275 | local what | |
276 | local weld | |
277 | local oldowner | |
278 | count2 = 0 | |
279 | local what2 | |
280 | local weld2 | |
281 | local oldowner2 | |
282 | count3 = 0 | |
283 | grabreach = 7.5 | |
284 | local hits = Instance.new("Sound", owner.Character.Head) | |
285 | hits.SoundId = "rbxassetid://7242037470" | |
286 | hits.Volume = 2.75 | |
287 | remote.OnServerEvent:Connect(function(plr,action,who,hit) | |
288 | pcall(function() | |
289 | if action == "Grab" then | |
290 | if (arm6.CFrame.Position - hit.Position).magnitude <= grabreach then | |
291 | hits:Play() | |
292 | count = count+1 | |
293 | if count == 1 then | |
294 | if who.Anchored == true then | |
295 | arm6.Anchored = true | |
296 | end | |
297 | arm6.CFrame = hit | |
298 | weld = Instance.new("WeldConstraint",arm6) | |
299 | weld.Part0 = who | |
300 | weld.Part1 = arm6 | |
301 | who.Massless = true | |
302 | at200.Parent = who | |
303 | at200.WorldCFrame = hit | |
304 | oldowner = who:GetNetworkOwner() | |
305 | task.wait() | |
306 | who:SetNetworkOwner(owner) | |
307 | hum = who.Parent:FindFirstChild("Humanoid") or who.Parent.Parent:FindFirstChild("Humanoid") | |
308 | if hum then | |
309 | hum.PlatformStand = true | |
310 | end | |
311 | what = who | |
312 | elseif count == 2 then | |
313 | at200.Parent = arm6 | |
314 | at200.WorldCFrame = arm6.CFrame | |
315 | arm6.Anchored = false | |
316 | weld:Destroy() | |
317 | count = 0 | |
318 | what.Massless = false | |
319 | task.wait() | |
320 | what:SetNetworkOwner(oldowner) | |
321 | if hum then | |
322 | hum.PlatformStand = false | |
323 | end | |
324 | wait() | |
325 | end | |
326 | end | |
327 | elseif action == "Grab2" then | |
328 | if (arm5.CFrame.Position - hit.Position).magnitude <= grabreach then | |
329 | hits:Play() | |
330 | count2 = count2+1 | |
331 | if count2 == 1 then | |
332 | at400.Parent = who | |
333 | at400.WorldCFrame = hit | |
334 | if who.Anchored == true then | |
335 | arm5.Anchored = true | |
336 | end | |
337 | arm5.CFrame = hit | |
338 | weld2 = Instance.new("WeldConstraint",arm5) | |
339 | weld2.Part0 = who | |
340 | weld2.Part1 = arm5 | |
341 | who.Massless = true | |
342 | oldowner2 = who:GetNetworkOwner() | |
343 | task.wait() | |
344 | who:SetNetworkOwner(owner) | |
345 | hum2 = who.Parent:FindFirstChild("Humanoid") or who.Parent.Parent:FindFirstChild("Humanoid") | |
346 | if hum2 then | |
347 | hum2.PlatformStand = true | |
348 | end | |
349 | what2 = who | |
350 | elseif count2 == 2 then | |
351 | at400.Parent = arm5 | |
352 | at400.WorldCFrame = arm5.CFrame | |
353 | arm5.Anchored = false | |
354 | weld2:Destroy() | |
355 | count2 = 0 | |
356 | what2.Massless = false | |
357 | task.wait() | |
358 | what2:SetNetworkOwner(oldowner2) | |
359 | if hum2 then | |
360 | hum2.PlatformStand = false | |
361 | end | |
362 | wait() | |
363 | end | |
364 | end | |
365 | elseif action == "Ragdoll" then | |
366 | count3 = count3 + 1 | |
367 | if count3 == 1 then | |
368 | owner.Character.Humanoid.PlatformStand = true | |
369 | grabreach = 20 | |
370 | bp.P = 0 | |
371 | bp2.P = 0 | |
372 | bg2.MaxTorque = Vector3.new(0,0,0) | |
373 | bg.MaxTorque = Vector3.new(0,0,0) | |
374 | bg2.D = 0 | |
375 | bg.D = 0 | |
376 | bp.D = 0 | |
377 | bp2.D = 0 | |
378 | elseif count3 >= 2 then | |
379 | owner.Character.Humanoid.PlatformStand = false | |
380 | grabreach = 7.5 | |
381 | wait(0.5) | |
382 | bp.P = 10000 | |
383 | bp2.P = 10000 | |
384 | bg2.D = 100 | |
385 | bg.D = 100 | |
386 | bp.D = 100 | |
387 | bp2.D = 100 | |
388 | bg2.MaxTorque = Vector3.new(math.huge * math.huge,math.huge * math.huge,math.huge * math.huge) | |
389 | bg.MaxTorque = Vector3.new(math.huge * math.huge,math.huge * math.huge,math.huge * math.huge) | |
390 | count3 = 0 | |
391 | end | |
392 | end | |
393 | end) | |
394 | end) | |
395 | NLS([[ | |
396 | remote = owner.Character:WaitForChild("The") | |
397 | mouse = owner:GetMouse() | |
398 | mouse.KeyDown:Connect(function(key) | |
399 | key = key:lower() | |
400 | if key == "q" then | |
401 | remote:FireServer("Grab",mouse.Target,mouse.Hit) | |
402 | elseif key == "e" then | |
403 | remote:FireServer("Grab2",mouse.Target,mouse.Hit) | |
404 | elseif key == "r" then | |
405 | remote:FireServer("Ragdoll") | |
406 | end | |
407 | end) | |
408 | ]],owner.PlayerGui) | |
409 | end)() | |
410 | end | |
411 | the() | |
412 | local random1,random2,random3 = math.random(0,255),math.random(0,255),math.random(0,255) | |
413 | script.Parent = owner.Character | |
414 | owner.Character["Left Leg"]:Destroy() | |
415 | owner.Character["Right Leg"]:Destroy() | |
416 | owner.Character.Humanoid.HipHeight = 3.75 | |
417 | local arm = Instance.new("Part",script) | |
418 | arm.Size = Vector3.new(0.75,2,0.75) | |
419 | local Socket = Instance.new("BallSocketConstraint") | |
420 | local a1 = Instance.new("Attachment") | |
421 | local a2 = Instance.new("Attachment") | |
422 | a1.Parent = block | |
423 | a2.Parent = arm | |
424 | Socket.Parent = block | |
425 | Socket.Attachment0 = a1 | |
426 | Socket.Attachment1 = a2 | |
427 | a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(-0.5,-1,0) | |
428 | a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0,1,0) | |
429 | local arm3 = Instance.new("Part",script) | |
430 | arm3.Size = Vector3.new(0.75,2,0.75) | |
431 | Socket.Visible = true | |
432 | local Socket3 = Instance.new("BallSocketConstraint") | |
433 | Socket3.Visible = true | |
434 | local a5 = Instance.new("Attachment") | |
435 | local a6 = Instance.new("Attachment") | |
436 | a5.Parent = arm | |
437 | a6.Parent = arm3 | |
438 | Socket3.Parent = block | |
439 | Socket3.Attachment0 = a5 | |
440 | Socket3.Attachment1 = a6 | |
441 | a5.WorldCFrame = a5.Parent.CFrame * CFrame.new(0,-1,0) | |
442 | a6.WorldCFrame = a6.Parent.CFrame * CFrame.new(0,1,0) | |
443 | local arm2 = Instance.new("Part",script) | |
444 | arm2.Size = Vector3.new(0.75,2,0.75) | |
445 | local Socket2 = Instance.new("BallSocketConstraint") | |
446 | Socket2.Visible = true | |
447 | local a3 = Instance.new("Attachment") | |
448 | local a4 = Instance.new("Attachment") | |
449 | a3.Parent = block | |
450 | a4.Parent = arm2 | |
451 | Socket2.Parent = block | |
452 | Socket2.Attachment0 = a3 | |
453 | Socket2.Attachment1 = a4 | |
454 | a3.WorldCFrame = a3.Parent.CFrame * CFrame.new(0.5,-1,0) | |
455 | a4.WorldCFrame = a4.Parent.CFrame * CFrame.new(0,1,0) | |
456 | local arm4 = Instance.new("Part",script) | |
457 | arm4.Size = Vector3.new(0.75,2,0.75) | |
458 | local Socket4 = Instance.new("BallSocketConstraint") | |
459 | Socket4.Visible = true | |
460 | local a7 = Instance.new("Attachment") | |
461 | local a8 = Instance.new("Attachment") | |
462 | a7.Parent = arm2 | |
463 | a8.Parent = arm4 | |
464 | Socket4.Parent = block | |
465 | Socket4.Attachment0 = a7 | |
466 | Socket4.Attachment1 = a8 | |
467 | a7.WorldCFrame = a7.Parent.CFrame * CFrame.new(0,-1,0) | |
468 | a8.WorldCFrame = a8.Parent.CFrame * CFrame.new(0,1,0) | |
469 | local Socket5 = Instance.new("BallSocketConstraint") | |
470 | Socket5.Visible = true | |
471 | local a9 = Instance.new("Attachment") | |
472 | local a10 = Instance.new("Attachment") | |
473 | a9.Parent = arm4 | |
474 | a10.Parent = hand | |
475 | Socket5.Parent = block | |
476 | Socket5.Attachment0 = a9 | |
477 | Socket5.Attachment1 = a10 | |
478 | a9.WorldCFrame = a9.Parent.CFrame * CFrame.new(0,-1,0) | |
479 | local Socket6 = Instance.new("BallSocketConstraint") | |
480 | Socket6.Visible = true | |
481 | local a11 = Instance.new("Attachment") | |
482 | local a12 = Instance.new("Attachment") | |
483 | a11.Parent = arm3 | |
484 | a12.Parent = hand2 | |
485 | Socket6.Parent = block | |
486 | Socket6.Attachment0 = a11 | |
487 | Socket6.Attachment1 = a12 | |
488 | a11.WorldCFrame = a11.Parent.CFrame * CFrame.new(0,-1,0) | |
489 | hand:SetNetworkOwner(owner) | |
490 | hand2:SetNetworkOwner(owner) | |
491 | arm:SetNetworkOwner(owner) | |
492 | arm2:SetNetworkOwner(owner) | |
493 | arm3:SetNetworkOwner(owner) | |
494 | arm4:SetNetworkOwner(owner) | |
495 | arm.CFrame = block.CFrame * CFrame.new(-1.5,-1,0) | |
496 | arm2.CFrame = block.CFrame * CFrame.new(1.5,-1,0) | |
497 | arm3.CFrame = block.CFrame * CFrame.new(1.5,-1,-2) | |
498 | arm4.CFrame = block.CFrame * CFrame.new(-1.5,-1,-2) | |
499 | hand.CFrame = block.CFrame * CFrame.new(1,-2,0) | |
500 | hand2.CFrame = block.CFrame * CFrame.new(-1,-2,0) | |
501 | params = RaycastParams.new() | |
502 | params.FilterDescendantsInstances = {hand,hand2,block,script} | |
503 | params.FilterType = Enum.RaycastFilterType.Blacklist | |
504 | params2 = RaycastParams.new() | |
505 | params2.FilterDescendantsInstances = {hand,hand2,block,script} | |
506 | params2.FilterType = Enum.RaycastFilterType.Blacklist | |
507 | Socket.Radius = 0.45 | |
508 | Socket3.Radius = 0.45 | |
509 | Socket2.Radius = 0.45 | |
510 | Socket4.Radius = 0.45 | |
511 | Socket5.Radius = 0.45 | |
512 | Socket6.Radius = 0.45 | |
513 | arm.Color = Color3.fromRGB(random1,random2,random3) | |
514 | arm2.Color = Color3.fromRGB(random1,random2,random3) | |
515 | arm3.Color = Color3.fromRGB(random1,random2,random3) | |
516 | arm4.Color = Color3.fromRGB(random1,random2,random3) | |
517 | block4.Color = Color3.fromRGB(random1,random2,random3) | |
518 | Socket.Color = arm.BrickColor | |
519 | Socket2.Color = arm.BrickColor | |
520 | Socket3.Color = arm.BrickColor | |
521 | Socket4.Color = arm.BrickColor | |
522 | Socket5.Color = arm.BrickColor | |
523 | Socket6.Color = arm.BrickColor | |
524 | local last | |
525 | for i,v in pairs(owner.Character:GetDescendants()) do | |
526 | pcall(function() | |
527 | local nocollide = Instance.new("NoCollisionConstraint",owner.Character) | |
528 | nocollide.Part1 = v | |
529 | nocollide.Part0 = owner.Character.HumanoidRootPart | |
530 | v.Massless = true | |
531 | v.Material = "SmoothPlastic" | |
532 | v.Locked = true | |
533 | end) | |
534 | end | |
535 | wait() | |
536 | hand.CanCollide = true | |
537 | hand2.CanCollide = true | |
538 | Sword = Instance.new("Part",game.Workspace) | |
539 | Sword.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-5) | |
540 | Mesh = Instance.new("SpecialMesh") | |
541 | Sword.Size = Vector3.new(2, 1, 4) | |
542 | Mesh.Parent = Sword | |
543 | Mesh.MeshId = "http://www.roblox.com/asset/?id=12221720" | |
544 | Mesh.TextureId = "http://www.roblox.com/asset/?id=12224218" | |
545 | Mesh.Scale = Vector3.new(1, 1, 1) | |
546 | isTouched = false | |
547 | local function damagePlayer(otherPart) | |
548 | pcall(function() | |
549 | local partParent = otherPart.Parent | |
550 | local humanoid = partParent:FindFirstChildWhichIsA("Humanoid") | |
551 | if humanoid ~= owner.Character.Humanoid and humanoid then | |
552 | if not isTouched then | |
553 | isTouched = true | |
554 | humanoid.Health = humanoid.Health - 45 | |
555 | wait(0.40) | |
556 | isTouched = false | |
557 | end | |
558 | end | |
559 | end) | |
560 | end | |
561 | Sword.Touched:Connect(damagePlayer) | |
562 | Sword2 = Instance.new("Part",game.Workspace) | |
563 | Sword2.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-5) | |
564 | Mesh3 = Instance.new("SpecialMesh") | |
565 | Sword2.Size = Vector3.new(0.200000003, 0.880000353, 3.94999981) | |
566 | Mesh3.Parent = Sword2 | |
567 | Mesh3.MeshId = "http://www.roblox.com/asset/?id=2766469" | |
568 | Mesh3.TextureId = "http://www.roblox.com/asset/?id=185441602" | |
569 | Mesh3.Scale = Vector3.new(1, 1, 1) | |
570 | local function damagePlayer2(otherPart) | |
571 | pcall(function() | |
572 | local partParent = otherPart.Parent | |
573 | local humanoid = partParent:FindFirstChildWhichIsA("Humanoid") | |
574 | if humanoid ~= owner.Character.Humanoid and humanoid then | |
575 | humanoid.Health = humanoid.Health - 5 | |
576 | end | |
577 | end) | |
578 | end | |
579 | Sword2.Touched:Connect(damagePlayer2) | |
580 | arm5.CFrame = owner.Character.Head.CFrame * CFrame.Angles(math.rad(-90),0,0) * CFrame.Angles(0,0,math.rad(-90)) * CFrame.new(-1.5,2,-4) | |
581 | arm6.CFrame = owner.Character.Head.CFrame * CFrame.Angles(math.rad(-90),0,0) * CFrame.Angles(0,0,math.rad(-90)) * CFrame.new(1.5,2,-4) | |
582 | warn("This is really important please read") | |
583 | print("Q and E are grab in range") | |
584 | print("You can increase grab range while ragdolled") | |
585 | print("R is Ragdoll") | |
586 | print("Sword/Chainsaw spawns infront of you so you can kill people") | |
587 | print("Every key is toggle") | |
588 | warn("Made by Lucas_YT111 / Haker Man") | |
589 | while true do | |
590 | task.wait() | |
591 | pcall(function() | |
592 | bp.position = hand2.Position | |
593 | bp2.position = hand.Position | |
594 | bg.CFrame = hand.CFrame | |
595 | bg2.CFrame = hand2.CFrame | |
596 | local result = workspace:Raycast(block3.Position, block.CFrame.upVector * -10 + block.CFrame.RightVector * 1 + block.CFrame.lookVector * 1, params) | |
597 | if result then | |
598 | if owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) then | |
599 | hand.Position = result.Position | |
600 | hand.Rotation = owner.Character.Head.Rotation | |
601 | hand2.Rotation = owner.Character.Head.Rotation | |
602 | Boing:Play() | |
603 | end | |
604 | end | |
605 | if (hand.CFrame.Position - hand2.CFrame.Position).magnitude >= 2 then | |
606 | local result2 = workspace:Raycast(block3.Position, block.CFrame.upVector * -10 + block.CFrame.RightVector * -1 + block.CFrame.lookVector * 1, params2) | |
607 | if result2 then | |
608 | hand2.Position = result2.Position | |
609 | hand2.Rotation = owner.Character.Head.Rotation | |
610 | hand.Rotation = owner.Character.Head.Rotation | |
611 | Boing2:Play() | |
612 | end | |
613 | end | |
614 | end) | |
615 | end |