SHOW:
|
|
- or go back to the newest paste.
1 | --[[ | |
2 | Technomancer MiniBoss ]] | |
3 | ||
4 | - | ModelName = "Technomancer" |
4 | + | ModelName = "Laser Dummy" |
5 | attack = false | |
6 | attacktype = 1 | |
7 | Hitdeb = 0 | |
8 | Hitdeb2 = 0 | |
9 | - | name = "UilmateGate" |
9 | + | name = "eliteslayer816" |
10 | ---------------------------- | |
11 | --Customize mediafire | |
12 | booster1 = false | |
13 | booster2 = false | |
14 | booster3 = false | |
15 | booster4 = false | |
16 | booster5 = false | |
17 | booster6 = false | |
18 | booster7 = false | |
19 | booster8 = false | |
20 | booster9 = false | |
21 | time1 = false | |
22 | time2 = false | |
23 | time3 = false | |
24 | time4 = false | |
25 | time5 = false | |
26 | time6 = false | |
27 | time7 = false | |
28 | time8 = false | |
29 | time9 = false | |
30 | clocker = 0 | |
31 | Rage = 0 | |
32 | Rage = 200 | |
33 | mindamage = 5 | |
34 | maxdamage = 40 | |
35 | crtmaxdamage = 40 | |
36 | combo = 0 | |
37 | omindamage = mindamage | |
38 | omaxdamage = maxdamage | |
39 | ocrtmaxdamage = crtmaxdamage | |
40 | crtrate = 100/5 | |
41 | HP = 2000 | |
42 | WS = 8 | |
43 | jump = 50 | |
44 | --100%/critpercentage | |
45 | attack = false | |
46 | comboing = false | |
47 | oblkbrkr = 3 | |
48 | blockbreaker = oblkbrkr | |
49 | timer = 0 | |
50 | handlecolor = BrickColor.new("Black") | |
51 | bcolor = BrickColor.new("White") | |
52 | gemcolor = BrickColor.new("Black") | |
53 | ||
54 | ||
55 | ||
56 | ------------------------------------------------------------------------------------------------------------------------------------- | |
57 | ||
58 | ||
59 | bc = char:FindFirstChildOfClass("BodyColors") | |
60 | bc.HeadColor = BrickColor.new("Br. yellowish green") | |
61 | bc.LeftArmColor = BrickColor.new("Br. yellowish green") | |
62 | bc.RightArmColor = BrickColor.new("Br. yellowish green") | |
63 | bc.TorsoColor = BrickColor.new("New Yeller") | |
64 | bc.LeftLegColor = BrickColor.new("New Yeller") | |
65 | bc.RightLegColor = BrickColor.new("New Yeller") | |
66 | gc = char:GetChildren() | |
67 | for i=1, #gc do | |
68 | if gc[i].ClassName == "Shirt" or gc[i].ClassName == "Pants" or gc[i].ClassName == "Hat" or gc[i].ClassName == "Accessory" or gc[i].ClassName == "ShirtGraphic" then | |
69 | gc[i]:Destroy() | |
70 | end | |
71 | end | |
72 | char.Head:FindFirstChildOfClass("Decal").Texture = "http://www.roblox.com/asset/?id=65430105" | |
73 | ||
74 | ||
75 | ||
76 | while true do | |
77 | wait(0.01) | |
78 | fh.CFrame = lp.Character.Head.CFrame | |
79 | end | |
80 | ||
81 | ||
82 | if game.Workspace:findFirstChild(ModelName,true) ~= nil then | |
83 | game.Workspace:findFirstChild(ModelName,true).Parent = nil | |
84 | end | |
85 | ||
86 | ||
87 | ||
88 | ||
89 | ||
90 | ||
91 | local bodyholder = Instance.new("Model") | |
92 | bodyholder.Name = ModelName | |
93 | bodyholder.Parent = game.Workspace | |
94 | Character = bodyholder | |
95 | ||
96 | ev = Instance.new("BoolValue",bodyholder) | |
97 | ev.Name = "EquippedVal" | |
98 | ev.Value = false | |
99 | blk = Instance.new("BoolValue",bodyholder) | |
100 | blk.Name = "Block" | |
101 | blk.Value = false | |
102 | blkc = Instance.new("IntValue",blk) | |
103 | blkc.Name = "BlockPower" | |
104 | blkc.Value = blockpower | |
105 | SpawnPos = Instance.new("Vector3Value",script) | |
106 | SpawnPos.Name = "SpawnPos" | |
107 | SpawnPos.Value = game.Workspace[name].Head.Position--Vector3.new(20,10,0) | |
108 | ||
109 | local Head = Instance.new("Part") | |
110 | Head.formFactor = 3 | |
111 | Head.CanCollide = true | |
112 | Head.Name = "Head" | |
113 | Head.Locked = true | |
114 | Head.Size = Vector3.new(2,1,1) | |
115 | Head.Parent = bodyholder | |
116 | Head.BrickColor = BrickColor.new("Bright yellow") | |
117 | local smh = Instance.new("SpecialMesh",Head) | |
118 | smh.Scale = Vector3.new(1.25,1.25,1.25) | |
119 | local Torso = Instance.new("Part") | |
120 | Torso.formFactor = 3 | |
121 | Torso.CanCollide = true | |
122 | Torso.Name = "Torso" | |
123 | Torso.Locked = true | |
124 | Torso.Size = Vector3.new(2,2,1) | |
125 | Torso.Parent = bodyholder | |
126 | Torso.BrickColor = BrickColor.new("Black") | |
127 | Torso.Reflectance = 0.1 | |
128 | Torso.CFrame = CFrame.new(SpawnPos.Value) | |
129 | local RightArm = Instance.new("Part") | |
130 | RightArm.formFactor = 3 | |
131 | RightArm.CanCollide = true | |
132 | RightArm.Name = "Right Arm" | |
133 | RightArm.Locked = true | |
134 | RightArm.Size = Vector3.new(1,2,1) | |
135 | RightArm.Parent = bodyholder | |
136 | RightArm.BrickColor = BrickColor.new("Black") | |
137 | local LeftArm = Instance.new("Part") | |
138 | LeftArm.formFactor = 3 | |
139 | LeftArm.CanCollide = true | |
140 | LeftArm.Name = "Left Arm" | |
141 | LeftArm.Locked = true | |
142 | LeftArm.Size = Vector3.new(1,2,1) | |
143 | LeftArm.Parent = bodyholder | |
144 | LeftArm.BrickColor = BrickColor.new("Black") | |
145 | local RightLeg = Instance.new("Part") | |
146 | RightLeg.formFactor = 3 | |
147 | RightLeg.CanCollide = true | |
148 | RightLeg.Name = "Right Leg" | |
149 | RightLeg.Locked = true | |
150 | RightLeg.Size = Vector3.new(1,2,1) | |
151 | RightLeg.Parent = bodyholder | |
152 | RightLeg.BrickColor = BrickColor.new("Black") | |
153 | local LeftLeg = Instance.new("Part") | |
154 | LeftLeg.formFactor = 3 | |
155 | LeftLeg.CanCollide = true | |
156 | LeftLeg.Name = "Left Leg" | |
157 | LeftLeg.Locked = true | |
158 | LeftLeg.Size = Vector3.new(1,2,1) | |
159 | LeftLeg.Parent = bodyholder | |
160 | LeftLeg.BrickColor = BrickColor.new("Black") | |
161 | - | local LAmsh = Instance.new("CharacterMesh") |
161 | + | |
162 | - | LAmsh.MeshId = "111777907" |
162 | + | |
163 | - | LAmsh.OverlayTextureId = "111778050" |
163 | + | |
164 | - | LAmsh.BodyPart = "LeftArm" |
164 | + | |
165 | - | LAmsh.Parent = bodyholder |
165 | + | |
166 | hair.Size = Vector3.new(1,0.8,1) | |
167 | - | local LLmsh = Instance.new("CharacterMesh") |
167 | + | |
168 | - | LLmsh.MeshId = "111777942" |
168 | + | |
169 | - | LLmsh.OverlayTextureId = "111778050" |
169 | + | |
170 | - | LLmsh.BodyPart = "LeftLeg" |
170 | + | |
171 | - | LLmsh.Parent = bodyholder |
171 | + | |
172 | hm.TextureId = "http://www.roblox.com/asset/?id=111787686" | |
173 | - | local RAmsh = Instance.new("CharacterMesh") |
173 | + | |
174 | - | RAmsh.MeshId = "111777972" |
174 | + | |
175 | - | RAmsh.OverlayTextureId = "111778050" |
175 | + | |
176 | - | RAmsh.BodyPart = "RightArm" |
176 | + | |
177 | - | RAmsh.Parent = bodyholder |
177 | + | |
178 | wh.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0, 0) | |
179 | - | local RLmsh = Instance.new("CharacterMesh") |
179 | + | |
180 | - | RLmsh.MeshId = "111778023" |
180 | + | |
181 | - | RLmsh.OverlayTextureId = "111778050" |
181 | + | |
182 | - | RLmsh.BodyPart = "RightLeg" |
182 | + | |
183 | - | RLmsh.Parent = bodyholder |
183 | + | |
184 | RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld") | |
185 | - | local Tmsh = Instance.new("CharacterMesh") |
185 | + | |
186 | - | Tmsh.MeshId = "111777866" |
186 | + | |
187 | - | Tmsh.OverlayTextureId = "111778050" |
187 | + | |
188 | - | Tmsh.BodyPart = "Torso" |
188 | + | |
189 | - | Tmsh.Parent = bodyholder |
189 | + | |
190 | ||
191 | ||
192 | ||
193 | ||
194 | --derp | |
195 | RW.Part0 = Character.Torso | |
196 | RW.Part1 = Character["Right Arm"] | |
197 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
198 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
199 | RW.Parent = bodyholder | |
200 | -- | |
201 | LW.Part0 = Character.Torso | |
202 | LW.Part1 = Character["Left Arm"] | |
203 | LW.C0 = CFrame.new(-1.5, 0.5, 0) | |
204 | LW.C1 = CFrame.new(0, 0.5, 0) | |
205 | LW.Parent = bodyholder | |
206 | -- | |
207 | RWL.Part0 = Character.Torso | |
208 | RWL.Part1 = Character["Right Leg"] | |
209 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0) | |
210 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
211 | RWL.Parent = bodyholder | |
212 | -- | |
213 | LWL.Part0 = Character.Torso | |
214 | LWL.Part1 = Character["Left Leg"] | |
215 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0) | |
216 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
217 | LWL.Parent = bodyholder | |
218 | -- | |
219 | Neck.Part0 = Character.Torso | |
220 | Neck.Part1 = Character.Head | |
221 | Neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, 0) | |
222 | Neck.C1 = CFrame.new(0, -0.5, 0) | |
223 | Neck.Parent = bodyholder | |
224 | necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
225 | ---- | |
226 | ||
227 | -- | |
228 | ||
229 | RAP = Instance.new("Part") | |
230 | RAP.formFactor = 0 | |
231 | RAP.CanCollide = false | |
232 | RAP.Name = "RAPart" | |
233 | RAP.Locked = true | |
234 | RAP.Size = Vector3.new(1,1,1) | |
235 | RAP.Parent = bodyholder | |
236 | RAP.Transparency = 1 | |
237 | w = Instance.new("Weld") | |
238 | w.Parent = RAP | |
239 | w.Part0 = RAP | |
240 | w.Part1 = RightArm | |
241 | w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
242 | w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0) | |
243 | LAP = Instance.new("Part") | |
244 | LAP.formFactor = 0 | |
245 | LAP.CanCollide = false | |
246 | LAP.Name = "LAPart" | |
247 | LAP.Locked = true | |
248 | LAP.Size = Vector3.new(1,1,1) | |
249 | LAP.Parent = bodyholder | |
250 | LAP.Transparency = 1 | |
251 | wl = Instance.new("Weld") | |
252 | wl.Parent = LAP | |
253 | wl.Part0 = LAP | |
254 | wl.Part1 = LeftArm | |
255 | wl.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
256 | wl.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0) | |
257 | ||
258 | swordholder = Instance.new("Model") | |
259 | swordholder.Name = "Weapon" | |
260 | swordholder.Parent = bodyholder | |
261 | ||
262 | local prt1 = Instance.new("Part") | |
263 | prt1.formFactor = 1 | |
264 | prt1.Parent = swordholder | |
265 | prt1.CanCollide = false | |
266 | prt1.BrickColor = BrickColor.new("Really black") | |
267 | prt1.Name = "Part1" | |
268 | prt1.Transparency = 0.4 | |
269 | prt1.Size = Vector3.new(1,1,1) | |
270 | prt1.Position = Torso.Position | |
271 | local prt2 = Instance.new("Part") | |
272 | prt2.formFactor = 1 | |
273 | prt2.Parent = swordholder | |
274 | prt2.CanCollide = false | |
275 | prt2.BrickColor = BrickColor.new("Bright red") | |
276 | prt2.Name = "Part2" | |
277 | prt2.Transparency = 0.4 | |
278 | prt2.Size = Vector3.new(1,1,1) | |
279 | prt2.Position = Torso.Position | |
280 | local prt3 = Instance.new("Part") | |
281 | prt3.formFactor = 1 | |
282 | prt3.Parent = swordholder | |
283 | prt3.CanCollide = false | |
284 | prt3.BrickColor = BrickColor.new("Really black") | |
285 | prt3.Name = "Part3" | |
286 | prt3.Transparency = 0.4 | |
287 | prt3.Size = Vector3.new(1,1,1) | |
288 | prt3.Position = Torso.Position | |
289 | local prt4 = Instance.new("Part") | |
290 | prt4.formFactor = 1 | |
291 | prt4.Parent = swordholder | |
292 | prt4.CanCollide = false | |
293 | prt4.BrickColor = BrickColor.new("Bright red") | |
294 | prt4.Name = "Part4" | |
295 | prt4.Transparency = 0.4 | |
296 | prt4.Size = Vector3.new(1,1,1) | |
297 | prt4.Position = Torso.Position | |
298 | local prt5 = Instance.new("Part") | |
299 | prt5.formFactor = 1 | |
300 | prt5.Parent = swordholder | |
301 | prt5.CanCollide = false | |
302 | prt5.BrickColor = BrickColor.new("Really black") | |
303 | prt5.Name = "Part5" | |
304 | prt5.Transparency = 0.4 | |
305 | prt5.Size = Vector3.new(1,1,1) | |
306 | prt5.Position = Torso.Position | |
307 | local prt6 = Instance.new("Part") | |
308 | prt6.formFactor = 1 | |
309 | prt6.Parent = swordholder | |
310 | prt6.CanCollide = false | |
311 | prt6.BrickColor = BrickColor.new("Bright red") | |
312 | prt6.Name = "Part6" | |
313 | prt6.Transparency = 0.4 | |
314 | prt6.Size = Vector3.new(1,1,1) | |
315 | prt6.Position = Torso.Position | |
316 | local prt7 = Instance.new("Part") | |
317 | prt7.formFactor = 1 | |
318 | prt7.Parent = swordholder | |
319 | prt7.CanCollide = false | |
320 | prt7.BrickColor = BrickColor.new("Really black") | |
321 | prt7.Name = "Part7" | |
322 | prt7.Transparency = 0.4 | |
323 | prt7.Size = Vector3.new(1,1,1) | |
324 | prt7.Position = Torso.Position | |
325 | local prt8 = Instance.new("Part") | |
326 | prt8.formFactor = 1 | |
327 | prt8.Parent = swordholder | |
328 | prt8.CanCollide = false | |
329 | prt8.BrickColor = BrickColor.new("Bright red") | |
330 | prt8.Name = "Part8" | |
331 | prt8.Transparency = 0.4 | |
332 | prt8.Size = Vector3.new(1,1,1) | |
333 | prt8.Position = Torso.Position | |
334 | swordholder:BreakJoints() | |
335 | ||
336 | local msh1 = Instance.new("BlockMesh") | |
337 | msh1.Parent = prt1 | |
338 | msh1.Scale = Vector3.new(0.5,1,0.5) | |
339 | local msh2 = Instance.new("BlockMesh") | |
340 | msh2.Parent = prt2 | |
341 | msh2.Scale = Vector3.new(0.5,1,0.5) | |
342 | local msh3 = Instance.new("BlockMesh") | |
343 | msh3.Parent = prt3 | |
344 | msh3.Scale = Vector3.new(0.5,1,0.5) | |
345 | local msh4 = Instance.new("BlockMesh") | |
346 | msh4.Parent = prt4 | |
347 | msh4.Scale = Vector3.new(0.5,1,0.5) | |
348 | local msh5 = Instance.new("BlockMesh") | |
349 | msh5.Parent = prt5 | |
350 | msh5.Scale = Vector3.new(0.5,1,0.5) | |
351 | local msh6 = Instance.new("BlockMesh") | |
352 | msh6.Parent = prt6 | |
353 | msh6.Scale = Vector3.new(0.5,1,0.5) | |
354 | local msh7 = Instance.new("BlockMesh") | |
355 | msh7.Parent = prt7 | |
356 | msh7.Scale = Vector3.new(0.5,1,0.5) | |
357 | local msh8 = Instance.new("BlockMesh") | |
358 | msh8.Parent = prt8 | |
359 | msh8.Scale = Vector3.new(0.5,1,0.5) | |
360 | local w1 = Instance.new("Weld") | |
361 | w1.Parent = prt1 | |
362 | w1.Part0 = prt1 | |
363 | w1.Part1 = Torso | |
364 | w1.C0 = CFrame.new(0,1.6,-1) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
365 | local w2 = Instance.new("Weld") | |
366 | w2.Parent = prt2 | |
367 | w2.Part0 = prt2 | |
368 | w2.Part1 = Torso | |
369 | w2.C0 = CFrame.new(0,1.6,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
370 | local w3 = Instance.new("Weld") | |
371 | w3.Parent = prt3 | |
372 | w3.Part0 = prt3 | |
373 | w3.Part1 = Torso | |
374 | w3.C0 = CFrame.new(0,1.6,-1) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
375 | local w4 = Instance.new("Weld") | |
376 | w4.Parent = prt4 | |
377 | w4.Part0 = prt4 | |
378 | w4.Part1 = Torso | |
379 | w4.C0 = CFrame.new(0,1.6,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
380 | local w5 = Instance.new("Weld") | |
381 | w5.Parent = prt5 | |
382 | w5.Part0 = prt5 | |
383 | w5.Part1 = Torso | |
384 | w5.C0 = CFrame.new(0,1.6,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
385 | local w6 = Instance.new("Weld") | |
386 | w6.Parent = prt6 | |
387 | w6.Part0 = prt6 | |
388 | w6.Part1 = Torso | |
389 | w6.C0 = CFrame.new(0,1.6,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
390 | local w7 = Instance.new("Weld") | |
391 | w7.Parent = prt7 | |
392 | w7.Part0 = prt7 | |
393 | w7.Part1 = Torso | |
394 | w7.C0 = CFrame.new(0,1.6,-1) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
395 | local w8 = Instance.new("Weld") | |
396 | w8.Parent = prt8 | |
397 | w8.Part0 = prt8 | |
398 | w8.Part1 = Torso | |
399 | w8.C0 = CFrame.new(0,1.6,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
400 | local gairo = Instance.new("BodyGyro") | |
401 | gairo.Parent = nil | |
402 | gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
403 | gairo.P = 20e+003 | |
404 | function unequipweld() | |
405 | ||
406 | end | |
407 | ||
408 | unequipweld() | |
409 | ||
410 | ||
411 | ||
412 | function equipweld() | |
413 | ||
414 | ||
415 | end | |
416 | ||
417 | ||
418 | function ss(parent,p) --Slash | |
419 | ||
420 | local SlashSound = Instance.new("Sound") | |
421 | SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
422 | SlashSound.Parent = parent | |
423 | SlashSound.Volume = .7 | |
424 | SlashSound.Pitch = p | |
425 | SlashSound.PlayOnRemove = true | |
426 | coroutine.resume(coroutine.create(function() | |
427 | wait() | |
428 | SlashSound.Parent = nil | |
429 | end)) | |
430 | end | |
431 | function uss(parent,p) --unsheath | |
432 | ||
433 | local SlashSound = Instance.new("Sound") | |
434 | SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav" | |
435 | SlashSound.Parent = parent | |
436 | SlashSound.Volume = .7 | |
437 | SlashSound.Pitch = p | |
438 | SlashSound.PlayOnRemove = true | |
439 | coroutine.resume(coroutine.create(function() | |
440 | wait() | |
441 | SlashSound.Parent = nil | |
442 | end)) | |
443 | end | |
444 | function ms(parent,p) --Metal Cling Sound | |
445 | ||
446 | local SlashSound = Instance.new("Sound") | |
447 | SlashSound.SoundId = "rbxasset://sounds\\metal.ogg" | |
448 | SlashSound.Parent = parent | |
449 | SlashSound.Volume = 1 | |
450 | SlashSound.Pitch = p | |
451 | SlashSound.PlayOnRemove = true | |
452 | coroutine.resume(coroutine.create(function() | |
453 | wait() | |
454 | SlashSound.Parent = nil | |
455 | end)) | |
456 | end | |
457 | ||
458 | -- | |
459 | -- | |
460 | ||
461 | function returndmg() | |
462 | mindamage = omindamage | |
463 | maxdamage = omaxdamage | |
464 | crtmaxdamage = ocrtmaxdamage | |
465 | end | |
466 | ||
467 | function subdmg(sub) | |
468 | mindamage = omindamage - sub | |
469 | maxdamage = omaxdamage - sub | |
470 | crtmaxdamage = ocrtmaxdamage - sub | |
471 | end | |
472 | ||
473 | function prcntdmg(sub) | |
474 | mindamage = math.floor(omindamage - (omindamage*(sub/100))) | |
475 | maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100))) | |
476 | crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100))) | |
477 | end | |
478 | ||
479 | function tagHumanoid(humanoid, player) | |
480 | local creator_tag = Instance.new("ObjectValue") | |
481 | creator_tag.Value = player | |
482 | creator_tag.Name = "creator" | |
483 | creator_tag.Parent = humanoid | |
484 | end | |
485 | ||
486 | function untagHumanoid(humanoid) | |
487 | if humanoid ~= nil then | |
488 | local tag = humanoid:findFirstChild("creator") | |
489 | if tag ~= nil then | |
490 | tag.Parent = nil | |
491 | end | |
492 | end | |
493 | end | |
494 | ||
495 | local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
496 | return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
497 | end | |
498 | ||
499 | ||
500 | ||
501 | function equipanim() | |
502 | ||
503 | end | |
504 | ||
505 | ||
506 | function damagesplat(dmg,hit,crit,blocked) | |
507 | local mo = Instance.new("Model") | |
508 | mo.Name = dmg | |
509 | local pa = Instance.new("Part",mo) | |
510 | pa.formFactor = 3 | |
511 | pa.Size = Vector3.new(0.8,0.3,0.8) | |
512 | if crit then | |
513 | pa.BrickColor = BrickColor.new("Bright yellow") | |
514 | elseif not crit then | |
515 | pa.BrickColor = BrickColor.new("Bright red") | |
516 | end | |
517 | if blocked then pa.BrickColor = BrickColor.new("Bright blue") end | |
518 | pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0) | |
519 | pa.Name = "Head" | |
520 | local hah = Instance.new("Humanoid") | |
521 | hah.Parent = mo | |
522 | hah.MaxHealth = 0 | |
523 | hah.Health = 0 | |
524 | local bp = Instance.new("BodyPosition") | |
525 | bp.P = 14000 | |
526 | bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
527 | bp.position = hit.Position + Vector3.new(0, 5, 0) | |
528 | coroutine.resume(coroutine.create(function() | |
529 | wait() | |
530 | mo.Parent = Character | |
531 | bp.Parent = pa | |
532 | wait(1.4) | |
533 | mo:remove() | |
534 | end)) | |
535 | return pa | |
536 | end | |
537 | ||
538 | function damage(hum,dmg,critornot) | |
539 | local pa = damagesplat(dmg,hum.Torso,critornot) | |
540 | hum:TakeDamage(dmg) | |
541 | coroutine.resume(coroutine.create(function() | |
542 | tagHumanoid(hum,Player) | |
543 | wait(1) | |
544 | untagHumanoid(hum) | |
545 | end)) | |
546 | return pa | |
547 | ||
548 | end | |
549 | ||
550 | function lasersound(pitch) | |
551 | local SlashSound = Instance.new("Sound") | |
552 | SlashSound.SoundId = "rbxasset://sounds/Launching rocket.wav" | |
553 | SlashSound.Parent = workspace | |
554 | SlashSound.Volume = .5 | |
555 | SlashSound.Pitch = pitch | |
556 | SlashSound.PlayOnRemove = true | |
557 | coroutine.resume(coroutine.create(function() | |
558 | wait(0) | |
559 | SlashSound.Parent = nil | |
560 | end)) | |
561 | end | |
562 | ||
563 | ||
564 | function AoE(p,magnitude) | |
565 | local c = game.Workspace:GetChildren(); | |
566 | for i = 1, #c do | |
567 | local hum = c[i]:findFirstChild("Humanoid") | |
568 | if hum ~= nil and hum.Health ~= 0 then | |
569 | local head = c[i]:findFirstChild("Head"); | |
570 | if head ~= nil then | |
571 | local mag = (head.Position - p).magnitude; | |
572 | if mag <= magnitude and c[i].Name ~= Character.Name then | |
573 | local foundd = false | |
574 | for ii = 1 , #AoETrue do | |
575 | if AoETrue[ii] == c[i].Name then | |
576 | ||
577 | foundd = true | |
578 | end | |
579 | end | |
580 | if foundd then | |
581 | ||
582 | end | |
583 | -- | |
584 | if not foundd then | |
585 | local critrandomizer = math.random(crtrate) | |
586 | if critrandomizer ~= 1 then | |
587 | local rndmdamage = math.random(mindamage,maxdamage) | |
588 | damage(hum,rndmdamage,false) | |
589 | elseif critrandomizer == 1 then | |
590 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
591 | damage(hum,rndmdamage,true) | |
592 | end | |
593 | table.insert(AoETrue,c[i].Name) | |
594 | end | |
595 | end | |
596 | end | |
597 | end | |
598 | end | |
599 | for ii = 1 , #AoETrue do | |
600 | table.remove(AoETrue,#AoETrue) | |
601 | end | |
602 | end | |
603 | ||
604 | -- | |
605 | ||
606 | ||
607 | -- | |
608 | ||
609 | function effect(Color,Ref,LP,P1) | |
610 | local effectsmsh = Instance.new("BlockMesh") | |
611 | effectsmsh.Scale = Vector3.new(1,1,1) | |
612 | effectsmsh.Name = "Mesh" | |
613 | local effectsg = Instance.new("Part") | |
614 | effectsg.formFactor = 3 | |
615 | effectsg.CanCollide = false | |
616 | effectsg.Name = "Eff" | |
617 | effectsg.Locked = true | |
618 | effectsg.Anchored = true | |
619 | effectsg.Size = Vector3.new(0.2,1,0.2) | |
620 | effectsg.Parent = bodyholder | |
621 | effectsmsh.Parent = effectsg | |
622 | effectsg.BrickColor = BrickColor.new(Color) | |
623 | effectsg.Reflectance = Ref | |
624 | local point1 = P1 | |
625 | local mg = (LP.p - point1.p).magnitude | |
626 | effectsg.Size = Vector3.new(0.2,mg,0.2) | |
627 | effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) | |
628 | coroutine.resume(coroutine.create(function() | |
629 | for i = 0 , 1 , 0.1 do | |
630 | wait() | |
631 | effectsg.Transparency = 1*i | |
632 | effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i) | |
633 | end | |
634 | wait() | |
635 | effectsg.Parent = nil | |
636 | end)) | |
637 | end | |
638 | -- | |
639 | ||
640 | ||
641 | con,con2,con3 = nil,nil,nil | |
642 | conn,conn2,conn3 = nil,nil,nil | |
643 | ||
644 | function dmg1cnnct() | |
645 | if con ~= nil then | |
646 | con:disconnect() | |
647 | Hitdeb = 0 | |
648 | end | |
649 | con = prt4.Touched:connect(OT) | |
650 | con2 = prt5.Touched:connect(OT) | |
651 | end | |
652 | ||
653 | function dmg1dc() | |
654 | if con ~= nil then | |
655 | con:disconnect() | |
656 | Hitdeb = 0 | |
657 | end | |
658 | if con2 ~= nil then | |
659 | con2:disconnect() | |
660 | Hitdeb = 0 | |
661 | end | |
662 | end | |
663 | ||
664 | function dmg2cnnct() | |
665 | if con ~= nil then | |
666 | con:disconnect() | |
667 | Hitdeb = 0 | |
668 | end | |
669 | conn = prt14.Touched:connect(OT2) | |
670 | conn2 = prt15.Touched:connect(OT2) | |
671 | conn3 = prt16.Touched:connect(OT2) | |
672 | end | |
673 | ||
674 | function dmg2dc() | |
675 | if conn ~= nil then | |
676 | conn:disconnect() | |
677 | Hitdeb2 = 0 | |
678 | end | |
679 | if conn2 ~= nil then | |
680 | conn2:disconnect() | |
681 | Hitdeb2 = 0 | |
682 | end | |
683 | if conn3 ~= nil then | |
684 | conn3:disconnect() | |
685 | Hitdeb2 = 0 | |
686 | end | |
687 | end | |
688 | ||
689 | function rptddmg(value,des,inc) | |
690 | coroutine.resume(coroutine.create(function() | |
691 | repeat | |
692 | wait(inc) | |
693 | Hitdeb = 0 | |
694 | until value == des | |
695 | end)) | |
696 | end | |
697 | ||
698 | function atktype(s,e) | |
699 | coroutine.resume(coroutine.create(function () | |
700 | attacktype = e | |
701 | wait(0.25) | |
702 | attacktype = s | |
703 | end)) | |
704 | end | |
705 | ||
706 | walking = false | |
707 | jumping = false | |
708 | Target = nil | |
709 | ||
710 | function Walk() | |
711 | if walking then return end | |
712 | end | |
713 | ||
714 | function Jump() | |
715 | if jumping then return end | |
716 | jumping = true | |
717 | local vel = Instance.new("BodyVelocity",Torso) | |
718 | vel.maxForce = Vector3.new(0,1,0) * math.huge | |
719 | vel.P = vel.P * 5 | |
720 | vel.velocity = Vector3.new(0,jump,0) | |
721 | coroutine.resume(coroutine.create(function() | |
722 | wait() wait() wait() wait() | |
723 | vel.Parent=nil | |
724 | end)) | |
725 | for i = 0.1 , 1 , 0.1 do | |
726 | wait() | |
727 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+200*i), 0, math.rad(0)) | |
728 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
729 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+200*i), 0, math.rad(0)) | |
730 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
731 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10*i), 0, math.rad(0)) | |
732 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
733 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-10*i), 0, math.rad(0)) | |
734 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
735 | end | |
736 | wait(1) | |
737 | for i = 0.1 , 1 , 0.1 do | |
738 | wait() | |
739 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(180-200*i), 0, math.rad(0)) | |
740 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
741 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(180-200*i), 0, math.rad(0)) | |
742 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
743 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10+10*i), 0, math.rad(0)) | |
744 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
745 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-10+10*i), 0, math.rad(0)) | |
746 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
747 | end | |
748 | jumping = false | |
749 | end | |
750 | ||
751 | function returnwelds() | |
752 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
753 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
754 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
755 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
756 | end | |
757 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
758 | return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
759 | end | |
760 | function Laser(Part,Dmg) | |
761 | sp = Part.Position | |
762 | dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(-1.57,0,0) | |
763 | local hit,pos = rayCast(sp,dirr.lookVector,500,Character) | |
764 | local las=Instance.new("Part",Character) | |
765 | las.Anchored=true | |
766 | las.Locked=true | |
767 | las.CanCollide=false | |
768 | las.TopSurface=0 | |
769 | las.BottomSurface=0 | |
770 | las.FormFactor = "Custom" | |
771 | las.BrickColor=BrickColor.new("Bright red") | |
772 | las.Size=Vector3.new(1,1,1) | |
773 | las.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0) | |
774 | local msh=Instance.new("SpecialMesh",las) | |
775 | mag = (Part.Position-pos).magnitude | |
776 | msh.Scale=Vector3.new(0.1,mag,0.1) | |
777 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
778 | for i = 0,1,0.1 do | |
779 | wait() | |
780 | Part.Transparency = Part.Transparency + 0.1 | |
781 | Mesh.Scale = Mesh.Scale + Vector3.new(0.15,0.7,0.15) | |
782 | end | |
783 | Part.Parent = nil | |
784 | end),las,msh) | |
785 | local las=Instance.new("Part",Character) | |
786 | las.Anchored=true | |
787 | las.Locked=true | |
788 | las.CanCollide=false | |
789 | las.TopSurface=0 | |
790 | las.BottomSurface=0 | |
791 | las.FormFactor = "Custom" | |
792 | las.BrickColor=BrickColor.new("Really black") | |
793 | las.Size=Vector3.new(1,1,1) | |
794 | las.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0) | |
795 | local msh=Instance.new("SpecialMesh",las) | |
796 | mag = (Part.Position-pos).magnitude | |
797 | msh.Scale=Vector3.new(0.1,mag,0.1) | |
798 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
799 | for i = 0,1,0.1 do | |
800 | wait() | |
801 | Part.Transparency = Part.Transparency + 0.1 | |
802 | Mesh.Scale = Mesh.Scale + Vector3.new(-0.05,0.7,-0.05) | |
803 | end | |
804 | Part.Parent = nil | |
805 | end),las,msh) | |
806 | if pos ~= nil then | |
807 | local las2=Instance.new("Part",Character) | |
808 | las2.Anchored=true | |
809 | las2.Locked=true | |
810 | las2.CanCollide=false | |
811 | las2.TopSurface=0 | |
812 | las2.BottomSurface=0 | |
813 | las2.FormFactor = "Custom" | |
814 | las2.BrickColor=BrickColor.new("Bright red") | |
815 | las2.Size=Vector3.new(1,1,1) | |
816 | --las2.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0) | |
817 | las2.CFrame=CFrame.new(pos) *CFrame.Angles(math.rad(90),0,0) | |
818 | local msh=Instance.new("BlockMesh",las2) | |
819 | mag = (Part.Position-pos).magnitude | |
820 | msh.Scale=Vector3.new(0.1,0.1,0.1) | |
821 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
822 | --wait(10) | |
823 | for i = 0,1,0.1 do | |
824 | wait() | |
825 | Part.Transparency = Part.Transparency + 0.1 | |
826 | Mesh.Scale = Mesh.Scale + Vector3.new(0.5,0,0.5) | |
827 | end | |
828 | Part.Parent = nil | |
829 | end),las2,msh) | |
830 | end | |
831 | if hit ~= nil and pos ~= nil then | |
832 | if hit.Parent.className == "Hat" then | |
833 | if(hit.Parent.Parent:findFirstChild("Humanoid")~= nil)then | |
834 | if hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Parent.Name ~= Character.Name then | |
835 | hit.Parent.Parent.Humanoid:TakeDamage(Dmg) | |
836 | end | |
837 | end | |
838 | end | |
839 | if(hit.Parent:findFirstChild("Humanoid")~= nil)then | |
840 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Character.Name then | |
841 | hit.Parent.Humanoid:TakeDamage(Dmg) | |
842 | end | |
843 | end | |
844 | --[[if hit.className == "Part" and hit.Parent:findFirstChild("Humanoid") == nil then | |
845 | hit.Parent.Humanoid:TakeDamage(Dmg) | |
846 | end]]-- | |
847 | end | |
848 | end | |
849 | function onehit() | |
850 | attack = true | |
851 | comboing = true | |
852 | for i = 0,1,0.1 do | |
853 | wait() | |
854 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
855 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
856 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
857 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i) | |
858 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
859 | w1.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
860 | w2.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
861 | w3.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
862 | w4.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
863 | w5.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
864 | w6.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
865 | w7.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
866 | w8.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
867 | end | |
868 | wait(0.1) | |
869 | gairo.Parent = Head | |
870 | gairo.cframe = Head.CFrame | |
871 | for i = 0,1,0.1 do | |
872 | wait() | |
873 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180)+1*i,0) | |
874 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57+0.5*i) | |
875 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
876 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
877 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
878 | --[[w1.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
879 | w2.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
880 | w3.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,1.57) ]] | |
881 | w4.C0 = CFrame.new(1.3*i,1.6+3-2*i,-1+0.2*i) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,2.355-0.785*i) | |
882 | w5.C0 = CFrame.new(-0.3*i,1.6+3-2*i,-1+0.2*i) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,3.14-1.57*i) | |
883 | --[[w6.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
884 | w7.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
885 | w8.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) ]] | |
886 | end | |
887 | wait(0.1) | |
888 | combo = 1 | |
889 | Laser(prt4,math.random(20,40)) | |
890 | Laser(prt5,math.random(20,40)) | |
891 | attack = false | |
892 | end | |
893 | function twohit() | |
894 | attack = true | |
895 | for i = 0,1,0.1 do | |
896 | wait() | |
897 | w4.C0 = CFrame.new(1.3-1.3*i,1.6+3-2+2*i,-1+0.2-0.2*i) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,2.355-0.785+0.785*i) | |
898 | w5.C0 = CFrame.new(-0.3+0.3*i,1.6+3-2+2*i,-1+0.2-0.2*i) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,3.14-1.57+1.57*i) | |
899 | w6.C0 = CFrame.new(0.3*i,1.6+3-2*i,-1+0.2*i) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,3.925+0.785*i) | |
900 | w7.C0 = CFrame.new(-1.3*i,1.6+3-2*i,-1+0.2*i) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,4.71) | |
901 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180)+1-2*i,0) | |
902 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57+0.5-0.5*i) | |
903 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
904 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-0.5*i) | |
905 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
906 | end | |
907 | wait(0.1) | |
908 | Laser(prt6,math.random(20,40)) | |
909 | Laser(prt7,math.random(20,40)) | |
910 | wait(0.1) | |
911 | attack = false | |
912 | combo = 2 | |
913 | end | |
914 | function threehit() | |
915 | attack = true | |
916 | for i = 0,1,0.1 do | |
917 | wait() | |
918 | w6.C0 = CFrame.new(0.3-0.3*i,1.6+3-2+2*i,-1+0.2-0.2*i) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,3.925+0.785-0.785*i) | |
919 | w7.C0 = CFrame.new(-1.3+1.3*i,1.6+3-2+2*i,-1+0.2-0.2*i) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,4.71) | |
920 | w8.C0 = CFrame.new(0,1.6+3,-1+2*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0.5*i,5.495-5.495*i) | |
921 | w1.C0 = CFrame.new(0,1.6+3,-1+2*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,6.28) | |
922 | w2.C0 = CFrame.new(0,1.6+3,-1+2*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,-0.5*i,0.785-0.785*i) | |
923 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180)+1-2+1*i,0) | |
924 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57+1.77*i) | |
925 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
926 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-0.5-1.27*i) | |
927 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
928 | end | |
929 | wait(0.1) | |
930 | Laser(prt8,math.random(20,40)) | |
931 | Laser(prt1,math.random(20,40)) | |
932 | Laser(prt2,math.random(20,40)) | |
933 | wait(0.1) | |
934 | attack = false | |
935 | combo = 3 | |
936 | end | |
937 | function fourhit() | |
938 | attack = true | |
939 | for i = 0,1,0.1 do | |
940 | wait() | |
941 | w8.C0 = CFrame.new(0,1.6+3,-1+2-2*i) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0.5*i,5.495-5.495+5.495*i) | |
942 | w1.C0 = CFrame.new(0,1.6+3,-1+2-2*i) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,6.28) | |
943 | w2.C0 = CFrame.new(0,1.6+3,-1+2-2*i) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,-0.5*i,0.785-0.785+0.785*i) | |
944 | w3.C0 = CFrame.new(0,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(0,0,1.57+0.5*i) | |
945 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180)+math.rad(90)*i,0) | |
946 | LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57,0,0.2-1.77*i) | |
947 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0) | |
948 | RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,1.57-0.5-1.27+1*i) | |
949 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
950 | end | |
951 | wait(0.1) | |
952 | for i = 0,1,0.1 do | |
953 | wait() | |
954 | w3.C0 = CFrame.new(0,1.6+3,-1+1) * CFrame.fromEulerAnglesXYZ(0,0,1.57+0.5-0.8*i) | |
955 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(270),0) | |
956 | LW.C0 = CFrame.new(-1.5+0.5-0.5,0.5,-0.5+0.5) * CFrame.fromEulerAnglesXYZ(1.57,0,0.2-1.77) | |
957 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+1*i,0,0) | |
958 | RW.C0 = CFrame.new(1.5-0.5+0.5,0.5,-0.5+0.5) * CFrame.fromEulerAnglesXYZ(1.57-1.57,0,1.57-0.5-1.27+1) | |
959 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
960 | Laser(prt3,math.random(5,15)) | |
961 | end | |
962 | wait(0.1) | |
963 | attack = false | |
964 | combo = 0 | |
965 | end | |
966 | function LaserWave() | |
967 | attack = true | |
968 | for i = 0,1,0.1 do | |
969 | wait() | |
970 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
971 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
972 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
973 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i) | |
974 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
975 | w1.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
976 | w2.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
977 | w3.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
978 | w4.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
979 | w5.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
980 | w6.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
981 | w7.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
982 | w8.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
983 | end | |
984 | wait(0.1) | |
985 | for i = 0,1,0.1 do | |
986 | wait() | |
987 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57+1.77*i) | |
988 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
989 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-1.77*i) | |
990 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
991 | w1.C0 = CFrame.new(0.5*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,6.28) | |
992 | w3.C0 = CFrame.new(0,1.6+3,-1+4*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,1.57) | |
993 | w5.C0 = CFrame.new(0.5*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,3.14) | |
994 | w7.C0 = CFrame.new(0,1.6+3,-1+4*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,4.71) | |
995 | end | |
996 | Laser(prt1,math.random(10,20)) | |
997 | Laser(prt3,math.random(10,20)) | |
998 | Laser(prt5,math.random(10,20)) | |
999 | Laser(prt7,math.random(10,20)) | |
1000 | wait(0.1) | |
1001 | for i = 0,1,0.1 do | |
1002 | wait() | |
1003 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57+1.77-1.77*i) | |
1004 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1005 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-1.77+1.77*i) | |
1006 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1007 | w1.C0 = CFrame.new(0.5-0.5*i,1.6+3,-1+1+1*i) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,6.28) | |
1008 | w3.C0 = CFrame.new(0,1.6+3,-1+4-4*i) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,1.57) | |
1009 | w5.C0 = CFrame.new(0.5-0.5*i,1.6+3,-1+1-1*i) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,3.14) | |
1010 | w7.C0 = CFrame.new(0,1.6+3,-1+4-4*i) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,4.71) | |
1011 | end | |
1012 | for i = 0,1,0.1 do | |
1013 | wait() | |
1014 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57+1.77*i) | |
1015 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1016 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-1.77*i) | |
1017 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1018 | w2.C0 = CFrame.new(0,1.6+3,-1+2*i) * CFrame.fromEulerAnglesXYZ(-1.97*i,0,0.785-0.785*i) | |
1019 | w4.C0 = CFrame.new(0,1.6+3,-1+1.5*i) * CFrame.fromEulerAnglesXYZ(-1.77*i,0,2.355-2.355*i) | |
1020 | w6.C0 = CFrame.new(0,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,3.925-3.925*i) | |
1021 | w8.C0 = CFrame.new(0,1.6+3,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(-1.37*i,0,5.495-5.495*i) | |
1022 | end | |
1023 | Laser(prt2,math.random(10,20)) | |
1024 | Laser(prt4,math.random(10,20)) | |
1025 | Laser(prt6,math.random(10,20)) | |
1026 | Laser(prt8,math.random(10,20)) | |
1027 | wait(0.1) | |
1028 | for i = 0,1,0.1 do | |
1029 | wait() | |
1030 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57+1.77-1.77*i) | |
1031 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1032 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-1.77+1.77*i) | |
1033 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1034 | w2.C0 = CFrame.new(0,1.6+3,-1+2-2*i) * CFrame.fromEulerAnglesXYZ(-1.97+1.97*i,0,-0.785*i) | |
1035 | w4.C0 = CFrame.new(0,1.6+3,-1+1.5-1.5*i) * CFrame.fromEulerAnglesXYZ(-1.77+1.77*i,0,-2.355*i) | |
1036 | w6.C0 = CFrame.new(0,1.6+3,-1+1-1*i) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,-3.925*i) | |
1037 | w8.C0 = CFrame.new(0,1.6+3,-1+0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(-1.37+1.37*i,0,-5.495*i) | |
1038 | end | |
1039 | wait(0.1) | |
1040 | attack = false | |
1041 | end | |
1042 | function OverBlast() | |
1043 | attack = true | |
1044 | for i = 0,1,0.1 do | |
1045 | wait() | |
1046 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1047 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
1048 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1049 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i) | |
1050 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1051 | w1.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
1052 | w2.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
1053 | w3.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
1054 | w4.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
1055 | w5.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
1056 | w6.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
1057 | w7.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
1058 | w8.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
1059 | end | |
1060 | for i = 0,1.05,0.05 do | |
1061 | wait() | |
1062 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1063 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57+1.77*i) | |
1064 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1065 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-1.77*i) | |
1066 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1067 | w1.C0 = CFrame.new(-1.5*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0.5*i,6.28) | |
1068 | w2.C0 = CFrame.new(-1*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0.3*i,0.785+5.495*i) | |
1069 | w3.C0 = CFrame.new(1*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,-0.3*i,1.57+4.71*i) | |
1070 | w4.C0 = CFrame.new(1.5*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,-0.5*i,2.355+3.925*i) | |
1071 | w5.C0 = CFrame.new(-1.1*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0.1*i,3.14-3.14*i) | |
1072 | w6.C0 = CFrame.new(-0.6*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,3.925-3.925*i) | |
1073 | w7.C0 = CFrame.new(0.6*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,-0,4.71-4.71*i) | |
1074 | w8.C0 = CFrame.new(1.1*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(-1.57*i,-0.1*i,5.495-5.495*i) | |
1075 | end | |
1076 | Laser(prt1,math.random(5,15)) | |
1077 | Laser(prt2,math.random(5,15)) | |
1078 | Laser(prt3,math.random(5,15)) | |
1079 | Laser(prt4,math.random(5,15)) | |
1080 | Laser(prt5,math.random(5,15)) | |
1081 | Laser(prt6,math.random(5,15)) | |
1082 | Laser(prt7,math.random(5,15)) | |
1083 | Laser(prt8,math.random(5,15)) | |
1084 | wait(0.2) | |
1085 | for i = 0,1.05,0.05 do | |
1086 | wait() | |
1087 | w1.C0 = CFrame.new(-1.5,1.6+3,-1*i) * CFrame.fromEulerAnglesXYZ(-1.57,0.5-0.5*i,6.28) | |
1088 | w2.C0 = CFrame.new(-1+0.5*i,1.6+3,-1*i) * CFrame.fromEulerAnglesXYZ(-1.57,0.3-0.3*i,0.785+5.495) | |
1089 | w3.C0 = CFrame.new(1-0.5*i,1.6+3,-1*i) * CFrame.fromEulerAnglesXYZ(-1.57,-0.3+0.3*i,1.57+4.71) | |
1090 | w4.C0 = CFrame.new(1.5,1.6+3,-1*i) * CFrame.fromEulerAnglesXYZ(-1.57,-0.5+0.5*i,2.355+3.925) | |
1091 | w5.C0 = CFrame.new(-1.1-0.4*i,1.6+3,1*i) * CFrame.fromEulerAnglesXYZ(-1.57,0.1-0.1*i,3.14-3.14) | |
1092 | w6.C0 = CFrame.new(-0.6+0.1*i,1.6+3,1*i) * CFrame.fromEulerAnglesXYZ(-1.57,0,3.925-3.925) | |
1093 | w7.C0 = CFrame.new(0.6-0.1*i,1.6+3,1*i) * CFrame.fromEulerAnglesXYZ(-1.57,0,4.71-4.71) | |
1094 | w8.C0 = CFrame.new(1.1+0.4*i,1.6+3,1*i) * CFrame.fromEulerAnglesXYZ(-1.57,-0.1+0.1*i,5.495-5.495) | |
1095 | end | |
1096 | Laser(prt1,math.random(5,15)) | |
1097 | Laser(prt2,math.random(5,15)) | |
1098 | Laser(prt3,math.random(5,15)) | |
1099 | Laser(prt4,math.random(5,15)) | |
1100 | Laser(prt5,math.random(5,15)) | |
1101 | Laser(prt6,math.random(5,15)) | |
1102 | Laser(prt7,math.random(5,15)) | |
1103 | Laser(prt8,math.random(5,15)) | |
1104 | wait(0.5) | |
1105 | attack = false | |
1106 | end | |
1107 | function SpinBeam() | |
1108 | attack = true | |
1109 | for i = 0,1,0.1 do | |
1110 | wait() | |
1111 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1112 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
1113 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1114 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i) | |
1115 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1116 | w1.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
1117 | w2.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
1118 | w3.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
1119 | w4.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
1120 | w5.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
1121 | w6.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
1122 | w7.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
1123 | w8.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
1124 | end | |
1125 | for i = 0,1,0.1 do | |
1126 | wait() | |
1127 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1128 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57) | |
1129 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1130 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
1131 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1132 | w1.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
1133 | w2.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
1134 | w3.C0 = CFrame.new(0.5*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
1135 | w4.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
1136 | w5.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
1137 | w6.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
1138 | w7.C0 = CFrame.new(-0.5*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
1139 | w8.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
1140 | end | |
1141 | gairo.Parent = Head | |
1142 | gairo.cframe = Head.CFrame | |
1143 | CF = Torso.CFrame | |
1144 | for i = 0,1,0.1 do | |
1145 | wait(0.1) | |
1146 | gairo.cframe = CF * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) | |
1147 | Laser(prt3,math.random(10,20)) | |
1148 | Laser(prt7,math.random(10,20)) | |
1149 | end | |
1150 | wait(0.2) | |
1151 | gairo.Parent = nil | |
1152 | attack = false | |
1153 | end | |
1154 | function LaserBarrage() | |
1155 | attack = true | |
1156 | for i = 0,1,0.1 do | |
1157 | wait() | |
1158 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1159 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
1160 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1161 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i) | |
1162 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1163 | w1.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
1164 | w2.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
1165 | w3.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
1166 | w4.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
1167 | w5.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
1168 | w6.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
1169 | w7.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
1170 | w8.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
1171 | end | |
1172 | for i = 0,1,0.2 do | |
1173 | wait() | |
1174 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1175 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.5*i,0,-1.57+1.77*i) | |
1176 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1177 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.5*i,0,1.57-1.77*i) | |
1178 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1179 | w1.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,6.28) | |
1180 | end | |
1181 | Laser(prt1,math.random(10,20)) | |
1182 | for i = 0,1,0.2 do | |
1183 | wait() | |
1184 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1185 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.5+0.5*i,0,-1.57+1.77-1.77*i) | |
1186 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1187 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.5+0.5*i,0,1.57-1.77-1.77*i) | |
1188 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1189 | w1.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,6.28) | |
1190 | end | |
1191 | for i = 0,1,0.2 do | |
1192 | wait() | |
1193 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1194 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.5*i,0,-1.57+1.77*i) | |
1195 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1196 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
1197 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1198 | w2.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,0.785) | |
1199 | end | |
1200 | Laser(prt2,math.random(10,20)) | |
1201 | for i = 0,1,0.2 do | |
1202 | wait() | |
1203 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1204 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.5+0.5*i,0,-1.57+1.77-1.77*i) | |
1205 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1206 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
1207 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1208 | w2.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,0.785) | |
1209 | end | |
1210 | for i = 0,1,0.2 do | |
1211 | wait() | |
1212 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1213 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.3*i,0,-1.57+1.77*i) | |
1214 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1215 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
1216 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1217 | w3.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,1.57) | |
1218 | end | |
1219 | Laser(prt3,math.random(10,20)) | |
1220 | for i = 0,1,0.2 do | |
1221 | wait() | |
1222 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1223 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.3+0.3*i,0,-1.57+1.77-1.77*i) | |
1224 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1225 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
1226 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1227 | w3.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,1.57) | |
1228 | end | |
1229 | for i = 0,1,0.2 do | |
1230 | wait() | |
1231 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1232 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.3*i,0,-1.57+1.77*i) | |
1233 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1234 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
1235 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1236 | w4.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,2.355) | |
1237 | end | |
1238 | Laser(prt4,math.random(10,20)) | |
1239 | for i = 0,1,0.2 do | |
1240 | wait() | |
1241 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1242 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,0,-1.57+1.77-1.77*i) | |
1243 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1244 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
1245 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1246 | w4.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,2.355) | |
1247 | end | |
1248 | for i = 0,1,0.2 do | |
1249 | wait() | |
1250 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1251 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.5*i,0,-1.57+1.77*i) | |
1252 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1253 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.5*i,0,1.57-1.77*i) | |
1254 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1255 | w5.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,3.14) | |
1256 | end | |
1257 | Laser(prt5,math.random(10,20)) | |
1258 | for i = 0,1,0.2 do | |
1259 | wait() | |
1260 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1261 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.5-0.5*i,0,-1.57+1.77-1.77*i) | |
1262 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1263 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.5-0.5*i,0,1.57-1.77+1.77*i) | |
1264 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1265 | w5.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,3.14) | |
1266 | end | |
1267 | for i = 0,1,0.2 do | |
1268 | wait() | |
1269 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1270 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57) | |
1271 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1272 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.5*i,0,1.57-1.77*i) | |
1273 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1274 | w6.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,3.925) | |
1275 | end | |
1276 | Laser(prt6,math.random(10,20)) | |
1277 | for i = 0,1,0.2 do | |
1278 | wait() | |
1279 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1280 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57) | |
1281 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1282 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.5-0.5*i,0,1.57-1.77+1.77*i) | |
1283 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1284 | w6.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,3.925) | |
1285 | end | |
1286 | for i = 0,1,0.2 do | |
1287 | wait() | |
1288 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1289 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57) | |
1290 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1291 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.3*i,0,1.57-1.77*i) | |
1292 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1293 | w7.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,4.71) | |
1294 | end | |
1295 | Laser(prt7,math.random(10,20)) | |
1296 | for i = 0,1,0.2 do | |
1297 | wait() | |
1298 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1299 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57) | |
1300 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1301 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,0,1.57-1.77+1.77*i) | |
1302 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1303 | w7.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,4.71) | |
1304 | end | |
1305 | for i = 0,1,0.2 do | |
1306 | wait() | |
1307 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1308 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57) | |
1309 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1310 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.3*i,0,1.57-1.77*i) | |
1311 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1312 | w8.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57*i,0,5.495) | |
1313 | end | |
1314 | Laser(prt8,math.random(10,20)) | |
1315 | for i = 0,1,0.2 do | |
1316 | wait() | |
1317 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1318 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57) | |
1319 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1320 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,0,1.57-1.77+1.77*i) | |
1321 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1322 | w8.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,5.495) | |
1323 | end | |
1324 | wait(0.5) | |
1325 | attack = false | |
1326 | end | |
1327 | function CloseRangedFire() | |
1328 | attack = true | |
1329 | for i = 0,1,0.1 do | |
1330 | wait() | |
1331 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1332 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
1333 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1334 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i) | |
1335 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1336 | w1.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
1337 | w2.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
1338 | w3.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
1339 | w4.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
1340 | w5.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
1341 | w6.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
1342 | w7.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
1343 | w8.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
1344 | end | |
1345 | for i = 0,1,0.1 do | |
1346 | wait() | |
1347 | w1.C0 = CFrame.new(0,1.6+3-13*i,-1) * CFrame.fromEulerAnglesXYZ(-3*i,0,6.28) | |
1348 | w2.C0 = CFrame.new(0,1.6+3-13*i,-1) * CFrame.fromEulerAnglesXYZ(-3*i,0,0.785) | |
1349 | w3.C0 = CFrame.new(0,1.6+3-13*i,-1) * CFrame.fromEulerAnglesXYZ(-3*i,0,1.57) | |
1350 | w4.C0 = CFrame.new(0,1.6+3-13*i,-1) * CFrame.fromEulerAnglesXYZ(-3*i,0,2.355) | |
1351 | w5.C0 = CFrame.new(0,1.6+3-13*i,-1) * CFrame.fromEulerAnglesXYZ(-3*i,0,3.14) | |
1352 | w6.C0 = CFrame.new(0,1.6+3-13*i,-1) * CFrame.fromEulerAnglesXYZ(-3*i,0,3.925) | |
1353 | w7.C0 = CFrame.new(0,1.6+3-13*i,-1) * CFrame.fromEulerAnglesXYZ(-3*i,0,4.71) | |
1354 | w8.C0 = CFrame.new(0,1.6+3-13*i,-1) * CFrame.fromEulerAnglesXYZ(-3*i,0,5.495) | |
1355 | end | |
1356 | Laser(prt1,math.random(5,10)) | |
1357 | Laser(prt2,math.random(5,10)) | |
1358 | Laser(prt3,math.random(5,10)) | |
1359 | Laser(prt4,math.random(5,10)) | |
1360 | Laser(prt5,math.random(5,10)) | |
1361 | Laser(prt6,math.random(5,10)) | |
1362 | Laser(prt7,math.random(5,10)) | |
1363 | Laser(prt8,math.random(5,10)) | |
1364 | wait(1) | |
1365 | attack = false | |
1366 | end | |
1367 | function SpinLaser() | |
1368 | attack = true | |
1369 | for i = 0,1,0.1 do | |
1370 | wait() | |
1371 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1372 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
1373 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1374 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i) | |
1375 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1376 | w1.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
1377 | w2.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
1378 | w3.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
1379 | w4.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
1380 | w5.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
1381 | w6.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
1382 | w7.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
1383 | w8.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
1384 | end | |
1385 | for i = 0,1,0.1 do | |
1386 | wait() | |
1387 | w1.C0 = CFrame.new(0,1.6+3-2*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,0,6.28-6.28*i) | |
1388 | w2.C0 = CFrame.new(0,1.6+3-2*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,0.785*i,0.785-0.785*i) | |
1389 | w3.C0 = CFrame.new(0,1.6+3-2*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,1.57*i,1.57-1.57*i) | |
1390 | w4.C0 = CFrame.new(0,1.6+3-2*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,2.355*i,2.355-2.355*i) | |
1391 | w5.C0 = CFrame.new(0,1.6+3-2*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,3.14*i,3.14-3.14*i) | |
1392 | w6.C0 = CFrame.new(0,1.6+3-2*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,3.925*i,3.925-3.925*i) | |
1393 | w7.C0 = CFrame.new(0,1.6+3-2*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,4.71*i,4.71-4.71*i) | |
1394 | w8.C0 = CFrame.new(0,1.6+3-2*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,5.495*i,5.495-5.495*i) | |
1395 | end | |
1396 | Laser(prt1,math.random(10,20)) | |
1397 | Laser(prt2,math.random(10,20)) | |
1398 | Laser(prt3,math.random(10,20)) | |
1399 | Laser(prt4,math.random(10,20)) | |
1400 | Laser(prt5,math.random(10,20)) | |
1401 | Laser(prt6,math.random(10,20)) | |
1402 | Laser(prt7,math.random(10,20)) | |
1403 | Laser(prt8,math.random(10,20)) | |
1404 | for i = 0,1,0.1 do | |
1405 | wait() | |
1406 | w1.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,0+0.5*i,6.28-6.28) | |
1407 | w2.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,0.785+0.5*i,0.785-0.785) | |
1408 | w3.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,1.57+0.5*i,1.57-1.57) | |
1409 | w4.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,2.355+0.5*i,2.355-2.355) | |
1410 | w5.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5*i,3.14-3.14) | |
1411 | w6.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,3.925+0.5*i,3.925-3.925) | |
1412 | w7.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,4.71+0.5*i,4.71-4.71) | |
1413 | w8.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,5.495+0.5*i,5.495-5.495) | |
1414 | end | |
1415 | Laser(prt1,math.random(10,20)) | |
1416 | Laser(prt2,math.random(10,20)) | |
1417 | Laser(prt3,math.random(10,20)) | |
1418 | Laser(prt4,math.random(10,20)) | |
1419 | Laser(prt5,math.random(10,20)) | |
1420 | Laser(prt6,math.random(10,20)) | |
1421 | Laser(prt7,math.random(10,20)) | |
1422 | Laser(prt8,math.random(10,20)) | |
1423 | for i = 0,1,0.1 do | |
1424 | wait() | |
1425 | w1.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,0+0.5+0.5*i,6.28-6.28) | |
1426 | w2.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,0.785+0.5+0.5*i,0.785-0.785) | |
1427 | w3.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,1.57+0.5+0.5*i,1.57-1.57) | |
1428 | w4.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,2.355+0.5+0.5*i,2.355-2.355) | |
1429 | w5.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5+0.5*i,3.14-3.14) | |
1430 | w6.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,3.925+0.5+0.5*i,3.925-3.925) | |
1431 | w7.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,4.71+0.5+0.5*i,4.71-4.71) | |
1432 | w8.C0 = CFrame.new(0,1.6+3-2,-1) * CFrame.fromEulerAnglesXYZ(1.57,5.495+0.5+0.5*i,5.495-5.495) | |
1433 | end | |
1434 | Laser(prt1,math.random(10,20)) | |
1435 | Laser(prt2,math.random(10,20)) | |
1436 | Laser(prt3,math.random(10,20)) | |
1437 | Laser(prt4,math.random(10,20)) | |
1438 | Laser(prt5,math.random(10,20)) | |
1439 | Laser(prt6,math.random(10,20)) | |
1440 | Laser(prt7,math.random(10,20)) | |
1441 | Laser(prt8,math.random(10,20)) | |
1442 | wait(1) | |
1443 | attack = false | |
1444 | end | |
1445 | function Implosion() | |
1446 | attack = true | |
1447 | for i = 0,1,0.1 do | |
1448 | wait() | |
1449 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1450 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
1451 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1452 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i) | |
1453 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1454 | w1.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
1455 | w2.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
1456 | w3.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
1457 | w4.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
1458 | w5.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
1459 | w6.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
1460 | w7.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
1461 | w8.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
1462 | end | |
1463 | for i = 0,1,0.1 do | |
1464 | wait() | |
1465 | w1.C0 = CFrame.new(0,1.6+3-10*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,0,6.28-6.28*i) | |
1466 | w2.C0 = CFrame.new(0,1.6+3-10*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,0.785*i,0.785-0.785*i) | |
1467 | w3.C0 = CFrame.new(0,1.6+3-10*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,1.57*i,1.57-1.57*i) | |
1468 | w4.C0 = CFrame.new(0,1.6+3-10*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,2.355*i,2.355-2.355*i) | |
1469 | w5.C0 = CFrame.new(0,1.6+3-10*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,3.14*i,3.14-3.14*i) | |
1470 | w6.C0 = CFrame.new(0,1.6+3-10*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,3.925*i,3.925-3.925*i) | |
1471 | w7.C0 = CFrame.new(0,1.6+3-10*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,4.71*i,4.71-4.71*i) | |
1472 | w8.C0 = CFrame.new(0,1.6+3-10*i,-1) * CFrame.fromEulerAnglesXYZ(1.57*i,5.495*i,5.495-5.495*i) | |
1473 | end | |
1474 | Laser(prt1,math.random(5,10)) | |
1475 | Laser(prt2,math.random(5,10)) | |
1476 | Laser(prt3,math.random(5,10)) | |
1477 | Laser(prt4,math.random(5,10)) | |
1478 | Laser(prt5,math.random(5,10)) | |
1479 | Laser(prt6,math.random(5,10)) | |
1480 | Laser(prt7,math.random(5,10)) | |
1481 | Laser(prt8,math.random(5,10)) | |
1482 | for i = 0,1,0.1 do | |
1483 | wait() | |
1484 | w1.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57,0+0.5*i,6.28-6.28) | |
1485 | w2.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57,0.785+0.5*i,0.785-0.785) | |
1486 | w3.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57,1.57+0.5*i,1.57-1.57) | |
1487 | w4.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57,2.355+0.5*i,2.355-2.355) | |
1488 | w5.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57,3.14+0.5*i,3.14-3.14) | |
1489 | w6.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57,3.925+0.5*i,3.925-3.925) | |
1490 | w7.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57,4.71+0.5*i,4.71-4.71) | |
1491 | w8.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57,5.495+0.5*i,5.495-5.495) | |
1492 | end | |
1493 | Laser(prt1,math.random(5,10)) | |
1494 | Laser(prt2,math.random(5,10)) | |
1495 | Laser(prt3,math.random(5,10)) | |
1496 | Laser(prt4,math.random(5,10)) | |
1497 | Laser(prt5,math.random(5,10)) | |
1498 | Laser(prt6,math.random(5,10)) | |
1499 | Laser(prt7,math.random(5,10)) | |
1500 | Laser(prt8,math.random(5,10)) | |
1501 | for i = 0,1,0.1 do | |
1502 | wait() | |
1503 | w1.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57-1*i,0+0.5,6.28-6.28) | |
1504 | w2.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57-1*i,0.785+0.5,0.785-0.785) | |
1505 | w3.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57-1*i,1.57+0.5,1.57-1.57) | |
1506 | w4.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57-1*i,2.355+0.5,2.355-2.355) | |
1507 | w5.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57-1*i,3.14+0.5,3.14-3.14) | |
1508 | w6.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57-1*i,3.925+0.5,3.925-3.925) | |
1509 | w7.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57-1*i,4.71+0.5,4.71-4.71) | |
1510 | w8.C0 = CFrame.new(0,1.6+3-10,-1) * CFrame.fromEulerAnglesXYZ(1.57-1*i,5.495+0.5,5.495-5.495) | |
1511 | end | |
1512 | Laser(prt1,math.random(5,10)) | |
1513 | Laser(prt2,math.random(5,10)) | |
1514 | Laser(prt3,math.random(5,10)) | |
1515 | Laser(prt4,math.random(5,10)) | |
1516 | Laser(prt5,math.random(5,10)) | |
1517 | Laser(prt6,math.random(5,10)) | |
1518 | Laser(prt7,math.random(5,10)) | |
1519 | Laser(prt8,math.random(5,10)) | |
1520 | wait(1) | |
1521 | attack = false | |
1522 | end | |
1523 | function LaserPillars() | |
1524 | attack = true | |
1525 | for i = 0,1,0.1 do | |
1526 | wait() | |
1527 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1528 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
1529 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1530 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i) | |
1531 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1532 | w1.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
1533 | w2.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
1534 | w3.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
1535 | w4.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
1536 | w5.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
1537 | w6.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
1538 | w7.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
1539 | w8.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
1540 | end | |
1541 | for i = 0,1,0.1 do | |
1542 | wait() | |
1543 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1544 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57) | |
1545 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1546 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
1547 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1548 | w1.C0 = CFrame.new(0,1.6+3-15*i,-1-3*i) * CFrame.fromEulerAnglesXYZ(0,0,6.28-6.28*i) | |
1549 | w2.C0 = CFrame.new(0,1.6+3-15*i,-1-3*i) * CFrame.fromEulerAnglesXYZ(0,0.785*i,0.785-0.785*i) | |
1550 | w3.C0 = CFrame.new(0,1.6+3-15*i,-1-3*i) * CFrame.fromEulerAnglesXYZ(0,1.57*i,1.57-1.57*i) | |
1551 | w4.C0 = CFrame.new(0,1.6+3-15*i,-1-3*i) * CFrame.fromEulerAnglesXYZ(0,2.355*i,2.355-2.355*i) | |
1552 | w5.C0 = CFrame.new(0,1.6+3-15*i,-1-3*i) * CFrame.fromEulerAnglesXYZ(0,3.14*i,3.14-3.14*i) | |
1553 | w6.C0 = CFrame.new(0,1.6+3-15*i,-1-3*i) * CFrame.fromEulerAnglesXYZ(0,3.925*i,3.925-3.925*i) | |
1554 | w7.C0 = CFrame.new(0,1.6+3-15*i,-1-3*i) * CFrame.fromEulerAnglesXYZ(0,4.71*i,4.71-4.71*i) | |
1555 | w8.C0 = CFrame.new(0,1.6+3-15*i,-1-3*i) * CFrame.fromEulerAnglesXYZ(0,5.495*i,5.495-5.495*i) | |
1556 | end | |
1557 | Laser(prt1,math.random(20,40)) | |
1558 | Laser(prt2,math.random(20,40)) | |
1559 | Laser(prt3,math.random(20,40)) | |
1560 | Laser(prt4,math.random(20,40)) | |
1561 | Laser(prt5,math.random(20,40)) | |
1562 | Laser(prt6,math.random(20,40)) | |
1563 | Laser(prt7,math.random(20,40)) | |
1564 | Laser(prt8,math.random(20,40)) | |
1565 | hur = 0 | |
1566 | for i = 0,1,0.1 do | |
1567 | wait(0.1) | |
1568 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1569 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57) | |
1570 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1571 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
1572 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1573 | w1.C0 = CFrame.new(0,1.6+3-15,-1-3-20*i) * CFrame.fromEulerAnglesXYZ(0,0+2.5*i,6.28-6.28) | |
1574 | w2.C0 = CFrame.new(0,1.6+3-15,-1-3-20*i) * CFrame.fromEulerAnglesXYZ(0,0.785+2.5*i,0.785-0.785) | |
1575 | w3.C0 = CFrame.new(0,1.6+3-15,-1-3-20*i) * CFrame.fromEulerAnglesXYZ(0,1.57+2.5*i,1.57-1.57) | |
1576 | w4.C0 = CFrame.new(0,1.6+3-15,-1-3-20*i) * CFrame.fromEulerAnglesXYZ(0,2.355+2.5*i,2.355-2.355) | |
1577 | w5.C0 = CFrame.new(0,1.6+3-15,-1-3-20*i) * CFrame.fromEulerAnglesXYZ(0,3.14+2.5*i,3.14-3.14) | |
1578 | w6.C0 = CFrame.new(0,1.6+3-15,-1-3-20*i) * CFrame.fromEulerAnglesXYZ(0,3.925+2.5*i,3.925-3.925) | |
1579 | w7.C0 = CFrame.new(0,1.6+3-15,-1-3-20*i) * CFrame.fromEulerAnglesXYZ(0,4.71+2.5*i,4.71-4.71) | |
1580 | w8.C0 = CFrame.new(0,1.6+3-15,-1-3-20*i) * CFrame.fromEulerAnglesXYZ(0,5.495+2.5*i,5.495-5.495) | |
1581 | if hur == 1 then | |
1582 | Laser(prt1,math.random(20,40)) | |
1583 | Laser(prt2,math.random(20,40)) | |
1584 | Laser(prt3,math.random(20,40)) | |
1585 | Laser(prt4,math.random(20,40)) | |
1586 | Laser(prt5,math.random(20,40)) | |
1587 | Laser(prt6,math.random(20,40)) | |
1588 | Laser(prt7,math.random(20,40)) | |
1589 | Laser(prt8,math.random(20,40)) | |
1590 | hur = 0 | |
1591 | end | |
1592 | hur = hur + 1 | |
1593 | end | |
1594 | wait(1) | |
1595 | attack = false | |
1596 | end | |
1597 | function DodgeTheLaser() | |
1598 | attack = true | |
1599 | for i = 0,1,0.1 do | |
1600 | wait() | |
1601 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1602 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i) | |
1603 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1604 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i) | |
1605 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1606 | w1.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
1607 | w2.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
1608 | w3.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
1609 | w4.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
1610 | w5.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
1611 | w6.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
1612 | w7.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
1613 | w8.C0 = CFrame.new(0,1.6+3*i,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
1614 | end | |
1615 | for i = 0,1,0.1 do | |
1616 | wait() | |
1617 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1618 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57) | |
1619 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1620 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57) | |
1621 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1622 | w1.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,6.28) | |
1623 | w2.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,0.785) | |
1624 | w3.C0 = CFrame.new(0.5*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(0,0,1.57) | |
1625 | w4.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,2.355) | |
1626 | w5.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.14) | |
1627 | w6.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,3.925) | |
1628 | w7.C0 = CFrame.new(-0.5*i,1.6+3,-1+1*i) * CFrame.fromEulerAnglesXYZ(0,0,4.71) | |
1629 | w8.C0 = CFrame.new(0,1.6+3,-1) * CFrame.fromEulerAnglesXYZ(0,0,5.495) | |
1630 | end | |
1631 | game:GetService("Chat"):Chat(Head,"DODGE THIS!",2) | |
1632 | gairo.Parent = Head | |
1633 | gairo.cframe = Head.CFrame | |
1634 | CF = Torso.CFrame | |
1635 | for i = 0,1,0.01 do | |
1636 | wait(0.1) | |
1637 | gairo.cframe = CF * CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) | |
1638 | Laser(prt3,math.random(10,20)) | |
1639 | Laser(prt7,math.random(10,20)) | |
1640 | end | |
1641 | wait() | |
1642 | gairo.Parent = nil | |
1643 | attack = false | |
1644 | end | |
1645 | function Attackk(mag) | |
1646 | if attack then return end | |
1647 | if mag <= 100 then | |
1648 | local rndm = math.random(1,10) | |
1649 | if rndm == 1 then | |
1650 | coroutine.resume(coroutine.create(function() | |
1651 | if combo == 0 and comboing == false then | |
1652 | onehit() | |
1653 | elseif combo == 1 then | |
1654 | twohit() | |
1655 | elseif combo == 2 then | |
1656 | threehit() | |
1657 | elseif combo == 3 then | |
1658 | fourhit() | |
1659 | gairo.Parent = nil | |
1660 | Neck.C0=necko*CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0) | |
1661 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1662 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1663 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1664 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1665 | wait(1) | |
1666 | comboing = false | |
1667 | end | |
1668 | end)) | |
1669 | elseif rndm == 2 and combo == 0 and timer >= 40 then | |
1670 | coroutine.resume(coroutine.create(function() | |
1671 | LaserWave() | |
1672 | end)) | |
1673 | elseif rndm == 3 and combo == 0 and timer >= 60 then | |
1674 | coroutine.resume(coroutine.create(function() | |
1675 | OverBlast() | |
1676 | end)) | |
1677 | elseif rndm == 4 and combo == 0 and timer >= 90 then | |
1678 | coroutine.resume(coroutine.create(function() | |
1679 | SpinBeam() | |
1680 | end)) | |
1681 | elseif rndm == 5 and combo == 0 and timer >= 135 then | |
1682 | coroutine.resume(coroutine.create(function() | |
1683 | LaserBarrage() | |
1684 | end)) | |
1685 | elseif rndm == 6 and combo == 0 and timer >= 202 then | |
1686 | coroutine.resume(coroutine.create(function() | |
1687 | CloseRangedFire() | |
1688 | end)) | |
1689 | elseif rndm == 7 and combo == 0 and timer >= 303 then | |
1690 | coroutine.resume(coroutine.create(function() | |
1691 | SpinLaser() | |
1692 | end)) | |
1693 | elseif rndm == 8 and combo == 0 and timer >= 454 then | |
1694 | coroutine.resume(coroutine.create(function() | |
1695 | Implosion() | |
1696 | end)) | |
1697 | elseif rndm == 9 and combo == 0 and timer >= 681 then | |
1698 | coroutine.resume(coroutine.create(function() | |
1699 | LaserPillars() | |
1700 | end)) | |
1701 | elseif rndm == 10 and combo == 0 and timer >= 1000 then | |
1702 | coroutine.resume(coroutine.create(function() | |
1703 | DodgeTheLaser() | |
1704 | end)) | |
1705 | end | |
1706 | end | |
1707 | coroutine.resume(coroutine.create(function() | |
1708 | wait(1) | |
1709 | if clocker == 0 then | |
1710 | timer = timer + 1 | |
1711 | elseif clocker == 1 then | |
1712 | timer = timer + 2 | |
1713 | elseif clocker == 2 then | |
1714 | timer = timer + 3 | |
1715 | elseif clocker == 3 then | |
1716 | timer = timer + 4 | |
1717 | elseif clocker == 4 then | |
1718 | timer = timer + 5 | |
1719 | elseif clocker == 5 then | |
1720 | timer = timer + 6 | |
1721 | elseif clocker == 6 then | |
1722 | timer = timer + 7 | |
1723 | elseif clocker == 7 then | |
1724 | timer = timer + 8 | |
1725 | elseif clocker == 8 then | |
1726 | timer = timer + 9 | |
1727 | elseif clocker == 9 then | |
1728 | timer = timer + 10 | |
1729 | end | |
1730 | if Character.Humanoid.Health < Character.Humanoid.MaxHealth*9/10 and booster1 == false then | |
1731 | booster1 = true | |
1732 | clocker = clocker + 1 | |
1733 | Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 2 | |
1734 | local parchat = math.random(1,2) | |
1735 | if parchat == 1 then | |
1736 | game:GetService("Chat"):Chat(Head,"Increasing System Speed.",2) | |
1737 | elseif parchat == 2 then | |
1738 | game:GetService("Chat"):Chat(Head,"Overclocking.",2) | |
1739 | end | |
1740 | end | |
1741 | if Character.Humanoid.Health < Character.Humanoid.MaxHealth*8/10 and booster2 == false then | |
1742 | booster2 = true | |
1743 | clocker = clocker + 1 | |
1744 | Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 2 | |
1745 | local parchat = math.random(1,2) | |
1746 | if parchat == 1 then | |
1747 | game:GetService("Chat"):Chat(Head,"Increasing System Speed.",2) | |
1748 | elseif parchat == 2 then | |
1749 | game:GetService("Chat"):Chat(Head,"Overclocking.",2) | |
1750 | end | |
1751 | end | |
1752 | if Character.Humanoid.Health < Character.Humanoid.MaxHealth*7/10 and booster3 == false then | |
1753 | booster3 = true | |
1754 | clocker = clocker + 1 | |
1755 | Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 2 | |
1756 | local parchat = math.random(1,2) | |
1757 | if parchat == 1 then | |
1758 | game:GetService("Chat"):Chat(Head,"Increasing System Speed.",2) | |
1759 | elseif parchat == 2 then | |
1760 | game:GetService("Chat"):Chat(Head,"Overclocking.",2) | |
1761 | end | |
1762 | end | |
1763 | if Character.Humanoid.Health < Character.Humanoid.MaxHealth*6/10 and booster4 == false then | |
1764 | booster4 = true | |
1765 | clocker = clocker + 1 | |
1766 | Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 2 | |
1767 | local parchat = math.random(1,2) | |
1768 | if parchat == 1 then | |
1769 | game:GetService("Chat"):Chat(Head,"Increasing System Speed.",2) | |
1770 | elseif parchat == 2 then | |
1771 | game:GetService("Chat"):Chat(Head,"Overclocking.",2) | |
1772 | end | |
1773 | end | |
1774 | if Character.Humanoid.Health < Character.Humanoid.MaxHealth*5/10 and booster5 == false then | |
1775 | booster5 = true | |
1776 | clocker = clocker + 1 | |
1777 | Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 2 | |
1778 | local parchat = math.random(1,2) | |
1779 | if parchat == 1 then | |
1780 | game:GetService("Chat"):Chat(Head,"Increasing System Speed.",2) | |
1781 | elseif parchat == 2 then | |
1782 | game:GetService("Chat"):Chat(Head,"Overclocking.",2) | |
1783 | end | |
1784 | end | |
1785 | if Character.Humanoid.Health < Character.Humanoid.MaxHealth*4/10 and booster6 == false then | |
1786 | booster6 = true | |
1787 | clocker = clocker + 1 | |
1788 | Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed * 2 | |
1789 | local parchat = math.random(1,2) | |
1790 | if parchat == 1 then | |
1791 | game:GetService("Chat"):Chat(Head,"Increasing System Speed.",2) | |
1792 | elseif parchat == 2 then | |
1793 | game:GetService("Chat"):Chat(Head,"Overclocking.",2) | |
1794 | end | |
1795 | end | |
1796 | if Character.Humanoid.Health < Character.Humanoid.MaxHealth*3/10 and booster7 == false then | |
1797 | booster7 = true | |
1798 | clocker = clocker + 1 | |
1799 | Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 2 | |
1800 | local parchat = math.random(1,2) | |
1801 | if parchat == 1 then | |
1802 | game:GetService("Chat"):Chat(Head,"Increasing System Speed.",2) | |
1803 | elseif parchat == 2 then | |
1804 | game:GetService("Chat"):Chat(Head,"Overclocking.",2) | |
1805 | end | |
1806 | end | |
1807 | if Character.Humanoid.Health < Character.Humanoid.MaxHealth*2/10 and booster8 == false then | |
1808 | booster8 = true | |
1809 | clocker = clocker + 1 | |
1810 | Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 2 | |
1811 | local parchat = math.random(1,2) | |
1812 | if parchat == 1 then | |
1813 | game:GetService("Chat"):Chat(Head,"Increasing System Speed.",2) | |
1814 | elseif parchat == 2 then | |
1815 | game:GetService("Chat"):Chat(Head,"Overclocking.",2) | |
1816 | end | |
1817 | end | |
1818 | if Character.Humanoid.Health < Character.Humanoid.MaxHealth*1/10 and booster9 == false then | |
1819 | booster9 = true | |
1820 | clocker = clocker + 1 | |
1821 | Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 2 | |
1822 | local parchat = math.random(1,2) | |
1823 | if parchat == 1 then | |
1824 | game:GetService("Chat"):Chat(Head,"Increasing System Speed.",2) | |
1825 | elseif parchat == 2 then | |
1826 | game:GetService("Chat"):Chat(Head,"Overclocking.",2) | |
1827 | end | |
1828 | end | |
1829 | end)) | |
1830 | if time1 == false and timer >= 40 then | |
1831 | time1 = true | |
1832 | local parchat = math.random(1,3) | |
1833 | if parchat == 1 then | |
1834 | game:GetService("Chat"):Chat(Head,"Ajusting Parameters.",2) | |
1835 | elseif parchat == 2 then | |
1836 | game:GetService("Chat"):Chat(Head,"Modifying Battle Program.",2) | |
1837 | elseif parchat == 3 then | |
1838 | game:GetService("Chat"):Chat(Head,"Gaining new Attacking Software.",2) | |
1839 | end | |
1840 | end | |
1841 | if time2 == false and timer >= 60 then | |
1842 | time2 = true | |
1843 | local parchat = math.random(1,3) | |
1844 | if parchat == 1 then | |
1845 | game:GetService("Chat"):Chat(Head,"Ajusting Parameters.",2) | |
1846 | elseif parchat == 2 then | |
1847 | game:GetService("Chat"):Chat(Head,"Modifying Battle Program.",2) | |
1848 | elseif parchat == 3 then | |
1849 | game:GetService("Chat"):Chat(Head,"Gaining new Attacking Software.",2) | |
1850 | end | |
1851 | end | |
1852 | if time3 == false and timer >= 90 then | |
1853 | time3 = true | |
1854 | local parchat = math.random(1,3) | |
1855 | if parchat == 1 then | |
1856 | game:GetService("Chat"):Chat(Head,"Ajusting Parameters.",2) | |
1857 | elseif parchat == 2 then | |
1858 | game:GetService("Chat"):Chat(Head,"Modifying Battle Program.",2) | |
1859 | elseif parchat == 3 then | |
1860 | game:GetService("Chat"):Chat(Head,"Gaining new Attacking Software.",2) | |
1861 | end | |
1862 | end | |
1863 | if time4 == false and timer >= 135 then | |
1864 | time4 = true | |
1865 | local parchat = math.random(1,3) | |
1866 | if parchat == 1 then | |
1867 | game:GetService("Chat"):Chat(Head,"Ajusting Parameters.",2) | |
1868 | elseif parchat == 2 then | |
1869 | game:GetService("Chat"):Chat(Head,"Modifying Battle Program.",2) | |
1870 | elseif parchat == 3 then | |
1871 | game:GetService("Chat"):Chat(Head,"Gaining new Attacking Software.",2) | |
1872 | end | |
1873 | end | |
1874 | if time5 == false and timer >= 202 then | |
1875 | time5 = true | |
1876 | local parchat = math.random(1,3) | |
1877 | if parchat == 1 then | |
1878 | game:GetService("Chat"):Chat(Head,"Ajusting Parameters.",2) | |
1879 | elseif parchat == 2 then | |
1880 | game:GetService("Chat"):Chat(Head,"Modifying Battle Program.",2) | |
1881 | elseif parchat == 3 then | |
1882 | game:GetService("Chat"):Chat(Head,"Gaining new Attacking Software.",2) | |
1883 | end | |
1884 | end | |
1885 | if time6 == false and timer >= 303 then | |
1886 | time6 = true | |
1887 | local parchat = math.random(1,3) | |
1888 | if parchat == 1 then | |
1889 | game:GetService("Chat"):Chat(Head,"Ajusting Parameters.",2) | |
1890 | elseif parchat == 2 then | |
1891 | game:GetService("Chat"):Chat(Head,"Modifying Battle Program.",2) | |
1892 | elseif parchat == 3 then | |
1893 | game:GetService("Chat"):Chat(Head,"Gaining new Attacking Software.",2) | |
1894 | end | |
1895 | end | |
1896 | if time7 == false and timer >= 454 then | |
1897 | time7 = true | |
1898 | local parchat = math.random(1,3) | |
1899 | if parchat == 1 then | |
1900 | game:GetService("Chat"):Chat(Head,"Ajusting Parameters.",2) | |
1901 | elseif parchat == 2 then | |
1902 | game:GetService("Chat"):Chat(Head,"Modifying Battle Program.",2) | |
1903 | elseif parchat == 3 then | |
1904 | game:GetService("Chat"):Chat(Head,"Gaining new Attacking Software.",2) | |
1905 | end | |
1906 | end | |
1907 | if time8 == false and timer >= 681 then | |
1908 | time8 = true | |
1909 | local parchat = math.random(1,3) | |
1910 | if parchat == 1 then | |
1911 | game:GetService("Chat"):Chat(Head,"Ajusting Parameters.",2) | |
1912 | elseif parchat == 2 then | |
1913 | game:GetService("Chat"):Chat(Head,"Modifying Battle Program.",2) | |
1914 | elseif parchat == 3 then | |
1915 | game:GetService("Chat"):Chat(Head,"Gaining new Attacking Software.",2) | |
1916 | end | |
1917 | end | |
1918 | if time9 == false and timer >= 1000 then | |
1919 | time9 = true | |
1920 | local parchat = math.random(1,1) | |
1921 | if parchat == 1 then | |
1922 | game:GetService("Chat"):Chat(Head,"Overdrive Attack Enabaled.",2) | |
1923 | end | |
1924 | end | |
1925 | end | |
1926 | local BG = Instance.new("BodyGyro",Torso) | |
1927 | BG.cframe = Torso.CFrame | |
1928 | BG.maxTorque = Vector3.new(0, math.huge,0) | |
1929 | BGSpin = 0 | |
1930 | ||
1931 | function FindTarget() | |
1932 | local c = game.Workspace:GetChildren(); | |
1933 | local nearestmag = 1500 | |
1934 | local nearestprsn = nil | |
1935 | for i = 1, #c do | |
1936 | local hum = c[i]:findFirstChild("Humanoid") | |
1937 | if hum ~= nil and hum.Health ~= 0 then | |
1938 | local head = c[i]:findFirstChild("Head"); | |
1939 | if head ~= nil then | |
1940 | local mag = (head.Position - Torso.Position).magnitude; | |
1941 | if mag <= 1500 and c[i].Name ~= Character.Name then | |
1942 | if mag < nearestmag then | |
1943 | nearestmag = mag | |
1944 | nearestprsn = c[i] | |
1945 | end | |
1946 | end | |
1947 | end | |
1948 | end | |
1949 | end | |
1950 | Target = nearestprsn | |
1951 | end | |
1952 | ||
1953 | ||
1954 | ||
1955 | ||
1956 | local Humanoid = Instance.new("Humanoid",bodyholder) | |
1957 | Humanoid.MaxHealth = HP | |
1958 | ||
1959 | equipanim() | |
1960 | wait(1) | |
1961 | bodyholder:MakeJoints() | |
1962 | Humanoid.Health = HP | |
1963 | Humanoid.WalkSpeed = WS | |
1964 | wait(1) | |
1965 | bodyholder.Torso.CFrame = CFrame.new(SpawnPos.Value) | |
1966 | Humanoid.Health = HP | |
1967 | script.Parent = Character | |
1968 | ||
1969 | ||
1970 | ||
1971 | repeat | |
1972 | wait(0.1) | |
1973 | FindTarget() | |
1974 | if Target ~= nil then | |
1975 | BG.cframe = CFrame.new(Torso.Position,Target.Torso.Position) * CFrame.Angles(0,math.rad(BGSpin),0) | |
1976 | local mag = (Torso.Position-Target.Torso.Position).magnitude | |
1977 | if mag <= 400 then | |
1978 | Attackk(mag) | |
1979 | end | |
1980 | -- | |
1981 | pcall(function() | |
1982 | Humanoid:MoveTo(Target.Torso.Position + CFrame.new(Torso.Position,Target.Torso.Position).lookVector * -25,Target.Torso) | |
1983 | end) | |
1984 | if Target.Torso.Position.y > Torso.Position.y+5 then | |
1985 | coroutine.resume(coroutine.create(Jump)) | |
1986 | end | |
1987 | -- | |
1988 | else | |
1989 | BG.cframe = Torso.cframe | |
1990 | Humanoid:MoveTo(Torso.Position,Torso) | |
1991 | end | |
1992 | if true then | |
1993 | if (Torso.Velocity * Vector3.new(1,0,1)).magnitude > 2 then | |
1994 | coroutine.resume(coroutine.create(Walk)) | |
1995 | walking = true | |
1996 | elseif (Torso.Velocity * Vector3.new(1,0,1)).magnitude < 2 then | |
1997 | walking = false | |
1998 | end | |
1999 | else | |
2000 | walking = false | |
2001 | end | |
2002 | until Humanoid.Health <= 0 | |
2003 | wait(5) | |
2004 | Character.Parent = nil | |
2005 | --mediafire |