SHOW:
|
|
- or go back to the newest paste.
1 | - | --[[GunBlade Script created by: |
1 | + | |
2 | - | AccountMoniter:Everything XD |
2 | + | Player = game:GetService("Players").xVitality |
3 | - | If you're gonna steal this, then please I ask you. Please don't forum,free model, give |
3 | + | |
4 | - | away, or anything like that to this script. Thank you very much :) |
4 | + | |
5 | - | Percent done: around 40% [Got sidetracked by other stuff. Gonna continue with this after some time.] |
5 | + | |
6 | Torso = Character.Torso | |
7 | - | Player = game:GetService("Players").ares200345 |
7 | + | |
8 | LeftArm = Character["Left Arm"] | |
9 | LeftLeg = Character["Left Leg"] | |
10 | RightArm = Character["Right Arm"] | |
11 | RightLeg = Character["Right Leg"] | |
12 | LS = Torso["Left Shoulder"] | |
13 | LH = Torso["Left Hip"] | |
14 | RS = Torso["Right Shoulder"] | |
15 | RH = Torso["Right Hip"] | |
16 | attack = false | |
17 | attacktype = 1 | |
18 | damage = 3 | |
19 | oridamage = 3 | |
20 | --player | |
21 | player = nil | |
22 | --save shoulders | |
23 | RSH, LSH = nil, nil | |
24 | --welds | |
25 | RW, LW = Instance.new("Weld"), Instance.new("Weld") | |
26 | --what anim | |
27 | anim = "none" | |
28 | unsheathed = false | |
29 | tornadoing = false | |
30 | if Character:findFirstChild("Main Weapons",true) ~= nil then | |
31 | Character:findFirstChild("Main Weapons",true).Parent = nil | |
32 | end | |
33 | --[[Models and Parts]]-- | |
34 | local modelzorz = Instance.new("Model") | |
35 | modelzorz.Name = "Main Weapons" | |
36 | modelzorz.Parent = Character | |
37 | local model1 = Instance.new("Model") | |
38 | model1.Name = "GunSword" --Yes I know. This is from Squall from FF7 right? Well I didn't copied this from him. | |
39 | model1.Parent = modelzorz | |
40 | local model2 = Instance.new("Model") | |
41 | model2.Name = "BlastCannon" | |
42 | model2.Parent = nil | |
43 | local model3 = Instance.new("Model") | |
44 | model3.Name = "LaserRifle" | |
45 | model3.Parent = nil | |
46 | local model4 = Instance.new("Model") | |
47 | model4.Name = "Tornado Skates" | |
48 | model4.Parent = nil | |
49 | local prt1 = Instance.new("Part") | |
50 | prt1.formFactor = 1 | |
51 | prt1.Parent = model1 | |
52 | prt1.CanCollide = false | |
53 | prt1.BrickColor = BrickColor.new("Dark stone grey") | |
54 | prt1.Name = "Handle1" | |
55 | prt1.Size = Vector3.new(1,1,1) | |
56 | prt1.Position = Torso.Position | |
57 | local prt2 = Instance.new("Part") | |
58 | prt2.formFactor = 1 | |
59 | prt2.Parent = model1 | |
60 | prt2.CanCollide = false | |
61 | prt2.BrickColor = BrickColor.new("Medium stone grey") | |
62 | prt2.Name = "Handle2" | |
63 | prt2.Size = Vector3.new(1,1,1) | |
64 | prt2.Position = Torso.Position | |
65 | local prt3 = Instance.new("Part") | |
66 | prt3.formFactor = 1 | |
67 | prt3.Reflectance = 0.05 | |
68 | prt3.Parent = model1 | |
69 | prt3.CanCollide = false | |
70 | prt3.BrickColor = BrickColor.new("Black") | |
71 | prt3.Name = "Blade1" | |
72 | prt3.Size = Vector3.new(1,4,1) | |
73 | prt3.Position = Torso.Position | |
74 | local prt4 = Instance.new("Part") | |
75 | prt4.formFactor = 1 | |
76 | prt4.Reflectance = 0.05 | |
77 | prt4.Parent = model1 | |
78 | prt4.CanCollide = false | |
79 | prt4.BrickColor = BrickColor.new("Black") | |
80 | prt4.Name = "Blade2" | |
81 | prt4.Size = Vector3.new(1,1,1) | |
82 | prt4.Position = Torso.Position | |
83 | local prt5 = Instance.new("Part") | |
84 | prt5.formFactor = 1 | |
85 | prt5.Parent = model1 | |
86 | prt5.CanCollide = false | |
87 | prt5.BrickColor = BrickColor.new("Medium stone grey") | |
88 | prt5.Name = "Barrel" | |
89 | prt5.Size = Vector3.new(1,1,1) | |
90 | prt5.Position = Torso.Position | |
91 | local prt6 = Instance.new("Part") | |
92 | prt6.formFactor = 1 | |
93 | prt6.Parent = model1 | |
94 | prt6.CanCollide = false | |
95 | prt6.BrickColor = BrickColor.new("Black") | |
96 | prt6.Name = "Shell1" --I had a REALLY, hard time CFraming all these shells >.< | |
97 | prt6.Size = Vector3.new(1,1,1) | |
98 | prt6.Position = Torso.Position | |
99 | local prt7 = Instance.new("Part") | |
100 | prt7.formFactor = 1 | |
101 | prt7.Parent = model1 | |
102 | prt7.CanCollide = false | |
103 | prt7.BrickColor = BrickColor.new("Black") | |
104 | prt7.Name = "Shell2" | |
105 | prt7.Size = Vector3.new(1,1,1) | |
106 | prt7.Position = Torso.Position | |
107 | local prt8 = Instance.new("Part") | |
108 | prt8.formFactor = 1 | |
109 | prt8.Parent = model1 | |
110 | prt8.CanCollide = false | |
111 | prt8.BrickColor = BrickColor.new("Black") | |
112 | prt8.Name = "Shell3" | |
113 | prt8.Size = Vector3.new(1,1,1) | |
114 | prt8.Position = Torso.Position | |
115 | local prt9 = Instance.new("Part") | |
116 | prt9.formFactor = 1 | |
117 | prt9.Parent = model1 | |
118 | prt9.CanCollide = false | |
119 | prt9.BrickColor = BrickColor.new("Black") | |
120 | prt9.Name = "Shell4" | |
121 | prt9.Size = Vector3.new(1,1,1) | |
122 | prt9.Position = Torso.Position | |
123 | local prt10 = Instance.new("Part") | |
124 | prt10.formFactor = 1 | |
125 | prt10.Parent = model1 | |
126 | prt10.CanCollide = false | |
127 | prt10.BrickColor = BrickColor.new("Black") | |
128 | prt10.Name = "Shell5" | |
129 | prt10.Size = Vector3.new(1,1,1) | |
130 | prt10.Position = Torso.Position | |
131 | local prt11 = Instance.new("Part") | |
132 | prt11.formFactor = 1 | |
133 | prt11.Parent = model1 | |
134 | prt11.CanCollide = false | |
135 | prt11.BrickColor = BrickColor.new("Black") | |
136 | prt11.Name = "Shell6" | |
137 | prt11.Size = Vector3.new(1,1,1) | |
138 | prt11.Position = Torso.Position | |
139 | local prt12 = Instance.new("Part") | |
140 | prt12.formFactor = 1 | |
141 | prt12.Parent = model1 | |
142 | prt12.CanCollide = false | |
143 | prt12.BrickColor = BrickColor.new("Medium stone grey") | |
144 | prt12.Name = "Gun1" | |
145 | prt12.Size = Vector3.new(1,2,1) | |
146 | prt12.Position = Torso.Position | |
147 | local prt13 = Instance.new("Part") | |
148 | prt13.formFactor = 1 | |
149 | prt13.Parent = model1 | |
150 | prt13.CanCollide = false | |
151 | prt13.BrickColor = BrickColor.new("Medium stone grey") | |
152 | prt13.Name = "Gun2" | |
153 | prt13.Size = Vector3.new(1,1,1) | |
154 | prt13.Position = Torso.Position | |
155 | local prt13a = Instance.new("Part") | |
156 | prt13a.formFactor = 1 | |
157 | prt13a.Parent = model1 | |
158 | prt13a.CanCollide = false | |
159 | prt13a.BrickColor = BrickColor.new("Black") | |
160 | prt13a.Name = "Gun3" | |
161 | prt13a.Size = Vector3.new(1,1,1) | |
162 | prt13a.Position = Torso.Position | |
163 | local prt14 = Instance.new("Part") | |
164 | prt14.formFactor = 1 | |
165 | prt14.Parent = model1 | |
166 | prt14.CanCollide = false | |
167 | prt14.BrickColor = BrickColor.new("Medium stone grey") | |
168 | prt14.Name = "Trigger1" | |
169 | prt14.Size = Vector3.new(1,1,1) | |
170 | prt14.Position = Torso.Position | |
171 | local prt15 = Instance.new("Part") | |
172 | prt15.formFactor = 1 | |
173 | prt15.Parent = model1 | |
174 | prt15.CanCollide = false | |
175 | prt15.BrickColor = BrickColor.new("Medium stone grey") | |
176 | prt15.Name = "Trigger2" | |
177 | prt15.Size = Vector3.new(1,1,1) | |
178 | prt15.Position = Torso.Position | |
179 | local prt16 = Instance.new("Part") | |
180 | prt16.formFactor = 1 | |
181 | prt16.Parent = model2 | |
182 | prt16.Reflectance = 0.2 | |
183 | prt16.CanCollide = false | |
184 | prt16.BrickColor = BrickColor.new("Black") | |
185 | prt16.Name = "CannonHandle1" | |
186 | prt16.Size = Vector3.new(1,2,1) | |
187 | prt16.Position = Torso.Position | |
188 | local prt17 = Instance.new("Part") | |
189 | prt17.formFactor = 1 | |
190 | prt17.Parent = model2 | |
191 | prt17.Reflectance = 0.2 | |
192 | prt17.CanCollide = false | |
193 | prt17.BrickColor = BrickColor.new("Black") | |
194 | prt17.Name = "CannonHandle2" | |
195 | prt17.Size = Vector3.new(1,1,1) | |
196 | prt17.Position = Torso.Position | |
197 | local prt18 = Instance.new("Part") | |
198 | prt18.formFactor = 1 | |
199 | prt18.Parent = model2 | |
200 | prt18.Reflectance = 0.2 | |
201 | prt18.CanCollide = false | |
202 | prt18.BrickColor = BrickColor.new("Black") | |
203 | prt18.Name = "CannonPart1" | |
204 | prt18.Size = Vector3.new(1,2,1) | |
205 | prt18.Position = Torso.Position | |
206 | local prt19 = Instance.new("Part") | |
207 | prt19.formFactor = 1 | |
208 | prt19.Parent = model2 | |
209 | prt19.Reflectance = 0.2 | |
210 | prt19.CanCollide = false | |
211 | prt19.BrickColor = BrickColor.new("Black") | |
212 | prt19.Name = "CannonPart2" | |
213 | prt19.Size = Vector3.new(1,2,1) | |
214 | prt19.Position = Torso.Position | |
215 | local prt20 = Instance.new("Part") | |
216 | prt20.formFactor = 1 | |
217 | prt20.Parent = model2 | |
218 | prt20.Reflectance = 0.2 | |
219 | prt20.CanCollide = false | |
220 | prt20.BrickColor = BrickColor.new("White") | |
221 | prt20.Name = "CannonHandle3" | |
222 | prt20.Size = Vector3.new(1,2,1) | |
223 | prt20.Position = Torso.Position | |
224 | local prt21 = Instance.new("Part") | |
225 | prt21.formFactor = 1 | |
226 | prt21.Parent = model2 | |
227 | prt21.Reflectance = 0.2 | |
228 | prt21.CanCollide = false | |
229 | prt21.BrickColor = BrickColor.new("Black") | |
230 | prt21.Name = "CannonPart3" | |
231 | prt21.Size = Vector3.new(1,2,1) | |
232 | prt21.Position = Torso.Position | |
233 | local prt22 = Instance.new("Part") | |
234 | prt22.formFactor = 1 | |
235 | prt22.Parent = model2 | |
236 | prt22.Reflectance = 0.2 | |
237 | prt22.CanCollide = false | |
238 | prt22.BrickColor = BrickColor.new("Black") | |
239 | prt22.Name = "CannonPart4" | |
240 | prt22.Size = Vector3.new(1,2,1) | |
241 | prt22.Position = Torso.Position | |
242 | local prt23 = Instance.new("Part") | |
243 | prt23.formFactor = 1 | |
244 | prt23.Parent = model2 | |
245 | prt23.Reflectance = 0.2 | |
246 | prt23.CanCollide = false | |
247 | prt23.BrickColor = BrickColor.new("Medium stone grey") | |
248 | prt23.Name = "CannonPart5" | |
249 | prt23.Size = Vector3.new(1,1,1) | |
250 | prt23.Position = Torso.Position | |
251 | local prt24 = Instance.new("Part") | |
252 | prt24.formFactor = 1 | |
253 | prt24.Parent = model2 | |
254 | prt24.Reflectance = 0 | |
255 | prt24.CanCollide = false | |
256 | prt24.BrickColor = BrickColor.new("Black") | |
257 | prt24.Name = "CannonPart6" | |
258 | prt24.Size = Vector3.new(1,1,1) | |
259 | prt24.Position = Torso.Position | |
260 | local prt25 = Instance.new("Part") | |
261 | prt25.formFactor = 1 | |
262 | prt25.Parent = model2 | |
263 | prt25.Reflectance = 0.2 | |
264 | prt25.CanCollide = false | |
265 | prt25.BrickColor = BrickColor.new("Medium stone grey") | |
266 | prt25.Name = "CannonPart7" | |
267 | prt25.Size = Vector3.new(1,2,1) | |
268 | prt25.Position = Torso.Position | |
269 | local prt26 = Instance.new("Part") | |
270 | prt26.formFactor = 1 | |
271 | prt26.Parent = model2 | |
272 | prt26.Reflectance = 0.2 | |
273 | prt26.CanCollide = false | |
274 | prt26.BrickColor = BrickColor.new("Medium stone grey") | |
275 | prt26.Name = "CannonPart8" | |
276 | prt26.Size = Vector3.new(1,1,1) | |
277 | prt26.Position = Torso.Position | |
278 | local prt27 = Instance.new("Part") | |
279 | prt27.formFactor = 1 | |
280 | prt27.Parent = model2 | |
281 | prt27.Reflectance = 0 | |
282 | prt27.CanCollide = false | |
283 | prt27.BrickColor = BrickColor.new("Black") | |
284 | prt27.Name = "CannonPart9" | |
285 | prt27.Size = Vector3.new(1,1,1) | |
286 | prt27.Position = Torso.Position | |
287 | local prt28 = Instance.new("Part") | |
288 | prt28.formFactor = 1 | |
289 | prt28.Parent = model2 | |
290 | prt28.Reflectance = 0 | |
291 | prt28.CanCollide = false | |
292 | prt28.BrickColor = BrickColor.new("Black") | |
293 | prt28.Name = "CannonPart10" | |
294 | prt28.Size = Vector3.new(1,1,1) | |
295 | prt28.Position = Torso.Position | |
296 | local prt29 = Instance.new("Part") | |
297 | prt29.formFactor = 1 | |
298 | prt29.Parent = model2 | |
299 | prt29.Reflectance = 0.2 | |
300 | prt29.CanCollide = false | |
301 | prt29.BrickColor = BrickColor.new("Black") | |
302 | prt29.Name = "CannonPart11" | |
303 | prt29.Size = Vector3.new(1,2,1) | |
304 | prt29.Position = Torso.Position | |
305 | local prt30 = Instance.new("Part") | |
306 | prt30.formFactor = 1 | |
307 | prt30.Parent = model2 | |
308 | prt30.Reflectance = 0 | |
309 | prt30.CanCollide = false | |
310 | prt30.BrickColor = BrickColor.new("Bright red") | |
311 | prt30.Name = "CannonPart12" | |
312 | prt30.Size = Vector3.new(1,2,1) | |
313 | prt30.Position = Torso.Position | |
314 | local prt31 = Instance.new("Part") | |
315 | prt31.formFactor = 1 | |
316 | prt31.Parent = model2 | |
317 | prt31.Reflectance = 0 | |
318 | prt31.CanCollide = false | |
319 | prt31.BrickColor = BrickColor.new("Black") | |
320 | prt31.Name = "CannonPart13" | |
321 | prt31.Size = Vector3.new(1,2,1) | |
322 | prt31.Position = Torso.Position | |
323 | local prt32 = Instance.new("Part") | |
324 | prt32.formFactor = 1 | |
325 | prt32.Parent = model3 | |
326 | prt32.Reflectance = 0 | |
327 | prt32.CanCollide = false | |
328 | prt32.BrickColor = BrickColor.new("Bright blue") | |
329 | prt32.Name = "LRhandle1" | |
330 | prt32.Size = Vector3.new(1,1,1) | |
331 | prt32.Position = Torso.Position | |
332 | local prt32a = Instance.new("Part") | |
333 | prt32a.formFactor = 1 | |
334 | prt32a.Parent = model3 | |
335 | prt32a.Reflectance = 0 | |
336 | prt32a.CanCollide = false | |
337 | prt32a.BrickColor = BrickColor.new("Black") | |
338 | prt32a.Name = "LRhandle1a" | |
339 | prt32a.Size = Vector3.new(1,1,1) | |
340 | prt32a.Position = Torso.Position | |
341 | local prt33 = Instance.new("Part") | |
342 | prt33.formFactor = 1 | |
343 | prt33.Parent = model3 | |
344 | prt33.Reflectance = 0 | |
345 | prt33.CanCollide = false | |
346 | prt33.BrickColor = BrickColor.new("Bright blue") | |
347 | prt33.Name = "LRhandle2" | |
348 | prt33.Size = Vector3.new(1,1,1) | |
349 | prt33.Position = Torso.Position | |
350 | local prt34 = Instance.new("Part") | |
351 | prt34.formFactor = 1 | |
352 | prt34.Parent = model3 | |
353 | prt34.Reflectance = 0 | |
354 | prt34.CanCollide = false | |
355 | prt34.BrickColor = BrickColor.new("Bright blue") | |
356 | prt34.Name = "LRPart1" | |
357 | prt34.Size = Vector3.new(1,2,1) | |
358 | prt34.Position = Torso.Position | |
359 | local prt35 = Instance.new("Part") | |
360 | prt35.formFactor = 1 | |
361 | prt35.Parent = model3 | |
362 | prt35.Reflectance = 0 | |
363 | prt35.CanCollide = false | |
364 | prt35.BrickColor = BrickColor.new("Bright blue") | |
365 | prt35.Name = "LRPart2" | |
366 | prt35.Size = Vector3.new(1,1,1) | |
367 | prt35.Position = Torso.Position | |
368 | local prt36 = Instance.new("Part") | |
369 | prt36.formFactor = 1 | |
370 | prt36.Parent = model3 | |
371 | prt36.Reflectance = 0 | |
372 | prt36.Reflectance = 0.2 | |
373 | prt36.CanCollide = false | |
374 | prt36.BrickColor = BrickColor.new("White") | |
375 | prt36.Name = "LRPart3" | |
376 | prt36.Size = Vector3.new(1,1,1) | |
377 | prt36.Position = Torso.Position | |
378 | local prt37 = Instance.new("Part") | |
379 | prt37.formFactor = 1 | |
380 | prt37.Parent = model3 | |
381 | prt37.Reflectance = 0 | |
382 | prt37.Reflectance = 0.2 | |
383 | prt37.CanCollide = false | |
384 | prt37.BrickColor = BrickColor.new("New Yeller") | |
385 | prt37.Name = "LRPart4" | |
386 | prt37.Size = Vector3.new(1,1,1) | |
387 | prt37.Position = Torso.Position | |
388 | local prt38 = Instance.new("Part") | |
389 | prt38.formFactor = 1 | |
390 | prt38.Parent = model3 | |
391 | prt38.Reflectance = 0 | |
392 | prt38.CanCollide = false | |
393 | prt38.BrickColor = BrickColor.new("White") | |
394 | prt38.Name = "LRDesign1" | |
395 | prt38.Size = Vector3.new(1,1,1) | |
396 | prt38.Position = Torso.Position | |
397 | local prt39 = Instance.new("Part") | |
398 | prt39.formFactor = 1 | |
399 | prt39.Parent = model3 | |
400 | prt39.Reflectance = 0 | |
401 | prt39.CanCollide = false | |
402 | prt39.BrickColor = BrickColor.new("Bright blue") | |
403 | prt39.Name = "LRDesign2" | |
404 | prt39.Size = Vector3.new(1,1,1) | |
405 | prt39.Position = Torso.Position | |
406 | local prt40 = Instance.new("Part") | |
407 | prt40.formFactor = 1 | |
408 | prt40.Parent = model3 | |
409 | prt40.Reflectance = 0 | |
410 | prt40.Transparency = 0.4 | |
411 | prt40.CanCollide = false | |
412 | prt40.BrickColor = BrickColor.new("Medium stone grey") | |
413 | prt40.Name = "TSPart1" | |
414 | prt40.Size = Vector3.new(1,1,1) | |
415 | prt40.Position = Torso.Position | |
416 | local msh1 = Instance.new("BlockMesh") | |
417 | msh1.Parent = prt1 | |
418 | msh1.Scale = Vector3.new(0.5,2,0.5) | |
419 | local msh2 = Instance.new("BlockMesh") | |
420 | msh2.Parent = prt2 | |
421 | msh2.Scale = Vector3.new(1,1,0.7) | |
422 | local msh3 = Instance.new("BlockMesh") | |
423 | msh3.Parent = prt3 | |
424 | msh3.Scale = Vector3.new(0.7,0.8,0.12) | |
425 | local msh4 = Instance.new("SpecialMesh") | |
426 | msh4.Parent = prt4 | |
427 | msh4.MeshType = "Wedge" | |
428 | msh4.Scale = Vector3.new(0.12, 1, 1.1) | |
429 | local msh5 = Instance.new("CylinderMesh") | |
430 | msh5.Parent = prt5 | |
431 | msh5.Scale = Vector3.new(1,1,1) | |
432 | local msh6 = Instance.new("CylinderMesh") | |
433 | msh6.Parent = prt6 | |
434 | msh6.Scale = Vector3.new(1.1,1.1,0.3) | |
435 | local msh7 = Instance.new("CylinderMesh") | |
436 | msh7.Parent = prt7 | |
437 | msh7.Scale = Vector3.new(1.1,1.1,0.3) | |
438 | local msh8 = Instance.new("CylinderMesh") | |
439 | msh8.Parent = prt8 | |
440 | msh8.Scale = Vector3.new(1.1,1.1,0.3) | |
441 | local msh9 = Instance.new("CylinderMesh") | |
442 | msh9.Parent = prt9 | |
443 | msh9.Scale = Vector3.new(1.1,1.1,0.3) | |
444 | local msh10 = Instance.new("CylinderMesh") | |
445 | msh10.Parent = prt10 | |
446 | msh10.Scale = Vector3.new(1.1,1.1,0.3) | |
447 | local msh11 = Instance.new("CylinderMesh") | |
448 | msh11.Parent = prt11 | |
449 | msh11.Scale = Vector3.new(1.1,1.1,0.3) | |
450 | local msh12 = Instance.new("CylinderMesh") | |
451 | msh12.Parent = prt12 | |
452 | msh12.Scale = Vector3.new(1.2,1,0.4) | |
453 | local msh13 = Instance.new("CylinderMesh") | |
454 | msh13.Parent = prt13 | |
455 | msh13.Scale = Vector3.new(0.5,0.5,0.5) | |
456 | local msh13a = Instance.new("CylinderMesh") | |
457 | msh13a.Parent = prt13a | |
458 | msh13a.Scale = Vector3.new(0.4,0.51,0.4) | |
459 | local msh14 = Instance.new("SpecialMesh") | |
460 | msh14.Parent = prt14 | |
461 | msh14.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
462 | msh14.Scale = Vector3.new(0.5,0.5,0.5) | |
463 | local msh15 = Instance.new("BlockMesh") | |
464 | msh15.Parent = prt15 | |
465 | msh15.Scale = Vector3.new(0.1,0.4,0.1) | |
466 | local msh16 = Instance.new("BlockMesh") | |
467 | msh16.Parent = prt16 | |
468 | msh16.Scale = Vector3.new(0.5,0.6,0.5) | |
469 | local msh17 = Instance.new("BlockMesh") | |
470 | msh17.Parent = prt17 | |
471 | msh17.Scale = Vector3.new(0.6,0.3,0.6) | |
472 | local msh18 = Instance.new("BlockMesh") | |
473 | msh18.Parent = prt18 | |
474 | msh18.Scale = Vector3.new(0.7,0.5,0.7) | |
475 | local msh19 = Instance.new("BlockMesh") | |
476 | msh19.Parent = prt19 | |
477 | msh19.Scale = Vector3.new(0.7,0.8,0.8) | |
478 | local msh20 = Instance.new("BlockMesh") | |
479 | msh20.Parent = prt20 | |
480 | msh20.Scale = Vector3.new(0.6,0.8,0.7) | |
481 | local msh21 = Instance.new("BlockMesh") | |
482 | msh21.Parent = prt21 | |
483 | msh21.Scale = Vector3.new(0.7,0.65,0.7) | |
484 | local msh22 = Instance.new("BlockMesh") | |
485 | msh22.Parent = prt22 | |
486 | msh22.Scale = Vector3.new(0.7,1.2,0.7) | |
487 | local msh23 = Instance.new("CylinderMesh") | |
488 | msh23.Parent = prt23 | |
489 | msh23.Scale = Vector3.new(0.5,0.5,0.5) | |
490 | local msh24 = Instance.new("CylinderMesh") | |
491 | msh24.Parent = prt24 | |
492 | msh24.Scale = Vector3.new(0.4,0.51,0.4) | |
493 | local msh25 = Instance.new("CylinderMesh") | |
494 | msh25.Parent = prt25 | |
495 | msh25.Scale = Vector3.new(0.5,0.9,0.5) | |
496 | local msh26 = Instance.new("CylinderMesh") | |
497 | msh26.Parent = prt26 | |
498 | msh26.Scale = Vector3.new(0.4,0.5,0.4) | |
499 | local msh27 = Instance.new("CylinderMesh") | |
500 | msh27.Parent = prt27 | |
501 | msh27.Scale = Vector3.new(0.3,0.51,0.3) | |
502 | local msh28 = Instance.new("CylinderMesh") | |
503 | msh28.Parent = prt28 | |
504 | msh28.Scale = Vector3.new(0.6,0.51,0.6) | |
505 | local msh29 = Instance.new("BlockMesh") | |
506 | msh29.Parent = prt29 | |
507 | msh29.Scale = Vector3.new(0.7,0.65,1) | |
508 | local msh30 = Instance.new("CylinderMesh") | |
509 | msh30.Parent = prt30 | |
510 | msh30.Scale = Vector3.new(1,0.65,1.2) | |
511 | local msh31 = Instance.new("BlockMesh") | |
512 | msh31.Parent = prt31 | |
513 | msh31.Scale = Vector3.new(0.9,0.9,0.5) | |
514 | local msh32 = Instance.new("CylinderMesh") | |
515 | msh32.Parent = prt32 | |
516 | msh32.Scale = Vector3.new(1.5,1.5,1.5) | |
517 | local msh32a = Instance.new("CylinderMesh") | |
518 | msh32a.Parent = prt32a | |
519 | msh32a.Scale = Vector3.new(1,1.6,1) | |
520 | local msh33 = Instance.new("BlockMesh") | |
521 | msh33.Parent = prt33 | |
522 | msh33.Scale = Vector3.new(1.1,1.1,1.1) | |
523 | local msh34 = Instance.new("BlockMesh") | |
524 | msh34.Parent = prt34 | |
525 | msh34.Scale = Vector3.new(1.4,1.1,1.4) | |
526 | local msh35 = Instance.new("SpecialMesh") | |
527 | msh35.MeshType = "Wedge" | |
528 | msh35.Parent = prt35 | |
529 | msh35.Scale = Vector3.new(1.4,1.3,1.4) | |
530 | local msh36 = Instance.new("CylinderMesh") | |
531 | msh36.Parent = prt36 | |
532 | msh36.Scale = Vector3.new(1.3,1.2,1.3) | |
533 | local msh37 = Instance.new("SpecialMesh") | |
534 | msh37.MeshType = "Sphere" | |
535 | msh37.Parent = prt37 | |
536 | msh37.Scale = Vector3.new(0.8,0.8,0.8) | |
537 | local msh38 = Instance.new("BlockMesh") | |
538 | msh38.Parent = prt38 | |
539 | msh38.Scale = Vector3.new(1.5,0.7,1.5) | |
540 | local msh39 = Instance.new("CylinderMesh") | |
541 | msh39.Parent = prt39 | |
542 | msh39.Scale = Vector3.new(0.7,1.3,0.7) | |
543 | local msh40 = Instance.new("BlockMesh") | |
544 | msh40.Parent = prt40 | |
545 | msh40.Scale = Vector3.new(0.5,0.5,0.5) | |
546 | local wld1 = Instance.new("Weld") | |
547 | wld1.Parent = prt1 | |
548 | wld1.Part0 = prt1 | |
549 | wld1.Part1 = Torso | |
550 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.5) * CFrame.new(0.3,-1.55, -0.75) | |
551 | local wld2 = Instance.new("Weld") | |
552 | wld2.Parent = prt2 | |
553 | wld2.Part0 = prt2 | |
554 | wld2.Part1 = prt1 | |
555 | wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0.5) * CFrame.new(0,1,0) | |
556 | local wld3 = Instance.new("Weld") | |
557 | wld3.Parent = prt3 | |
558 | wld3.Part0 = prt3 | |
559 | wld3.Part1 = prt2 | |
560 | wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.7,0) | |
561 | local wld4 = Instance.new("Weld") | |
562 | wld4.Parent = prt4 | |
563 | wld4.Part0 = prt4 | |
564 | wld4.Part1 = prt3 | |
565 | wld4.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180),math.rad(90),0) * CFrame.new(0.2,2,0) | |
566 | local wld5 = Instance.new("Weld") | |
567 | wld5.Parent = prt5 | |
568 | wld5.Part0 = prt5 | |
569 | wld5.Part1 = prt2 | |
570 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.4,0.5,0) | |
571 | local wld6 = Instance.new("Weld") | |
572 | wld6.Parent = prt6 | |
573 | wld6.Part0 = prt6 | |
574 | wld6.Part1 = prt5 | |
575 | wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.4,0,0) | |
576 | local wld7 = Instance.new("Weld") | |
577 | wld7.Parent = prt7 | |
578 | wld7.Part0 = prt7 | |
579 | wld7.Part1 = prt5 | |
580 | wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,0,-0.3) | |
581 | local wld8 = Instance.new("Weld") | |
582 | wld8.Parent = prt8 | |
583 | wld8.Part0 = prt8 | |
584 | wld8.Part1 = prt5 | |
585 | wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.2,0,-0.3) | |
586 | local wld9 = Instance.new("Weld") | |
587 | wld9.Parent = prt9 | |
588 | wld9.Part0 = prt9 | |
589 | wld9.Part1 = prt5 | |
590 | wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.4,0,0) | |
591 | local wld10 = Instance.new("Weld") | |
592 | wld10.Parent = prt10 | |
593 | wld10.Part0 = prt10 | |
594 | wld10.Part1 = prt5 | |
595 | wld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.2,0,0.3) | |
596 | local wld11 = Instance.new("Weld") | |
597 | wld11.Parent = prt11 | |
598 | wld11.Part0 = prt11 | |
599 | wld11.Part1 = prt5 | |
600 | wld11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,0,0.3) | |
601 | local wld12 = Instance.new("Weld") | |
602 | wld12.Parent = prt12 | |
603 | wld12.Part0 = prt12 | |
604 | wld12.Part1 = prt3 | |
605 | wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
606 | local wld13 = Instance.new("Weld") | |
607 | wld13.Parent = prt13 | |
608 | wld13.Part0 = prt13 | |
609 | wld13.Part1 = prt12 | |
610 | wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.3,0) | |
611 | local wld13a = Instance.new("Weld") | |
612 | wld13a.Parent = prt13a | |
613 | wld13a.Part0 = prt13a | |
614 | wld13a.Part1 = prt13 | |
615 | wld13a.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
616 | local wld14 = Instance.new("Weld") | |
617 | wld14.Parent = prt14 | |
618 | wld14.Part0 = prt14 | |
619 | wld14.Part1 = prt2 | |
620 | wld14.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.5,-0.4,0) | |
621 | local wld15 = Instance.new("Weld") | |
622 | wld15.Parent = prt15 | |
623 | wld15.Part0 = prt15 | |
624 | wld15.Part1 = prt14 | |
625 | wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(120)) * CFrame.new(0,0,0) | |
626 | local wld16 = Instance.new("Weld") | |
627 | wld16.Parent = prt16 | |
628 | wld16.Part0 = prt16 | |
629 | wld16.Part1 = Torso | |
630 | wld16.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) * CFrame.new(0,-0.2,-0.2) | |
631 | local wld17 = Instance.new("Weld") | |
632 | wld17.Parent = prt17 | |
633 | wld17.Part0 = prt17 | |
634 | wld17.Part1 = prt16 | |
635 | wld17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.45,0) | |
636 | local wld18 = Instance.new("Weld") | |
637 | wld18.Parent = prt18 | |
638 | wld18.Part0 = prt18 | |
639 | wld18.Part1 = prt16 | |
640 | wld18.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1,0) | |
641 | local wld19 = Instance.new("Weld") | |
642 | wld19.Parent = prt19 | |
643 | wld19.Part0 = prt19 | |
644 | wld19.Part1 = prt18 | |
645 | wld19.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,-0.4,-0.45) | |
646 | local wld20 = Instance.new("Weld") | |
647 | wld20.Parent = prt20 | |
648 | wld20.Part0 = prt20 | |
649 | wld20.Part1 = prt19 | |
650 | wld20.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0.5) | |
651 | local wld21 = Instance.new("Weld") | |
652 | wld21.Parent = prt21 | |
653 | wld21.Part0 = prt21 | |
654 | wld21.Part1 = prt19 | |
655 | wld21.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1.1,0.25) | |
656 | local wld22 = Instance.new("Weld") | |
657 | wld22.Parent = prt22 | |
658 | wld22.Part0 = prt22 | |
659 | wld22.Part1 = prt18 | |
660 | wld22.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,-0.4,1.1) | |
661 | local wld23 = Instance.new("Weld") | |
662 | wld23.Parent = prt23 | |
663 | wld23.Part0 = prt23 | |
664 | wld23.Part1 = prt22 | |
665 | wld23.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.3,0) | |
666 | local wld24 = Instance.new("Weld") | |
667 | wld24.Parent = prt24 | |
668 | wld24.Part0 = prt24 | |
669 | wld24.Part1 = prt23 | |
670 | wld24.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
671 | local wld25 = Instance.new("Weld") | |
672 | wld25.Parent = prt25 | |
673 | wld25.Part0 = prt25 | |
674 | wld25.Part1 = prt18 | |
675 | wld25.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,0.3,1.1) | |
676 | local wld26 = Instance.new("Weld") | |
677 | wld26.Parent = prt26 | |
678 | wld26.Part0 = prt26 | |
679 | wld26.Part1 = prt25 | |
680 | wld26.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1,0) | |
681 | local wld27 = Instance.new("Weld") | |
682 | wld27.Parent = prt27 | |
683 | wld27.Part0 = prt27 | |
684 | wld27.Part1 = prt26 | |
685 | wld27.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
686 | local wld28 = Instance.new("Weld") | |
687 | wld28.Parent = prt28 | |
688 | wld28.Part0 = prt28 | |
689 | wld28.Part1 = prt25 | |
690 | wld28.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
691 | local wld29 = Instance.new("Weld") | |
692 | wld29.Parent = prt29 | |
693 | wld29.Part0 = prt29 | |
694 | wld29.Part1 = prt21 | |
695 | wld29.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0.8) | |
696 | local wld30 = Instance.new("Weld") | |
697 | wld30.Parent = prt30 | |
698 | wld30.Part0 = prt30 | |
699 | wld30.Part1 = prt29 | |
700 | wld30.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,0,-0.2) | |
701 | local wld31 = Instance.new("Weld") | |
702 | wld31.Parent = prt31 | |
703 | wld31.Part0 = prt31 | |
704 | wld31.Part1 = prt18 | |
705 | wld31.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,-0.4,0.5) | |
706 | local wld32 = Instance.new("Weld") | |
707 | wld32.Parent = prt32 | |
708 | wld32.Part0 = prt32 | |
709 | wld32.Part1 = RightArm | |
710 | wld32.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,1.2,0) | |
711 | local wld32a = Instance.new("Weld") | |
712 | wld32a.Parent = prt32a | |
713 | wld32a.Part0 = prt32a | |
714 | wld32a.Part1 = prt32 | |
715 | wld32a.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
716 | local wld33 = Instance.new("Weld") | |
717 | wld33.Parent = prt33 | |
718 | wld33.Part0 = prt33 | |
719 | wld33.Part1 = RightArm | |
720 | wld33.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0.6,0) | |
721 | local wld34 = Instance.new("Weld") | |
722 | wld34.Parent = prt34 | |
723 | wld34.Part0 = prt34 | |
724 | wld34.Part1 = prt32 | |
725 | wld34.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(-1,0,0) | |
726 | local wld35 = Instance.new("Weld") | |
727 | wld35.Parent = prt35 | |
728 | wld35.Part0 = prt35 | |
729 | wld35.Part1 = prt34 | |
730 | wld35.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-2,0) | |
731 | local wld36 = Instance.new("Weld") | |
732 | wld36.Parent = prt36 | |
733 | wld36.Part0 = prt36 | |
734 | wld36.Part1 = prt35 | |
735 | wld36.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
736 | local wld37 = Instance.new("Weld") | |
737 | wld37.Parent = prt37 | |
738 | wld37.Part0 = prt37 | |
739 | wld37.Part1 = prt36 | |
740 | wld37.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.8,0) | |
741 | local wld38 = Instance.new("Weld") | |
742 | wld38.Parent = prt38 | |
743 | wld38.Part0 = prt38 | |
744 | wld38.Part1 = prt34 | |
745 | wld38.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.1,0) | |
746 | local wld39 = Instance.new("Weld") | |
747 | wld39.Parent = prt39 | |
748 | wld39.Part0 = prt39 | |
749 | wld39.Part1 = prt38 | |
750 | wld39.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,-0.4) | |
751 | local wld40 = Instance.new("Weld") | |
752 | wld40.Parent = prt40 | |
753 | wld40.Part0 = prt40 | |
754 | wld40.Part1 = LeftLeg | |
755 | wld40.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1,0) | |
756 | if (script.Parent.className ~= "HopperBin") then | |
757 | Tool = Instance.new("HopperBin") | |
758 | Tool.Parent = Backpack | |
759 | Tool.Name = "AccountMoniter's GunBlade" --Yes. MY, GunBlade. | |
760 | Tool.TextureId = "" --Haven't made a picture for it yet. I soon will when i'm done with every weapon :3 | |
761 | script.Parent = Tool | |
762 | end | |
763 | Bin = script.Parent | |
764 | --[[Main Functions]]-- | |
765 | function unequipweld() | |
766 | wld1.Part1 = Torso | |
767 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.5) * CFrame.new(0.3,-1.55, -0.75) | |
768 | end | |
769 | function unequipweld2() | |
770 | wld16.Part1 = Torso | |
771 | wld16.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) * CFrame.new(0,-0.2,-0.2) | |
772 | end | |
773 | function equipweld() | |
774 | wld1.Part1 = LeftArm | |
775 | wld1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
776 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.7, -1.57) * CFrame.new(0, 1, 0) | |
777 | end | |
778 | function equipweld2() | |
779 | wld16.Part1 = LeftArm | |
780 | wld16.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
781 | wld16.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0, 1, 0) | |
782 | end | |
783 | function hideanim() | |
784 | for i = 0 , 1 , 0.07 do | |
785 | wait(0) | |
786 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5*i,0,1*i) | |
787 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
788 | --wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), math.rad(720)*i, -1.57) * CFrame.new(0, 1, 0) | |
789 | end | |
790 | unequipweld() | |
791 | wait(0.2) | |
792 | for i = 0 , 1 , 0.07 do | |
793 | wait(0) | |
794 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-3.5*i+3.5,0,-1*i+1) | |
795 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
796 | end | |
797 | end | |
798 | function equipanim() | |
799 | for i = 0 , 1 , 0.07 do | |
800 | wait(0) | |
801 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5*i,0,1*i) | |
802 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
803 | end | |
804 | equipweld() | |
805 | wait(0.1) | |
806 | for i = 0 , 1 , 0.07 do | |
807 | wait(0) | |
808 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-3.5*i+3.5,0,-1*i+1) | |
809 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
810 | end | |
811 | wait(0.3) | |
812 | for i = 0 , 1 , 0.07 do | |
813 | wait(0) | |
814 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i,0,0) | |
815 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
816 | end | |
817 | end | |
818 | function oneslash() | |
819 | for i = 0 , 1 , 0.07 do | |
820 | wait(0) | |
821 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i+1,0,0) | |
822 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
823 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.7*i-0.7, -1.57) * CFrame.new(0, 1, 0) | |
824 | end | |
825 | ss(prt1,1) | |
826 | local con = prt3.Touched:connect(OT) | |
827 | local con2 = prt4.Touched:connect(OT) | |
828 | for i = 0 , 1 , 0.1 do | |
829 | wait(0) | |
830 | effect() | |
831 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-3.5*i+3,0,0) | |
832 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
833 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -1*i, -1.57) * CFrame.new(0, 1, 0) | |
834 | end | |
835 | con:disconnect() | |
836 | con2:disconnect() | |
837 | end | |
838 | function twoslash() | |
839 | ss(prt1,1) | |
840 | local con = prt3.Touched:connect(OT) | |
841 | local con2 = prt4.Touched:connect(OT) | |
842 | for i = 0 , 1 , 0.1 do | |
843 | wait(0) | |
844 | effect() | |
845 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i-0.5,0,0) | |
846 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
847 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 2*i-1, -1.57) * CFrame.new(0, 1, 0) | |
848 | end | |
849 | con:disconnect() | |
850 | con2:disconnect() | |
851 | for i = 0 , 1 , 0.07 do | |
852 | wait(0) | |
853 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1.5*i+2.5,0,0) | |
854 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
855 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -1.7*i+1, -1.57) * CFrame.new(0, 1, 0) | |
856 | end | |
857 | end | |
858 | function unload() --Possibly the hardest attack made for the GunBlade >.< | |
859 | for i = 0 , 1 , 0.15 do | |
860 | wait(0) | |
861 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.4*i,0.5*i,-0.5*i) | |
862 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
863 | end | |
864 | local bullet1 = Instance.new("Part") | |
865 | bullet1.formFactor = 1 | |
866 | bullet1.Parent = model1 | |
867 | bullet1.CanCollide = false | |
868 | bullet1.BrickColor = BrickColor.new("New Yeller") | |
869 | bullet1.Name = "Bullet1" | |
870 | bullet1.Size = Vector3.new(1,1,1) | |
871 | bullet1.Position = Torso.Position | |
872 | local bullet2 = Instance.new("Part") | |
873 | bullet2.formFactor = 1 | |
874 | bullet2.Parent = model1 | |
875 | bullet2.CanCollide = false | |
876 | bullet2.BrickColor = BrickColor.new("New Yeller") | |
877 | bullet2.Name = "Bullet2" | |
878 | bullet2.Size = Vector3.new(1,1,1) | |
879 | bullet2.Position = Torso.Position | |
880 | local bullet3 = Instance.new("Part") | |
881 | bullet3.formFactor = 1 | |
882 | bullet3.Parent = model1 | |
883 | bullet3.CanCollide = false | |
884 | bullet3.BrickColor = BrickColor.new("New Yeller") | |
885 | bullet3.Name = "Bullet3" | |
886 | bullet3.Size = Vector3.new(1,1,1) | |
887 | bullet3.Position = Torso.Position | |
888 | local bullet4 = Instance.new("Part") | |
889 | bullet4.formFactor = 1 | |
890 | bullet4.Parent = model1 | |
891 | bullet4.CanCollide = false | |
892 | bullet4.BrickColor = BrickColor.new("New Yeller") | |
893 | bullet4.Name = "Bullet4" | |
894 | bullet4.Size = Vector3.new(1,1,1) | |
895 | bullet4.Position = Torso.Position | |
896 | local bullet5 = Instance.new("Part") | |
897 | bullet5.formFactor = 1 | |
898 | bullet5.Parent = model1 | |
899 | bullet5.CanCollide = false | |
900 | bullet5.BrickColor = BrickColor.new("New Yeller") | |
901 | bullet5.Name = "Bullet5" | |
902 | bullet5.Size = Vector3.new(1,1,1) | |
903 | bullet5.Position = Torso.Position | |
904 | local bullet6 = Instance.new("Part") | |
905 | bullet6.formFactor = 1 | |
906 | bullet6.Parent = model1 | |
907 | bullet6.CanCollide = false | |
908 | bullet6.BrickColor = BrickColor.new("New Yeller") | |
909 | bullet6.Name = "Bullet6" | |
910 | bullet6.Size = Vector3.new(1,1,1) | |
911 | bullet6.Position = Torso.Position | |
912 | local bulmesh1 = Instance.new("CylinderMesh") | |
913 | bulmesh1.Parent = bullet1 | |
914 | bulmesh1.Scale = Vector3.new(1.1,1.1,0.3) | |
915 | local bulmesh2 = Instance.new("CylinderMesh") | |
916 | bulmesh2.Parent = bullet2 | |
917 | bulmesh2.Scale = Vector3.new(1.1,1.1,0.3) | |
918 | local bulmesh3 = Instance.new("CylinderMesh") | |
919 | bulmesh3.Parent = bullet3 | |
920 | bulmesh3.Scale = Vector3.new(1.1,1.1,0.3) | |
921 | local bulmesh4 = Instance.new("CylinderMesh") | |
922 | bulmesh4.Parent = bullet4 | |
923 | bulmesh4.Scale = Vector3.new(1.1,1.1,0.3) | |
924 | local bulmesh5 = Instance.new("CylinderMesh") | |
925 | bulmesh5.Parent = bullet5 | |
926 | bulmesh5.Scale = Vector3.new(1.1,1.1,0.3) | |
927 | local bulmesh6 = Instance.new("CylinderMesh") | |
928 | bulmesh6.Parent = bullet6 | |
929 | bulmesh6.Scale = Vector3.new(1.1,1.1,0.3) | |
930 | local bulweld1 = Instance.new("Weld") | |
931 | bulweld1.Parent = bullet1 | |
932 | bulweld1.Part0 = bullet1 | |
933 | bulweld1.Part1 = RightArm | |
934 | bulweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,1,0.3) | |
935 | local bulweld2 = Instance.new("Weld") | |
936 | bulweld2.Parent = bullet2 | |
937 | bulweld2.Part0 = bullet2 | |
938 | bulweld2.Part1 = RightArm | |
939 | bulweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,1,0) | |
940 | local bulweld3 = Instance.new("Weld") | |
941 | bulweld3.Parent = bullet3 | |
942 | bulweld3.Part0 = bullet3 | |
943 | bulweld3.Part1 = RightArm | |
944 | bulweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,1,-0.3) | |
945 | local bulweld4 = Instance.new("Weld") | |
946 | bulweld4.Parent = bullet4 | |
947 | bulweld4.Part0 = bullet4 | |
948 | bulweld4.Part1 = RightArm | |
949 | bulweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.2,1,0.3) | |
950 | local bulweld5 = Instance.new("Weld") | |
951 | bulweld5.Parent = bullet5 | |
952 | bulweld5.Part0 = bullet5 | |
953 | bulweld5.Part1 = RightArm | |
954 | bulweld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.2,1,0) | |
955 | local bulweld6 = Instance.new("Weld") | |
956 | bulweld6.Parent = bullet6 | |
957 | bulweld6.Part0 = bullet6 | |
958 | bulweld6.Part1 = RightArm | |
959 | bulweld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.2,1,-0.3) | |
960 | for i = 0 , 1 , 0.1 do | |
961 | wait(0) | |
962 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.5*i-0.7, -1.57) * CFrame.new(0, 1, 0) | |
963 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.1*i+1,1*i,0.7*i) | |
964 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
965 | RW.C0 = CFrame.new(-0.7*i+1.5,0.5,-0.7*i) * CFrame.fromEulerAnglesXYZ(2*i-0.4,-0.5*i+0.5,-0.5*i-0.5) | |
966 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
967 | end | |
968 | bullet1.Parent = nil | |
969 | prt6.BrickColor = BrickColor.new("New Yeller") | |
970 | reloadsound(prt1,1) | |
971 | for i = 0 , 1 , 0.3 do | |
972 | wait(0) | |
973 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1) | |
974 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
975 | end | |
976 | for i = 0 , 1 , 0.3 do | |
977 | wait(0) | |
978 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1) | |
979 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
980 | end | |
981 | bullet2.Parent = nil | |
982 | prt7.BrickColor = BrickColor.new("New Yeller") | |
983 | reloadsound(prt1,1) | |
984 | for i = 0 , 1 , 0.3 do | |
985 | wait(0) | |
986 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1) | |
987 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
988 | end | |
989 | for i = 0 , 1 , 0.3 do | |
990 | wait(0) | |
991 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1) | |
992 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
993 | end | |
994 | bullet3.Parent = nil | |
995 | prt8.BrickColor = BrickColor.new("New Yeller") | |
996 | reloadsound(prt1,1) | |
997 | for i = 0 , 1 , 0.3 do | |
998 | wait(0) | |
999 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1) | |
1000 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1001 | end | |
1002 | for i = 0 , 1 , 0.3 do | |
1003 | wait(0) | |
1004 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1) | |
1005 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1006 | end | |
1007 | bullet4.Parent = nil | |
1008 | prt9.BrickColor = BrickColor.new("New Yeller") | |
1009 | reloadsound(prt1,1) | |
1010 | for i = 0 , 1 , 0.3 do | |
1011 | wait(0) | |
1012 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1) | |
1013 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1014 | end | |
1015 | for i = 0 , 1 , 0.3 do | |
1016 | wait(0) | |
1017 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1) | |
1018 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1019 | end | |
1020 | bullet5.Parent = nil | |
1021 | prt10.BrickColor = BrickColor.new("New Yeller") | |
1022 | reloadsound(prt1,1) | |
1023 | for i = 0 , 1 , 0.3 do | |
1024 | wait(0) | |
1025 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1) | |
1026 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1027 | end | |
1028 | for i = 0 , 1 , 0.3 do | |
1029 | wait(0) | |
1030 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1) | |
1031 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1032 | end | |
1033 | bullet6.Parent = nil | |
1034 | prt11.BrickColor = BrickColor.new("New Yeller") | |
1035 | reloadsound(prt1,1) | |
1036 | for i = 0 , 1 , 0.1 do | |
1037 | wait(0) | |
1038 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.1*i-0.5-0.7, -1.57) * CFrame.new(0, 1, 0) | |
1039 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.47*i+0.1+1,-1*i+1,-0.7*i+0.7) | |
1040 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1041 | RW.C0 = CFrame.new(-0.8*i+0.8,0.5,-0.3*i-0.7) * CFrame.fromEulerAnglesXYZ(0.3*i+1.6,0,-1) | |
1042 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1043 | end | |
1044 | bulletshoot() | |
1045 | boomeffect() | |
1046 | prt9.BrickColor = BrickColor.new("Black") | |
1047 | shootsound(prt1,1.2) | |
1048 | for i = 0 , 1 , 0.2 do | |
1049 | wait(0) | |
1050 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0) | |
1051 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1052 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1) | |
1053 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1054 | end | |
1055 | for i = 0 , 1 , 0.2 do | |
1056 | wait(0) | |
1057 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i,0) * CFrame.new(0.4,0.5,0) | |
1058 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0) | |
1059 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1060 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1) | |
1061 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1062 | end | |
1063 | bulletshoot() | |
1064 | boomeffect() | |
1065 | prt10.BrickColor = BrickColor.new("Black") | |
1066 | shootsound(prt1,1.2) | |
1067 | for i = 0 , 1 , 0.2 do | |
1068 | wait(0) | |
1069 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0) | |
1070 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1071 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1) | |
1072 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1073 | end | |
1074 | for i = 0 , 1 , 0.2 do | |
1075 | wait(0) | |
1076 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i+1,0) * CFrame.new(0.4,0.5,0) | |
1077 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0) | |
1078 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1079 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1) | |
1080 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1081 | end | |
1082 | bulletshoot() | |
1083 | boomeffect() | |
1084 | prt11.BrickColor = BrickColor.new("Black") | |
1085 | shootsound(prt1,1.2) | |
1086 | for i = 0 , 1 , 0.2 do | |
1087 | wait(0) | |
1088 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0) | |
1089 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1090 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1) | |
1091 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1092 | end | |
1093 | for i = 0 , 1 , 0.2 do | |
1094 | wait(0) | |
1095 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i+2,0) * CFrame.new(0.4,0.5,0) | |
1096 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0) | |
1097 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1098 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1) | |
1099 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1100 | end | |
1101 | bulletshoot() | |
1102 | boomeffect() | |
1103 | prt6.BrickColor = BrickColor.new("Black") | |
1104 | shootsound(prt1,1.2) | |
1105 | for i = 0 , 1 , 0.2 do | |
1106 | wait(0) | |
1107 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0) | |
1108 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1109 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1) | |
1110 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1111 | end | |
1112 | for i = 0 , 1 , 0.2 do | |
1113 | wait(0) | |
1114 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i+3,0) * CFrame.new(0.4,0.5,0) | |
1115 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0) | |
1116 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1117 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1) | |
1118 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1119 | end | |
1120 | bulletshoot() | |
1121 | boomeffect() | |
1122 | prt7.BrickColor = BrickColor.new("Black") | |
1123 | shootsound(prt1,1.2) | |
1124 | for i = 0 , 1 , 0.2 do | |
1125 | wait(0) | |
1126 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0) | |
1127 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1128 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1) | |
1129 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1130 | end | |
1131 | for i = 0 , 1 , 0.2 do | |
1132 | wait(0) | |
1133 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i+4,0) * CFrame.new(0.4,0.5,0) | |
1134 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0) | |
1135 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1136 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1) | |
1137 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1138 | end | |
1139 | bulletshoot() | |
1140 | boomeffect() | |
1141 | prt8.BrickColor = BrickColor.new("Black") | |
1142 | shootsound2(prt1,1.2) | |
1143 | for i = 0 , 1 , 0.2 do | |
1144 | wait(0) | |
1145 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0) | |
1146 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1147 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1) | |
1148 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1149 | end | |
1150 | for i = 0 , 1 , 0.2 do | |
1151 | wait(0) | |
1152 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i+5,0) * CFrame.new(0.4,0.5,0) | |
1153 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0) | |
1154 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1155 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1) | |
1156 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1157 | end | |
1158 | for i = 0 , 1 , 0.1 do | |
1159 | wait(0) | |
1160 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.5*i+0.5-0.7, -1.57) * CFrame.new(0, 1, 0) | |
1161 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.4,0.5,0) | |
1162 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.57*i+1.57,0,0) | |
1163 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1164 | RW.C0 = CFrame.new(1.5*i,0.5,1*i-1) * CFrame.fromEulerAnglesXYZ(-1.9*i+1.9,0,1*i-1) | |
1165 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1166 | end | |
1167 | end | |
1168 | function sniper() | |
1169 | for i = 0 , 1 , 0.15 do | |
1170 | wait(0) | |
1171 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.4*i,0.5*i,-0.5*i) | |
1172 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1173 | end | |
1174 | local bullet1 = Instance.new("Part") | |
1175 | bullet1.formFactor = 1 | |
1176 | bullet1.Parent = model1 | |
1177 | bullet1.Reflectance = 0.2 | |
1178 | bullet1.CanCollide = false | |
1179 | bullet1.BrickColor = BrickColor.new("New Yeller") | |
1180 | bullet1.Name = "Bullet1" | |
1181 | bullet1.Size = Vector3.new(1,1,1) | |
1182 | bullet1.Position = Torso.Position | |
1183 | local bulmesh1 = Instance.new("CylinderMesh") | |
1184 | bulmesh1.Parent = bullet1 | |
1185 | bulmesh1.Scale = Vector3.new(1.1,1.1,0.3) | |
1186 | local bulweld1 = Instance.new("Weld") | |
1187 | bulweld1.Parent = bullet1 | |
1188 | bulweld1.Part0 = bullet1 | |
1189 | bulweld1.Part1 = RightArm | |
1190 | bulweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,1,0.3) | |
1191 | sparkles1 = Instance.new("Sparkles") | |
1192 | sparkles1.Name = "Sparkles1" | |
1193 | sparkles1.Color = Color3.new(1,1,0) | |
1194 | sparkles1.Parent = bullet1 | |
1195 | for i = 0 , 1 , 0.1 do | |
1196 | wait(0) | |
1197 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.5*i-0.7, -1.57) * CFrame.new(0, 1, 0) | |
1198 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.1*i+1,1*i,0.7*i) | |
1199 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1200 | RW.C0 = CFrame.new(-0.7*i+1.5,0.5,-0.7*i) * CFrame.fromEulerAnglesXYZ(2*i-0.4,-0.5*i+0.5,-0.5*i-0.5) | |
1201 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1202 | end | |
1203 | bullet1.Parent = nil | |
1204 | prt9.BrickColor = BrickColor.new("New Yeller") | |
1205 | prt9.Reflectance = 0.2 | |
1206 | sparkles1.Parent = prt9 | |
1207 | snipersound(prt1,1) | |
1208 | for i = 0 , 1 , 0.3 do | |
1209 | wait(0) | |
1210 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1) | |
1211 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1212 | end | |
1213 | for i = 0 , 1 , 0.3 do | |
1214 | wait(0) | |
1215 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1) | |
1216 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1217 | end | |
1218 | for i = 0 , 1 , 0.07 do | |
1219 | wait(0) | |
1220 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.1*i-0.5-0.7, -1.57) * CFrame.new(0, 1, 0) | |
1221 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.47*i+0.1+1,-1*i+1,-0.7*i+0.7) | |
1222 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1223 | RW.C0 = CFrame.new(-0.8*i+0.8,0.5,-0.3*i-0.7) * CFrame.fromEulerAnglesXYZ(0.3*i+1.6,0,-1) | |
1224 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1225 | end | |
1226 | local lazor = Instance.new("Part") | |
1227 | lazor.formFactor = 1 | |
1228 | lazor.Parent = workspace | |
1229 | lazor.Transparency = 0.5 | |
1230 | lazor.CanCollide = false | |
1231 | lazor.BrickColor = BrickColor.new("Bright red") | |
1232 | lazor.Name = "Lazorz" | |
1233 | lazor.Size = Vector3.new(1,1,1) | |
1234 | lazor.Position = Torso.Position | |
1235 | local lazmsh = Instance.new("CylinderMesh") | |
1236 | lazmsh.Parent = lazor | |
1237 | lazmsh.Scale = Vector3.new(1.1,1340,0.3) | |
1238 | coroutine.resume(coroutine.create(function() | |
1239 | while lazor.Parent ~= nil do | |
1240 | wait() | |
1241 | lazor.CFrame = prt13.CFrame * CFrame.new(0,-800,0) | |
1242 | end | |
1243 | end)) | |
1244 | wait(0.5) | |
1245 | for i = 0 , 1 , 0.07 do | |
1246 | wait(0) | |
1247 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.05*i+0.1-0.5-0.7, -1.57) * CFrame.new(0, 1, 0) | |
1248 | end | |
1249 | wait(0.2) | |
1250 | sniperbulletshoot() | |
1251 | boomeffect() | |
1252 | prt9.BrickColor = BrickColor.new("Black") | |
1253 | prt9.Reflectance = 0 | |
1254 | sparkles1.Parent = nil | |
1255 | lazor.Parent = nil | |
1256 | snipersound2(prt1,1) | |
1257 | for i = 0 , 1 , 0.2 do | |
1258 | wait(0) | |
1259 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0) | |
1260 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1261 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1) | |
1262 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1263 | end | |
1264 | for i = 0 , 1 , 0.2 do | |
1265 | wait(0) | |
1266 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i,0) * CFrame.new(0.4,0.5,0) | |
1267 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0) | |
1268 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1269 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1) | |
1270 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1271 | end | |
1272 | for i = 0 , 1 , 0.1 do | |
1273 | wait(0) | |
1274 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.5*i+0.5-0.7, -1.57) * CFrame.new(0, 1, 0) | |
1275 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.4,0.5,0) | |
1276 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.57*i+1.57,0,0) | |
1277 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1278 | RW.C0 = CFrame.new(1.5*i,0.5,1*i-1) * CFrame.fromEulerAnglesXYZ(-1.9*i+1.9,0,1*i-1) | |
1279 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1280 | end | |
1281 | end | |
1282 | function kerbewmshot() | |
1283 | for i = 0 , 1 , 0.15 do | |
1284 | wait(0) | |
1285 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.4*i,0.5*i,-0.5*i) | |
1286 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1287 | end | |
1288 | local bullet1 = Instance.new("Part") | |
1289 | bullet1.formFactor = 1 | |
1290 | bullet1.Parent = model1 | |
1291 | bullet1.CanCollide = false | |
1292 | bullet1.BrickColor = BrickColor.new("Bright red") | |
1293 | bullet1.Name = "Bullet1" | |
1294 | bullet1.Size = Vector3.new(1,1,1) | |
1295 | bullet1.Position = Torso.Position | |
1296 | local bulmesh1 = Instance.new("CylinderMesh") | |
1297 | bulmesh1.Parent = bullet1 | |
1298 | bulmesh1.Scale = Vector3.new(1.1,1.1,0.3) | |
1299 | local bulweld1 = Instance.new("Weld") | |
1300 | bulweld1.Parent = bullet1 | |
1301 | bulweld1.Part0 = bullet1 | |
1302 | bulweld1.Part1 = RightArm | |
1303 | bulweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,1,0.3) | |
1304 | for i = 0 , 1 , 0.1 do | |
1305 | wait(0) | |
1306 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.5*i-0.7, -1.57) * CFrame.new(0, 1, 0) | |
1307 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.1*i+1,1*i,0.7*i) | |
1308 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1309 | RW.C0 = CFrame.new(-0.7*i+1.5,0.5,-0.7*i) * CFrame.fromEulerAnglesXYZ(2*i-0.4,-0.5*i+0.5,-0.5*i-0.5) | |
1310 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1311 | end | |
1312 | bullet1.Parent = nil | |
1313 | prt9.BrickColor = BrickColor.new("Bright red") | |
1314 | rocketreload(prt1,1) | |
1315 | for i = 0 , 1 , 0.3 do | |
1316 | wait(0) | |
1317 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1) | |
1318 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1319 | end | |
1320 | for i = 0 , 1 , 0.3 do | |
1321 | wait(0) | |
1322 | RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1) | |
1323 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1324 | end | |
1325 | for i = 0 , 1 , 0.07 do | |
1326 | wait(0) | |
1327 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.1*i-0.5-0.7, -1.57) * CFrame.new(0, 1, 0) | |
1328 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.47*i+0.1+1,-1*i+1,-0.7*i+0.7) | |
1329 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1330 | RW.C0 = CFrame.new(-0.8*i+0.8,0.5,-0.3*i-0.7) * CFrame.fromEulerAnglesXYZ(0.3*i+1.6,0,-1) | |
1331 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1332 | end | |
1333 | wait(0.5) | |
1334 | bewmshot() | |
1335 | boomeffect() | |
1336 | prt9.BrickColor = BrickColor.new("Black") | |
1337 | rocketshoot(prt1,1) | |
1338 | for i = 0 , 1 , 0.2 do | |
1339 | wait(0) | |
1340 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0) | |
1341 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1342 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1) | |
1343 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1344 | end | |
1345 | for i = 0 , 1 , 0.2 do | |
1346 | wait(0) | |
1347 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i,0) * CFrame.new(0.4,0.5,0) | |
1348 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0) | |
1349 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1350 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1) | |
1351 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1352 | end | |
1353 | for i = 0 , 1 , 0.1 do | |
1354 | wait(0) | |
1355 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.5*i+0.5-0.7, -1.57) * CFrame.new(0, 1, 0) | |
1356 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.4,0.5,0) | |
1357 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.57*i+1.57,0,0) | |
1358 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1359 | RW.C0 = CFrame.new(1.5*i,0.5,1*i-1) * CFrame.fromEulerAnglesXYZ(-1.9*i+1.9,0,1*i-1) | |
1360 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1361 | end | |
1362 | end | |
1363 | function crush() | |
1364 | for i = 0 , 1 , 0.07 do | |
1365 | wait(0) | |
1366 | LW.C0 = CFrame.new(0.5*i-1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5*i+1,0,0.7*i) | |
1367 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1368 | RW.C0 = CFrame.new(-0.5*i+1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.5*i,0,-0.7*i) | |
1369 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1370 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 1.2*i-0.7, -1.57) * CFrame.new(0, 1, 0) | |
1371 | end | |
1372 | for i = 0 , 1 , 0.1 do | |
1373 | wait(0) | |
1374 | prt1.Reflectance = prt1.Reflectance + 0.1 | |
1375 | prt2.Reflectance = prt2.Reflectance + 0.1 | |
1376 | prt3.Reflectance = prt3.Reflectance + 0.1 | |
1377 | prt4.Reflectance = prt4.Reflectance + 0.1 | |
1378 | prt5.Reflectance = prt5.Reflectance + 0.1 | |
1379 | prt6.Reflectance = prt6.Reflectance + 0.1 | |
1380 | prt7.Reflectance = prt7.Reflectance + 0.1 | |
1381 | prt8.Reflectance = prt8.Reflectance + 0.1 | |
1382 | prt9.Reflectance = prt9.Reflectance + 0.1 | |
1383 | prt10.Reflectance = prt10.Reflectance + 0.1 | |
1384 | prt11.Reflectance = prt11.Reflectance + 0.1 | |
1385 | prt12.Reflectance = prt12.Reflectance + 0.1 | |
1386 | prt13.Reflectance = prt13.Reflectance + 0.1 | |
1387 | prt13a.Reflectance = prt13a.Reflectance + 0.1 | |
1388 | prt14.Reflectance = prt14.Reflectance + 0.1 | |
1389 | prt15.Reflectance = prt15.Reflectance + 0.1 | |
1390 | end | |
1391 | wait(0.3) | |
1392 | for i = 0 , 1 , 0.07 do | |
1393 | wait(0) | |
1394 | LW.C0 = CFrame.new(-0.5*i-1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(1*i+1.5,0,-0.7*i+0.7) | |
1395 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1396 | RW.C0 = CFrame.new(0.5*i+1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-0.5*i+1.5,0,0.7*i-0.7) | |
1397 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1398 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.5, -1.57) * CFrame.new(0, 1, 0) | |
1399 | end | |
1400 | local con = prt3.Touched:connect(fixOT) | |
1401 | local con2 = prt4.Touched:connect(fixOT) | |
1402 | crushsounds(prt1) | |
1403 | for i = 0 , 1 , 0.2 do | |
1404 | wait(0) | |
1405 | effect() | |
1406 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1.8*i+2.5,0,0) | |
1407 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1408 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2*i+1,0,0) | |
1409 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1410 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -1.5*i+0.5, -1.57) * CFrame.new(0, 1, 0) | |
1411 | end | |
1412 | con:disconnect() | |
1413 | con2:disconnect() | |
1414 | wait(0.3) | |
1415 | for i = 0 , 1 , 0.1 do | |
1416 | wait(0) | |
1417 | prt1.Reflectance = prt1.Reflectance - 0.1 | |
1418 | prt2.Reflectance = prt2.Reflectance - 0.1 | |
1419 | prt3.Reflectance = prt3.Reflectance - 0.1 | |
1420 | prt4.Reflectance = prt4.Reflectance - 0.1 | |
1421 | prt5.Reflectance = prt5.Reflectance - 0.1 | |
1422 | prt6.Reflectance = prt6.Reflectance - 0.1 | |
1423 | prt7.Reflectance = prt7.Reflectance - 0.1 | |
1424 | prt8.Reflectance = prt8.Reflectance - 0.1 | |
1425 | prt9.Reflectance = prt9.Reflectance - 0.1 | |
1426 | prt10.Reflectance = prt10.Reflectance - 0.1 | |
1427 | prt11.Reflectance = prt11.Reflectance - 0.1 | |
1428 | prt12.Reflectance = prt12.Reflectance - 0.1 | |
1429 | prt13.Reflectance = prt13.Reflectance - 0.1 | |
1430 | prt13a.Reflectance = prt13a.Reflectance - 0.1 | |
1431 | prt14.Reflectance = prt14.Reflectance - 0.1 | |
1432 | prt15.Reflectance = prt15.Reflectance - 0.1 | |
1433 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.3*i+0.7,0,0) | |
1434 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1435 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i-1,0,0) | |
1436 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1437 | wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.3*i-1, -1.57) * CFrame.new(0, 1, 0) | |
1438 | end | |
1439 | end | |
1440 | function elecshoot() | |
1441 | for i = 0 , 1 , 0.07 do | |
1442 | wait(0) | |
1443 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5*i,0,1*i) | |
1444 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1445 | end | |
1446 | unequipweld() | |
1447 | for i = 0 , 1 , 0.07 do | |
1448 | wait(0) | |
1449 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i+3.5,0,0.1*i+1) | |
1450 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1451 | end | |
1452 | model2.Parent = modelzorz | |
1453 | wld16.Parent = prt16 | |
1454 | wld17.Parent = prt17 | |
1455 | wld18.Parent = prt18 | |
1456 | wld19.Parent = prt19 | |
1457 | wld20.Parent = prt20 | |
1458 | wld21.Parent = prt21 | |
1459 | wld22.Parent = prt22 | |
1460 | wld23.Parent = prt23 | |
1461 | wld24.Parent = prt24 | |
1462 | wld25.Parent = prt25 | |
1463 | wld26.Parent = prt26 | |
1464 | wld27.Parent = prt27 | |
1465 | wld28.Parent = prt28 | |
1466 | wld29.Parent = prt29 | |
1467 | wld30.Parent = prt30 | |
1468 | wld31.Parent = prt31 | |
1469 | local c = model2:children() | |
1470 | for i=1,#c do | |
1471 | c[i].Transparency = 1 | |
1472 | end | |
1473 | coroutine.resume(coroutine.create(function() | |
1474 | local c = model2:children() | |
1475 | for i = 0,1,0.1 do | |
1476 | wait() | |
1477 | prt16.Transparency = prt16.Transparency - 0.1 | |
1478 | prt17.Transparency = prt17.Transparency - 0.1 | |
1479 | prt18.Transparency = prt18.Transparency - 0.1 | |
1480 | prt19.Transparency = prt19.Transparency - 0.1 | |
1481 | prt20.Transparency = prt20.Transparency - 0.1 | |
1482 | prt21.Transparency = prt21.Transparency - 0.1 | |
1483 | prt22.Transparency = prt22.Transparency - 0.1 | |
1484 | prt23.Transparency = prt23.Transparency - 0.1 | |
1485 | prt24.Transparency = prt24.Transparency - 0.1 | |
1486 | prt25.Transparency = prt25.Transparency - 0.1 | |
1487 | prt26.Transparency = prt26.Transparency - 0.1 | |
1488 | prt27.Transparency = prt27.Transparency - 0.1 | |
1489 | prt28.Transparency = prt28.Transparency - 0.1 | |
1490 | prt29.Transparency = prt29.Transparency - 0.1 | |
1491 | prt30.Transparency = prt30.Transparency - 0.1 | |
1492 | prt31.Transparency = prt31.Transparency - 0.1 | |
1493 | end | |
1494 | end)) | |
1495 | prt30.BrickColor = BrickColor.new("Bright blue") | |
1496 | equipweld2() | |
1497 | for i = 0 , 1 , 0.07 do | |
1498 | wait(0) | |
1499 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2.93*i+4.5,0,-1.1*i+1.1) | |
1500 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1501 | RW.C0 = CFrame.new(-1.5*i+1.5,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(1*i,0,-2*i) | |
1502 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1503 | end | |
1504 | wait(0.3) | |
1505 | boomeffect2() | |
1506 | cannonsound(prt24,0.7) | |
1507 | elecshot() | |
1508 | for i = 0 , 1 , 0.15 do | |
1509 | wait(0) | |
1510 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i+1.57,0,0) | |
1511 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1512 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(2*i+1,0,1*i-2) | |
1513 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1514 | end | |
1515 | for i = 0 , 1 , 0.15 do | |
1516 | wait(0) | |
1517 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i+2.57,0,0) | |
1518 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1519 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-2*i+3,0,-1*i-1) | |
1520 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1521 | end | |
1522 | wait(0.5) | |
1523 | coroutine.resume(coroutine.create(function() | |
1524 | for i = 0,1,0.1 do | |
1525 | wait() | |
1526 | prt16.Transparency = prt16.Transparency + 0.1 | |
1527 | prt17.Transparency = prt17.Transparency + 0.1 | |
1528 | prt18.Transparency = prt18.Transparency + 0.1 | |
1529 | prt19.Transparency = prt19.Transparency + 0.1 | |
1530 | prt20.Transparency = prt20.Transparency + 0.1 | |
1531 | prt21.Transparency = prt21.Transparency + 0.1 | |
1532 | prt22.Transparency = prt22.Transparency + 0.1 | |
1533 | prt23.Transparency = prt23.Transparency + 0.1 | |
1534 | prt24.Transparency = prt24.Transparency + 0.1 | |
1535 | prt25.Transparency = prt25.Transparency + 0.1 | |
1536 | prt26.Transparency = prt26.Transparency + 0.1 | |
1537 | prt27.Transparency = prt27.Transparency + 0.1 | |
1538 | prt28.Transparency = prt28.Transparency + 0.1 | |
1539 | prt29.Transparency = prt29.Transparency + 0.1 | |
1540 | prt30.Transparency = prt30.Transparency + 0.1 | |
1541 | prt31.Transparency = prt31.Transparency + 0.1 | |
1542 | end | |
1543 | end)) | |
1544 | for i = 0 , 1 , 0.07 do | |
1545 | wait(0) | |
1546 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.93*i+1.57,0,1.1*i) | |
1547 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1548 | RW.C0 = CFrame.new(1.5*i,0.5,1*i-1) * CFrame.fromEulerAnglesXYZ(-1*i+1,0,2*i-2) | |
1549 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1550 | end | |
1551 | model2.Parent = nil | |
1552 | unequipweld2() | |
1553 | for i = 0 , 1 , 0.07 do | |
1554 | wait(0) | |
1555 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i+4.5,0,-0.1*i+1.1) | |
1556 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1557 | end | |
1558 | equipweld() | |
1559 | for i = 0 , 1 , 0.07 do | |
1560 | wait(0) | |
1561 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2.5*i+3.5,0,-1*i+1) | |
1562 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1563 | end | |
1564 | end | |
1565 | function laz0rshoot() --TROLOLOL | |
1566 | for i = 0 , 1 , 0.07 do | |
1567 | wait(0) | |
1568 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(180)*i,0,0) | |
1569 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1570 | end | |
1571 | wld32a.Parent = prt32a | |
1572 | wld33.Parent = prt33 | |
1573 | wld34.Parent = prt34 | |
1574 | wld35.Parent = prt35 | |
1575 | wld36.Parent = prt36 | |
1576 | wld37.Parent = prt37 | |
1577 | wld38.Parent = prt38 | |
1578 | wld39.Parent = prt39 | |
1579 | model3.Parent = modelzorz | |
1580 | local c = model3:children() | |
1581 | for i=1,#c do | |
1582 | c[i].Transparency = 1 | |
1583 | end | |
1584 | for i=1,#c do | |
1585 | for q = 0,1,0.2 do | |
1586 | wait() | |
1587 | c[i].Transparency = c[i].Transparency - 0.2 | |
1588 | end | |
1589 | end | |
1590 | for i = 0 , 1 , 0.07 do | |
1591 | wait(0) | |
1592 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(180),0,0) | |
1593 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1594 | end | |
1595 | laz0rshot() | |
1596 | wait(0.5) | |
1597 | coroutine.resume(coroutine.create(function() | |
1598 | local c = model3:children() | |
1599 | for i=1,#c do | |
1600 | wait() | |
1601 | coroutine.resume(coroutine.create(function() | |
1602 | for q = 0,1,0.2 do | |
1603 | wait() | |
1604 | c[i].Transparency = c[i].Transparency + 0.2 | |
1605 | end | |
1606 | end)) | |
1607 | end | |
1608 | model3.Parent = nil | |
1609 | end)) | |
1610 | for i = 0 , 1 , 0.07 do | |
1611 | wait(0) | |
1612 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(90),0,0) | |
1613 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1614 | end | |
1615 | end | |
1616 | function tornadoskates() | |
1617 | model4.Parent = modelzorz | |
1618 | wld40.Parent = prt40 | |
1619 | prt40.Transparency = 1 | |
1620 | for i = 0 , 0.4 , 0.1 do | |
1621 | wait(0) | |
1622 | prt40.Transparency = prt40.Transparency - 0.1 | |
1623 | end | |
1624 | end | |
1625 | function OT(hit) | |
1626 | if hit.Parent == nil then return end | |
1627 | local hum = hit.Parent:findFirstChild("Humanoid") | |
1628 | if hum ~= nil and hum ~= Character.Humanoid then | |
1629 | hum:TakeDamage(damage) | |
1630 | end | |
1631 | end | |
1632 | function fixOT(hit) | |
1633 | if hit.Parent == nil then return end | |
1634 | local hum = hit.Parent:findFirstChild("Humanoid") | |
1635 | if hum ~= nil and hum ~= Character.Humanoid then | |
1636 | hum:TakeDamage(damage) | |
1637 | hum.WalkSpeed = 16 | |
1638 | hum.MaxHealth = 100 | |
1639 | c = hum.Parent:GetChildren() | |
1640 | for i = 1,#c do | |
1641 | if c[i].className == "Part" then | |
1642 | local SlashSound = Instance.new("Sound") | |
1643 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974000" | |
1644 | SlashSound.Parent = prt1 | |
1645 | SlashSound.Volume = 0.1 | |
1646 | SlashSound.Pitch = 1.1 | |
1647 | SlashSound:play() | |
1648 | coroutine.resume(coroutine.create(function() | |
1649 | wait(1) | |
1650 | SlashSound.Parent = nil | |
1651 | end)) | |
1652 | c[i].Transparency = 0 | |
1653 | c[i].Reflectance = 0 | |
1654 | end | |
1655 | if c[i].className == "ForceField" then | |
1656 | c[i]:Remove() | |
1657 | end | |
1658 | end | |
1659 | end | |
1660 | end | |
1661 | function ss(parent,pitch) | |
1662 | local SlashSound = Instance.new("Sound") | |
1663 | SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
1664 | SlashSound.Parent = parent | |
1665 | SlashSound.Volume = .7 | |
1666 | SlashSound.Pitch = pitch | |
1667 | SlashSound:play() | |
1668 | coroutine.resume(coroutine.create(function() | |
1669 | wait(1) | |
1670 | SlashSound.Parent = nil | |
1671 | end)) | |
1672 | end | |
1673 | function sss(parent,pitch) | |
1674 | local SlashSound = Instance.new("Sound") | |
1675 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511" | |
1676 | SlashSound.Parent = parent | |
1677 | SlashSound.Volume = .7 | |
1678 | SlashSound.Pitch = pitch | |
1679 | SlashSound:play() | |
1680 | coroutine.resume(coroutine.create(function() | |
1681 | wait(1) | |
1682 | SlashSound.Parent = nil | |
1683 | end)) | |
1684 | end | |
1685 | function uss(parent,pitch) | |
1686 | local SlashSound = Instance.new("Sound") | |
1687 | SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav" | |
1688 | SlashSound.Parent = parent | |
1689 | SlashSound.Volume = .7 | |
1690 | SlashSound.Pitch = pitch | |
1691 | SlashSound:play() | |
1692 | coroutine.resume(coroutine.create(function() | |
1693 | wait(1) | |
1694 | SlashSound.Parent = nil | |
1695 | end)) | |
1696 | end | |
1697 | function reloadsound(parent,pitch) | |
1698 | local SlashSound = Instance.new("Sound") | |
1699 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209834" | |
1700 | SlashSound.Parent = parent | |
1701 | SlashSound.Volume = .7 | |
1702 | SlashSound.Pitch = pitch | |
1703 | SlashSound:play() | |
1704 | coroutine.resume(coroutine.create(function() | |
1705 | wait(1) | |
1706 | SlashSound.Parent = nil | |
1707 | end)) | |
1708 | end | |
1709 | function shootsound(parent,pitch) | |
1710 | local SlashSound = Instance.new("Sound") | |
1711 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209803" | |
1712 | SlashSound.Parent = parent | |
1713 | SlashSound.Volume = .7 | |
1714 | SlashSound.Pitch = pitch | |
1715 | SlashSound:play() | |
1716 | coroutine.resume(coroutine.create(function() | |
1717 | wait(0.3) | |
1718 | SlashSound:Stop() | |
1719 | wait(1) | |
1720 | SlashSound.Parent = nil | |
1721 | end)) | |
1722 | end | |
1723 | function shootsound2(parent,pitch) | |
1724 | local SlashSound = Instance.new("Sound") | |
1725 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209803" | |
1726 | SlashSound.Parent = parent | |
1727 | SlashSound.Volume = .7 | |
1728 | SlashSound.Pitch = pitch | |
1729 | SlashSound:play() | |
1730 | coroutine.resume(coroutine.create(function() | |
1731 | wait(1) | |
1732 | SlashSound.Parent = nil | |
1733 | end)) | |
1734 | end | |
1735 | function snipersound(parent,pitch) | |
1736 | local SlashSound = Instance.new("Sound") | |
1737 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209881" | |
1738 | SlashSound.Parent = parent | |
1739 | SlashSound.Volume = .7 | |
1740 | SlashSound.Pitch = pitch | |
1741 | SlashSound:play() | |
1742 | coroutine.resume(coroutine.create(function() | |
1743 | wait(3) | |
1744 | SlashSound.Parent = nil | |
1745 | end)) | |
1746 | end | |
1747 | function snipersound2(parent,pitch) | |
1748 | local SlashSound = Instance.new("Sound") | |
1749 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209875" | |
1750 | SlashSound.Parent = parent | |
1751 | SlashSound.Volume = .7 | |
1752 | SlashSound.Pitch = pitch | |
1753 | SlashSound:play() | |
1754 | coroutine.resume(coroutine.create(function() | |
1755 | wait(3) | |
1756 | SlashSound.Parent = nil | |
1757 | end)) | |
1758 | end | |
1759 | function rocketreload(parent,pitch) | |
1760 | local SlashSound = Instance.new("Sound") | |
1761 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209813" | |
1762 | SlashSound.Parent = parent | |
1763 | SlashSound.Volume = .7 | |
1764 | SlashSound.Pitch = pitch | |
1765 | SlashSound:play() | |
1766 | coroutine.resume(coroutine.create(function() | |
1767 | wait(3) | |
1768 | SlashSound.Parent = nil | |
1769 | end)) | |
1770 | end | |
1771 | function rocketshoot(parent,pitch) | |
1772 | local SlashSound = Instance.new("Sound") | |
1773 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209821" | |
1774 | SlashSound.Parent = parent | |
1775 | SlashSound.Volume = .7 | |
1776 | SlashSound.Pitch = pitch | |
1777 | SlashSound:play() | |
1778 | coroutine.resume(coroutine.create(function() | |
1779 | wait(3) | |
1780 | SlashSound.Parent = nil | |
1781 | end)) | |
1782 | end | |
1783 | function rocketbewmsound(parent,pitch) | |
1784 | local SlashSound = Instance.new("Sound") | |
1785 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209236" | |
1786 | SlashSound.Parent = parent | |
1787 | SlashSound.Volume = .7 | |
1788 | SlashSound.Pitch = pitch | |
1789 | SlashSound:play() | |
1790 | coroutine.resume(coroutine.create(function() | |
1791 | wait(3) | |
1792 | SlashSound.Parent = nil | |
1793 | end)) | |
1794 | end | |
1795 | function crushsounds(parent) | |
1796 | local SlashSound = Instance.new("Sound") | |
1797 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209268" | |
1798 | SlashSound.Parent = parent | |
1799 | SlashSound.Volume = .7 | |
1800 | SlashSound.Pitch = 1 | |
1801 | SlashSound:play() | |
1802 | coroutine.resume(coroutine.create(function() | |
1803 | wait(3) | |
1804 | SlashSound.Parent = nil | |
1805 | end)) | |
1806 | local SlashSound = Instance.new("Sound") | |
1807 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209588" | |
1808 | SlashSound.Parent = parent | |
1809 | SlashSound.Volume = .7 | |
1810 | SlashSound.Pitch = 1 | |
1811 | SlashSound:play() | |
1812 | coroutine.resume(coroutine.create(function() | |
1813 | wait(3) | |
1814 | SlashSound.Parent = nil | |
1815 | end)) | |
1816 | local SlashSound = Instance.new("Sound") | |
1817 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209596" | |
1818 | SlashSound.Parent = parent | |
1819 | SlashSound.Volume = .7 | |
1820 | SlashSound.Pitch = 0.7 | |
1821 | SlashSound:play() | |
1822 | coroutine.resume(coroutine.create(function() | |
1823 | wait(3) | |
1824 | SlashSound.Parent = nil | |
1825 | end)) | |
1826 | end | |
1827 | function cannonsound(parent,pitch) | |
1828 | local SlashSound = Instance.new("Sound") | |
1829 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209257" | |
1830 | SlashSound.Parent = parent | |
1831 | SlashSound.Volume = .7 | |
1832 | SlashSound.Pitch = pitch | |
1833 | SlashSound:play() | |
1834 | coroutine.resume(coroutine.create(function() | |
1835 | wait(3) | |
1836 | SlashSound.Parent = nil | |
1837 | end)) | |
1838 | end | |
1839 | function elecsound(parent,pitch) | |
1840 | local SlashSound = Instance.new("Sound") | |
1841 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2800815" | |
1842 | SlashSound.Parent = parent | |
1843 | SlashSound.Volume = 1 | |
1844 | SlashSound.Pitch = pitch | |
1845 | SlashSound:play() | |
1846 | coroutine.resume(coroutine.create(function() | |
1847 | wait(3) | |
1848 | SlashSound.Parent = nil | |
1849 | end)) | |
1850 | end | |
1851 | function effect() | |
1852 | local clone = prt3:clone() | |
1853 | clone.Parent = workspace | |
1854 | clone.Anchored = true | |
1855 | clone.Transparency = 0.5 | |
1856 | clone.Reflectance = 0 | |
1857 | clone.Mesh.Scale = clone.Mesh.Scale + Vector3.new(0.1,0.1,0.1) | |
1858 | clone.BrickColor = BrickColor.new("White") | |
1859 | coroutine.resume(coroutine.create(function() | |
1860 | wait(0.25) | |
1861 | clone.Parent = nil | |
1862 | end)) | |
1863 | local cloneb = prt4:clone() | |
1864 | cloneb.Parent = workspace | |
1865 | cloneb.Anchored = true | |
1866 | cloneb.Transparency = 0.5 | |
1867 | cloneb.Reflectance = 0 | |
1868 | cloneb.Mesh.Scale = cloneb.Mesh.Scale + Vector3.new(0.1,0.1,0.1) | |
1869 | cloneb.BrickColor = BrickColor.new("White") | |
1870 | coroutine.resume(coroutine.create(function() | |
1871 | wait(0.25) | |
1872 | cloneb.Parent = nil | |
1873 | end)) | |
1874 | end | |
1875 | DBHit=function(hit,DB) --credits to turdulator for making this function :D | |
1876 | if hit.Parent==nil then | |
1877 | return | |
1878 | end | |
1879 | h=hit.Parent:FindFirstChild("Humanoid") | |
1880 | t=hit.Parent:FindFirstChild("Torso") | |
1881 | if h~=nil and t~=nil then | |
1882 | if h.Parent==Character then | |
1883 | return | |
1884 | end | |
1885 | h:TakeDamage(5) | |
1886 | vl=Instance.new("BodyVelocity") | |
1887 | vl.P=4500 | |
1888 | vl.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1889 | velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z) | |
1890 | vl.velocity=velocity*1.05+Vector3.new(0,3,0) | |
1891 | vl.Parent=t | |
1892 | game:GetService("Debris"):AddItem(vl,.2) | |
1893 | rl=Instance.new("BodyAngularVelocity") | |
1894 | rl.P=3000 | |
1895 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
1896 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
1897 | rl.Parent=t | |
1898 | game:GetService("Debris"):AddItem(rl,.2) | |
1899 | else | |
1900 | if hit.CanCollide==false then | |
1901 | return | |
1902 | end | |
1903 | MagicCom:disconnect() | |
1904 | -- DBExplode(DB) | |
1905 | end | |
1906 | end | |
1907 | function boomeffect() | |
1908 | local mesh = Instance.new("SpecialMesh") | |
1909 | mesh.MeshType = "Sphere" | |
1910 | mesh.Scale = Vector3.new(0.2,0,0.2) | |
1911 | local shell = Instance.new("Part") | |
1912 | mesh.Parent = shell | |
1913 | shell.Anchored = true | |
1914 | shell.formFactor = 1 | |
1915 | shell.Size = Vector3.new(2,2,2) | |
1916 | shell.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.random(-50,50)) | |
1917 | shell.Parent = game.workspace | |
1918 | shell.Transparency = 0 | |
1919 | shell.BrickColor = BrickColor.new("Bright yellow") | |
1920 | shell.CanCollide = false | |
1921 | coroutine.resume(coroutine.create(function() | |
1922 | for i = 0 , 1 , 0.2 do | |
1923 | wait(0.1) | |
1924 | mesh.Scale = mesh.Scale + Vector3.new(0,0.3,0) | |
1925 | shell.Transparency = shell.Transparency + 0.2 | |
1926 | end | |
1927 | shell.Transparency = 1 | |
1928 | shell.Parent = nil | |
1929 | end)) | |
1930 | local mesh2 = Instance.new("SpecialMesh") | |
1931 | mesh2.MeshType = "Sphere" | |
1932 | mesh2.Scale = Vector3.new(0.2,0,0.2) | |
1933 | local shell2 = Instance.new("Part") | |
1934 | mesh2.Parent = shell2 | |
1935 | shell2.Anchored = true | |
1936 | shell2.formFactor = 1 | |
1937 | shell2.Size = Vector3.new(2,2,2) | |
1938 | shell2.CFrame = shell.CFrame * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1939 | shell2.Parent = game.workspace | |
1940 | shell2.Transparency = 0 | |
1941 | shell2.BrickColor = BrickColor.new("Bright yellow") | |
1942 | shell2.CanCollide = false | |
1943 | coroutine.resume(coroutine.create(function() | |
1944 | for i = 0 , 1 , 0.2 do | |
1945 | wait(0.1) | |
1946 | mesh2.Scale = mesh2.Scale + Vector3.new(0,0.3,0) | |
1947 | shell2.Transparency = shell2.Transparency + 0.2 | |
1948 | end | |
1949 | shell2.Transparency = 1 | |
1950 | shell2.Parent = nil | |
1951 | end)) | |
1952 | local mesh3 = Instance.new("SpecialMesh") | |
1953 | mesh3.MeshType = "Sphere" | |
1954 | mesh3.Scale = Vector3.new(0.2,0,0.2) | |
1955 | local shell3 = Instance.new("Part") | |
1956 | mesh3.Parent = shell3 | |
1957 | shell3.Anchored = true | |
1958 | shell3.formFactor = 1 | |
1959 | shell3.Size = Vector3.new(2,2,2) | |
1960 | shell3.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) | |
1961 | shell3.Parent = game.workspace | |
1962 | shell3.Transparency = 0 | |
1963 | shell3.BrickColor = BrickColor.new("Bright yellow") | |
1964 | shell3.CanCollide = false | |
1965 | coroutine.resume(coroutine.create(function() | |
1966 | for i = 0 , 1 , 0.2 do | |
1967 | wait(0.1) | |
1968 | mesh3.Scale = mesh3.Scale + Vector3.new(0,0.3,0) | |
1969 | shell3.Transparency = shell3.Transparency + 0.2 | |
1970 | end | |
1971 | shell3.Transparency = 1 | |
1972 | shell3.Parent = nil | |
1973 | end)) | |
1974 | end | |
1975 | function boomeffect2() | |
1976 | local mesh = Instance.new("SpecialMesh") | |
1977 | mesh.Scale = Vector3.new(0.2,0,0.2) | |
1978 | mesh.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
1979 | local shell = Instance.new("Part") | |
1980 | mesh.Parent = shell | |
1981 | shell.Anchored = true | |
1982 | shell.formFactor = 1 | |
1983 | shell.Size = Vector3.new(2,2,2) | |
1984 | shell.CFrame = prt23.CFrame * CFrame.new(0,0.35,0) | |
1985 | shell.Parent = game.workspace | |
1986 | shell.Transparency = 0 | |
1987 | shell.BrickColor = BrickColor.new("Bright blue") | |
1988 | shell.CanCollide = false | |
1989 | coroutine.resume(coroutine.create(function() | |
1990 | for i = 0 , 1 , 0.2 do | |
1991 | wait(0.1) | |
1992 | mesh.Scale = mesh.Scale + Vector3.new(0.3,0.5,0.3) | |
1993 | shell.CFrame = shell.CFrame * CFrame.new(0,0.3,0) | |
1994 | shell.Transparency = shell.Transparency + 0.2 | |
1995 | end | |
1996 | shell.Transparency = 1 | |
1997 | shell.Parent = nil | |
1998 | end)) | |
1999 | end | |
2000 | DBHit1=function(hit,DB) --credits to turdulator for making this function :D | |
2001 | if hit.Parent==nil then | |
2002 | return | |
2003 | end | |
2004 | h=hit.Parent:FindFirstChild("Humanoid") | |
2005 | t=hit.Parent:FindFirstChild("Torso") | |
2006 | if h~=nil and t~=nil then | |
2007 | if h.Parent==Character then | |
2008 | return | |
2009 | end | |
2010 | h:TakeDamage(5) | |
2011 | vl=Instance.new("BodyVelocity") | |
2012 | vl.P=4500 | |
2013 | vl.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
2014 | velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z) | |
2015 | vl.velocity=velocity*1.05+Vector3.new(0,3,0) | |
2016 | vl.Parent=t | |
2017 | game:GetService("Debris"):AddItem(vl,.2) | |
2018 | rl=Instance.new("BodyAngularVelocity") | |
2019 | rl.P=3000 | |
2020 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
2021 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
2022 | rl.Parent=t | |
2023 | game:GetService("Debris"):AddItem(rl,.2) | |
2024 | else | |
2025 | if hit.CanCollide==false then | |
2026 | return | |
2027 | end | |
2028 | MagicCom:disconnect() | |
2029 | -- DBExplode(DB) | |
2030 | end | |
2031 | end | |
2032 | function bulletshoot() | |
2033 | local freakingbullet = prt6:Clone() | |
2034 | freakingbullet.formFactor = 1 | |
2035 | freakingbullet.Parent = workspace | |
2036 | freakingbullet.CanCollide = false | |
2037 | freakingbullet.BrickColor = BrickColor.new("New Yeller") | |
2038 | freakingbullet.Name = "Bullet6" | |
2039 | freakingbullet.Size = Vector3.new(1,1,1) | |
2040 | freakingbullet.Position = Torso.Position | |
2041 | freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2042 | freakingbullet.Velocity = Torso.CFrame.lookVector * 100 | |
2043 | local freakingbulmsh = Instance.new("CylinderMesh") | |
2044 | freakingbulmsh.Parent = freakingbullet | |
2045 | freakingbulmsh.Scale = Vector3.new(1.1,0.8,0.3) | |
2046 | local force = Instance.new("BodyForce") | |
2047 | force.Parent = freakingbullet | |
2048 | force.force = Vector3.new(0,240,0) | |
2049 | coroutine.resume(coroutine.create(function() | |
2050 | while freakingbullet.Parent ~= nil do --I use this function instead of the touch function :3 | |
2051 | wait() | |
2052 | local c = game.Workspace:GetChildren(); | |
2053 | for i = 1, #c do | |
2054 | local hum = c[i]:findFirstChild("Humanoid") | |
2055 | if hum ~= nil and hum.Health ~= 0 then | |
2056 | local head = c[i]:findFirstChild("Head"); | |
2057 | if head ~= nil then | |
2058 | local targ = head.Position - freakingbullet.Position; | |
2059 | local mag = targ.magnitude; | |
2060 | if mag <= 4 and c[i].Name ~= Player.Name then | |
2061 | hum:TakeDamage(15) | |
2062 | v=Instance.new("BodyVelocity") | |
2063 | v.P=1000 | |
2064 | v.maxForce=Vector3.new(math.huge,0,math.huge) | |
2065 | v.velocity=Torso.CFrame.lookVector*25+Torso.Velocity/1.05 | |
2066 | v.Parent=hum.Parent.Torso | |
2067 | coroutine.resume(coroutine.create(function() | |
2068 | wait(0.3) | |
2069 | v.Parent = nil | |
2070 | end)) | |
2071 | game:GetService("Debris"):AddItem(v,.1) | |
2072 | freakingbullet.Parent = nil | |
2073 | -- hum:TakeDamage(damage.Value + damageboost) | |
2074 | end | |
2075 | end | |
2076 | end | |
2077 | end | |
2078 | end | |
2079 | end)) | |
2080 | --[[freakingbullet.Touched:connect(function(hit) kill(b,hit) end) --Freaking touched function wont work >:U | |
2081 | function kill(brick,hit) | |
2082 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent.Name ~= "Dr4gOnh4ck3rz2" and hit.Name ~= "Base" and hit.Parent.Name ~= "AccountMoniter" then | |
2083 | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5 | |
2084 | freakingbullet.Parent = nil | |
2085 | end | |
2086 | end]] | |
2087 | coroutine.resume(coroutine.create(function() | |
2088 | freakingbullet.Position = Torso.Position | |
2089 | freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2090 | for i = 0,5,0.1 do | |
2091 | wait() | |
2092 | --freakingbullet.Touched:connect(function(hit) kill(b,hit) end) | |
2093 | freakingbullet.Velocity = Torso.CFrame.lookVector * 100 | |
2094 | end | |
2095 | freakingbullet.Parent = nil | |
2096 | end)) | |
2097 | end | |
2098 | function sniperbulletshoot() | |
2099 | local freakingbullet = prt6:Clone() | |
2100 | freakingbullet.formFactor = 1 | |
2101 | freakingbullet.Reflectance = 0.2 | |
2102 | freakingbullet.Parent = workspace | |
2103 | freakingbullet.CanCollide = false | |
2104 | freakingbullet.BrickColor = BrickColor.new("New Yeller") | |
2105 | freakingbullet.Name = "Bullet6" | |
2106 | freakingbullet.Size = Vector3.new(1,1,1) | |
2107 | freakingbullet.Position = Torso.Position | |
2108 | freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2109 | freakingbullet.Velocity = Torso.CFrame.lookVector * 100 | |
2110 | local freakingbulmsh = Instance.new("CylinderMesh") | |
2111 | freakingbulmsh.Parent = freakingbullet | |
2112 | freakingbulmsh.Scale = Vector3.new(1.1,0.8,0.3) | |
2113 | local force = Instance.new("BodyForce") | |
2114 | force.Parent = freakingbullet | |
2115 | force.force = Vector3.new(0,240,0) | |
2116 | sparkles = Instance.new("Sparkles") | |
2117 | sparkles.Name = "Sparkles" | |
2118 | sparkles.Color = Color3.new(1,1,0) | |
2119 | sparkles.Parent = freakingbullet | |
2120 | coroutine.resume(coroutine.create(function() | |
2121 | while freakingbullet.Parent ~= nil do --I use this function instead of the touch function :3 | |
2122 | wait() | |
2123 | local c = game.Workspace:GetChildren(); | |
2124 | for i = 1, #c do | |
2125 | local hum = c[i]:findFirstChild("Humanoid") | |
2126 | if hum ~= nil and hum.Health ~= 0 then | |
2127 | local head = c[i]:findFirstChild("Head"); | |
2128 | if head ~= nil then | |
2129 | local targ = head.Position - freakingbullet.Position; | |
2130 | local mag = targ.magnitude; | |
2131 | if mag <= 4 and c[i].Name ~= Player.Name then | |
2132 | hum:TakeDamage(50) | |
2133 | freakingbullet.Parent = nil | |
2134 | -- hum:TakeDamage(damage.Value + damageboost) | |
2135 | end | |
2136 | end | |
2137 | end | |
2138 | end | |
2139 | end | |
2140 | end)) | |
2141 | --[[freakingbullet.Touched:connect(function(hit) kill(b,hit) end) --Freaking touched function wont work >:U | |
2142 | function kill(brick,hit) | |
2143 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent.Name ~= "Dr4gOnh4ck3rz2" and hit.Name ~= "Base" and hit.Parent.Name ~= "AccountMoniter" then | |
2144 | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5 | |
2145 | freakingbullet.Parent = nil | |
2146 | end | |
2147 | end]] | |
2148 | coroutine.resume(coroutine.create(function() | |
2149 | freakingbullet.Position = Torso.Position | |
2150 | freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2151 | for i = 0,10,0.1 do | |
2152 | wait() | |
2153 | --freakingbullet.Touched:connect(function(hit) kill(b,hit) end) | |
2154 | freakingbullet.Velocity = Torso.CFrame.lookVector * 250 | |
2155 | end | |
2156 | freakingbullet.Parent = nil | |
2157 | end)) | |
2158 | end | |
2159 | function bewmshot() | |
2160 | local freakingbullet = prt6:Clone() | |
2161 | freakingbullet.formFactor = 1 | |
2162 | freakingbullet.Parent = workspace | |
2163 | freakingbullet.CanCollide = false | |
2164 | freakingbullet.BrickColor = BrickColor.new("Bright red") | |
2165 | freakingbullet.Name = "Bullet6" | |
2166 | freakingbullet.Size = Vector3.new(1,1,1) | |
2167 | freakingbullet.Position = Torso.Position | |
2168 | freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2169 | freakingbullet.Velocity = Torso.CFrame.lookVector * 100 | |
2170 | local freakingbulmsh = Instance.new("CylinderMesh") | |
2171 | freakingbulmsh.Parent = freakingbullet | |
2172 | freakingbulmsh.Scale = Vector3.new(1.1,0.8,0.3) | |
2173 | local force = Instance.new("BodyForce") | |
2174 | force.Parent = freakingbullet | |
2175 | force.force = Vector3.new(0,240,0) | |
2176 | coroutine.resume(coroutine.create(function() | |
2177 | while freakingbullet.Parent ~= nil do --I use this function instead of the touch function :3 | |
2178 | wait() | |
2179 | local c = game.Workspace:GetChildren(); | |
2180 | for i = 1, #c do | |
2181 | local hum = c[i]:findFirstChild("Humanoid") | |
2182 | if hum ~= nil and hum.Health ~= 0 then | |
2183 | local head = c[i]:findFirstChild("Head"); | |
2184 | if head ~= nil then | |
2185 | local targ = head.Position - freakingbullet.Position; | |
2186 | local mag = targ.magnitude; | |
2187 | if mag <= 4 and c[i].Name ~= Player.Name then | |
2188 | hum:TakeDamage(20) | |
2189 | freakingbullet.Parent = nil | |
2190 | DBHit(hum.Parent.Torso,freakingbullet) | |
2191 | local bewm = Instance.new("Explosion") | |
2192 | bewm.Parent = workspace | |
2193 | bewm.BlastPressure = 0 | |
2194 | bewm.Position = hum.Parent.Torso.Position | |
2195 | rocketbewmsound(prt1,1.2) | |
2196 | -- coroutine.resume(coroutine.create(function() | |
2197 | wait(0.5) | |
2198 | rocketbewmsound(prt1,1.2) | |
2199 | hum:TakeDamage(10) | |
2200 | DBHit(hum.Parent.Torso,freakingbullet) | |
2201 | local bewm = Instance.new("Explosion") | |
2202 | bewm.Parent = workspace | |
2203 | bewm.BlastPressure = 0 | |
2204 | bewm.Position = hum.Parent.Torso.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
2205 | wait(0.5) | |
2206 | rocketbewmsound(prt1,1.2) | |
2207 | hum:TakeDamage(10) | |
2208 | DBHit(hum.Parent.Torso,freakingbullet) | |
2209 | local bewm = Instance.new("Explosion") | |
2210 | bewm.Parent = workspace | |
2211 | bewm.BlastPressure = 0 | |
2212 | bewm.Position = hum.Parent.Torso.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
2213 | wait(0.5) | |
2214 | rocketbewmsound(prt1,1.2) | |
2215 | hum:TakeDamage(10) | |
2216 | DBHit(hum.Parent.Torso,freakingbullet) | |
2217 | local bewm = Instance.new("Explosion") | |
2218 | bewm.Parent = workspace | |
2219 | bewm.BlastPressure = 0 | |
2220 | bewm.Position = hum.Parent.Torso.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
2221 | -- end)) | |
2222 | -- hum:TakeDamage(damage.Value + damageboost) | |
2223 | end | |
2224 | end | |
2225 | end | |
2226 | end | |
2227 | end | |
2228 | end)) | |
2229 | coroutine.resume(coroutine.create(function() | |
2230 | freakingbullet.Position = Torso.Position | |
2231 | freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2232 | for i = 0,5,0.1 do | |
2233 | wait() | |
2234 | --freakingbullet.Touched:connect(function(hit) kill(b,hit) end) | |
2235 | freakingbullet.Velocity = Torso.CFrame.lookVector * 100 | |
2236 | end | |
2237 | freakingbullet.Parent = nil | |
2238 | end)) | |
2239 | end | |
2240 | function elecshot() | |
2241 | local freakingbullet = prt6:Clone() | |
2242 | freakingbullet.formFactor = 1 | |
2243 | freakingbullet.Parent = workspace | |
2244 | freakingbullet.CanCollide = false | |
2245 | freakingbullet.BrickColor = BrickColor.new("Bright blue") | |
2246 | freakingbullet.Name = "Bullet6" | |
2247 | freakingbullet.Size = Vector3.new(1,1,1) | |
2248 | freakingbullet.Position = Torso.Position | |
2249 | freakingbullet.CFrame = Torso.CFrame --* CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
2250 | freakingbullet.Velocity = Torso.CFrame.lookVector * 100 | |
2251 | local freakingbulmsh = Instance.new("CylinderMesh") | |
2252 | freakingbulmsh.Parent = freakingbullet | |
2253 | freakingbulmsh.Scale = Vector3.new(1.6,1.3,0.8) | |
2254 | local force = Instance.new("BodyForce") | |
2255 | force.Parent = freakingbullet | |
2256 | force.force = Vector3.new(0,235,0) | |
2257 | coroutine.resume(coroutine.create(function() | |
2258 | while freakingbullet.Parent ~= nil do --I use this function instead of the touch function :3 | |
2259 | wait() | |
2260 | local c = game.Workspace:GetChildren(); | |
2261 | for i = 1, #c do | |
2262 | local hum = c[i]:findFirstChild("Humanoid") | |
2263 | if hum ~= nil and hum.Health ~= 0 then | |
2264 | local head = c[i]:findFirstChild("Head"); | |
2265 | if head ~= nil then | |
2266 | local targ = head.Position - freakingbullet.Position; | |
2267 | local mag = targ.magnitude; | |
2268 | if mag <= 5 and c[i].Name ~= Player.Name then | |
2269 | hum:TakeDamage(20) | |
2270 | coroutine.resume(coroutine.create(function() | |
2271 | for i = 0,6 do | |
2272 | wait(0.2) | |
2273 | hum:TakeDamage(3) | |
2274 | local me = Instance.new("SpecialMesh") | |
2275 | me.MeshType = "Sphere" | |
2276 | local wave = Instance.new("Part") | |
2277 | me.Parent = wave | |
2278 | wave.formFactor = 1 | |
2279 | wave.Parent = workspace | |
2280 | wave.CanCollide = false | |
2281 | wave.Anchored = true | |
2282 | wave.BrickColor = BrickColor.new("Bright blue") | |
2283 | wave.Name = "Waveh" | |
2284 | wave.Size = Vector3.new(1,1,1) | |
2285 | wave.Position = Torso.Position | |
2286 | wave.CFrame = hum.Parent.Torso.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
2287 | elecsound(wave,1.5) | |
2288 | coroutine.resume(coroutine.create(function() | |
2289 | for i = 0,1,0.1 do | |
2290 | wait() | |
2291 | me.Scale = me.Scale + Vector3.new(1,1,1) | |
2292 | wave.Transparency = wave.Transparency + 0.1 | |
2293 | end | |
2294 | wave.Parent = nil | |
2295 | end)) | |
2296 | DBHit(hum.Parent.Torso,freakingbullet) | |
2297 | end | |
2298 | end)) | |
2299 | freakingbullet.Parent = nil | |
2300 | end | |
2301 | end | |
2302 | end | |
2303 | end | |
2304 | end | |
2305 | end)) | |
2306 | coroutine.resume(coroutine.create(function() | |
2307 | freakingbullet.Position = Torso.Position | |
2308 | freakingbullet.CFrame = prt24.CFrame * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2309 | for i = 0,5,0.1 do | |
2310 | wait() | |
2311 | --freakingbullet.Touched:connect(function(hit) kill(b,hit) end) | |
2312 | freakingbullet.Velocity = Torso.CFrame.lookVector * 100 | |
2313 | end | |
2314 | freakingbullet.Parent = nil | |
2315 | end)) | |
2316 | end | |
2317 | function laz0rshot() | |
2318 | local laz0rhed = Instance.new("Part") | |
2319 | laz0rhed.formFactor = 1 | |
2320 | laz0rhed.Parent = workspace | |
2321 | laz0rhed.CanCollide = false | |
2322 | laz0rhed.BrickColor = BrickColor.new("New Yeller") | |
2323 | laz0rhed.Name = "HeadOfTehLaz0r" | |
2324 | laz0rhed.Size = Vector3.new(3,1,3) | |
2325 | laz0rhed.Position = Torso.Position | |
2326 | laz0rhed.CFrame = prt37.CFrame * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
2327 | local lazmsh = Instance.new("SpecialMesh") | |
2328 | lazmsh.MeshType = "Sphere" | |
2329 | lazmsh.Parent = laz0rhed | |
2330 | lazmsh.Scale = Vector3.new(0,0,0) | |
2331 | local lazwel = Instance.new("Weld") | |
2332 | lazwel.Parent = laz0rhed | |
2333 | lazwel.Part0 = laz0rhed | |
2334 | lazwel.Part1 = prt37 | |
2335 | for i = 0 , 1 , 0.01 do | |
2336 | wait(0) | |
2337 | lazmsh.Scale = lazmsh.Scale + Vector3.new(0.01,0.04,0.01) | |
2338 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+1,0,0) | |
2339 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2340 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),0.5*i,-0.1*i) | |
2341 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2342 | end | |
2343 | wait(0.3) | |
2344 | print(lazmsh.Scale) | |
2345 | laz0rhed.Parent = nil | |
2346 | local tehlaz0r = Instance.new("Part") | |
2347 | tehlaz0r.formFactor = 1 | |
2348 | tehlaz0r.Parent = workspace | |
2349 | tehlaz0r.CanCollide = false | |
2350 | tehlaz0r.BrickColor = BrickColor.new("New Yeller") | |
2351 | tehlaz0r.Name = "LAAAAAAAAAAAAAAAZ0R" | |
2352 | tehlaz0r.Size = Vector3.new(3,5,3) | |
2353 | tehlaz0r.Position = Torso.Position | |
2354 | tehlaz0r.CFrame = prt37.CFrame --* CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
2355 | tehlaz0r.Velocity = Torso.CFrame.lookVector * 50 | |
2356 | --[[v=Instance.new("BodyVelocity") | |
2357 | v.P=3000 | |
2358 | v.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
2359 | v.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z) | |
2360 | v.Parent=tehlaz0r]] | |
2361 | local TLM = Instance.new("CylinderMesh") | |
2362 | TLM.Parent = tehlaz0r | |
2363 | TLM.Scale = lazmsh.Scale - Vector3.new(0,3.5,0) | |
2364 | lazwel.Part0 = laz0rhed | |
2365 | lazwel.Part1 = tehlaz0r | |
2366 | lazwel.C0 = CFrame.new(0, 4, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
2367 | local force = Instance.new("BodyForce") | |
2368 | force.Parent = tehlaz0r | |
2369 | force.force = Vector3.new(0,8480,0) | |
2370 | local c = game.Workspace:GetChildren(); | |
2371 | for i = 1, #c do | |
2372 | local hum = c[i]:findFirstChild("Humanoid") | |
2373 | if hum ~= nil and hum.Health ~= 0 then | |
2374 | local head = c[i]:findFirstChild("Head"); | |
2375 | if head ~= nil then | |
2376 | local targ = head.Position - tehlaz0r.Position; | |
2377 | local mag = targ.magnitude; | |
2378 | if mag <= 3 and c[i].Name ~= Player.Name then | |
2379 | coroutine.resume(coroutine.create(function() | |
2380 | for i = 0,1,0.1 do | |
2381 | wait() | |
2382 | DBHit(head.Parent.Torso,tehlaz0r) | |
2383 | end | |
2384 | end)) | |
2385 | end | |
2386 | end | |
2387 | end | |
2388 | end | |
2389 | coroutine.resume(coroutine.create(function() | |
2390 | wait(20) | |
2391 | tehlaz0r.Parent = nil | |
2392 | end)) | |
2393 | coroutine.resume(coroutine.create(function() | |
2394 | while tehlaz0r.Parent ~= nil do | |
2395 | wait(0) | |
2396 | local lazclon = tehlaz0r:Clone() | |
2397 | lazclon.Anchored = true | |
2398 | lazclon.Parent = workspace | |
2399 | local c = game.Workspace:GetChildren(); | |
2400 | for i = 1, #c do | |
2401 | local hum = c[i]:findFirstChild("Humanoid") | |
2402 | if hum ~= nil and hum.Health ~= 0 then | |
2403 | local head = c[i]:findFirstChild("Head"); | |
2404 | if head ~= nil then | |
2405 | local targ = head.Position - lazclon.Position; | |
2406 | local mag = targ.magnitude; | |
2407 | if mag <= 3 and c[i].Name ~= Player.Name then | |
2408 | coroutine.resume(coroutine.create(function() | |
2409 | for i = 0,1,0.1 do | |
2410 | wait() | |
2411 | DBHit1(head,lazclon) | |
2412 | end | |
2413 | end)) | |
2414 | end | |
2415 | end | |
2416 | end | |
2417 | end | |
2418 | coroutine.resume(coroutine.create(function() | |
2419 | wait(3) | |
2420 | for i = 0,1,0.1 do | |
2421 | wait() | |
2422 | lazclon.Transparency = lazclon.Transparency + 0.1 | |
2423 | end | |
2424 | lazclon.Parent = nil | |
2425 | end)) | |
2426 | end | |
2427 | end)) | |
2428 | print(TLM.Scale) | |
2429 | end | |
2430 | --[[Tool Functions]]-- | |
2431 | hold = false | |
2432 | function ob1d(mouse) | |
2433 | hold = true | |
2434 | oneslash() | |
2435 | if hold == true then | |
2436 | twoslash() | |
2437 | end | |
2438 | end | |
2439 | function ob1u(mouse) | |
2440 | hold = false | |
2441 | end | |
2442 | buttonhold = false | |
2443 | function key(key) | |
2444 | if attack == true then return end | |
2445 | if key == "q" then | |
2446 | unload() | |
2447 | end | |
2448 | if key == "e" then | |
2449 | sniper() | |
2450 | end | |
2451 | if key == "r" then | |
2452 | kerbewmshot() | |
2453 | end | |
2454 | if key == "f" then | |
2455 | crush() | |
2456 | end | |
2457 | if key == "z" then | |
2458 | elecshoot() | |
2459 | end | |
2460 | if key == "x" then | |
2461 | laz0rshoot() | |
2462 | end | |
2463 | if key == "c" then | |
2464 | cycloneskates() | |
2465 | end | |
2466 | end | |
2467 | function key2(key) | |
2468 | charging2 = false | |
2469 | tornadoing = false | |
2470 | end | |
2471 | function s(mouse) | |
2472 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
2473 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
2474 | mouse.KeyDown:connect(key) | |
2475 | mouse.KeyUp:connect(key2) | |
2476 | unsheathed = true | |
2477 | player = Player | |
2478 | ch = Character | |
2479 | RSH = ch.Torso["Right Shoulder"] | |
2480 | LSH = ch.Torso["Left Shoulder"] | |
2481 | -- | |
2482 | RSH.Parent = nil | |
2483 | LSH.Parent = nil | |
2484 | -- | |
2485 | RW.Part0 = ch.Torso | |
2486 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
2487 | RW.C1 = CFrame.new(0, 0.5, 0) | |
2488 | RW.Part1 = ch["Right Arm"] | |
2489 | RW.Parent = ch.Torso | |
2490 | --_G.R = RW | |
2491 | -- | |
2492 | LW.Part0 = ch.Torso | |
2493 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
2494 | LW.C1 = CFrame.new(0, 0.5, 0) | |
2495 | LW.Part1 = ch["Left Arm"] | |
2496 | LW.Parent = ch.Torso | |
2497 | --_G.L = LW | |
2498 | -- | |
2499 | equipanim() | |
2500 | end | |
2501 | function ds(mouse) | |
2502 | unsheathed = false | |
2503 | hideanim() | |
2504 | Character.Humanoid.WalkSpeed = 16 | |
2505 | RW.Parent = nil | |
2506 | LW.Parent = nil | |
2507 | RSH.Parent = player.Character.Torso | |
2508 | LSH.Parent = player.Character.Torso | |
2509 | end | |
2510 | Bin.Selected:connect(s) | |
2511 | Bin.Deselected:connect(ds) | |
2512 | ||
2513 | function onRunning(speed) | |
2514 | if skill == true then return end | |
2515 | end | |
2516 | Character.Humanoid.Running:connect(onRunning) | |
2517 | while true do | |
2518 | wait(0) | |
2519 | end | |
2520 | -- lego |