SHOW:
|
|
- or go back to the newest paste.
1 | --[[ C o n t r o l s : Made by Tollonis | |
2 | E - Draw arrow (press E again to put it back) | |
3 | Left Click - Fire | |
4 | Z - Equip/Unequip | |
5 | ||
6 | As always, feel free to DM me with suggestions or bugs. ]]-- | |
7 | ||
8 | wait() | |
9 | player = game.Players.LocalPlayer | |
10 | char = player.Character | |
11 | mouse = player:GetMouse() | |
12 | ||
13 | - | print("WHAT UP") |
13 | + | print("WHAT the fak") |
14 | ||
15 | armed = false | |
16 | canfire = false | |
17 | enabled = true | |
18 | equipped = false | |
19 | ||
20 | mouse.Icon = "rbxassetid://311756275" | |
21 | ||
22 | rightshoulder = char.Torso["Right Shoulder"]:Clone() | |
23 | leftshoulder = char.Torso["Left Shoulder"]:Clone() | |
24 | ||
25 | hed = Instance.new("Weld", char.Torso) | |
26 | hed.Part0 = char.Torso | |
27 | hed.Part1 = char.Head | |
28 | hed.C0 = CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 0, 0) | |
29 | ||
30 | tors = Instance.new("Weld", char.HumanoidRootPart) | |
31 | tors.Part0 = char.HumanoidRootPart | |
32 | tors.Part1 = char.Torso | |
33 | tors.C0 = CFrame.new(0, 0, 0) * CFrame.new(0, 0, 0) | |
34 | ||
35 | -- the bow stuff | |
36 | ||
37 | bow = Instance.new("Model") | |
38 | bow.Parent = game.Workspace | |
39 | bow.Name = "bow" | |
40 | ||
41 | handle = Instance.new("Part") | |
42 | handle.CFrame = CFrame.new(Vector3.new(-48.1999893, 2.79998732, -58.2000122)) * CFrame.Angles(-3.1415927410126, 0, -0) | |
43 | handle.Size = Vector3.new(0.200000003, 1.20000005, 0.200000003) | |
44 | handle.BrickColor = BrickColor.new("Pine Cone") | |
45 | handle.Friction = 0.30000001192093 | |
46 | handle.Shape = Enum.PartType.Block | |
47 | handle.Name = "Handle" | |
48 | handle.Parent = bow | |
49 | handle.CanCollide = false | |
50 | ||
51 | leg2 = Instance.new("Part") | |
52 | leg2.CFrame = CFrame.new(Vector3.new(-48.1999931, 1.25002313, -58.2000008)) * CFrame.Angles(-3.1415927410126, 0, -0) | |
53 | leg2.Size = Vector3.new(0.200000003, 1.90000021, 0.200000003) | |
54 | leg2.BrickColor = BrickColor.new("Pine Cone") | |
55 | leg2.Friction = 0.30000001192093 | |
56 | leg2.Shape = Enum.PartType.Block | |
57 | leg2.Name = "Leg2" | |
58 | leg2.Parent = bow | |
59 | leg2.CanCollide = false | |
60 | ||
61 | cap2 = Instance.new("Part") | |
62 | cap2.CFrame = CFrame.new(Vector3.new(-48.2000046, 0.300019979, -58.2000008)) * CFrame.Angles(1.5707963705063, 0, -0) | |
63 | cap2.TopSurface = Enum.SurfaceType.Smooth | |
64 | cap2.BottomSurface = Enum.SurfaceType.Smooth | |
65 | cap2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
66 | cap2.BrickColor = BrickColor.new("Pine Cone") | |
67 | cap2.Friction = 0.30000001192093 | |
68 | cap2.Shape = Enum.PartType.Cylinder | |
69 | cap2.Name = "Cap2" | |
70 | cap2.Parent = bow | |
71 | cap2.CanCollide = false | |
72 | ||
73 | joint2 = Instance.new("Part") | |
74 | joint2.CFrame = CFrame.new(Vector3.new(-48.1999893, 2.19999003, -58.2000237)) * CFrame.Angles(1.5707963705063, 0, -0) | |
75 | joint2.TopSurface = Enum.SurfaceType.Smooth | |
76 | joint2.BottomSurface = Enum.SurfaceType.Smooth | |
77 | joint2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
78 | joint2.BrickColor = BrickColor.new("Pine Cone") | |
79 | joint2.Friction = 0.30000001192093 | |
80 | joint2.Shape = Enum.PartType.Cylinder | |
81 | joint2.Name = "Joint2" | |
82 | joint2.Parent = bow | |
83 | joint2.CanCollide = false | |
84 | ||
85 | joint1 = Instance.new("Part") | |
86 | joint1.CFrame = CFrame.new(Vector3.new(-48.2000008, 3.39998126, -58.2000275)) * CFrame.Angles(1.5707963705063, 0, -0) | |
87 | joint1.TopSurface = Enum.SurfaceType.Smooth | |
88 | joint1.BottomSurface = Enum.SurfaceType.Smooth | |
89 | joint1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
90 | joint1.BrickColor = BrickColor.new("Pine Cone") | |
91 | joint1.Friction = 0.30000001192093 | |
92 | joint1.Shape = Enum.PartType.Cylinder | |
93 | joint1.Name = "Joint1" | |
94 | joint1.Parent = bow | |
95 | joint1.CanCollide = false | |
96 | ||
97 | leg1 = Instance.new("Part") | |
98 | leg1.CFrame = CFrame.new(Vector3.new(-48.1999931, 4.35000753, -58.2000122)) * CFrame.Angles(-3.1415927410126, 0, -0) | |
99 | leg1.Size = Vector3.new(0.200000003, 1.90000021, 0.200000003) | |
100 | leg1.BrickColor = BrickColor.new("Pine Cone") | |
101 | leg1.Friction = 0.30000001192093 | |
102 | leg1.Shape = Enum.PartType.Block | |
103 | leg1.Name = "Leg1" | |
104 | leg1.Parent = bow | |
105 | leg1.CanCollide = false | |
106 | ||
107 | cap1 = Instance.new("Part") | |
108 | cap1.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0) | |
109 | cap1.TopSurface = Enum.SurfaceType.Smooth | |
110 | cap1.BottomSurface = Enum.SurfaceType.Smooth | |
111 | cap1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
112 | cap1.BrickColor = BrickColor.new("Pine Cone") | |
113 | cap1.Friction = 0.30000001192093 | |
114 | cap1.Shape = Enum.PartType.Cylinder | |
115 | cap1.Name = "Cap1" | |
116 | cap1.Parent = bow | |
117 | cap1.CanCollide = false | |
118 | ||
119 | stringpart = Instance.new("Part") | |
120 | stringpart.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0) | |
121 | stringpart.TopSurface = Enum.SurfaceType.Smooth | |
122 | stringpart.BottomSurface = Enum.SurfaceType.Smooth | |
123 | stringpart.Size = Vector3.new(0.1, 0.1, 0.1) | |
124 | stringpart.Transparency = 1 | |
125 | - | stringpart.BrickColor = BrickColor.new("Mid grey") |
125 | + | stringpart.BrickColor = BrickColor.new("Really blue") |
126 | stringpart.Friction = 0.30000001192093 | |
127 | stringpart.Shape = Enum.PartType.Cylinder | |
128 | stringpart.Name = "StringAttachment" | |
129 | stringpart.Parent = bow | |
130 | stringpart.CanCollide = false | |
131 | ||
132 | arrow = Instance.new("Model") | |
133 | arrow.Parent = game.Workspace | |
134 | arrow.Name = "arrow" | |
135 | ||
136 | feather1 = Instance.new("WedgePart") | |
137 | feather1.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.90000844, -56.1500168)) * CFrame.Angles(-0, 0, -0) | |
138 | feather1.TopSurface = Enum.SurfaceType.Smooth | |
139 | feather1.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952) | |
140 | - | feather1.BrickColor = BrickColor.new("Crimson") |
140 | + | feather1.BrickColor = BrickColor.random() |
141 | feather1.Friction = 0.30000001192093 | |
142 | feather1.Name = "Feather" | |
143 | feather1.Parent = arrow | |
144 | feather1.CanCollide = false | |
145 | feather1.Transparency = 1 | |
146 | ||
147 | feather2 = Instance.new("WedgePart") | |
148 | feather2.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.50003171, -56.1500168)) * CFrame.Angles(-0, 0, -3.1415927410126) | |
149 | feather2.TopSurface = Enum.SurfaceType.Smooth | |
150 | feather2.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952) | |
151 | - | feather2.BrickColor = BrickColor.new("Crimson") |
151 | + | feather2.BrickColor = BrickColor.random() |
152 | feather2.Friction = 0.30000001192093 | |
153 | feather2.Name = "Feather" | |
154 | feather2.Parent = arrow | |
155 | feather2.CanCollide = false | |
156 | feather2.Transparency = 1 | |
157 | ||
158 | arrowhead = Instance.new("WedgePart") | |
159 | arrowhead.CFrame = CFrame.new(Vector3.new(-48.2999992, 2.80002427, -59.4500008)) * CFrame.Angles(-0, 0, -0) | |
160 | arrowhead.TopSurface = Enum.SurfaceType.Smooth | |
161 | arrowhead.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952) | |
162 | arrowhead.Friction = 0.30000001192093 | |
163 | arrowhead.Name = "Arrowhead" | |
164 | arrowhead.Parent = arrow | |
165 | arrowhead.CanCollide = false | |
166 | arrowhead.Transparency = 1 | |
167 | ||
168 | arrowcap = Instance.new("Part") | |
169 | arrowcap.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0) | |
170 | arrowcap.TopSurface = Enum.SurfaceType.Smooth | |
171 | arrowcap.BottomSurface = Enum.SurfaceType.Smooth | |
172 | arrowcap.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
173 | - | arrowcap.BrickColor = BrickColor.new("Dirt brown") |
173 | + | arrowcap.BrickColor = BrickColor.random() |
174 | arrowcap.Friction = 0.30000001192093 | |
175 | arrowcap.Shape = Enum.PartType.Cylinder | |
176 | arrowcap.Name = "ArrowCap" | |
177 | arrowcap.Parent = arrow | |
178 | arrowcap.CanCollide = false | |
179 | arrowcap.Transparency = 1 | |
180 | ||
181 | arrowbody = Instance.new("Part") | |
182 | arrowbody.CFrame = CFrame.new(Vector3.new(0, 3, 0)) * CFrame.Angles(-0, 0, -0) | |
183 | arrowbody.Size = Vector3.new(0.200000003, 0.200000003, 3.60000014) | |
184 | - | arrowbody.BrickColor = BrickColor.new("Dirt brown") |
184 | + | arrowbody.BrickColor = BrickColor.random() |
185 | arrowbody.Friction = 0.30000001192093 | |
186 | arrowbody.Shape = Enum.PartType.Block | |
187 | arrowbody.Name = "ArrowBody" | |
188 | arrowbody.Parent = arrow | |
189 | arrowbody.CanCollide = false | |
190 | arrowbody.Transparency = 1 | |
191 | ||
192 | feather3 = Instance.new("WedgePart") | |
193 | feather3.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.50004983, -55.9500198)) * CFrame.Angles(-0, 0, -3.1415927410126) | |
194 | feather3.TopSurface = Enum.SurfaceType.Smooth | |
195 | feather3.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952) | |
196 | - | feather3.BrickColor = BrickColor.new("Crimson") |
196 | + | feather3.BrickColor = BrickColor.random() |
197 | feather3.Friction = 0.30000001192093 | |
198 | feather3.Name = "Feather" | |
199 | feather3.Parent = arrow | |
200 | feather3.CanCollide = false | |
201 | feather3.Transparency = 1 | |
202 | ||
203 | feather4 = Instance.new("WedgePart") | |
204 | feather4.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.90003037, -55.9500198)) * CFrame.Angles(-0, 0, -0) | |
205 | feather4.TopSurface = Enum.SurfaceType.Smooth | |
206 | feather4.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952) | |
207 | - | feather4.BrickColor = BrickColor.new("Crimson") |
207 | + | feather4.BrickColor = BrickColor.random() |
208 | feather4.Friction = 0.30000001192093 | |
209 | feather4.Name = "Feather" | |
210 | feather4.Parent = arrow | |
211 | feather4.CanCollide = false | |
212 | feather4.Transparency = 1 | |
213 | ||
214 | -- the welds | |
215 | ||
216 | whandle = Instance.new("Weld", char["Left Arm"]) | |
217 | whandle.Part0 = char.Torso | |
218 | whandle.Part1 = handle | |
219 | whandle.C0 = CFrame.new(0, 0, 0.6) * CFrame.Angles(0, 0, math.rad(45)) | |
220 | ||
221 | wstringpart = Instance.new("Weld", handle) | |
222 | wstringpart.Part0 = handle | |
223 | wstringpart.Part1 = stringpart | |
224 | wstringpart.C0 = CFrame.new(0, -0.3, -0.3) * CFrame.new(0, 0, 0) | |
225 | ||
226 | wjoint1 = Instance.new("Weld", handle) | |
227 | wjoint1.Part0 = handle | |
228 | wjoint1.Part1 = joint1 | |
229 | wjoint1.C0 = CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0) | |
230 | ||
231 | wjoint2 = Instance.new("Weld", handle) | |
232 | wjoint2.Part0 = handle | |
233 | wjoint2.Part1 = joint2 | |
234 | wjoint2.C0 = CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0) | |
235 | ||
236 | wleg1 = Instance.new("Weld", joint1) | |
237 | wleg1.Part0 = joint1 | |
238 | wleg1.Part1 = leg1 | |
239 | wleg1.C0 = CFrame.new(0, 0.95, 0) * CFrame.Angles(0, 0, 0) | |
240 | ||
241 | wleg2 = Instance.new("Weld", joint2) | |
242 | wleg2.Part0 = joint2 | |
243 | wleg2.Part1 = leg2 | |
244 | wleg2.C0 = CFrame.new(0, -0.95, 0) * CFrame.Angles(0, 0, 0) | |
245 | ||
246 | wcap1 = Instance.new("Weld", leg1) | |
247 | wcap1.Part0 = leg1 | |
248 | wcap1.Part1 = cap1 | |
249 | wcap1.C0 = CFrame.new(0, 0.95, 0) * CFrame.Angles(0, 0, 0) | |
250 | ||
251 | wcap2 = Instance.new("Weld", leg2) | |
252 | wcap2.Part0 = leg2 | |
253 | wcap2.Part1 = cap2 | |
254 | wcap2.C0 = CFrame.new(0, -0.95, 0) * CFrame.Angles(0, 0, 0) | |
255 | ||
256 | cap1att = Instance.new("Attachment", cap1) | |
257 | cap1att.Position = Vector3.new(0, 0, -0.05) | |
258 | cap2att = Instance.new("Attachment", cap2) | |
259 | cap2att.Position = Vector3.new(0, 0, -0.05) | |
260 | stringatt = Instance.new("Attachment", stringpart) | |
261 | stringp1 = Instance.new("RodConstraint", stringpart) | |
262 | - | stringp1.Color = BrickColor.new("Mid grey") |
262 | + | stringp1.Color = BrickColor.random() |
263 | stringp1.Visible = true | |
264 | stringp1.Attachment0 = stringatt | |
265 | stringp1.Attachment1 = cap1att | |
266 | stringp2 = Instance.new("RodConstraint", stringpart) | |
267 | - | stringp2.Color = BrickColor.new("Mid grey") |
267 | + | stringp2.Color = BrickColor.random() |
268 | stringp2.Visible = true | |
269 | stringp2.Attachment0 = stringatt | |
270 | stringp2.Attachment1 = cap2att | |
271 | ||
272 | warrowhead1 = Instance.new("Weld", arrowbody) | |
273 | warrowhead1.Part0 = arrowbody | |
274 | warrowhead1.Part1 = arrowhead | |
275 | warrowhead1.C0 = CFrame.new(0, 0, -1.95) | |
276 | ||
277 | wfeather1 = Instance.new("Weld", arrowbody) | |
278 | wfeather1.Part0 = arrowbody | |
279 | wfeather1.Part1 = feather1 | |
280 | wfeather1.C0 = CFrame.new(0, 0.2, 1.45) | |
281 | ||
282 | wfeather2 = Instance.new("Weld", arrowbody) | |
283 | wfeather2.Part0 = arrowbody | |
284 | wfeather2.Part1 = feather2 | |
285 | wfeather2.C0 = CFrame.new(0, 0.2, 1.4) | |
286 | ||
287 | wfeather3 = Instance.new("Weld", arrowbody) | |
288 | wfeather3.Part0 = arrowbody | |
289 | wfeather3.Part1 = feather3 | |
290 | wfeather3.C0 = CFrame.new(0, -0.2, 1.45) * CFrame.Angles(0, 0, 3.15) | |
291 | ||
292 | wfeather4 = Instance.new("Weld", arrowbody) | |
293 | wfeather4.Part0 = arrowbody | |
294 | wfeather4.Part1 = feather4 | |
295 | wfeather4.C0 = CFrame.new(0, -0.2, 1.4) * CFrame.Angles(0, 0, 3.15) | |
296 | ||
297 | warrow = Instance.new("Weld", char.Torso) | |
298 | warrow.Part0 = char.Torso | |
299 | warrow.Part1 = arrowbody | |
300 | warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575) | |
301 | ||
302 | warrowcap = Instance.new("Weld", arrowbody) | |
303 | warrowcap.Part0 = arrowbody | |
304 | warrowcap.Part1 = arrowcap | |
305 | warrowcap.C0 = CFrame.new(0, 0, 1.8) | |
306 | ||
307 | -- sounds | |
308 | ||
309 | pullbacksound = Instance.new("Sound", handle) | |
310 | pullbacksound.SoundId = "rbxassetid://609348868" | |
311 | ||
312 | firesound = Instance.new("Sound", handle) | |
313 | firesound.SoundId = "rbxassetid://609348009" | |
314 | firesound.PlaybackSpeed = 1.05 | |
315 | ||
316 | function velocity(v) | |
317 | print("killvel") | |
318 | vel = coroutine.wrap(function() | |
319 | wait(0.05) | |
320 | v:Remove() | |
321 | end) | |
322 | vel() | |
323 | end | |
324 | ||
325 | function killz(playa,hitz,kneef) | |
326 | local heyy = hitz | |
327 | if hitz == "Right Arm" then | |
328 | local Limb = playa:FindFirstChild("Right Arm") | |
329 | local ters = playa:FindFirstChild('Torso') | |
330 | if Limb and ters then | |
331 | if ters:FindFirstChild('Right Shoulder') then ters["Right Shoulder"]:Destroy() end | |
332 | for i,v in pairs(Limb:GetChildren()) do | |
333 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then | |
334 | v:Destroy() | |
335 | end | |
336 | end | |
337 | Limb.CFrame = ters.CFrame * CFrame.new(1.5, 0, 0) | |
338 | local Joint = Instance.new("Glue") | |
339 | Joint.Name = "RightShoulder" | |
340 | Joint.Part0 = ters | |
341 | Joint.Part1 = Limb | |
342 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
343 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
344 | Joint.Parent = ters | |
345 | ||
346 | local B = Instance.new("Part") | |
347 | B.TopSurface = 0 | |
348 | B.BottomSurface = 0 | |
349 | B.formFactor = "Symmetric" | |
350 | B.Size = Vector3.new(1, 1, 1) | |
351 | B.Transparency = 1 | |
352 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
353 | B.Parent = playa | |
354 | local W = Instance.new("Weld") | |
355 | W.Part0 = Limb | |
356 | W.Part1 = B | |
357 | W.C0 = CFrame.new(0, -0.5, 0) | |
358 | W.Parent = Limb | |
359 | local coru = coroutine.wrap(function() | |
360 | local uno = Instance.new('Part',workspace) | |
361 | local dos = Instance.new('Part',workspace) | |
362 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
363 | dos.CFrame = kneef.CFrame | |
364 | local weld = Instance.new('Weld',kneef) | |
365 | weld.Part0 = playa:FindFirstChild(hitz) | |
366 | weld.Part1 = kneef | |
367 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
368 | uno:Destroy() | |
369 | dos:Destroy() | |
370 | end) | |
371 | coru() | |
372 | end | |
373 | elseif hitz == "Left Arm" then | |
374 | local Limb = playa:FindFirstChild("Left Arm") | |
375 | local ters = playa:FindFirstChild('Torso') | |
376 | if Limb and ters then | |
377 | if ters:FindFirstChild('Left Shoulder') then ters["Left Shoulder"]:Destroy() end | |
378 | for i,v in pairs(Limb:GetChildren()) do | |
379 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then | |
380 | v:Destroy() | |
381 | end | |
382 | end | |
383 | Limb.CFrame = ters.CFrame * CFrame.new(-1.5, 0, 0) | |
384 | local Joint = Instance.new("Glue") | |
385 | Joint.Name = "LeftShoulder" | |
386 | Joint.Part0 = ters | |
387 | Joint.Part1 = Limb | |
388 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
389 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
390 | Joint.Parent = ters | |
391 | ||
392 | local B = Instance.new("Part") | |
393 | B.TopSurface = 0 | |
394 | B.BottomSurface = 0 | |
395 | B.formFactor = "Symmetric" | |
396 | B.Size = Vector3.new(1, 1, 1) | |
397 | B.Transparency = 1 | |
398 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
399 | B.Parent = playa | |
400 | local W = Instance.new("Weld") | |
401 | W.Part0 = ters | |
402 | W.Part1 = B | |
403 | W.C0 = CFrame.new(0, -0.5, 0) | |
404 | W.Parent = Limb | |
405 | local coru = coroutine.wrap(function() | |
406 | local uno = Instance.new('Part',workspace) | |
407 | local dos = Instance.new('Part',workspace) | |
408 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
409 | dos.CFrame = kneef.CFrame | |
410 | local weld = Instance.new('Weld',kneef) | |
411 | weld.Part0 = playa:FindFirstChild(hitz) | |
412 | weld.Part1 = kneef | |
413 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
414 | uno:Destroy() | |
415 | dos:Destroy() | |
416 | end) | |
417 | coru() | |
418 | end | |
419 | elseif hitz == "Right Leg" then | |
420 | local Limb = playa:FindFirstChild("Right Leg") | |
421 | local ters = playa:FindFirstChild('Torso') | |
422 | if Limb and ters then | |
423 | if ters:FindFirstChild('Right Hip') then ters["Right Hip"]:Destroy() end | |
424 | for i,v in pairs(Limb:GetChildren()) do | |
425 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then | |
426 | v:Destroy() | |
427 | end | |
428 | end | |
429 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
430 | local Joint = Instance.new("Glue") | |
431 | Joint.Name = "Right Hip" | |
432 | Joint.Part0 = ters | |
433 | Joint.Part1 = Limb | |
434 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
435 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
436 | Joint.Parent = ters | |
437 | local B = Instance.new("Part") | |
438 | B.TopSurface = 0 | |
439 | B.BottomSurface = 0 | |
440 | B.formFactor = "Symmetric" | |
441 | B.Size = Vector3.new(1, 1, 1) | |
442 | B.Transparency = 1 | |
443 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
444 | B.Parent = playa | |
445 | local W = Instance.new("Weld") | |
446 | W.Part0 = Limb | |
447 | W.Part1 = B | |
448 | W.C0 = CFrame.new(0, -0.5, 0) | |
449 | W.Parent = Limb | |
450 | local coru = coroutine.wrap(function() | |
451 | local uno = Instance.new('Part',workspace) | |
452 | local dos = Instance.new('Part',workspace) | |
453 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
454 | dos.CFrame = kneef.CFrame | |
455 | local weld = Instance.new('Weld',kneef) | |
456 | weld.Part0 = playa:FindFirstChild(hitz) | |
457 | weld.Part1 = kneef | |
458 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
459 | uno:Destroy() | |
460 | dos:Destroy() | |
461 | if playa:FindFirstChild('HumanoidRootPart') then | |
462 | if playa.HumanoidRootPart:FindFirstChild('RootJoint') then | |
463 | playa.HumanoidRootPart:FindFirstChild('RootJoint'):Destroy() | |
464 | wait() | |
465 | end | |
466 | while playa.HumanoidRootPart:FindFirstChild('RootJoint') do | |
467 | wait() | |
468 | end | |
469 | playa:FindFirstChild('HumanoidRootPart'):Destroy() | |
470 | end | |
471 | end) | |
472 | coru() | |
473 | end | |
474 | elseif hitz == "Left Leg" then | |
475 | local Limb = playa:FindFirstChild("Left Leg") | |
476 | local ters = playa:FindFirstChild('Torso') | |
477 | if Limb and ters then | |
478 | if ters:FindFirstChild('Left Hip') then ters["Left Hip"]:Destroy() end | |
479 | for i,v in pairs(Limb:GetChildren()) do | |
480 | if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then | |
481 | v:Destroy() | |
482 | end | |
483 | end | |
484 | Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0) | |
485 | Limb.CFrame = ters.CFrame * CFrame.new(-0.5, -2, 0) | |
486 | local Joint = Instance.new("Glue") | |
487 | Joint.Name = "LeftHip" | |
488 | Joint.Part0 = ters | |
489 | Joint.Part1 = Limb | |
490 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
491 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
492 | Joint.Parent = ters | |
493 | ||
494 | local B = Instance.new("Part") | |
495 | B.TopSurface = 0 | |
496 | B.BottomSurface = 0 | |
497 | B.formFactor = "Symmetric" | |
498 | B.Size = Vector3.new(1, 1, 1) | |
499 | B.Transparency = 1 | |
500 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
501 | B.Parent = playa | |
502 | local W = Instance.new("Weld") | |
503 | W.Part0 = Limb | |
504 | W.Part1 = B | |
505 | W.C0 = CFrame.new(0, -0.5, 0) | |
506 | W.Parent = Limb | |
507 | Limb.CanCollide = false | |
508 | local coru = coroutine.wrap(function() | |
509 | local uno = Instance.new('Part',workspace) | |
510 | local dos = Instance.new('Part',workspace) | |
511 | uno.CFrame = playa:FindFirstChild(hitz).CFrame | |
512 | dos.CFrame = kneef.CFrame | |
513 | local weld = Instance.new('Weld',kneef) | |
514 | weld.Part0 = playa:FindFirstChild(hitz) | |
515 | weld.Part1 = kneef | |
516 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
517 | uno:Destroy() | |
518 | dos:Destroy() | |
519 | if playa:FindFirstChild('HumanoidRootPart') then | |
520 | if playa.HumanoidRootPart:FindFirstChild('RootJoint') then | |
521 | playa.HumanoidRootPart:FindFirstChild('RootJoint'):Destroy() | |
522 | end | |
523 | while playa.HumanoidRootPart:FindFirstChild('RootJoint') do | |
524 | wait() | |
525 | end | |
526 | playa:FindFirstChild('HumanoidRootPart'):Destroy() | |
527 | end | |
528 | end) | |
529 | coru() | |
530 | end | |
531 | else | |
532 | local playa2 = playa | |
533 | playa.Archivable = true | |
534 | local playa = playa:Clone() | |
535 | playa.Archivable = false | |
536 | playa2:Destroy() | |
537 | playa.Parent = workspace | |
538 | local Gibs = game.Workspace | |
539 | local Torso = playa.Torso | |
540 | local Head = playa:FindFirstChild("Head") | |
541 | local function Scan(ch) | |
542 | local e | |
543 | for e = 1,#ch do | |
544 | Scan(ch[e]:GetChildren()) | |
545 | if (ch[e].ClassName == "Weld" and ch[e].Part1.Name ~= 'Projectile') or ch[e].ClassName == "Motor6D" then | |
546 | ch[e]:remove() | |
547 | end | |
548 | end | |
549 | end | |
550 | Scan(playa:GetChildren()) | |
551 | if playa:FindFirstChild('HumanoidRootPart') then | |
552 | playa:FindFirstChild('HumanoidRootPart'):Destroy() | |
553 | end | |
554 | local hum2 = playa:FindFirstChildOfClass("Humanoid") | |
555 | ||
556 | ||
557 | if hum2 ~= nil then | |
558 | hum2.Name = "Humanoid2" | |
559 | hum2.PlatformStand = true | |
560 | hum2.Health = 0 | |
561 | end | |
562 | local ch = playa:GetChildren() | |
563 | local i | |
564 | for i = 1,#ch do | |
565 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
566 | ch[i]:remove() | |
567 | end | |
568 | end | |
569 | ||
570 | if Head then | |
571 | local Neck = Instance.new("Weld") | |
572 | Neck.Name = "Neck" | |
573 | Neck.Part0 = Torso | |
574 | Neck.Part1 = Head | |
575 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
576 | Neck.C1 = CFrame.new() | |
577 | Neck.Parent = Torso | |
578 | end | |
579 | local Limb = playa:FindFirstChild("Right Arm") | |
580 | if Limb then | |
581 | ||
582 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
583 | local Joint = Instance.new("Glue") | |
584 | Joint.Name = "RightShoulder" | |
585 | Joint.Part0 = Torso | |
586 | Joint.Part1 = Limb | |
587 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
588 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
589 | Joint.Parent = Torso | |
590 | ||
591 | local B = Instance.new("Part") | |
592 | B.TopSurface = 0 | |
593 | B.BottomSurface = 0 | |
594 | B.formFactor = "Symmetric" | |
595 | B.Size = Vector3.new(1, 1, 1) | |
596 | B.Transparency = 1 | |
597 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
598 | B.Parent = playa | |
599 | local W = Instance.new("Weld") | |
600 | W.Part0 = Limb | |
601 | W.Part1 = B | |
602 | W.C0 = CFrame.new(0, -0.5, 0) | |
603 | W.Parent = Limb | |
604 | end | |
605 | local Limb = playa:FindFirstChild("Left Arm") | |
606 | if Limb then | |
607 | ||
608 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
609 | local Joint = Instance.new("Glue") | |
610 | Joint.Name = "LeftShoulder" | |
611 | Joint.Part0 = Torso | |
612 | Joint.Part1 = Limb | |
613 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
614 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
615 | Joint.Parent = Torso | |
616 | ||
617 | local B = Instance.new("Part") | |
618 | B.TopSurface = 0 | |
619 | B.BottomSurface = 0 | |
620 | B.formFactor = "Symmetric" | |
621 | B.Size = Vector3.new(1, 1, 1) | |
622 | B.Transparency = 1 | |
623 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
624 | B.Parent = playa | |
625 | local W = Instance.new("Weld") | |
626 | W.Part0 = Limb | |
627 | W.Part1 = B | |
628 | W.C0 = CFrame.new(0, -0.5, 0) | |
629 | W.Parent = Limb | |
630 | end | |
631 | local Limb = playa:FindFirstChild("Right Leg") | |
632 | if Limb then | |
633 | ||
634 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
635 | local Joint = Instance.new("Glue") | |
636 | Joint.Name = "RightHip" | |
637 | Joint.Part0 = Torso | |
638 | Joint.Part1 = Limb | |
639 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
640 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
641 | Joint.Parent = Torso | |
642 | ||
643 | local B = Instance.new("Part") | |
644 | B.TopSurface = 0 | |
645 | B.BottomSurface = 0 | |
646 | B.formFactor = "Symmetric" | |
647 | B.Size = Vector3.new(1, 1, 1) | |
648 | B.Transparency = 1 | |
649 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
650 | B.Parent = playa | |
651 | local W = Instance.new("Weld") | |
652 | W.Part0 = Limb | |
653 | W.Part1 = B | |
654 | W.C0 = CFrame.new(0, -0.5, 0) | |
655 | W.Parent = Limb | |
656 | end | |
657 | local Limb = playa:FindFirstChild("Left Leg") | |
658 | if Limb then | |
659 | ||
660 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
661 | local Joint = Instance.new("Glue") | |
662 | Joint.Name = "LeftHip" | |
663 | Joint.Part0 = Torso | |
664 | Joint.Part1 = Limb | |
665 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
666 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
667 | Joint.Parent = Torso | |
668 | ||
669 | local B = Instance.new("Part") | |
670 | B.TopSurface = 0 | |
671 | B.BottomSurface = 0 | |
672 | B.formFactor = "Symmetric" | |
673 | B.Size = Vector3.new(1, 1, 1) | |
674 | B.Transparency = 1 | |
675 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
676 | B.Parent = playa | |
677 | local W = Instance.new("Weld") | |
678 | W.Part0 = Limb | |
679 | W.Part1 = B | |
680 | W.C0 = CFrame.new(0, -0.5, 0) | |
681 | W.Parent = Limb | |
682 | end | |
683 | --[ | |
684 | local Bar = Instance.new("Part") | |
685 | Bar.TopSurface = 0 | |
686 | Bar.BottomSurface = 0 | |
687 | Bar.formFactor = "Symmetric" | |
688 | Bar.Size = Vector3.new(1, 1, 1) | |
689 | Bar.Transparency = 1 | |
690 | Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
691 | Bar.Parent = playa | |
692 | local Weld = Instance.new("Weld") | |
693 | Weld.Part0 = Torso | |
694 | Weld.Part1 = Bar | |
695 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
696 | Weld.Parent = Torso | |
697 | --]] | |
698 | playa.Parent = Gibs | |
699 | local coru = coroutine.wrap(function() | |
700 | print(hitz.Name) | |
701 | local uno = Instance.new('Part',workspace) | |
702 | local dos = Instance.new('Part',workspace) | |
703 | uno.CFrame = playa:FindFirstChild(heyy).CFrame | |
704 | dos.CFrame = kneef.CFrame | |
705 | local weld = Instance.new('Weld',kneef) | |
706 | weld.Part0 = playa:FindFirstChild(heyy) | |
707 | weld.Part1 = kneef | |
708 | weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame) | |
709 | uno:Destroy() | |
710 | dos:Destroy() | |
711 | lolzzz = Instance.new("Fire",hitz) | |
712 | ||
713 | end) | |
714 | coru() | |
715 | game.Debris:AddItem(playa, 15) | |
716 | end | |
717 | end | |
718 | ||
719 | function checkarms() | |
720 | check = coroutine.wrap(function() | |
721 | rshould = char.Torso:FindFirstChild("Right Shoulder") | |
722 | lshould = char.Torso:FindFirstChild("Left Shoulder") | |
723 | ||
724 | if rshould == nil then | |
725 | rightshoulder:Clone().Parent = char.Torso | |
726 | end | |
727 | if lshould == nil then | |
728 | rightshoulder:Clone().Parent = char.Torso | |
729 | end | |
730 | end) | |
731 | check() | |
732 | end | |
733 | ||
734 | mouse.KeyDown:connect(function(k) | |
735 | key = k:lower() | |
736 | ||
737 | if key == "e" and enabled == true and equipped == true then | |
738 | if armed == false then | |
739 | crarm = Instance.new("Weld", char.Torso) | |
740 | crarm.Part0 = char.Torso | |
741 | crarm.Part1 = char["Right Arm"] | |
742 | crarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0) | |
743 | ||
744 | clarm = Instance.new("Weld", char.Torso) | |
745 | clarm.Part0 = char.Torso | |
746 | clarm.Part1 = char["Left Arm"] | |
747 | clarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0) | |
748 | ||
749 | enabled = false | |
750 | for i = 0, 1, 0.1 do | |
751 | crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 1.5, 0) * CFrame.Angles(3.14, 0, 0), i) | |
752 | wait() | |
753 | end | |
754 | for i, v in pairs(arrow:GetChildren()) do | |
755 | v.Transparency = 0 | |
756 | end | |
757 | feather1.Transparency = 0.25 | |
758 | feather2.Transparency = 0.25 | |
759 | feather3.Transparency = 0.25 | |
760 | feather4.Transparency = 0.25 | |
761 | ||
762 | warrow.Part0 = char["Right Arm"] | |
763 | warrow.C0 = CFrame.new(-0.5, -2.7, -0.2) * CFrame.Angles(-1.575, 0.075, -0.5) | |
764 | ||
765 | for i = 0, 1, 0.05 do | |
766 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.5, 0), i) | |
767 | whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, -0.05, 0), i) | |
768 | clarm.C0 = clarm.C0:lerp(CFrame.new(-1.6, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i) | |
769 | crarm.C0 = crarm.C0:lerp(CFrame.new(-1.35, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575), i) | |
770 | wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0), i) | |
771 | wjoint2.C0 = wjoint2.C0:lerp(CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0), i) | |
772 | wstringpart.C0 = wstringpart.C0:lerp(CFrame.new(0, -0.5, -0.3) * CFrame.new(0, 0, 0), i) | |
773 | hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 1.5, 0), i) | |
774 | wait() | |
775 | end | |
776 | pullbacksound:Play() | |
777 | warrow.Part0 = stringpart | |
778 | warrow.C0 = CFrame.new(-0.1, 0, 1.9) * CFrame.Angles(3.15, 0.04, 0) | |
779 | for i = 0, 1, 0.025 do | |
780 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.5, 0), i) | |
781 | whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, -0.05, 0), i) | |
782 | clarm.C0 = clarm.C0:lerp(CFrame.new(-1.95, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i) | |
783 | crarm.C0 = crarm.C0:lerp(CFrame.new(1, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575), i) | |
784 | wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.4, 0, 0), i) | |
785 | wjoint2.C0 = wjoint2.C0:lerp(CFrame.new(0, -0.6, 0) * CFrame.Angles(0.4, 0, 0), i) | |
786 | wstringpart.C0 = wstringpart.C0:lerp(CFrame.new(0, -0.5, -3) * CFrame.new(0, 0, 0), i) | |
787 | hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, -0.1) * CFrame.Angles(0, 1.5, -0.25), i) | |
788 | wait() | |
789 | end | |
790 | armed = true | |
791 | enabled = true | |
792 | elseif armed == true and equipped == true then | |
793 | enabled = false | |
794 | for i = 0,1,0.05 do | |
795 | clarm.C0 = clarm.C0:lerp(CFrame.new(-1.6, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i) | |
796 | crarm.C0 = crarm.C0:lerp(CFrame.new(-1.3, 0.4, -1) * CFrame.Angles(1.575, 0.1, -1.575), i) | |
797 | wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0), i) | |
798 | wjoint2.C0 = wjoint2.C0:lerp(CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0), i) | |
799 | wstringpart.C0 = wstringpart.C0:lerp(CFrame.new(0, -0.5, -0.3) * CFrame.new(0, 0, 0), i) | |
800 | wait() | |
801 | end | |
802 | warrow.Part0 = char["Right Arm"] | |
803 | warrow.C0 = CFrame.new(-0.5, -2.65, -0.2) * CFrame.Angles(-1.575, 0.075, -0.4) | |
804 | for i = 0,1,0.05 do | |
805 | crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 1.5, 0) * CFrame.Angles(3.14, 0, 0), i) | |
806 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
807 | whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0), i) | |
808 | clarm.C0 = clarm.C0:lerp(CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
809 | crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
810 | hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 0, 0), i) | |
811 | wait() | |
812 | end | |
813 | ||
814 | for i, v in pairs(arrow:GetChildren()) do | |
815 | v.Transparency = 1 | |
816 | end | |
817 | warrow.Part0 = char.Torso | |
818 | warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575) | |
819 | ||
820 | for i = 0, 1, 0.1 do | |
821 | crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
822 | wait() | |
823 | end | |
824 | armed = false | |
825 | enabled = true | |
826 | clarm:Remove() | |
827 | crarm:Remove() | |
828 | rightshoulder:Clone().Parent = char.Torso | |
829 | leftshoulder:Clone().Parent = char.Torso | |
830 | checkarms() | |
831 | end | |
832 | elseif key == "z" then | |
833 | if armed == true or enabled == false then return end | |
834 | clarm = Instance.new("Weld", char.Torso) | |
835 | clarm.Part0 = char.Torso | |
836 | clarm.Part1 = char["Left Arm"] | |
837 | clarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0) | |
838 | if equipped == false then | |
839 | enabled = false | |
840 | for i = 0, 1, 0.05 do | |
841 | clarm.C0 = clarm.C0:lerp(CFrame.new(-0.5, 0, 0.25) * CFrame.Angles(math.rad(-90), 0, math.rad(75)), i) | |
842 | wait() | |
843 | end | |
844 | whandle.C0 = CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0) | |
845 | whandle.Part0 = char["Left Arm"] | |
846 | for i = 0, 1, 0.05 do | |
847 | clarm.C0 = clarm.C0:lerp(CFrame.new(-2, 0.6, 0) * CFrame.Angles(0, 0, math.rad(-90)), i) | |
848 | wait() | |
849 | end | |
850 | for i = 0, 1, 0.05 do | |
851 | clarm.C0 = clarm.C0:lerp(CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0), i) | |
852 | wait() | |
853 | end | |
854 | enabled = true | |
855 | equipped = true | |
856 | elseif equipped == true then | |
857 | if armed == true or enabled == false then return end | |
858 | enabled = false | |
859 | for i = 0, 1, 0.05 do | |
860 | clarm.C0 = clarm.C0:lerp(CFrame.new(-2, 0.6, 0) * CFrame.Angles(0, 0, math.rad(-90)), i) | |
861 | wait() | |
862 | end | |
863 | for i = 0, 1, 0.05 do | |
864 | clarm.C0 = clarm.C0:lerp(CFrame.new(-0.5, 0, 0.25) * CFrame.Angles(math.rad(-90), 0, math.rad(75)), i) | |
865 | whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0), i) | |
866 | wait() | |
867 | end | |
868 | whandle.C0 = CFrame.new(0, 0, 0.6) * CFrame.Angles(0, 0, math.rad(45)) | |
869 | whandle.Part0 = char.Torso | |
870 | for i = 0, 1, 0.05 do | |
871 | clarm.C0 = clarm.C0:lerp(CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0), i) | |
872 | wait() | |
873 | end | |
874 | equipped = false | |
875 | enabled = true | |
876 | end | |
877 | clarm:Remove() | |
878 | leftshoulder:Clone().Parent = char.Torso | |
879 | end | |
880 | end) | |
881 | ||
882 | mouse.Button1Down:connect(function() | |
883 | if armed == false or enabled == false or equipped == false then return end | |
884 | firesound:Play() | |
885 | enabled = false | |
886 | armed = false | |
887 | wjoint1.C0 = CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0) | |
888 | wjoint2.C0 = CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0) | |
889 | wstringpart.C0 = CFrame.new(0, -0.5, -0.3) * CFrame.new(0, 0, 0) | |
890 | crarm.C0 = CFrame.new(1.2, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575) | |
891 | newarrow = arrow:Clone() | |
892 | newarrow.Parent = game.Workspace | |
893 | newarrow.Name = "flyingarrow" | |
894 | newarrow.ArrowBody.CFrame = CFrame.new(newarrow.ArrowBody.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,0,math.pi/1.15) | |
895 | char.HumanoidRootPart.CFrame = CFrame.new(char.HumanoidRootPart.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/100,0) | |
896 | char.Humanoid.JumpPower = 1 | |
897 | char.Humanoid.Jump = true | |
898 | local fly = Instance.new('BodyVelocity',newarrow.ArrowBody) | |
899 | fly.Velocity = (newarrow.ArrowBody.CFrame*CFrame.Angles(0,0,math.pi/2)).lookVector*200 | |
900 | newarrow.Arrowhead.Touched:connect(function(hit) | |
901 | 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 | |
902 | velocity(fly) | |
903 | newarrow.Arrowhead.CanCollide = true | |
904 | game:GetService('Debris'):AddItem(newarrow.Arrowhead,15) | |
905 | tone = math.random(1, 3) | |
906 | local sound = Instance.new('Sound',newarrow.Arrowhead) | |
907 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
908 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
909 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
910 | sound.PlaybackSpeed = 1 | |
911 | sound:Play() | |
912 | newarrow.Arrowhead.Anchored = true | |
913 | hit.Anchored = true | |
914 | if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Name == "Torso" or hit.Name == "Head" then | |
915 | hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0 | |
916 | end | |
917 | wait() | |
918 | hit.Anchored = false | |
919 | newarrow.Arrowhead.Anchored = false | |
920 | killz(hit.Parent,hit.Name,newarrow.Arrowhead) | |
921 | 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 | |
922 | velocity(fly) | |
923 | game:GetService('Debris'):AddItem(newarrow.Arrowhead,15) | |
924 | newarrow.Arrowhead.CanCollide = true | |
925 | tone = math.random(1, 3) | |
926 | local sound = Instance.new('Sound',newarrow.Arrowhead) | |
927 | if tone == 1 then sound.SoundId = "rbxassetid://220833967" end | |
928 | if tone == 2 then sound.SoundId = "rbxassetid://220833976" end | |
929 | if tone == 3 then sound.SoundId = "rbxassetid://220834000" end | |
930 | sound.PlaybackSpeed = 1 | |
931 | sound:Play() | |
932 | newarrow.Arrowhead.Anchored = true | |
933 | hit.Anchored = true | |
934 | if hit.Parent.Parent:FindFirstChildOfClass('Humanoid') then | |
935 | hit.Parent.Parent:FindFirstChildOfClass('Humanoid').Health = 0 | |
936 | end | |
937 | wait() | |
938 | newarrow.Arrowhead.Anchored = false | |
939 | hit.Anchored = false | |
940 | killz(hit.Parent.Parent,hit.Name,newarrow.Arrowhead) | |
941 | elseif hit.Parent and hit.Parent ~= char and hit.Parent.Parent ~= char and hit.Transparency < 1 and newarrow.Arrowhead.CanCollide == false then | |
942 | velocity(fly) | |
943 | game:GetService('Debris'):AddItem(newarrow.Arrowhead,15) | |
944 | newarrow.Arrowhead.CanCollide = true | |
945 | local sound = Instance.new('Sound',newarrow.Arrowhead) | |
946 | sound.SoundId = 'rbxassetid://267585646' | |
947 | sound:Play() | |
948 | end | |
949 | end) | |
950 | ||
951 | for i, v in pairs(arrow:GetChildren()) do | |
952 | v.Transparency = 1 | |
953 | end | |
954 | warrow.Part0 = char.Torso | |
955 | warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575) | |
956 | wait(0.5) | |
957 | for i = 0, 1, 0.05 do | |
958 | tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
959 | whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0), i) | |
960 | clarm.C0 = clarm.C0:lerp(CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
961 | crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i) | |
962 | hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 0, 0), i) | |
963 | wait() | |
964 | end | |
965 | clarm:Remove() | |
966 | crarm:Remove() | |
967 | rightshoulder:Clone().Parent = char.Torso | |
968 | leftshoulder:Clone().Parent = char.Torso | |
969 | checkarms() | |
970 | char.Humanoid.JumpPower = 50 | |
971 | enabled = true | |
972 | end) |