SHOW:
|
|
- or go back to the newest paste.
1 | wait() | |
2 | player = game.Players.LocalPlayer | |
3 | char = player.Character | |
4 | mouse = player:GetMouse() | |
5 | Plr = game:service'Players'.LocalPlayer | |
6 | ||
7 | print("WHAT UP") | |
8 | ||
9 | armed = false | |
10 | canfire = false | |
11 | enabled = true | |
12 | equipped = false | |
13 | - | mouse.Icon = "rbxassetid://311756275" |
13 | + | |
14 | mouse.Icon = "rbxassetid://36983768" | |
15 | ||
16 | rightshoulder = char.Torso["Right Shoulder"]:Clone() | |
17 | leftshoulder = char.Torso["Left Shoulder"]:Clone() | |
18 | torso = char.HumanoidRootPart.RootJoint:Clone() | |
19 | ||
20 | hed = Instance.new("Weld", char.Torso) | |
21 | hed.Part0 = char.Torso | |
22 | hed.Part1 = char.Head | |
23 | hed.C0 = CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 0, 0) | |
24 | ||
25 | -- the bow stuff | |
26 | ||
27 | bow = Instance.new("Model") | |
28 | bow.Parent = game.Workspace | |
29 | bow.Name = "bow" | |
30 | ||
31 | handle = Instance.new("Part") | |
32 | handle.CFrame = CFrame.new(Vector3.new(-48.1999893, 2.79998732, -58.2000122)) * CFrame.Angles(-3.1415927410126, 0, -0) | |
33 | - | handle.BrickColor = BrickColor.new("Pine Cone") |
33 | + | |
34 | handle.BrickColor = BrickColor.new("Gold") | |
35 | handle.Friction = 0.30000001192093 | |
36 | handle.Shape = Enum.PartType.Block | |
37 | handle.Name = "Handle" | |
38 | handle.Parent = bow | |
39 | handle.CanCollide = false | |
40 | ||
41 | leg2 = Instance.new("Part") | |
42 | leg2.CFrame = CFrame.new(Vector3.new(-48.1999931, 1.25002313, -58.2000008)) * CFrame.Angles(-3.1415927410126, 0, -0) | |
43 | - | leg2.BrickColor = BrickColor.new("Pine Cone") |
43 | + | |
44 | leg2.BrickColor = BrickColor.new("Gold") | |
45 | leg2.Friction = 0.30000001192093 | |
46 | leg2.Shape = Enum.PartType.Block | |
47 | leg2.Name = "Leg2" | |
48 | leg2.Parent = bow | |
49 | leg2.CanCollide = false | |
50 | ||
51 | cap2 = Instance.new("Part") | |
52 | cap2.CFrame = CFrame.new(Vector3.new(-48.2000046, 0.300019979, -58.2000008)) * CFrame.Angles(1.5707963705063, 0, -0) | |
53 | cap2.TopSurface = Enum.SurfaceType.Smooth | |
54 | cap2.BottomSurface = Enum.SurfaceType.Smooth | |
55 | - | cap2.BrickColor = BrickColor.new("Pine Cone") |
55 | + | |
56 | cap2.BrickColor = BrickColor.new("Gold") | |
57 | cap2.Friction = 0.30000001192093 | |
58 | cap2.Shape = Enum.PartType.Cylinder | |
59 | cap2.Name = "Cap2" | |
60 | cap2.Parent = bow | |
61 | cap2.CanCollide = false | |
62 | ||
63 | joint2 = Instance.new("Part") | |
64 | joint2.CFrame = CFrame.new(Vector3.new(-48.1999893, 2.19999003, -58.2000237)) * CFrame.Angles(1.5707963705063, 0, -0) | |
65 | joint2.TopSurface = Enum.SurfaceType.Smooth | |
66 | joint2.BottomSurface = Enum.SurfaceType.Smooth | |
67 | - | joint2.BrickColor = BrickColor.new("Pine Cone") |
67 | + | |
68 | joint2.BrickColor = BrickColor.new("Gold") | |
69 | joint2.Friction = 0.30000001192093 | |
70 | joint2.Shape = Enum.PartType.Cylinder | |
71 | joint2.Name = "Joint2" | |
72 | joint2.Parent = bow | |
73 | joint2.CanCollide = false | |
74 | ||
75 | joint1 = Instance.new("Part") | |
76 | joint1.CFrame = CFrame.new(Vector3.new(-48.2000008, 3.39998126, -58.2000275)) * CFrame.Angles(1.5707963705063, 0, -0) | |
77 | joint1.TopSurface = Enum.SurfaceType.Smooth | |
78 | joint1.BottomSurface = Enum.SurfaceType.Smooth | |
79 | - | joint1.BrickColor = BrickColor.new("Pine Cone") |
79 | + | |
80 | joint1.BrickColor = BrickColor.new("Gold") | |
81 | joint1.Friction = 0.30000001192093 | |
82 | joint1.Shape = Enum.PartType.Cylinder | |
83 | joint1.Name = "Joint1" | |
84 | joint1.Parent = bow | |
85 | joint1.CanCollide = false | |
86 | ||
87 | leg1 = Instance.new("Part") | |
88 | leg1.CFrame = CFrame.new(Vector3.new(-48.1999931, 4.35000753, -58.2000122)) * CFrame.Angles(-3.1415927410126, 0, -0) | |
89 | - | leg1.BrickColor = BrickColor.new("Pine Cone") |
89 | + | |
90 | leg1.BrickColor = BrickColor.new("Gold") | |
91 | leg1.Friction = 0.30000001192093 | |
92 | leg1.Shape = Enum.PartType.Block | |
93 | leg1.Name = "Leg1" | |
94 | leg1.Parent = bow | |
95 | leg1.CanCollide = false | |
96 | ||
97 | cap1 = Instance.new("Part") | |
98 | cap1.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0) | |
99 | cap1.TopSurface = Enum.SurfaceType.Smooth | |
100 | cap1.BottomSurface = Enum.SurfaceType.Smooth | |
101 | - | cap1.BrickColor = BrickColor.new("Pine Cone") |
101 | + | |
102 | cap1.BrickColor = BrickColor.new("Gold") | |
103 | cap1.Friction = 0.30000001192093 | |
104 | cap1.Shape = Enum.PartType.Cylinder | |
105 | cap1.Name = "Cap1" | |
106 | cap1.Parent = bow | |
107 | cap1.CanCollide = false | |
108 | ||
109 | stringpart = Instance.new("Part") | |
110 | stringpart.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0) | |
111 | stringpart.TopSurface = Enum.SurfaceType.Smooth | |
112 | stringpart.BottomSurface = Enum.SurfaceType.Smooth | |
113 | stringpart.Size = Vector3.new(0.1, 0.1, 0.1) | |
114 | - | stringpart.BrickColor = BrickColor.new("Mid grey") |
114 | + | |
115 | stringpart.BrickColor = BrickColor.new("Institutional white") | |
116 | stringpart.Friction = 0.30000001192093 | |
117 | stringpart.Shape = Enum.PartType.Cylinder | |
118 | stringpart.Name = "StringAttachment" | |
119 | stringpart.Parent = bow | |
120 | stringpart.CanCollide = false | |
121 | ||
122 | arrow = Instance.new("Model") | |
123 | arrow.Parent = game.Workspace | |
124 | arrow.Name = "arrow" | |
125 | ||
126 | feather1 = Instance.new("WedgePart") | |
127 | feather1.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.90000844, -56.1500168)) * CFrame.Angles(-0, 0, -0) | |
128 | feather1.TopSurface = Enum.SurfaceType.Smooth | |
129 | - | feather1.BrickColor = BrickColor.new("Crimson") |
129 | + | |
130 | feather1.BrickColor = BrickColor.new("Really red") | |
131 | feather1.Friction = 0.30000001192093 | |
132 | feather1.Name = "Feather" | |
133 | feather1.Parent = arrow | |
134 | feather1.CanCollide = false | |
135 | feather1.Transparency = 1 | |
136 | ||
137 | feather2 = Instance.new("WedgePart") | |
138 | feather2.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.50003171, -56.1500168)) * CFrame.Angles(-0, 0, -3.1415927410126) | |
139 | feather2.TopSurface = Enum.SurfaceType.Smooth | |
140 | - | feather2.BrickColor = BrickColor.new("Crimson") |
140 | + | |
141 | feather2.BrickColor = BrickColor.new("Really red") | |
142 | feather2.Friction = 0.30000001192093 | |
143 | feather2.Name = "Feather" | |
144 | feather2.Parent = arrow | |
145 | feather2.CanCollide = false | |
146 | feather2.Transparency = 1 | |
147 | ||
148 | arrowhead = Instance.new("WedgePart") | |
149 | arrowhead.CFrame = CFrame.new(Vector3.new(-48.2999992, 2.80002427, -59.4500008)) * CFrame.Angles(-0, 0, -0) | |
150 | arrowhead.TopSurface = Enum.SurfaceType.Smooth | |
151 | arrowhead.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952) | |
152 | arrowhead.Friction = 0.30000001192093 | |
153 | arrowhead.Name = "Arrowhead" | |
154 | arrowhead.Parent = arrow | |
155 | arrowhead.CanCollide = false | |
156 | arrowhead.Transparency = 1 | |
157 | ||
158 | arrowcap = Instance.new("Part") | |
159 | arrowcap.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0) | |
160 | arrowcap.TopSurface = Enum.SurfaceType.Smooth | |
161 | arrowcap.BottomSurface = Enum.SurfaceType.Smooth | |
162 | - | arrowcap.BrickColor = BrickColor.new("Dirt brown") |
162 | + | |
163 | arrowcap.BrickColor = BrickColor.new("Gold") | |
164 | arrowcap.Friction = 0.30000001192093 | |
165 | arrowcap.Shape = Enum.PartType.Cylinder | |
166 | arrowcap.Name = "ArrowCap" | |
167 | arrowcap.Parent = arrow | |
168 | arrowcap.CanCollide = false | |
169 | arrowcap.Transparency = 1 | |
170 | ||
171 | arrowbody = Instance.new("Part") | |
172 | arrowbody.CFrame = CFrame.new(Vector3.new(0, 3, 0)) * CFrame.Angles(-0, 0, -0) | |
173 | - | arrowbody.BrickColor = BrickColor.new("Dirt brown") |
173 | + | |
174 | arrowbody.BrickColor = BrickColor.new("Gold") | |
175 | arrowbody.Friction = 0.30000001192093 | |
176 | arrowbody.Shape = Enum.PartType.Block | |
177 | arrowbody.Name = "ArrowBody" | |
178 | arrowbody.Parent = arrow | |
179 | arrowbody.CanCollide = false | |
180 | arrowbody.Transparency = 1 | |
181 | ||
182 | feather3 = Instance.new("WedgePart") | |
183 | feather3.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.50004983, -55.9500198)) * CFrame.Angles(-0, 0, -3.1415927410126) | |
184 | feather3.TopSurface = Enum.SurfaceType.Smooth | |
185 | - | feather3.BrickColor = BrickColor.new("Crimson") |
185 | + | |
186 | feather3.BrickColor = BrickColor.new("Really red") | |
187 | feather3.Friction = 0.30000001192093 | |
188 | feather3.Name = "Feather" | |
189 | feather3.Parent = arrow | |
190 | feather3.CanCollide = false | |
191 | feather3.Transparency = 1 | |
192 | ||
193 | feather4 = Instance.new("WedgePart") | |
194 | feather4.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.90003037, -55.9500198)) * CFrame.Angles(-0, 0, -0) | |
195 | feather4.TopSurface = Enum.SurfaceType.Smooth | |
196 | - | feather4.BrickColor = BrickColor.new("Crimson") |
196 | + | |
197 | feather4.BrickColor = BrickColor.new("Really red") | |
198 | feather4.Friction = 0.30000001192093 | |
199 | feather4.Name = "Feather" | |
200 | feather4.Parent = arrow | |
201 | feather4.CanCollide = false | |
202 | feather4.Transparency = 1 | |
203 | ||
204 | -- the welds | |
205 | ||
206 | whandle = Instance.new("Weld", char["Left Arm"]) | |
207 | whandle.Part0 = char.Torso | |
208 | whandle.Part1 = handle | |
209 | whandle.C0 = CFrame.new(0, 0, 0.6) * CFrame.Angles(0, 0, math.rad(45)) | |
210 | ||
211 | wstringpart = Instance.new("Weld", handle) | |
212 | wstringpart.Part0 = handle | |
213 | wstringpart.Part1 = stringpart | |
214 | wstringpart.C0 = CFrame.new(0, -0.3, -0.3) * CFrame.new(0, 0, 0) | |
215 | ||
216 | wjoint1 = Instance.new("Weld", handle) | |
217 | wjoint1.Part0 = handle | |
218 | wjoint1.Part1 = joint1 | |
219 | wjoint1.C0 = CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0) | |
220 | ||
221 | wjoint2 = Instance.new("Weld", handle) | |
222 | wjoint2.Part0 = handle | |
223 | wjoint2.Part1 = joint2 | |
224 | wjoint2.C0 = CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0) | |
225 | ||
226 | wleg1 = Instance.new("Weld", joint1) | |
227 | wleg1.Part0 = joint1 | |
228 | wleg1.Part1 = leg1 | |
229 | wleg1.C0 = CFrame.new(0, 0.95, 0) * CFrame.Angles(0, 0, 0) | |
230 | ||
231 | wleg2 = Instance.new("Weld", joint2) | |
232 | wleg2.Part0 = joint2 | |
233 | wleg2.Part1 = leg2 | |
234 | wleg2.C0 = CFrame.new(0, -0.95, 0) * CFrame.Angles(0, 0, 0) | |
235 | ||
236 | wcap1 = Instance.new("Weld", leg1) | |
237 | wcap1.Part0 = leg1 | |
238 | wcap1.Part1 = cap1 | |
239 | wcap1.C0 = CFrame.new(0, 0.95, 0) * CFrame.Angles(0, 0, 0) | |
240 | ||
241 | wcap2 = Instance.new("Weld", leg2) | |
242 | wcap2.Part0 = leg2 | |
243 | wcap2.Part1 = cap2 | |
244 | wcap2.C0 = CFrame.new(0, -0.95, 0) * CFrame.Angles(0, 0, 0) | |
245 | ||
246 | cap1att = Instance.new("Attachment", cap1) | |
247 | cap1att.Position = Vector3.new(0, 0, -0.05) | |
248 | cap2att = Instance.new("Attachment", cap2) | |
249 | cap2att.Position = Vector3.new(0, 0, -0.05) | |
250 | stringatt = Instance.new("Attachment", stringpart) | |
251 | - | stringp1.Color = BrickColor.new("Mid grey") |
251 | + | |
252 | stringp1.Color = BrickColor.new("Institutional white") | |
253 | stringp1.Visible = true | |
254 | stringp1.Attachment0 = stringatt | |
255 | stringp1.Attachment1 = cap1att | |
256 | - | stringp2.Color = BrickColor.new("Mid grey") |
256 | + | |
257 | stringp2.Color = BrickColor.new("Institutional white") | |
258 | stringp2.Visible = true | |
259 | stringp2.Attachment0 = stringatt | |
260 | stringp2.Attachment1 = cap2att | |
261 | ||
262 | warrowhead1 = Instance.new("Weld", arrowbody) | |
263 | warrowhead1.Part0 = arrowbody | |
264 | warrowhead1.Part1 = arrowhead | |
265 | warrowhead1.C0 = CFrame.new(0, 0, -1.95) | |
266 | ||
267 | wfeather1 = Instance.new("Weld", arrowbody) | |
268 | wfeather1.Part0 = arrowbody | |
269 | wfeather1.Part1 = feather1 | |
270 | wfeather1.C0 = CFrame.new(0, 0.2, 1.45) | |
271 | ||
272 | wfeather2 = Instance.new("Weld", arrowbody) | |
273 | wfeather2.Part0 = arrowbody | |
274 | wfeather2.Part1 = feather2 | |
275 | wfeather2.C0 = CFrame.new(0, 0.2, 1.4) | |
276 | ||
277 | wfeather3 = Instance.new("Weld", arrowbody) | |
278 | wfeather3.Part0 = arrowbody | |
279 | wfeather3.Part1 = feather3 | |
280 | wfeather3.C0 = CFrame.new(0, -0.2, 1.45) * CFrame.Angles(0, 0, 3.15) | |
281 | ||
282 | wfeather4 = Instance.new("Weld", arrowbody) | |
283 | wfeather4.Part0 = arrowbody | |
284 | wfeather4.Part1 = feather4 | |
285 | wfeather4.C0 = CFrame.new(0, -0.2, 1.4) * CFrame.Angles(0, 0, 3.15) | |
286 | ||
287 | warrow = Instance.new("Weld", char.Torso) | |
288 | warrow.Part0 = char.Torso | |
289 | warrow.Part1 = arrowbody | |
290 | warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575) | |
291 | ||
292 | warrowcap = Instance.new("Weld", arrowbody) | |
293 | warrowcap.Part0 = arrowbody | |
294 | warrowcap.Part1 = arrowcap | |
295 | warrowcap.C0 = CFrame.new(0, 0, 1.8) | |
296 | ||
297 | -- sounds | |
298 | ||
299 | pullbacksound = Instance.new("Sound", handle) | |
300 | pullbacksound.SoundId = "rbxassetid://609348868" | |
301 | ||
302 | - | firesound.SoundId = "rbxassetid://609348009" |
302 | + | |
303 | firesound.SoundId = "rbxassetid://1036178469" | |
304 | firesound.PlaybackSpeed = 1.05 | |
305 | ||
306 | function velocity(v) | |
307 | print("killvel") | |
308 | vel = coroutine.wrap(function() | |
309 | wait(0.05) | |
310 | v:Remove() | |
311 | end) | |
312 | vel() | |
313 | end | |
314 | ||
315 | function killz(playa,hitz,kneef) | |
316 | local heyy = hitz | |
317 | if hitz == "Right Arm" then | |
318 | local Limb = playa:FindFirstChild("Right Arm") | |
319 | local ters = playa:FindFirstChild('Torso') | |
320 | if Limb and ters then | |
321 | if ters:FindFirstChild('Right Shoulder') then ters["Right Shoulder"]:Destroy() end | |
322 | for i,v in pairs(Limb:GetChildren()) do | |
323 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then | |
324 | v:Destroy() | |
325 | end | |
326 | end | |
327 | Limb.CFrame = ters.CFrame * CFrame.new(1.5, 0, 0) | |
328 | local Joint = Instance.new("Glue") | |
329 | Joint.Name = "RightShoulder" | |
330 | Joint.Part0 = ters | |
331 | Joint.Part1 = Limb | |
332 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
333 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
334 | Joint.Parent = ters | |
335 | ||
336 | local B = Instance.new("Part") | |
337 | B.TopSurface = 0 | |
338 | B.BottomSurface = 0 | |
339 | B.formFactor = "Symmetric" | |
340 | B.Size = Vector3.new(1, 1, 1) | |
341 | B.Transparency = 1 | |
342 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
343 | B.Parent = playa | |
344 | local W = Instance.new("Weld") | |
345 | W.Part0 = Limb | |
346 | W.Part1 = B | |
347 | W.C0 = CFrame.new(0, -0.5, 0) | |
348 | W.Parent = Limb | |
349 | local coru = coroutine.wrap(function() | |
350 | local uno = Instance.new('Part',workspace) | |
351 | local dos = Instance.new('Part',workspace) | |
352 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
353 | dos.CFrame = kneef.CFrame | |
354 | local weld = Instance.new('Weld',kneef) | |
355 | weld.Part0 = playa:FindFirstChild(hitz) | |
356 | weld.Part1 = kneef | |
357 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
358 | uno:Destroy() | |
359 | dos:Destroy() | |
360 | end) | |
361 | coru() | |
362 | end | |
363 | elseif hitz == "Left Arm" then | |
364 | local Limb = playa:FindFirstChild("Left Arm") | |
365 | local ters = playa:FindFirstChild('Torso') | |
366 | if Limb and ters then | |
367 | if ters:FindFirstChild('Left Shoulder') then ters["Left Shoulder"]:Destroy() end | |
368 | for i,v in pairs(Limb:GetChildren()) do | |
369 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then | |
370 | v:Destroy() | |
371 | end | |
372 | end | |
373 | Limb.CFrame = ters.CFrame * CFrame.new(-1.5, 0, 0) | |
374 | local Joint = Instance.new("Glue") | |
375 | Joint.Name = "LeftShoulder" | |
376 | Joint.Part0 = ters | |
377 | Joint.Part1 = Limb | |
378 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
379 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
380 | Joint.Parent = ters | |
381 | ||
382 | local B = Instance.new("Part") | |
383 | B.TopSurface = 0 | |
384 | B.BottomSurface = 0 | |
385 | B.formFactor = "Symmetric" | |
386 | B.Size = Vector3.new(1, 1, 1) | |
387 | B.Transparency = 1 | |
388 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
389 | B.Parent = playa | |
390 | local W = Instance.new("Weld") | |
391 | W.Part0 = ters | |
392 | W.Part1 = B | |
393 | W.C0 = CFrame.new(0, -0.5, 0) | |
394 | W.Parent = Limb | |
395 | local coru = coroutine.wrap(function() | |
396 | local uno = Instance.new('Part',workspace) | |
397 | local dos = Instance.new('Part',workspace) | |
398 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
399 | dos.CFrame = kneef.CFrame | |
400 | local weld = Instance.new('Weld',kneef) | |
401 | weld.Part0 = playa:FindFirstChild(hitz) | |
402 | weld.Part1 = kneef | |
403 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
404 | uno:Destroy() | |
405 | dos:Destroy() | |
406 | end) | |
407 | coru() | |
408 | end | |
409 | elseif hitz == "Right Leg" then | |
410 | local Limb = playa:FindFirstChild("Right Leg") | |
411 | local ters = playa:FindFirstChild('Torso') | |
412 | if Limb and ters then | |
413 | if ters:FindFirstChild('Right Hip') then ters["Right Hip"]:Destroy() end | |
414 | for i,v in pairs(Limb:GetChildren()) do | |
415 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then | |
416 | v:Destroy() | |
417 | end | |
418 | end | |
419 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
420 | local Joint = Instance.new("Glue") | |
421 | Joint.Name = "Right Hip" | |
422 | Joint.Part0 = ters | |
423 | Joint.Part1 = Limb | |
424 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
425 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
426 | Joint.Parent = ters | |
427 | local B = Instance.new("Part") | |
428 | B.TopSurface = 0 | |
429 | B.BottomSurface = 0 | |
430 | B.formFactor = "Symmetric" | |
431 | B.Size = Vector3.new(1, 1, 1) | |
432 | B.Transparency = 1 | |
433 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
434 | B.Parent = playa | |
435 | local W = Instance.new("Weld") | |
436 | W.Part0 = Limb | |
437 | W.Part1 = B | |
438 | W.C0 = CFrame.new(0, -0.5, 0) | |
439 | W.Parent = Limb | |
440 | local coru = coroutine.wrap(function() | |
441 | local uno = Instance.new('Part',workspace) | |
442 | local dos = Instance.new('Part',workspace) | |
443 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
444 | dos.CFrame = kneef.CFrame | |
445 | local weld = Instance.new('Weld',kneef) | |
446 | weld.Part0 = playa:FindFirstChild(hitz) | |
447 | weld.Part1 = kneef | |
448 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
449 | uno:Destroy() | |
450 | dos:Destroy() | |
451 | if playa:FindFirstChild('HumanoidRootPart') then | |
452 | if playa.HumanoidRootPart:FindFirstChild('RootJoint') then | |
453 | playa.HumanoidRootPart:FindFirstChild('RootJoint'):Destroy() | |
454 | wait() | |
455 | end | |
456 | while playa.HumanoidRootPart:FindFirstChild('RootJoint') do | |
457 | wait() | |
458 | end | |
459 | playa:FindFirstChild('HumanoidRootPart'):Destroy() | |
460 | end | |
461 | end) | |
462 | coru() | |
463 | end | |
464 | elseif hitz == "Left Leg" then | |
465 | local Limb = playa:FindFirstChild("Left Leg") | |
466 | local ters = playa:FindFirstChild('Torso') | |
467 | if Limb and ters then | |
468 | if ters:FindFirstChild('Left Hip') then ters["Left Hip"]:Destroy() end | |
469 | for i,v in pairs(Limb:GetChildren()) do | |
470 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then | |
471 | v:Destroy() | |
472 | end | |
473 | end | |
474 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
475 | Limb.CFrame = ters.CFrame * CFrame.new(-0.5, -2, 0) | |
476 | local Joint = Instance.new("Glue") | |
477 | Joint.Name = "LeftHip" | |
478 | Joint.Part0 = ters | |
479 | Joint.Part1 = Limb | |
480 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
481 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
482 | Joint.Parent = ters | |
483 | ||
484 | local B = Instance.new("Part") | |
485 | B.TopSurface = 0 | |
486 | B.BottomSurface = 0 | |
487 | B.formFactor = "Symmetric" | |
488 | B.Size = Vector3.new(1, 1, 1) | |
489 | B.Transparency = 1 | |
490 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
491 | B.Parent = playa | |
492 | local W = Instance.new("Weld") | |
493 | W.Part0 = Limb | |
494 | W.Part1 = B | |
495 | W.C0 = CFrame.new(0, -0.5, 0) | |
496 | W.Parent = Limb | |
497 | Limb.CanCollide = false | |
498 | local coru = coroutine.wrap(function() | |
499 | local uno = Instance.new('Part',workspace) | |
500 | local dos = Instance.new('Part',workspace) | |
501 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
502 | dos.CFrame = kneef.CFrame | |
503 | local weld = Instance.new('Weld',kneef) | |
504 | weld.Part0 = playa:FindFirstChild(hitz) | |
505 | weld.Part1 = kneef | |
506 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
507 | uno:Destroy() | |
508 | dos:Destroy() | |
509 | if playa:FindFirstChild('HumanoidRootPart') then | |
510 | if playa.HumanoidRootPart:FindFirstChild('RootJoint') then | |
511 | playa.HumanoidRootPart:FindFirstChild('RootJoint'):Destroy() | |
512 | end | |
513 | while playa.HumanoidRootPart:FindFirstChild('RootJoint') do | |
514 | wait() | |
515 | end | |
516 | playa:FindFirstChild('HumanoidRootPart'):Destroy() | |
517 | end | |
518 | end) | |
519 | coru() | |
520 | end | |
521 | else | |
522 | local playa2 = playa | |
523 | playa.Archivable = true | |
524 | local playa = playa:Clone() | |
525 | playa.Archivable = false | |
526 | playa2:Destroy() | |
527 | playa.Parent = workspace | |
528 | local Gibs = game.Workspace | |
529 | local Torso = playa.Torso | |
530 | local Head = playa:FindFirstChild("Head") | |
531 | local function Scan(ch) | |
532 | local e | |
533 | for e = 1,#ch do | |
534 | Scan(ch[e]:GetChildren()) | |
535 | if (ch[e].ClassName == "Weld" and ch[e].Part1.Name ~= 'Projectile') or ch[e].ClassName == "Motor6D" then | |
536 | ch[e]:remove() | |
537 | end | |
538 | end | |
539 | end | |
540 | Scan(playa:GetChildren()) | |
541 | if playa:FindFirstChild('HumanoidRootPart') then | |
542 | playa:FindFirstChild('HumanoidRootPart'):Destroy() | |
543 | end | |
544 | local hum2 = playa:FindFirstChildOfClass("Humanoid") | |
545 | ||
546 | ||
547 | if hum2 ~= nil then | |
548 | hum2.Name = "Humanoid2" | |
549 | hum2.PlatformStand = true | |
550 | hum2.Health = 0 | |
551 | end | |
552 | local ch = playa:GetChildren() | |
553 | local i | |
554 | for i = 1,#ch do | |
555 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
556 | ch[i]:remove() | |
557 | end | |
558 | end | |
559 | ||
560 | if Head then | |
561 | local Neck = Instance.new("Weld") | |
562 | Neck.Name = "Neck" | |
563 | Neck.Part0 = Torso | |
564 | Neck.Part1 = Head | |
565 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
566 | Neck.C1 = CFrame.new() | |
567 | Neck.Parent = Torso | |
568 | end | |
569 | local Limb = playa:FindFirstChild("Right Arm") | |
570 | if Limb then | |
571 | ||
572 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
573 | local Joint = Instance.new("Glue") | |
574 | Joint.Name = "RightShoulder" | |
575 | Joint.Part0 = Torso | |
576 | Joint.Part1 = Limb | |
577 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
578 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
579 | Joint.Parent = Torso | |
580 | ||
581 | local B = Instance.new("Part") | |
582 | B.TopSurface = 0 | |
583 | B.BottomSurface = 0 | |
584 | B.formFactor = "Symmetric" | |
585 | B.Size = Vector3.new(1, 1, 1) | |
586 | B.Transparency = 1 | |
587 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
588 | B.Parent = playa | |
589 | local W = Instance.new("Weld") | |
590 | W.Part0 = Limb | |
591 | W.Part1 = B | |
592 | W.C0 = CFrame.new(0, -0.5, 0) | |
593 | W.Parent = Limb | |
594 | end | |
595 | local Limb = playa:FindFirstChild("Left Arm") | |
596 | if Limb then | |
597 | ||
598 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
599 | local Joint = Instance.new("Glue") | |
600 | Joint.Name = "LeftShoulder" | |
601 | Joint.Part0 = Torso | |
602 | Joint.Part1 = Limb | |
603 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
604 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
605 | Joint.Parent = Torso | |
606 | ||
607 | local B = Instance.new("Part") | |
608 | B.TopSurface = 0 | |
609 | B.BottomSurface = 0 | |
610 | B.formFactor = "Symmetric" | |
611 | B.Size = Vector3.new(1, 1, 1) | |
612 | B.Transparency = 1 | |
613 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
614 | B.Parent = playa | |
615 | local W = Instance.new("Weld") | |
616 | W.Part0 = Limb | |
617 | W.Part1 = B | |
618 | W.C0 = CFrame.new(0, -0.5, 0) | |
619 | W.Parent = Limb | |
620 | end | |
621 | local Limb = playa:FindFirstChild("Right Leg") | |
622 | if Limb then | |
623 | ||
624 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
625 | local Joint = Instance.new("Glue") | |
626 | Joint.Name = "RightHip" | |
627 | Joint.Part0 = Torso | |
628 | Joint.Part1 = Limb | |
629 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
630 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
631 | Joint.Parent = Torso | |
632 | ||
633 | local B = Instance.new("Part") | |
634 | B.TopSurface = 0 | |
635 | B.BottomSurface = 0 | |
636 | B.formFactor = "Symmetric" | |
637 | B.Size = Vector3.new(1, 1, 1) | |
638 | B.Transparency = 1 | |
639 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
640 | B.Parent = playa | |
641 | local W = Instance.new("Weld") | |
642 | W.Part0 = Limb | |
643 | W.Part1 = B | |
644 | W.C0 = CFrame.new(0, -0.5, 0) | |
645 | W.Parent = Limb | |
646 | end | |
647 | local Limb = playa:FindFirstChild("Left Leg") | |
648 | if Limb then | |
649 | ||
650 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
651 | local Joint = Instance.new("Glue") | |
652 | Joint.Name = "LeftHip" | |
653 | Joint.Part0 = Torso | |
654 | Joint.Part1 = Limb | |
655 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
656 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
657 | Joint.Parent = Torso | |
658 | ||
659 | local B = Instance.new("Part") | |
660 | B.TopSurface = 0 | |
661 | B.BottomSurface = 0 | |
662 | B.formFactor = "Symmetric" | |
663 | B.Size = Vector3.new(1, 1, 1) | |
664 | B.Transparency = 1 | |
665 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
666 | B.Parent = playa | |
667 | local W = Instance.new("Weld") | |
668 | W.Part0 = Limb | |
669 | W.Part1 = B | |
670 | W.C0 = CFrame.new(0, -0.5, 0) | |
671 | W.Parent = Limb | |
672 | end | |
673 | --[ | |
674 | local Bar = Instance.new("Part") | |
675 | Bar.TopSurface = 0 | |
676 | Bar.BottomSurface = 0 | |
677 | Bar.formFactor = "Symmetric" | |
678 | Bar.Size = Vector3.new(1, 1, 1) | |
679 | Bar.Transparency = 1 | |
680 | Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
681 | Bar.Parent = playa | |
682 | local Weld = Instance.new("Weld") | |
683 | Weld.Part0 = Torso | |
684 | Weld.Part1 = Bar | |
685 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
686 | Weld.Parent = Torso | |
687 | --]] | |
688 | playa.Parent = Gibs | |
689 | local coru = coroutine.wrap(function() | |
690 | print(hitz.Name) | |
691 | local uno = Instance.new('Part',workspace) | |
692 | local dos = Instance.new('Part',workspace) | |
693 | uno.CFrame = playa:FindFirstChild(heyy).CFrame | |
694 | dos.CFrame = kneef.CFrame | |
695 | local weld = Instance.new('Weld',kneef) | |
696 | weld.Part0 = playa:FindFirstChild(heyy) | |
697 | weld.Part1 = kneef | |
698 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
699 | uno:Destroy() | |
700 | dos:Destroy() | |
701 | end) | |
702 | coru() | |
703 | game.Debris:AddItem(playa, 15) | |
704 | end | |
705 | end | |
706 | ||
707 | function checkarms() | |
708 | check = coroutine.wrap(function() | |
709 | rshould = char.Torso:FindFirstChild("Right Shoulder") | |
710 | lshould = char.Torso:FindFirstChild("Left Shoulder") | |
711 | ||
712 | if rshould == nil then | |
713 | rightshoulder:Clone().Parent = char.Torso | |
714 | end | |
715 | if lshould == nil then | |
716 | rightshoulder:Clone().Parent = char.Torso | |
717 | end | |
718 | end) | |
719 | check() | |
720 | end | |
721 | ||
722 | mouse.KeyDown:connect(function(k) | |
723 | key = k:lower() | |
724 | ||
725 | if key == "e" and enabled == true and equipped == true then | |
726 | if armed == false then | |
727 | tors = Instance.new("Weld", char.HumanoidRootPart) | |
728 | tors.Part0 = char.HumanoidRootPart | |
729 | tors.Part1 = char.Torso | |
730 | tors.C0 = CFrame.new(0, 0, 0) * CFrame.new(0, 0, 0) | |
731 | ||
732 | crarm = Instance.new("Weld", char.Torso) | |
733 | crarm.Part0 = char.Torso | |
734 | crarm.Part1 = char["Right Arm"] | |
735 | crarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0) | |
736 | ||
737 | clarm = Instance.new("Weld", char.Torso) | |
738 | clarm.Part0 = char.Torso | |
739 | clarm.Part1 = char["Left Arm"] | |
740 | clarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0) | |
741 | ||
742 | enabled = false | |
743 | for i = 0, 1, 0.1 do | |
744 | crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 1.5, 0) * CFrame.Angles(3.14, 0, 0), i) | |
745 | wait() | |
746 | end | |
747 | for i, v in pairs(arrow:GetChildren()) do | |
748 | v.Transparency = 0 | |
749 | end | |
750 | feather1.Transparency = 0.25 | |
751 | feather2.Transparency = 0.25 | |
752 | feather3.Transparency = 0.25 | |
753 | feather4.Transparency = 0.25 | |
754 | ||
755 | warrow.Part0 = char["Right Arm"] | |
756 | warrow.C0 = CFrame.new(-0.5, -2.7, -0.2) * CFrame.Angles(-1.575, 0.075, -0.5) | |
757 | ||
758 | for i = 0, 1, 0.05 do | |
759 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.5, 0), i) | |
760 | whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, -0.05, 0), i) | |
761 | clarm.C0 = clarm.C0:lerp(CFrame.new(-1.6, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i) | |
762 | crarm.C0 = crarm.C0:lerp(CFrame.new(-1.35, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575), i) | |
763 | wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0), i) | |
764 | wjoint2.C0 = wjoint2.C0:lerp(CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0), i) | |
765 | wstringpart.C0 = wstringpart.C0:lerp(CFrame.new(0, -0.5, -0.3) * CFrame.new(0, 0, 0), i) | |
766 | hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 1.5, 0), i) | |
767 | wait() | |
768 | end | |
769 | pullbacksound:Play() | |
770 | warrow.Part0 = stringpart | |
771 | warrow.C0 = CFrame.new(-0.1, 0, 1.9) * CFrame.Angles(3.15, 0.04, 0) | |
772 | for i = 0, 1, 0.025 do | |
773 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.5, 0), i) | |
774 | whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, -0.05, 0), i) | |
775 | clarm.C0 = clarm.C0:lerp(CFrame.new(-1.95, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i) | |
776 | crarm.C0 = crarm.C0:lerp(CFrame.new(1, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575), i) | |
777 | wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.4, 0, 0), i) | |
778 | wjoint2.C0 = wjoint2.C0:lerp(CFrame.new(0, -0.6, 0) * CFrame.Angles(0.4, 0, 0), i) | |
779 | wstringpart.C0 = wstringpart.C0:lerp(CFrame.new(0, -0.5, -3) * CFrame.new(0, 0, 0), i) | |
780 | hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, -0.1) * CFrame.Angles(0, 1.5, -0.25), i) | |
781 | wait() | |
782 | end | |
783 | armed = true | |
784 | enabled = true | |
785 | elseif armed == true and equipped == true then | |
786 | enabled = false | |
787 | for i = 0,1,0.05 do | |
788 | clarm.C0 = clarm.C0:lerp(CFrame.new(-1.6, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i) | |
789 | crarm.C0 = crarm.C0:lerp(CFrame.new(-1.3, 0.4, -1) * CFrame.Angles(1.575, 0.1, -1.575), i) | |
790 | wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0), i) | |
791 | wjoint2.C0 = wjoint2.C0:lerp(CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0), i) | |
792 | wstringpart.C0 = wstringpart.C0:lerp(CFrame.new(0, -0.5, -0.3) * CFrame.new(0, 0, 0), i) | |
793 | wait() | |
794 | end | |
795 | warrow.Part0 = char["Right Arm"] | |
796 | warrow.C0 = CFrame.new(-0.5, -2.65, -0.2) * CFrame.Angles(-1.575, 0.075, -0.4) | |
797 | for i = 0,1,0.05 do | |
798 | crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 1.5, 0) * CFrame.Angles(3.14, 0, 0), i) | |
799 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
800 | whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0), i) | |
801 | clarm.C0 = clarm.C0:lerp(CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
802 | crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
803 | hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 0, 0), i) | |
804 | wait() | |
805 | end | |
806 | ||
807 | for i, v in pairs(arrow:GetChildren()) do | |
808 | v.Transparency = 1 | |
809 | end | |
810 | warrow.Part0 = char.Torso | |
811 | warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575) | |
812 | ||
813 | for i = 0, 1, 0.1 do | |
814 | crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
815 | wait() | |
816 | end | |
817 | armed = false | |
818 | enabled = true | |
819 | clarm:Remove() | |
820 | crarm:Remove() | |
821 | tors:Remove() | |
822 | rightshoulder:Clone().Parent = char.Torso | |
823 | leftshoulder:Clone().Parent = char.Torso | |
824 | torso:Clone().Parent = char.HumanoidRootPart | |
825 | checkarms() | |
826 | - | elseif key == "z" then |
826 | + | |
827 | elseif key == "q" then | |
828 | if armed == true or enabled == false then return end | |
829 | clarm = Instance.new("Weld", char.Torso) | |
830 | clarm.Part0 = char.Torso | |
831 | clarm.Part1 = char["Left Arm"] | |
832 | clarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0) | |
833 | if equipped == false then | |
834 | enabled = false | |
835 | for i = 0, 1, 0.075 do | |
836 | clarm.C0 = clarm.C0:lerp(CFrame.new(-0.5, 0, 0.25) * CFrame.Angles(math.rad(-90), 0, math.rad(75)), i) | |
837 | wait() | |
838 | end | |
839 | whandle.C0 = CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0) | |
840 | whandle.Part0 = char["Left Arm"] | |
841 | for i = 0, 1, 0.075 do | |
842 | clarm.C0 = clarm.C0:lerp(CFrame.new(-2, 0.6, 0) * CFrame.Angles(0, 0, math.rad(-90)), i) | |
843 | wait() | |
844 | end | |
845 | for i = 0, 1, 0.075 do | |
846 | clarm.C0 = clarm.C0:lerp(CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0), i) | |
847 | wait() | |
848 | end | |
849 | enabled = true | |
850 | equipped = true | |
851 | elseif equipped == true then | |
852 | if armed == true or enabled == false then return end | |
853 | enabled = false | |
854 | for i = 0, 1, 0.075 do | |
855 | clarm.C0 = clarm.C0:lerp(CFrame.new(-2, 0.6, 0) * CFrame.Angles(0, 0, math.rad(-90)), i) | |
856 | wait() | |
857 | end | |
858 | for i = 0, 1, 0.075 do | |
859 | clarm.C0 = clarm.C0:lerp(CFrame.new(-0.5, 0, 0.25) * CFrame.Angles(math.rad(-90), 0, math.rad(75)), i) | |
860 | whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0), i) | |
861 | wait() | |
862 | end | |
863 | whandle.C0 = CFrame.new(0, 0, 0.6) * CFrame.Angles(0, 0, math.rad(45)) | |
864 | whandle.Part0 = char.Torso | |
865 | for i = 0, 1, 0.075 do | |
866 | clarm.C0 = clarm.C0:lerp(CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0), i) | |
867 | wait() | |
868 | end | |
869 | equipped = false | |
870 | enabled = true | |
871 | end | |
872 | clarm:Remove() | |
873 | leftshoulder:Clone().Parent = char.Torso | |
874 | end | |
875 | end) | |
876 | ||
877 | mouse.Button1Down:connect(function() | |
878 | if armed == false or enabled == false or equipped == false then return end | |
879 | firesound:Play() | |
880 | enabled = false | |
881 | armed = false | |
882 | wjoint1.C0 = CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0) | |
883 | wjoint2.C0 = CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0) | |
884 | wstringpart.C0 = CFrame.new(0, -0.5, -0.3) * CFrame.new(0, 0, 0) | |
885 | crarm.C0 = CFrame.new(1.2, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575) | |
886 | newarrow = arrow:Clone() | |
887 | newarrow.Parent = game.Workspace | |
888 | newarrow.Name = "flyingarrow" | |
889 | newarrow.ArrowBody.CFrame = CFrame.new(newarrow.ArrowBody.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,0,math.pi/1.15) | |
890 | char.HumanoidRootPart.CFrame = CFrame.new(char.HumanoidRootPart.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/100,0) | |
891 | local fly = Instance.new('BodyVelocity',newarrow.ArrowBody) | |
892 | fly.Velocity = (newarrow.ArrowBody.CFrame*CFrame.Angles(0,0,math.pi/2)).lookVector*200 | |
893 | newarrow.Arrowhead.Touched:connect(function(hit) | |
894 | if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Transparency < 1 and newarrow.Arrowhead.CanCollide == false and hit.Parent:FindFirstChildOfClass('Humanoid').Health > 0 and hit.Parent ~= char then | |
895 | velocity(fly) | |
896 | newarrow.Arrowhead.CanCollide = true | |
897 | game:GetService('Debris'):AddItem(newarrow.Arrowhead,15) | |
898 | tone = math.random(1, 3) | |
899 | local sound = Instance.new('Sound',newarrow.Arrowhead) | |
900 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
901 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
902 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
903 | sound.PlaybackSpeed = 1 | |
904 | sound:Play() | |
905 | newarrow.Arrowhead.Anchored = true | |
906 | hit.Anchored = true | |
907 | if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Name == "Torso" or hit.Name == "Head" then | |
908 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0 | |
909 | end | |
910 | wait() | |
911 | hit.Anchored = false | |
912 | newarrow.Arrowhead.Anchored = false | |
913 | killz(hit.Parent,hit.Name,newarrow.Arrowhead) | |
914 | elseif hit.Parent and hit.Parent.Parent:FindFirstChildOfClass('Humanoid') and hit.Transparency < 1 and newarrow.Arrowhead.CanCollide == false and hit.Parent.Parent:FindFirstChildOfClass('Humanoid').Health > 0 and hit.Parent.Parent ~= char and hit.Parent.Parent:FindFirstChild('Head') then | |
915 | velocity(fly) | |
916 | game:GetService('Debris'):AddItem(newarrow.Arrowhead,15) | |
917 | newarrow.Arrowhead.CanCollide = true | |
918 | tone = math.random(1, 3) | |
919 | local sound = Instance.new('Sound',newarrow.Arrowhead) | |
920 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
921 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
922 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
923 | sound.PlaybackSpeed = 1 | |
924 | sound:Play() | |
925 | newarrow.Arrowhead.Anchored = true | |
926 | hit.Anchored = true | |
927 | if hit.Parent.Parent:FindFirstChildOfClass('Humanoid') then | |
928 | hit.Parent.Parent:FindFirstChildOfClass('Humanoid').Health = 0 | |
929 | end | |
930 | wait() | |
931 | newarrow.Arrowhead.Anchored = false | |
932 | hit.Anchored = false | |
933 | killz(hit.Parent.Parent,hit.Name,newarrow.Arrowhead) | |
934 | elseif hit.Parent and hit.Parent ~= char and hit.Parent.Parent ~= char and hit.Transparency < 1 and newarrow.Arrowhead.CanCollide == false then | |
935 | velocity(fly) | |
936 | game:GetService('Debris'):AddItem(newarrow.Arrowhead,15) | |
937 | newarrow.Arrowhead.CanCollide = true | |
938 | local sound = Instance.new('Sound',newarrow.Arrowhead) | |
939 | sound.SoundId = 'rbxassetid://267585646' | |
940 | sound:Play() | |
941 | end | |
942 | end) | |
943 | ||
944 | for i, v in pairs(arrow:GetChildren()) do | |
945 | v.Transparency = 1 | |
946 | end | |
947 | warrow.Part0 = char.Torso | |
948 | warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575) | |
949 | wait(0.5) | |
950 | for i = 0, 1, 0.05 do | |
951 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
952 | whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0), i) | |
953 | clarm.C0 = clarm.C0:lerp(CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
954 | crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
955 | hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 0, 0), i) | |
956 | wait() | |
957 | end | |
958 | clarm:Remove() | |
959 | crarm:Remove() | |
960 | tors:Remove() | |
961 | rightshoulder:Clone().Parent = char.Torso | |
962 | leftshoulder:Clone().Parent = char.Torso | |
963 | torso:Clone().Parent = char.HumanoidRootPart | |
964 | checkarms() | |
965 | enabled = true | |
966 | end) | |
967 | ||
968 | --[[ | |
969 | local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso) | |
970 | vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5 | |
971 | vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
972 | --]] | |
973 | --Credit To Rufus14 | |
974 | --I just edit it a bit ^_^ | |
975 | mouse = game.Players.LocalPlayer:GetMouse() | |
976 | function ragdoll() | |
977 | game.Players.LocalPlayer.Character.Archivable = true | |
978 | clone = game.Players.LocalPlayer.Character:Clone() | |
979 | clone.Parent = workspace | |
980 | for i,v in pairs(clone:GetChildren()) do | |
981 | if v.ClassName == "Script" or v.ClassName == "LocalScript" then | |
982 | v:destroy() | |
983 | end | |
984 | for i,p in pairs(v:GetChildren()) do | |
985 | if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then | |
986 | p:destroy() | |
987 | end | |
988 | end | |
989 | end | |
990 | for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
991 | if t.ClassName == "Accessory" or t.ClassName == "ForceField" then | |
992 | t:destroy() | |
993 | end | |
994 | end | |
995 | vel = Instance.new("BodyVelocity", clone.Torso) | |
996 | vel.Velocity = clone.Torso.CFrame.lookVector * -5 | |
997 | vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
998 | clone.Head.face.Texture = "http://www.roblox.com/asset/?id=1361444034" | |
999 | using = false | |
1000 | hit = Instance.new("Sound", clone.Torso) | |
1001 | hit.SoundId = "rbxassetid://" | |
1002 | hit.Volume = 5 | |
1003 | hit1 = Instance.new("Sound", clone.Torso) | |
1004 | hit1.SoundId = "rbxassetid://" | |
1005 | hit1.Volume = 5 | |
1006 | hit2 = Instance.new("Sound", clone.Torso) | |
1007 | hit2.SoundId = "rbxassetid://" | |
1008 | hit2.Volume = 5 | |
1009 | hit3 = Instance.new("Sound", clone.Torso) | |
1010 | hit3.SoundId = "rbxassetid://" | |
1011 | hit3.Volume = 5 | |
1012 | hit3.TimePosition = 0.33 | |
1013 | ded = Instance.new("Sound", clone.Torso) | |
1014 | ded.SoundId = "rbxassetid://531185355" | |
1015 | ded.Volume = math.huge | |
1016 | local leftarm = clone:findFirstChild("Left Arm") | |
1017 | local rightrm = clone:findFirstChild("Right Arm") | |
1018 | local leftleg = clone:findFirstChild("Left Leg") | |
1019 | local rightleg = clone:findFirstChild("Right Leg") | |
1020 | local head = clone:findFirstChild("Head") | |
1021 | local welding = Instance.new("Weld", clone.Torso) | |
1022 | welding.Part0 = clone.Torso | |
1023 | welding.Part1 = head | |
1024 | welding.C0 = welding.C0 * CFrame.new(0,1.5,0) | |
1025 | for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
1026 | if g.ClassName == "Part" then | |
1027 | g:destroy() | |
1028 | end | |
1029 | end | |
1030 | for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
1031 | if h.ClassName == "Accesory" then | |
1032 | h:destroy() | |
1033 | end | |
1034 | end | |
1035 | game.Workspace.CurrentCamera.CameraSubject = head | |
1036 | if leftleg ~= nil then | |
1037 | local glue = Instance.new("Glue", clone.Torso) | |
1038 | glue.Part0 = clone.Torso | |
1039 | glue.Part1 = leftleg | |
1040 | glue.Name = "Left leg" | |
1041 | local collider = Instance.new("Part", leftleg) | |
1042 | collider.Position = Vector3.new(0,999,0) | |
1043 | collider.Size = Vector3.new(1.7, 1, 1) | |
1044 | collider.Shape = "Cylinder" | |
1045 | local weld = Instance.new("Weld", collider) | |
1046 | weld.Part0 = leftleg | |
1047 | weld.Part1 = collider | |
1048 | weld.C0 = CFrame.Angles(0, 0, 80) | |
1049 | collider.TopSurface = "Smooth" | |
1050 | collider.BottomSurface = "Smooth" | |
1051 | collider.formFactor = "Symmetric" | |
1052 | glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1053 | glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1054 | collider.Transparency = 1 | |
1055 | end | |
1056 | ------------ | |
1057 | if rightleg ~= nil then | |
1058 | local glue1 = Instance.new("Glue", clone.Torso) | |
1059 | glue1.Part0 = clone.Torso | |
1060 | glue1.Part1 = rightleg | |
1061 | glue1.Name = "Right leg" | |
1062 | local collider1 = Instance.new("Part", rightleg) | |
1063 | collider1.Position = Vector3.new(0,999,0) | |
1064 | collider1.Size = Vector3.new(1.7, 1, 1) | |
1065 | collider1.Shape = "Cylinder" | |
1066 | local weld1 = Instance.new("Weld", collider1) | |
1067 | weld1.Part0 = rightleg | |
1068 | weld1.Part1 = collider1 | |
1069 | weld1.C0 = CFrame.Angles(0, 0, 80) | |
1070 | collider1.TopSurface = "Smooth" | |
1071 | collider1.BottomSurface = "Smooth" | |
1072 | collider1.formFactor = "Symmetric" | |
1073 | glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1074 | glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1075 | collider1.Transparency = 1 | |
1076 | end | |
1077 | ------------ | |
1078 | if rightrm ~= nil then | |
1079 | local glue11 = Instance.new("Glue", clone.Torso) | |
1080 | glue11.Part0 = clone.Torso | |
1081 | glue11.Part1 = rightrm | |
1082 | glue11.Name = "Right shoulder" | |
1083 | local collider11 = Instance.new("Part", rightrm) | |
1084 | collider11.Position = Vector3.new(0,9999,0) | |
1085 | collider11.Size = Vector3.new(1.8,1,1) | |
1086 | collider11.Shape = "Cylinder" | |
1087 | local weld11 = Instance.new("Weld", collider11) | |
1088 | weld11.Part0 = rightrm | |
1089 | weld11.Part1 = collider11 | |
1090 | weld11.C0 = CFrame.Angles(0, 0, 80) | |
1091 | collider11.TopSurface = "Smooth" | |
1092 | collider11.BottomSurface = "Smooth" | |
1093 | collider11.formFactor = "Symmetric" | |
1094 | glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1095 | glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1096 | collider11.Transparency = 1 | |
1097 | end | |
1098 | ------------ | |
1099 | if leftarm ~= nil then | |
1100 | local glue111 = Instance.new("Glue", clone.Torso) | |
1101 | glue111.Part0 = clone.Torso | |
1102 | glue111.Part1 = leftarm | |
1103 | glue111.Name = "Left shoulder" | |
1104 | local collider111 = Instance.new("Part", leftarm) | |
1105 | collider111.Position = Vector3.new(0,9999,0) | |
1106 | collider111.Size = Vector3.new(1.8,1,1) | |
1107 | collider111.Shape = "Cylinder" | |
1108 | local weld111 = Instance.new("Weld", collider111) | |
1109 | weld111.Part0 = leftarm | |
1110 | weld111.Part1 = collider111 | |
1111 | weld111.C0 = CFrame.Angles(0, 0, 80) | |
1112 | collider111.TopSurface = "Smooth" | |
1113 | collider111.BottomSurface = "Smooth" | |
1114 | collider111.formFactor = "Symmetric" | |
1115 | glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1116 | glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1117 | collider111.Transparency = 1 | |
1118 | ---------------- | |
1119 | sensoring = Instance.new("Part", clone.Torso) | |
1120 | sensoring.Size = Vector3.new(1.2,1.1,0.8) | |
1121 | sensoring.CanCollide = false | |
1122 | sensoring.Position = clone.Torso.Position | |
1123 | local welder = Instance.new("Weld", sensoring) | |
1124 | welder.Part0 = clone.Torso | |
1125 | welder.Part1 = sensoring | |
1126 | welder.C0 = welder.C0 * CFrame.new(0,0,1.05) | |
1127 | sensoring.Transparency = 1 | |
1128 | ----------------- | |
1129 | sensoring1 = Instance.new("Part", clone.Torso) | |
1130 | sensoring1.Size = Vector3.new(1.2,1.1,0.8) | |
1131 | sensoring1.CanCollide = false | |
1132 | sensoring1.Position = clone.Torso.Position | |
1133 | local welder1 = Instance.new("Weld", sensoring) | |
1134 | welder1.Part0 = clone.Torso | |
1135 | welder1.Part1 = sensoring1 | |
1136 | welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05) | |
1137 | sensoring1.Transparency = 1 | |
1138 | end | |
1139 | clone.Name = game.Players.LocalPlayer.Character.Name.."" | |
1140 | ded:Play() | |
1141 | vel:destroy() | |
1142 | wait(0.5) | |
1143 | local function touch() | |
1144 | if not using then | |
1145 | using = true | |
1146 | local Math = math.random(1,4) | |
1147 | if Math == 1 then | |
1148 | hit:Play() | |
1149 | end | |
1150 | if Math == 2 then | |
1151 | hit1:Play() | |
1152 | end | |
1153 | if Math == 3 then | |
1154 | hit2:Play() | |
1155 | end | |
1156 | if Math == 4 then | |
1157 | hit3:Play() | |
1158 | end | |
1159 | wait(0.1) | |
1160 | using = false | |
1161 | end | |
1162 | end | |
1163 | sensoring.Touched:connect(touch) | |
1164 | sensoring1.Touched:connect(touch) | |
1165 | wait(4.47) | |
1166 | hit1.Volume = 0 | |
1167 | hit2.Volume = 0 | |
1168 | hit3.Volume = 0 | |
1169 | hit.Volume = 0 | |
1170 | end | |
1171 | ||
1172 | game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll) | |
1173 | ||
1174 | Plr.CameraMode = 'LockFirstPerson' | |
1175 | Plr.Chatted:connect(function(msg) | |
1176 | --[[if msg == 'r-|' then | |
1177 | Plr.CameraMode = 'Classic' | |
1178 | CamModel:Destroy() | |
1179 | Plr.Character:BreakJoints() | |
1180 | end--]] | |
1181 | end) |