SHOW:
|
|
- or go back to the newest paste.
1 | Player = game.Players.LocalPlayer | |
2 | Character=Player.Character | |
3 | mouse = Player:GetMouse() | |
4 | --Lava=script.Parent.Parent.Damager | |
5 | it=Instance.new | |
6 | vt=Vector3.new | |
7 | cf=CFrame.new | |
8 | euler=CFrame.fromEulerAnglesXYZ | |
9 | angles=CFrame.Angles | |
10 | necko=cf(0,-7,0,-1,-0,-0,0,0,1,0,1,0) | |
11 | necko2=cf(0,3.5,0,-1,-0,-0,0,0,1,0,1,0) | |
12 | attack=true | |
13 | so = function(id,par,vol,pit) | |
14 | coroutine.resume(coroutine.create(function() | |
15 | local sou = Instance.new("Sound",par or workspace) | |
16 | sou.Volume=vol | |
17 | sou.Pitch=pit or 1 | |
18 | sou.SoundId=id | |
19 | wait() | |
20 | sou:play() | |
21 | game:GetService("Debris"):AddItem(sou,6) | |
22 | end)) | |
23 | end | |
24 | ||
25 | for _,v in pairs(Character:children()) do | |
26 | if v.className=="Part" then | |
27 | v.Anchored=false | |
28 | end | |
29 | end | |
30 | ||
31 | function NoOutline(Part) | |
32 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
33 | end | |
34 | ||
35 | for _,v in pairs(Character:children()) do | |
36 | if v:IsA("Part") then | |
37 | v:Remove() | |
38 | elseif v:IsA("Humanoid") then | |
39 | v:Remove() | |
40 | end | |
41 | end | |
42 | wait(1) | |
43 | local Head = Instance.new("Part") | |
44 | Head.formFactor = 3 | |
45 | Head.CanCollide = true | |
46 | Head.Name = "Head" | |
47 | Head.Locked = true | |
48 | Head.Size = Vector3.new(13.697, 6.848, 6.848) | |
49 | Head.Parent = Character | |
50 | Head.Material = "Granite" | |
51 | ||
52 | Head.BrickColor = BrickColor.new("Black") | |
53 | local smh = Instance.new("SpecialMesh",Head) | |
54 | smh.Scale = Vector3.new(1.3, 1.3, 1.3) | |
55 | local kek = Instance.new("PointLight", Head) | |
56 | kek.Range = 60 | |
57 | local Torso = Instance.new("Part") | |
58 | Torso.formFactor = 3 | |
59 | Torso.CanCollide = true | |
60 | Torso.Name = "Torso" | |
61 | Torso.Locked = true | |
62 | Torso.Size = Vector3.new(13.697, 13.697, 6.848) | |
63 | Torso.Parent = Character | |
64 | Torso.BrickColor = BrickColor.new("Neon orange") | |
65 | Torso.Material = "Granite" | |
66 | ||
67 | local msht = Instance.new("BlockMesh",Torso) | |
68 | local RightArm = Instance.new("Part") | |
69 | RightArm.formFactor = 3 | |
70 | RightArm.CanCollide = true | |
71 | RightArm.Name = "Right Arm" | |
72 | RightArm.Locked = true | |
73 | RightArm.Size = Vector3.new(6.848, 13.697, 6.848) | |
74 | RightArm.Parent = Character | |
75 | RightArm.Material = "Granite" | |
76 | RightArm.BrickColor = BrickColor.new("Neon orange") | |
77 | ||
78 | local mshra = Instance.new("BlockMesh",RightArm) | |
79 | local LeftArm = Instance.new("Part") | |
80 | LeftArm.formFactor = 3 | |
81 | LeftArm.CanCollide = true | |
82 | LeftArm.Name = "Left Arm" | |
83 | LeftArm.Locked = true | |
84 | LeftArm.Size = Vector3.new(6.848, 13.697, 6.848) | |
85 | LeftArm.Parent = Character | |
86 | LeftArm.Material = "Granite" | |
87 | LeftArm.BrickColor = BrickColor.new("Neon orange") | |
88 | ||
89 | local mshla = Instance.new("BlockMesh",LeftArm) | |
90 | local Helmet = Instance.new("Part") | |
91 | Helmet.formFactor = 3 | |
92 | Helmet.CanCollide = true | |
93 | Helmet.Name = "Helmet" | |
94 | Helmet.Locked = true | |
95 | Helmet.Size = Vector3.new(2, 2, 2) | |
96 | Helmet.Parent = Character | |
97 | ||
98 | local smh = Instance.new("SpecialMesh",Helmet) | |
99 | smh.Scale = Vector3.new(7, 7, 7) | |
100 | smh.MeshId = "http://www.roblox.com/asset/?id=47623768" | |
101 | smh.TextureId = "http://www.roblox.com/asset/?id=47623755" | |
102 | ||
103 | - | local Damager = Instance.new("Part") |
103 | + | |
104 | - | Damager.formFactor = 3 |
104 | + | |
105 | - | Damager.CanCollide = false |
105 | + | |
106 | - | Damager.Name = "Damager" |
106 | + | |
107 | - | Damager.Anchored = true |
107 | + | |
108 | - | Damager.Locked = true |
108 | + | |
109 | - | Damager.Material = "Granite" |
109 | + | |
110 | - | Damager.BrickColor = BrickColor.new("Bright red") |
110 | + | |
111 | - | Damager.Size = Vector3.new(54, 1, 54) |
111 | + | |
112 | - | Damager.Parent = Character |
112 | + | |
113 | - | Damager.CFrame = Torso.CFrame * CFrame.new(0,0.2,-40) |
113 | + | |
114 | - | local smh = Instance.new("BlockMesh",Damager) |
114 | + | |
115 | - | smh.Scale = Vector3.new(1, 1.3, 1) |
115 | + | |
116 | fp.Reflectance = reflectance | |
117 | fp.Transparency = transparency | |
118 | fp.CanCollide = false | |
119 | fp.Locked=true | |
120 | fp.BrickColor = brickcolor | |
121 | fp.Name = name | |
122 | fp.Size = size | |
123 | fp.Position = Torso.Position | |
124 | NoOutline(fp) | |
125 | fp.BottomSurface="Smooth" | |
126 | fp.TopSurface="Smooth" | |
127 | fp:BreakJoints() | |
128 | return fp | |
129 | end | |
130 | ||
131 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
132 | local mesh = it(Mesh) | |
133 | mesh.Parent = part | |
134 | if Mesh=="SpecialMesh" then | |
135 | mesh.MeshType = meshtype | |
136 | mesh.MeshId = meshid | |
137 | end | |
138 | mesh.Offset=offset | |
139 | mesh.Scale=scale | |
140 | return mesh | |
141 | end | |
142 | ||
143 | function weld(parent,part0,part1,c0) | |
144 | local weld = it("Weld") | |
145 | weld.Parent = parent | |
146 | weld.Part0 = part0 | |
147 | weld.Part1 = part1 | |
148 | weld.C0 = c0 | |
149 | return weld | |
150 | end | |
151 | ||
152 | ||
153 | function findNearestTorso(pos) | |
154 | local list = game.Workspace:children() | |
155 | local torso = nil | |
156 | local dist = 130 | |
157 | local temp = nil | |
158 | local human = nil | |
159 | local temp2 = nil | |
160 | for x = 1, #list do | |
161 | temp2 = list[x] | |
162 | if (temp2.className == "Model") and (temp2.Name~=Character) then | |
163 | temp = temp2:findFirstChild("Torso") | |
164 | human = temp2:findFirstChild("Humanoid") | |
165 | print(human) | |
166 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
167 | if (temp.Position - pos).magnitude < dist then | |
168 | torso = temp | |
169 | dist = (temp.Position - pos).magnitude | |
170 | end | |
171 | end | |
172 | end | |
173 | end | |
174 | return torso,dist | |
175 | end | |
176 | ||
177 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
178 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
179 | prt.Anchored=true | |
180 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
181 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
182 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
183 | for i=0,1,delay do | |
184 | wait() | |
185 | Part.CFrame=Part.CFrame | |
186 | Part.Transparency=i | |
187 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
188 | end | |
189 | Part.Parent=nil | |
190 | end),prt,msh) | |
191 | end | |
192 | ||
193 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
194 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
195 | prt.Anchored=true | |
196 | prt.CFrame=cframe | |
197 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
198 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
199 | for i=0,1,delay do | |
200 | wait() | |
201 | Part.CFrame=Part.CFrame | |
202 | Part.Transparency=i | |
203 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
204 | end | |
205 | Part.Parent=nil | |
206 | end),prt,msh) | |
207 | end | |
208 | ||
209 | function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
210 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
211 | prt.Anchored=true | |
212 | prt.CFrame=cframe | |
213 | --"http://www.roblox.com/asset/?id=168892465" | |
214 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
215 | game:GetService("Debris"):AddItem(prt,2) | |
216 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
217 | for i=0,1,delay do | |
218 | wait() | |
219 | Part.CFrame=Part.CFrame | |
220 | Part.Transparency=i | |
221 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
222 | end | |
223 | Part.Parent=nil | |
224 | end),prt,msh) | |
225 | end | |
226 | ||
227 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
228 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
229 | prt.Anchored=true | |
230 | prt.CFrame=cframe | |
231 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
232 | game:GetService("Debris"):AddItem(prt,2) | |
233 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
234 | for i=0,1,delay do | |
235 | wait() | |
236 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
237 | Part.Transparency=i | |
238 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
239 | end | |
240 | Part.Parent=nil | |
241 | end),prt,msh) | |
242 | end | |
243 | ||
244 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property) | |
245 | if hit.Parent==nil then | |
246 | return | |
247 | end | |
248 | CPlayer=Bin | |
249 | h=hit.Parent:FindFirstChild("Humanoid") | |
250 | for _,v in pairs(hit.Parent:children()) do | |
251 | if v:IsA("Humanoid") then | |
252 | h=v | |
253 | end | |
254 | end | |
255 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
256 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
257 | return | |
258 | end]] | |
259 | -- hs(hit,1.2) | |
260 | c=Instance.new("ObjectValue") | |
261 | c.Name="creator" | |
262 | c.Value=game:service("Players").LocalPlayer | |
263 | c.Parent=h | |
264 | game:GetService("Debris"):AddItem(c,.5) | |
265 | Damage=math.random(minim,maxim) | |
266 | -- h:TakeDamage(Damage) | |
267 | blocked=false | |
268 | block=hit.Parent:findFirstChild("Block") | |
269 | if block~=nil then | |
270 | if block.className=="IntValue" then | |
271 | if block.Value>0 then | |
272 | blocked=true | |
273 | block.Value=block.Value-1 | |
274 | end | |
275 | end | |
276 | end | |
277 | if blocked==false then | |
278 | h:TakeDamage(Damage) | |
279 | showDamage(hit.Parent,Damage,.5,BrickColor:Red()) | |
280 | else | |
281 | h:TakeDamage(Damage/2) | |
282 | showDamage(hit.Parent,Damage,.5,BrickColor.new("Bright blue")) | |
283 | end | |
284 | if Type=="Knockdown" then | |
285 | hum=hit.Parent.Humanoid | |
286 | hum.PlatformStand=true | |
287 | coroutine.resume(coroutine.create(function(HHumanoid) | |
288 | wait(1) | |
289 | HHumanoid.PlatformStand=false | |
290 | end),hum) | |
291 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
292 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
293 | local bodvol=Instance.new("BodyVelocity") | |
294 | bodvol.velocity=angle*knockback | |
295 | bodvol.P=5000 | |
296 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
297 | bodvol.Parent=hit | |
298 | rl=Instance.new("BodyAngularVelocity") | |
299 | rl.P=3000 | |
300 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
301 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
302 | rl.Parent=hit | |
303 | game:GetService("Debris"):AddItem(bodvol,.5) | |
304 | game:GetService("Debris"):AddItem(rl,.5) | |
305 | elseif Type=="Normal" then | |
306 | vp=Instance.new("BodyVelocity") | |
307 | vp.P=500 | |
308 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
309 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
310 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
311 | if knockback>0 then | |
312 | vp.Parent=hit.Parent.Torso | |
313 | end | |
314 | game:GetService("Debris"):AddItem(vp,.5) | |
315 | elseif Type=="Up" then | |
316 | local bodyVelocity=Instance.new("BodyVelocity") | |
317 | bodyVelocity.velocity=vt(0,20,0) | |
318 | bodyVelocity.P=5000 | |
319 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
320 | bodyVelocity.Parent=hit | |
321 | game:GetService("Debris"):AddItem(bodyVelocity,.5) | |
322 | elseif Type=="Snare" then | |
323 | bp=Instance.new("BodyPosition") | |
324 | bp.P=2000 | |
325 | bp.D=100 | |
326 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
327 | bp.position=hit.Parent.Torso.Position | |
328 | bp.Parent=hit.Parent.Torso | |
329 | game:GetService("Debris"):AddItem(bp,1) | |
330 | elseif Type=="Freeze" then | |
331 | BodPos=Instance.new("BodyPosition") | |
332 | BodPos.P=50000 | |
333 | BodPos.D=1000 | |
334 | BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
335 | BodPos.position=hit.Parent.Torso.Position | |
336 | BodPos.Parent=hit.Parent.Torso | |
337 | BodGy = it("BodyGyro") | |
338 | BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
339 | BodGy.P = 20e+003 | |
340 | BodGy.Parent=hit.Parent.Torso | |
341 | BodGy.cframe = hit.Parent.Torso.CFrame | |
342 | hit.Parent.Torso.Anchored=true | |
343 | coroutine.resume(coroutine.create(function(Part) | |
344 | wait(1.5) | |
345 | Part.Anchored=false | |
346 | end),hit.Parent.Torso) | |
347 | game:GetService("Debris"):AddItem(BodPos,3) | |
348 | game:GetService("Debris"):AddItem(BodGy,3) | |
349 | end | |
350 | c=Instance.new("ObjectValue") | |
351 | c.Name="creator" | |
352 | c.Value=Player | |
353 | c.Parent=h | |
354 | game:GetService("Debris"):AddItem(c,.5) | |
355 | CRIT=false | |
356 | hitDeb=true | |
357 | AttackPos=6 | |
358 | end | |
359 | end | |
360 | ||
361 | showDamage=function(Char,Dealt,du,Color) | |
362 | m=Instance.new("Model") | |
363 | m.Name=tostring(Dealt) | |
364 | h=Instance.new("Humanoid") | |
365 | h.Health=0 | |
366 | h.MaxHealth=0 | |
367 | h.Parent=m | |
368 | c=Instance.new("Part") | |
369 | c.Transparency=0 | |
370 | c.BrickColor=Color | |
371 | c.Name="Head" | |
372 | c.TopSurface=0 | |
373 | c.BottomSurface=0 | |
374 | c.formFactor="Plate" | |
375 | c.Size=Vector3.new(1,.4,1) | |
376 | ms=Instance.new("CylinderMesh") | |
377 | ms.Scale=Vector3.new(.8,.8,.8) | |
378 | if CRIT==true then | |
379 | ms.Scale=Vector3.new(1,1.25,1) | |
380 | end | |
381 | ms.Parent=c | |
382 | c.Reflectance=0 | |
383 | Instance.new("BodyGyro").Parent=c | |
384 | c.Parent=m | |
385 | if Char:findFirstChild("Head")~=nil then | |
386 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
387 | else | |
388 | c.CFrame=CFrame.new(Char["Torso"].CFrame.p+Vector3.new(0,1.5,0)) | |
389 | end | |
390 | f=Instance.new("BodyPosition") | |
391 | f.P=2000 | |
392 | f.D=100 | |
393 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
394 | f.position=c.Position+Vector3.new(0,3,0) | |
395 | f.Parent=c | |
396 | game:GetService("Debris"):AddItem(m,.5+du) | |
397 | c.CanCollide=false | |
398 | m.Parent=workspace | |
399 | c.CanCollide=false | |
400 | end | |
401 | ||
402 | colr = BrickColor.new("Flame reddish orange") | |
403 | ||
404 | con = Damager.Touched:connect(function(part) | |
405 | if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Name~=Character.Name then | |
406 | if part:FindFirstChild("fiar") == nil and part:FindFirstChild("glow") == nil then | |
407 | fiar = Instance.new("Fire") | |
408 | fiar.Name = "fiar" | |
409 | fiar.Parent = part | |
410 | glow = Instance.new("PointLight") | |
411 | glow.Name = "glow" | |
412 | glow.Parent = part | |
413 | glow.Color = colr.Color | |
414 | end | |
415 | else | |
416 | end | |
417 | end) | |
418 | ||
419 | ||
420 | local roar=Instance.new("Sound") | |
421 | roar.Parent=Head | |
422 | roar.Volume=1 | |
423 | roar.Pitch=1 | |
424 | roar.SoundId="http://www.roblox.com/asset/?id=172088894" | |
425 | local roar2=Instance.new("Sound") | |
426 | roar2.Parent=Head | |
427 | roar2.Volume=1 | |
428 | roar2.Pitch=1 | |
429 | roar2.SoundId="http://www.roblox.com/asset/?id=172088894" | |
430 | local Neck=weld(Torso,Head,Torso,cf(0,0,0)) | |
431 | Neck.C0=necko*euler(0.2,0,0) | |
432 | Neck.C1=necko2 | |
433 | local Helmweld=weld(Torso,Head,Helmet,cf(0,3.8,0.5)*euler(0,3.14,0)) | |
434 | local RW=weld(Torso,Torso,RightArm,cf(0,0,0)) | |
435 | local LW=weld(Torso,Torso,LeftArm,cf(0,0,0)) | |
436 | RW.C0=cf(10,1,3)*euler(-0.8,0,0.2) | |
437 | RW.C1=cf(0,1,0) | |
438 | LW.C0=cf(-10,1,3)*euler(-0.8,0,-0.2) | |
439 | LW.C1=cf(0,1,0) | |
440 | Torso.CFrame=Torso.CFrame*cf(0,10,0) | |
441 | local BodPos=it("BodyPosition") | |
442 | BodPos.P=50000 | |
443 | BodPos.D=1000 | |
444 | BodPos.maxForce=vt(math.huge,math.huge,math.huge) | |
445 | BodPos.position=Damager.Position+vt(0,7,0) | |
446 | BodPos.Parent=Torso | |
447 | local BodGy=it("BodyGyro") | |
448 | BodGy.maxTorque=vt(4e+005,4e+005,4e+005)*math.huge | |
449 | BodGy.P=20e+003 | |
450 | BodGy.Parent=Torso | |
451 | BodGy.cframe=Torso.CFrame | |
452 | --BodGy.cframe=cf(0,0,0)*euler(0,3.14*i,0) | |
453 | for _,v in pairs(Character:children()) do | |
454 | if v.className=="Part" then | |
455 | v.Transparency=1 | |
456 | end | |
457 | end | |
458 | --[[dur=script.Parent.Parent[" "] | |
459 | Hum=dur.Humanoid | |
460 | while Hum.Health>0 do | |
461 | wait() | |
462 | end]] | |
463 | local Humanoid=Instance.new("Humanoid") | |
464 | Humanoid.Parent=Character | |
465 | Humanoid.MaxHealth=4000 | |
466 | Humanoid.Health=Humanoid.MaxHealth | |
467 | coroutine.resume(coroutine.create(function() | |
468 | for i=1,50 do | |
469 | Humanoid.MaxHealth=4000 | |
470 | Humanoid.Health=4000 | |
471 | wait() | |
472 | end | |
473 | --_G["AddHumanoidDamageTag"](Humanoid,workspace.Map,1,"Ranged","Fire","Magic") | |
474 | end)) | |
475 | for _,v in pairs(Character:children()) do | |
476 | if v.className=="Part" then | |
477 | v.Transparency=0 | |
478 | end | |
479 | end | |
480 | ||
481 | function Fireball() | |
482 | attack=false | |
483 | for i=0,1,0.1 do | |
484 | wait() | |
485 | Neck.C0=necko*euler(0.2-0.8*i,0,0) | |
486 | RW.C0=cf(10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,0.2-0.6*i) | |
487 | RW.C1=cf(0,1+4*i,0) | |
488 | LW.C0=cf(-10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,-0.2+0.6*i) | |
489 | LW.C1=cf(0,1+4*i,0) | |
490 | end | |
491 | refprt=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt()) | |
492 | refwld=weld(refprt,refprt,Torso,cf(0,-15,0)) | |
493 | game:GetService("Debris"):AddItem(refprt,4) | |
494 | fireball=part(3,Character,0,0.5,BrickColor.new("Really red"),"Fireball",vt(10,10,10)) | |
495 | fireball.Anchored = true | |
496 | fireball.CFrame = refprt.CFrame | |
497 | frblmsh=mesh("SpecialMesh",fireball,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4)) | |
498 | so("http://roblox.com/asset/?id=32791565",fireball,1,1) | |
499 | prop=Instance.new("RocketPropulsion") | |
500 | prop.MaxSpeed=500000 | |
501 | prop.CartoonFactor=0 | |
502 | prop.MaxThrust=1000000 | |
503 | prop.Parent=fireball | |
504 | prop.Target=refprt | |
505 | prop.ThrustD=1.5 | |
506 | prop.TurnD=0 | |
507 | prop.TurnP=0 | |
508 | prop:Fire() | |
509 | fire=Instance.new("Fire") | |
510 | fire.Parent=fireball | |
511 | fire.Color=Color3.new(255/255,127/255,0) | |
512 | fire.SecondaryColor=Color3.new(0,0,0) | |
513 | fire.Size=5 | |
514 | fire.Heat=20 | |
515 | n=2 | |
516 | for i=0,1,0.05 do | |
517 | wait() | |
518 | frblmsh.Scale=vt(0.4+0.2*i,0.4+0.2*i,0.4+0.2*i) | |
519 | refwld.C0=cf(0,-15-5*i,0) | |
520 | fire.Size=5+10*i | |
521 | fire.Heat=20+10*i | |
522 | Neck.C0=necko*euler(-0.6-0.1*i*n,0,0) | |
523 | RW.C0=cf(10,5,0)*euler(-3-0.1*i*n,0,-0.4-0.1*i*n) | |
524 | RW.C1=cf(0,5,0) | |
525 | LW.C0=cf(-10,5,0)*euler(-3-0.1*i*n,0,0.4+0.1*i*n) | |
526 | LW.C1=cf(0,5,0) | |
527 | n=n-0.05 | |
528 | end | |
529 | n=2 | |
530 | for i=0,1,0.1 do | |
531 | wait() | |
532 | frblmsh.Scale=vt(0.6+0.8*i,0.6+0.8*i,0.6+0.8*i) | |
533 | fire.Size=15+5*i | |
534 | fire.Heat=30+10*i | |
535 | Neck.C0=necko*euler(-0.7-0.1*i*n,0,0) | |
536 | RW.C0=cf(10,5,0)*euler(-3.1-0.2*i*n,0,-0.5+0.6*i*n) | |
537 | RW.C1=cf(0,5,0) | |
538 | LW.C0=cf(-10,5,0)*euler(-3.1-0.2*i*n,0,0.5-0.6*i*n) | |
539 | LW.C1=cf(0,5,0) | |
540 | n=n-0.1 | |
541 | end | |
542 | refprt.Parent=nil | |
543 | debounce=false | |
544 | con1=fireball.Touched:connect(function(hit) | |
545 | if hit.Parent.Name~=Character.Name and debounce==false and hit.Name~="Effect" then | |
546 | debounce=true | |
547 | fireball.Parent=nil | |
548 | CF=fireball.CFrame | |
549 | POS=fireball.Position | |
550 | b=Instance.new("Explosion") | |
551 | b.Parent=workspace | |
552 | b.Position=fireball.Position | |
553 | b.BlastPressure=0 | |
554 | refprt2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt()) | |
555 | refprt2.CFrame=CF | |
556 | refprt2.Anchored=true | |
557 | so("http://roblox.com/asset/?id=2101148",refprt2,1,0.6) | |
558 | game:GetService("Debris"):AddItem(refprt2,1) | |
559 | for _,c in pairs(workspace:children()) do | |
560 | local hum=c:findFirstChild("Humanoid") | |
561 | if hum~=nil then | |
562 | local head=c:findFirstChild("Torso") | |
563 | if head~=nil then | |
564 | local targ=head.Position-POS | |
565 | local mag=targ.magnitude | |
566 | if mag<=20 and c.Name~=Character.Name then | |
567 | Damagefunc(head,25,40,math.random(50,100),"Knockdown",refprt2) | |
568 | end | |
569 | end | |
570 | end | |
571 | end | |
572 | coroutine.resume(coroutine.create(function(tehCF) | |
573 | MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,3,3,3,0.05) | |
574 | for i=0,1,0.1 do | |
575 | wait(0.1) | |
576 | MagicBlock(BrickColor.new("Bright red"),tehCF,1,1,1,5,5,5,0.1) | |
577 | end | |
578 | end),CF) | |
579 | end | |
580 | end) | |
581 | prop.ThrustP=2 | |
582 | target=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt()) | |
583 | target.Position = mouse.Hit.p | |
584 | fireball.Anchored = false | |
585 | prop.Target=target | |
586 | for i=0,1,0.1 do | |
587 | wait() | |
588 | Neck.C0=necko*euler(-0.7+0.7*i,0,0) | |
589 | RW.C0=cf(10,5,0)*euler(-3.3+2*i,0,0.1-0.5*i) | |
590 | RW.C1=cf(0,5,0) | |
591 | LW.C0=cf(-10,5,0)*euler(-3.3+2*i,0,-0.1+0.5*i) | |
592 | LW.C1=cf(0,5,0) | |
593 | end | |
594 | game:GetService("Debris"):AddItem(fireball,3) | |
595 | wait(0.4) | |
596 | for i=0,1,0.1 do | |
597 | wait() | |
598 | Neck.C0=necko*euler(0.2*i,0,0) | |
599 | RW.C0=cf(10,5-4*i,3*i)*euler(-1.3+0.5*i,0,-0.4+0.6*i) | |
600 | RW.C1=cf(0,5-4*i,0) | |
601 | LW.C0=cf(-10,5-4*i,3*i)*euler(-1.3+0.5*i,0,0.4-0.6*i) | |
602 | LW.C1=cf(0,5-4*i,0) | |
603 | end | |
604 | attack=true | |
605 | end | |
606 | ||
607 | function Slam() | |
608 | attack=false | |
609 | --COME ON AND SLAM | |
610 | --AND WELCOME TO THE JAM | |
611 | for i=0,1,0.05 do | |
612 | wait() | |
613 | Neck.C0=necko*euler(0.2-0.8*i,0,0) | |
614 | RW.C0=cf(10-4*i,1+4*i,3-3*i)*euler(-0.8-2*i,0,0.2-0.8*i) | |
615 | RW.C1=cf(0,1+4*i,0) | |
616 | LW.C0=cf(-10+4*i,1+4*i,3-3*i)*euler(-0.8-2*i,0,-0.2+0.8*i) | |
617 | LW.C1=cf(0,1+4*i,0) | |
618 | end | |
619 | n=2 | |
620 | for i=0,1,0.05 do | |
621 | wait() | |
622 | Neck.C0=necko*euler(-0.6-0.2*i*n,0,0) | |
623 | RW.C0=cf(6,5,0)*euler(-2.8-0.2*i*n,0,-0.6) | |
624 | RW.C1=cf(0,5,0) | |
625 | LW.C0=cf(-6,5,0)*euler(-2.8-0.2*i*n,0,0.6) | |
626 | LW.C1=cf(0,5,0) | |
627 | n=n-0.05 | |
628 | end | |
629 | for i=0,1,0.2 do | |
630 | wait() | |
631 | Neck.C0=necko*euler(-0.8+1*i,0,0) | |
632 | RW.C0=cf(6,5-3*i,2*i)*euler(-3+2*i,0,-0.6) | |
633 | RW.C1=cf(0,5-3*i,0) | |
634 | LW.C0=cf(-6,5-3*i,2*i)*euler(-3+2*i,0,0.6) | |
635 | LW.C1=cf(0,5-3*i,0) | |
636 | end | |
637 | tehCF=Torso.CFrame*cf(0,-5,10) | |
638 | refprt=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt()) | |
639 | refprt.Anchored=true | |
640 | refprt.CFrame=tehCF | |
641 | so("http://roblox.com/asset/?id=157878578",refprt,1,0.4) | |
642 | so("http://roblox.com/asset/?id=2101148",refprt,1,0.6) | |
643 | game:GetService("Debris"):AddItem(refprt,2) | |
644 | MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,5,5,5,0.05) | |
645 | MagicRing(BrickColor.new("Really red"),cf(refprt.Position)*euler(1.57,0,0),1,1,1,3,3,3,0.02) | |
646 | for _,c in pairs(workspace:children()) do | |
647 | local hum=c:findFirstChild("Humanoid") | |
648 | if hum~=nil then | |
649 | local head=c:findFirstChild("Torso") | |
650 | if head~=nil then | |
651 | local targ=head.Position-refprt.Position | |
652 | local mag=targ.magnitude | |
653 | if mag<=30 and c.Name~=Character.Name then | |
654 | Damagefunc(head,15,30,math.random(50,100),"",refprt) | |
655 | end | |
656 | end | |
657 | end | |
658 | end | |
659 | coroutine.resume(coroutine.create(function(Part) | |
660 | wait(0.5) | |
661 | for _,c in pairs(workspace:children()) do | |
662 | local hum=c:findFirstChild("Humanoid") | |
663 | if hum~=nil then | |
664 | local head=c:findFirstChild("Torso") | |
665 | if head~=nil then | |
666 | local targ=head.Position-Part.Position | |
667 | local mag=targ.magnitude | |
668 | if mag<=40 and c.Name~=Character.Name then | |
669 | Damagefunc(head,10,20,math.random(20,40),"Knockdown",refprt) | |
670 | end | |
671 | end | |
672 | end | |
673 | end | |
674 | end),refprt) | |
675 | wait(0.2) | |
676 | for i=0,1,0.1 do | |
677 | wait() | |
678 | Neck.C0=necko*euler(0.2,0,0) | |
679 | RW.C0=cf(6+4*i,2-1*i,2+1*i)*euler(-1+0.2*i,0,-0.6+0.8*i) | |
680 | RW.C1=cf(0,2-1*i,0) | |
681 | LW.C0=cf(-6-4*i,2-1*i,2+1*i)*euler(-1+0.2*i,0,0.6-0.8*i) | |
682 | LW.C1=cf(0,2-1*i,0) | |
683 | end | |
684 | attack=true | |
685 | end | |
686 | ||
687 | function Roar() | |
688 | attack=false | |
689 | for i=0,1,0.05 do | |
690 | wait() | |
691 | Neck.C0=necko*euler(0.2+0.2*i,0,0) | |
692 | RW.C0=cf(10-4*i,1+3*i,3-3*i)*euler(-0.8-1.4*i,0,0.2-0.8*i) | |
693 | RW.C1=cf(0,1+3*i,0) | |
694 | LW.C0=cf(-10+4*i,1+3*i,3-3*i)*euler(-0.8-1.4*i,0,-0.2+0.8*i) | |
695 | LW.C1=cf(0,1+3*i,0) | |
696 | end | |
697 | n=2 | |
698 | for i=0,1,0.05 do | |
699 | wait() | |
700 | Neck.C0=necko*euler(0.4+0.1*i*n,0,0) | |
701 | RW.C0=cf(6,4,0)*euler(-2.2+0.1*i*n,0,-0.6) | |
702 | RW.C1=cf(0,4,0) | |
703 | LW.C0=cf(-6,4,0)*euler(-2.2+0.1*i*n,0,0.6) | |
704 | LW.C1=cf(0,4,0) | |
705 | n=n-0.05 | |
706 | end | |
707 | roar:Play() | |
708 | roar2:Play() | |
709 | for i=0,1,0.2 do | |
710 | wait() | |
711 | Neck.C0=necko*euler(0.5-0.7*i,0,0) | |
712 | RW.C0=cf(6+4*i,4-3*i,-1.8*i)*euler(-2.1+2.7*i,0,-0.6+1.2*i) | |
713 | RW.C1=cf(0,4-3*i,0) | |
714 | LW.C0=cf(-6-4*i,4-3*i,-1.8*i)*euler(-2.1+2.7*i,0,0.6-1.2*i) | |
715 | LW.C1=cf(0,4-3*i,0) | |
716 | noe=math.random(10,20) | |
717 | MagicRing(BrickColor.new("Really red"),Head.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,noe,noe,1,0.05) | |
718 | end | |
719 | for _,c in pairs(workspace:children()) do | |
720 | local hum=c:findFirstChild("Humanoid") | |
721 | if hum~=nil then | |
722 | local head=c:findFirstChild("Torso") | |
723 | if head~=nil then | |
724 | local targ=head.Position-Head.Position | |
725 | local mag=targ.magnitude | |
726 | if mag<=100 and c.Name~=Character.Name then | |
727 | Damagefunc(head,40,40,math.random(100,150),"Knockdown",Head) | |
728 | end | |
729 | end | |
730 | end | |
731 | end | |
732 | n=2 | |
733 | for i=0,1,0.2 do | |
734 | wait() | |
735 | Neck.C0=necko*euler(-0.2-0.1*i*n,0,0) | |
736 | RW.C0=cf(10,1,-1.8-0.2*i*n)*euler(0.6+0.1*i*n,0,0.6+0.1*i*n) | |
737 | RW.C1=cf(0,1,0) | |
738 | LW.C0=cf(-10,1,-1.8-0.2*i*n)*euler(0.6+0.1*i*n,0,-0.6-0.1*i*n) | |
739 | LW.C1=cf(0,1,0) | |
740 | noe=math.random(10,20) | |
741 | MagicRing(BrickColor.new("Really red"),Head.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,noe,noe,1,0.05) | |
742 | n=n-0.2 | |
743 | end | |
744 | wait(0.5) | |
745 | for i=0,1,0.1 do | |
746 | wait() | |
747 | Neck.C0=necko*euler(-0.3+0.5*i,0,0) | |
748 | RW.C0=cf(10,1,-2+5*i)*euler(0.7-1.5*i,0,0.7-0.5*i) | |
749 | RW.C1=cf(0,1,0) | |
750 | LW.C0=cf(-10,1,-2+5*i)*euler(0.7-1.5*i,0,-0.7+0.5*i) | |
751 | LW.C1=cf(0,1,0) | |
752 | end | |
753 | attack=true | |
754 | end | |
755 | ||
756 | function Scatterball() | |
757 | attack=false | |
758 | for i=0,1,0.1 do | |
759 | wait() | |
760 | Neck.C0=necko*euler(0.2-0.8*i,0,0) | |
761 | RW.C0=cf(10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,0.2-0.6*i) | |
762 | RW.C1=cf(0,1+4*i,0) | |
763 | LW.C0=cf(-10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,-0.2+0.6*i) | |
764 | LW.C1=cf(0,1+4*i,0) | |
765 | end | |
766 | refprt=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt()) | |
767 | refwld=weld(refprt,refprt,Torso,cf(0,-15,0)) | |
768 | game:GetService("Debris"):AddItem(refprt,4) | |
769 | fireball=part(3,Character,0,0.5,BrickColor.new("Really red"),"Fireball",vt(10,10,10)) | |
770 | frblmsh=mesh("SpecialMesh",fireball,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4)) | |
771 | fireball.Anchored = true | |
772 | fireball.CFrame = refprt.CFrame | |
773 | so("http://roblox.com/asset/?id=32791565",fireball,1,1) | |
774 | prop=Instance.new("RocketPropulsion") | |
775 | prop.MaxSpeed=500000 | |
776 | prop.CartoonFactor=0 | |
777 | prop.MaxThrust=1000000 | |
778 | prop.Parent=fireball | |
779 | prop.Target=refprt | |
780 | prop.ThrustD=1.5 | |
781 | prop.TurnD=0 | |
782 | prop.TurnP=0 | |
783 | prop:Fire() | |
784 | fire=Instance.new("Fire") | |
785 | fire.Parent=fireball | |
786 | fire.Color=Color3.new(255/255,127/255,0) | |
787 | fire.SecondaryColor=Color3.new(0,0,0) | |
788 | fire.Size=5 | |
789 | fire.Heat=20 | |
790 | n=2 | |
791 | con1=fireball.Touched:connect(function(hit) | |
792 | if hit.Parent.Name~=Character.Name and debounce==false and hit.Name~="Mini Fireball" and hit.Name~="Effect" then | |
793 | debounce=true | |
794 | minifireball.Parent=nil | |
795 | CF=minifireball.CFrame | |
796 | POS=minifireball.Position | |
797 | refprt2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt()) | |
798 | refprt2.CFrame=CF | |
799 | refprt2.Anchored=true | |
800 | so("http://roblox.com/asset/?id=2101148",refprt2,1,0.6) | |
801 | game:GetService("Debris"):AddItem(refprt2,1) | |
802 | Damagefunc(hit,10,20,math.random(20,40),"Knockdown",refprt2) | |
803 | --Damagefunc(hit,10,20,math.random(50,100),"Knockdown",Torso) | |
804 | coroutine.resume(coroutine.create(function(tehCF) | |
805 | MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,3,3,3,0.05) | |
806 | for i=0,1,0.1 do | |
807 | wait(0.1) | |
808 | MagicBlock(BrickColor.new("Bright red"),tehCF,1,1,1,1,1,1,0.1) | |
809 | end | |
810 | end),CF) | |
811 | end | |
812 | end) | |
813 | for i=0,1,0.05 do | |
814 | wait() | |
815 | frblmsh.Scale=vt(0.4+0.2*i,0.4+0.2*i,0.4+0.2*i) | |
816 | refwld.C0=cf(0,-15-5*i,0) | |
817 | fire.Size=5+10*i | |
818 | fire.Heat=20+10*i | |
819 | Neck.C0=necko*euler(-0.6-0.1*i*n,0,0) | |
820 | RW.C0=cf(10,5,0)*euler(-3-0.1*i*n,0,-0.4-0.1*i*n) | |
821 | RW.C1=cf(0,5,0) | |
822 | LW.C0=cf(-10,5,0)*euler(-3-0.1*i*n,0,0.4+0.1*i*n) | |
823 | LW.C1=cf(0,5,0) | |
824 | n=n-0.05 | |
825 | end | |
826 | n=2 | |
827 | for i=0,1,0.1 do | |
828 | wait() | |
829 | frblmsh.Scale=vt(0.6+0.8*i,0.6+0.8*i,0.6+0.8*i) | |
830 | fire.Size=15+5*i | |
831 | fire.Heat=30+10*i | |
832 | Neck.C0=necko*euler(-0.7-0.1*i*n,0,0) | |
833 | RW.C0=cf(10,5,0)*euler(-3.1-0.2*i*n,0,-0.5+0.6*i*n) | |
834 | RW.C1=cf(0,5,0) | |
835 | LW.C0=cf(-10,5,0)*euler(-3.1-0.2*i*n,0,0.5-0.6*i*n) | |
836 | LW.C1=cf(0,5,0) | |
837 | n=n-0.1 | |
838 | end | |
839 | wait(0.5) | |
840 | fireball.Anchored = false | |
841 | fireball.Parent=nil | |
842 | refprt.Parent=nil | |
843 | for _,c in pairs(workspace:children()) do | |
844 | local hum=c:findFirstChild("Humanoid") | |
845 | if hum~=nil then | |
846 | local head=c:findFirstChild("Torso") | |
847 | if head~=nil then | |
848 | local targ=head.Position-Torso.Position | |
849 | local mag=targ.magnitude | |
850 | if mag<=150 and c.Name~=Character.Name then | |
851 | minifireball=part(3,Character,0,0.5,BrickColor.new("Really red"),"Mini Fireball",vt(10,10,10)) | |
852 | minifireball.CFrame=fireball.CFrame*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100) | |
853 | minifrblmsh=mesh("SpecialMesh",minifireball,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4)) | |
854 | game:GetService("Debris"):AddItem(minifireball,3) | |
855 | so("http://roblox.com/asset/?id=32791565",fireball,1,1) | |
856 | prop=Instance.new("RocketPropulsion") | |
857 | prop.MaxSpeed=500000 | |
858 | prop.CartoonFactor=0 | |
859 | prop.MaxThrust=1000000 | |
860 | prop.Parent=minifireball | |
861 | prop.Target=head | |
862 | prop.ThrustD=1.5 | |
863 | prop.TurnD=0 | |
864 | prop.TurnP=0 | |
865 | prop.ThrustP=10 | |
866 | prop:Fire() | |
867 | fire=Instance.new("Fire") | |
868 | fire.Parent=minifireball | |
869 | fire.Color=Color3.new(255/255,127/255,0) | |
870 | fire.SecondaryColor=Color3.new(0,0,0) | |
871 | fire.Size=5 | |
872 | fire.Heat=10 | |
873 | prop.Target=head | |
874 | con2=minifireball.Touched:connect(function(hit) | |
875 | if hit.Parent.Name~=Character.Name and debounce==false and hit.Name~="Mini Fireball" and hit.Name~="Effect" then | |
876 | debounce=true | |
877 | minifireball.Parent=nil | |
878 | CF=minifireball.CFrame | |
879 | POS=minifireball.Position | |
880 | refprt2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt()) | |
881 | refprt2.CFrame=CF | |
882 | refprt2.Anchored=true | |
883 | so("http://roblox.com/asset/?id=2101148",refprt2,1,0.6) | |
884 | game:GetService("Debris"):AddItem(refprt2,1) | |
885 | Damagefunc(hit,10,20,math.random(20,40),"Knockdown",refprt2) | |
886 | --Damagefunc(hit,10,20,math.random(50,100),"Knockdown",Torso) | |
887 | coroutine.resume(coroutine.create(function(tehCF) | |
888 | MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,3,3,3,0.05) | |
889 | for i=0,1,0.1 do | |
890 | wait(0.1) | |
891 | MagicBlock(BrickColor.new("Bright red"),tehCF,1,1,1,1,1,1,0.1) | |
892 | end | |
893 | end),CF) | |
894 | end | |
895 | end) | |
896 | end | |
897 | end | |
898 | end | |
899 | end | |
900 | for i=0,1,0.1 do | |
901 | wait() | |
902 | Neck.C0=necko*euler(-0.7+0.7*i,0,0) | |
903 | RW.C0=cf(10,5,0)*euler(-3.3+2*i,0,0.1-0.5*i) | |
904 | RW.C1=cf(0,5,0) | |
905 | LW.C0=cf(-10,5,0)*euler(-3.3+2*i,0,-0.1+0.5*i) | |
906 | LW.C1=cf(0,5,0) | |
907 | end | |
908 | game:GetService("Debris"):AddItem(fireball,3) | |
909 | wait(0.4) | |
910 | for i=0,1,0.1 do | |
911 | wait() | |
912 | Neck.C0=necko*euler(0.2*i,0,0) | |
913 | RW.C0=cf(10,5-4*i,3*i)*euler(-1.3+0.5*i,0,-0.4+0.6*i) | |
914 | RW.C1=cf(0,5-4*i,0) | |
915 | LW.C0=cf(-10,5-4*i,3*i)*euler(-1.3+0.5*i,0,0.4-0.6*i) | |
916 | LW.C1=cf(0,5-4*i,0) | |
917 | end | |
918 | attack=true | |
919 | end | |
920 | ||
921 | function Warp() | |
922 | attack=false | |
923 | for i=0,1,0.1 do | |
924 | wait() | |
925 | Neck.C0=necko*euler(0.2-0.2*i,0,0) | |
926 | RW.C0=cf(10,1+2.5*i,3-3*i)*euler(-0.8-0.77*i,0,0.2+1.37*i) | |
927 | RW.C1=cf(0,1+2.5*i,0) | |
928 | LW.C0=cf(-10,1+2.5*i,3-3*i)*euler(-0.8-0.77*i,0,-0.2-1.37*i) | |
929 | LW.C1=cf(0,1+2.5*i,0) | |
930 | end | |
931 | so("http://www.roblox.com/asset/?id=2101137",Torso,1,0.6) | |
932 | n=0 | |
933 | for i=0,1,0.02 do | |
934 | wait() | |
935 | if n==5 then | |
936 | n=0 | |
937 | WaveEffect(BrickColor.new("Bright red"),cf(Torso.Position)*cf(0,-7,0)*euler(0,math.random(-50,50),0),1,1,1,5+5*i,2+2*i,5+5*i,0.1) | |
938 | end | |
939 | n=n+1 | |
940 | end | |
941 | MagicRing(BrickColor.new("Bright red"),cf(Torso.Position)*euler(0,0,0),200,200,200,-10,-10,-10,0.05) | |
942 | MagicRing(BrickColor.new("Bright red"),cf(Torso.Position)*euler(1.57,0,0),200,200,200,-10,-10,-10,0.05) | |
943 | MagicRing(BrickColor.new("Bright red"),cf(Torso.Position)*euler(0,1.57,0),200,200,200,-10,-10,-10,0.05) | |
944 | for _,c in pairs(workspace:children()) do | |
945 | local hum=c:findFirstChild("Humanoid") | |
946 | if hum~=nil then | |
947 | local head=c:findFirstChild("Torso") | |
948 | if head~=nil then | |
949 | local targ=head.Position-Torso.Position | |
950 | local mag=targ.magnitude | |
951 | if mag<=200 and c.Name~=Character.Name then | |
952 | Damagefunc(head,10,20,math.random(-100,-50),"Knockdown",Torso) | |
953 | end | |
954 | end | |
955 | end | |
956 | end | |
957 | so("http://www.roblox.com/asset/?id=161006182",Torso,1,0.2) | |
958 | so("http://www.roblox.com/asset/?id=158210228",Torso,1,0.4) | |
959 | for i=0,1,0.1 do | |
960 | wait() | |
961 | Neck.C0=necko*euler(0.2*i,0,0) | |
962 | RW.C0=cf(10,3.5-2.5*i,3*i)*euler(-1.57+0.77*i,0,1.57-1.37*i) | |
963 | RW.C1=cf(0,3.5-2.5*i,0) | |
964 | LW.C0=cf(-10,3.5-2.5*i,3*i)*euler(-1.57+0.77*i,0,-1.57+1.37*i) | |
965 | LW.C1=cf(0,3.5-2.5*i,0) | |
966 | end | |
967 | attack=true | |
968 | end | |
969 | mouse.Button1Down:connect(function() | |
970 | ||
971 | end) | |
972 | function onKeyDown(key) | |
973 | if attack == true then | |
974 | if key == "f" then | |
975 | Roar() | |
976 | elseif key == "z" then | |
977 | Slam() | |
978 | elseif key == "x" then | |
979 | Warp() | |
980 | elseif key == "c" then | |
981 | Fireball() | |
982 | elseif key == "v" then | |
983 | Scatterball() | |
984 | end | |
985 | end | |
986 | end | |
987 | mouse.KeyDown:connect(onKeyDown) | |
988 | coroutine.resume(coroutine.create(function(Hum) | |
989 | while Hum.Health>0 do | |
990 | wait() | |
991 | end | |
992 | Hum.Parent=nil | |
993 | BodPos.Parent=nil | |
994 | for _,i in pairs(Torso:children()) do | |
995 | if i.className=="Weld" then | |
996 | i.Parent=nil | |
997 | end | |
998 | end | |
999 | for _,i in pairs(Character:children()) do | |
1000 | if i.className=="Part" then | |
1001 | coroutine.resume(coroutine.create(function(Part) | |
1002 | Part.CanCollide=false | |
1003 | local f=it("Fire") | |
1004 | f.Parent=Part | |
1005 | f.Color=Color3.new(255/255,0,0) | |
1006 | f.Heat=20 | |
1007 | f.Size=30 | |
1008 | f.SecondaryColor=Color3.new(0,0,0) | |
1009 | local BodPos2=it("BodyPosition") | |
1010 | BodPos2.P=50000 | |
1011 | BodPos2.D=1000 | |
1012 | BodPos2.maxForce=vt(math.huge,math.huge,math.huge) | |
1013 | BodPos2.position=Part.Position | |
1014 | BodPos2.Parent=Part | |
1015 | local rand1=math.random(-50,50)/100 | |
1016 | local rand2=math.random(-50,50)/100 | |
1017 | for i=0,100 do | |
1018 | wait() | |
1019 | BodPos2.position=BodPos2.position+vt(rand1,-0.5,rand2) | |
1020 | end | |
1021 | end),i) | |
1022 | end | |
1023 | end | |
1024 | wait(5) | |
1025 | Character.Parent=nil | |
1026 | end),Humanoid) | |
1027 | --[[while Humanoid.Health>0 do | |
1028 | wait(1) | |
1029 | target,distance=findNearestTorso(Torso.Position) | |
1030 | if target~=nil then | |
1031 | print(distance) | |
1032 | local pos=Vector3.new(target.Parent.Torso.Position.x,Torso.Position.Y,target.Parent.Torso.Position.z) | |
1033 | BodGy.cframe=CFrame.new(Torso.Position,pos)*euler(-0.2,3.14,0) | |
1034 | if math.random(1,10)==1 then | |
1035 | print("ror") | |
1036 | Roar() | |
1037 | if math.random(1,2)==1 then | |
1038 | Warp() | |
1039 | Slam() | |
1040 | end | |
1041 | else | |
1042 | if distance<=150 and distance>=50 then | |
1043 | dur=math.random(1,3) | |
1044 | if dur==1 then | |
1045 | Warp() | |
1046 | Slam() | |
1047 | else | |
1048 | attack=math.random(1,2) | |
1049 | if attack==1 then Fireball() | |
1050 | elseif attack==2 then Scatterball() | |
1051 | end | |
1052 | end | |
1053 | else | |
1054 | attack=math.random(1,3) | |
1055 | if attack==1 then Fireball() | |
1056 | elseif attack==2 then Slam() | |
1057 | elseif attack==3 then Scatterball() | |
1058 | end | |
1059 | end | |
1060 | end | |
1061 | --Fireball() | |
1062 | --Slam() | |
1063 | --Roar() | |
1064 | --Scatterball() | |
1065 | --Warp() | |
1066 | end | |
1067 | Torso.CFrame=Torso.CFrame*cf(0,10,0) | |
1068 | BodPos.position=Lava.Position+vt(0,2,0) | |
1069 | end]] |