Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = game.Players.LocalPlayer
- Character=Player.Character
- mouse = Player:GetMouse()
- --Lava=script.Parent.Parent.Damager
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- necko=cf(0,-7,0,-1,-0,-0,0,0,1,0,1,0)
- necko2=cf(0,3.5,0,-1,-0,-0,0,0,1,0,1,0)
- attack=true
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- wait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end))
- end
- for _,v in pairs(Character:children()) do
- if v.className=="Part" then
- v.Anchored=false
- end
- end
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- for _,v in pairs(Character:children()) do
- if v:IsA("Part") then
- v:Remove()
- elseif v:IsA("Humanoid") then
- v:Remove()
- end
- end
- wait(1)
- local Head = Instance.new("Part")
- Head.formFactor = 3
- Head.CanCollide = true
- Head.Name = "Head"
- Head.Locked = true
- Head.Size = Vector3.new(13.697, 6.848, 6.848)
- Head.Parent = Character
- Head.Material = "Granite"
- Head.BrickColor = BrickColor.new("Black")
- local smh = Instance.new("SpecialMesh",Head)
- smh.Scale = Vector3.new(1.3, 1.3, 1.3)
- local kek = Instance.new("PointLight", Head)
- kek.Range = 60
- local Torso = Instance.new("Part")
- Torso.formFactor = 3
- Torso.CanCollide = true
- Torso.Name = "Torso"
- Torso.Locked = true
- Torso.Size = Vector3.new(13.697, 13.697, 6.848)
- Torso.Parent = Character
- Torso.BrickColor = BrickColor.new("Neon orange")
- Torso.Material = "Granite"
- local msht = Instance.new("BlockMesh",Torso)
- local RightArm = Instance.new("Part")
- RightArm.formFactor = 3
- RightArm.CanCollide = true
- RightArm.Name = "Right Arm"
- RightArm.Locked = true
- RightArm.Size = Vector3.new(6.848, 13.697, 6.848)
- RightArm.Parent = Character
- RightArm.Material = "Granite"
- RightArm.BrickColor = BrickColor.new("Neon orange")
- local mshra = Instance.new("BlockMesh",RightArm)
- local LeftArm = Instance.new("Part")
- LeftArm.formFactor = 3
- LeftArm.CanCollide = true
- LeftArm.Name = "Left Arm"
- LeftArm.Locked = true
- LeftArm.Size = Vector3.new(6.848, 13.697, 6.848)
- LeftArm.Parent = Character
- LeftArm.Material = "Granite"
- LeftArm.BrickColor = BrickColor.new("Neon orange")
- local mshla = Instance.new("BlockMesh",LeftArm)
- local Helmet = Instance.new("Part")
- Helmet.formFactor = 3
- Helmet.CanCollide = true
- Helmet.Name = "Helmet"
- Helmet.Locked = true
- Helmet.Size = Vector3.new(2, 2, 2)
- Helmet.Parent = Character
- local smh = Instance.new("SpecialMesh",Helmet)
- smh.Scale = Vector3.new(7, 7, 7)
- smh.MeshId = "http://www.roblox.com/asset/?id=47623768"
- smh.TextureId = "http://www.roblox.com/asset/?id=47623755"
- Head=Character.Head
- Torso=Character.Torso
- LeftArm=Character["Left Arm"]
- RightArm=Character["Right Arm"]
- Helmet=Character.Helmet
- function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
- local fp = it("Part")
- fp.formFactor = formfactor
- fp.Parent = parent
- fp.Reflectance = reflectance
- fp.Transparency = transparency
- fp.CanCollide = false
- fp.Locked=true
- fp.BrickColor = brickcolor
- fp.Name = name
- fp.Size = size
- fp.Position = Torso.Position
- NoOutline(fp)
- fp.BottomSurface="Smooth"
- fp.TopSurface="Smooth"
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh = it(Mesh)
- mesh.Parent = part
- if Mesh=="SpecialMesh" then
- mesh.MeshType = meshtype
- mesh.MeshId = meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0)
- local weld = it("Weld")
- weld.Parent = parent
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C0 = c0
- return weld
- end
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 130
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2.Name~=Character) then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- print(human)
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso,dist
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- wait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- wait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- --"http://www.roblox.com/asset/?id=168892465"
- local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- wait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- wait()
- Part.CFrame=Part.CFrame*cf(0,y3/2,0)
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property)
- if hit.Parent==nil then
- return
- end
- CPlayer=Bin
- h=hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- block.Value=block.Value-1
- end
- end
- end
- if blocked==false then
- h:TakeDamage(Damage)
- showDamage(hit.Parent,Damage,.5,BrickColor:Red())
- else
- h:TakeDamage(Damage/2)
- showDamage(hit.Parent,Damage,.5,BrickColor.new("Bright blue"))
- end
- if Type=="Knockdown" then
- hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- wait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Normal" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,20,0)
- bodyVelocity.P=5000
- bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,.5)
- elseif Type=="Snare" then
- bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Freeze" then
- BodPos=Instance.new("BodyPosition")
- BodPos.P=50000
- BodPos.D=1000
- BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- BodPos.position=hit.Parent.Torso.Position
- BodPos.Parent=hit.Parent.Torso
- BodGy = it("BodyGyro")
- BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
- BodGy.P = 20e+003
- BodGy.Parent=hit.Parent.Torso
- BodGy.cframe = hit.Parent.Torso.CFrame
- hit.Parent.Torso.Anchored=true
- coroutine.resume(coroutine.create(function(Part)
- wait(1.5)
- Part.Anchored=false
- end),hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos,3)
- game:GetService("Debris"):AddItem(BodGy,3)
- end
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- showDamage=function(Char,Dealt,du,Color)
- m=Instance.new("Model")
- m.Name=tostring(Dealt)
- h=Instance.new("Humanoid")
- h.Health=0
- h.MaxHealth=0
- h.Parent=m
- c=Instance.new("Part")
- c.Transparency=0
- c.BrickColor=Color
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- c.formFactor="Plate"
- c.Size=Vector3.new(1,.4,1)
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- if CRIT==true then
- ms.Scale=Vector3.new(1,1.25,1)
- end
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- if Char:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
- else
- c.CFrame=CFrame.new(Char["Torso"].CFrame.p+Vector3.new(0,1.5,0))
- end
- f=Instance.new("BodyPosition")
- f.P=2000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- f.position=c.Position+Vector3.new(0,3,0)
- f.Parent=c
- game:GetService("Debris"):AddItem(m,.5+du)
- c.CanCollide=false
- m.Parent=workspace
- c.CanCollide=false
- end
- colr = BrickColor.new("Flame reddish orange")
- con = Damager.Touched:connect(function(part)
- if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Name~=Character.Name then
- if part:FindFirstChild("fiar") == nil and part:FindFirstChild("glow") == nil then
- fiar = Instance.new("Fire")
- fiar.Name = "fiar"
- fiar.Parent = part
- glow = Instance.new("PointLight")
- glow.Name = "glow"
- glow.Parent = part
- glow.Color = colr.Color
- end
- else
- end
- end)
- local roar=Instance.new("Sound")
- roar.Parent=Head
- roar.Volume=1
- roar.Pitch=1
- roar.SoundId="http://www.roblox.com/asset/?id=172088894"
- local roar2=Instance.new("Sound")
- roar2.Parent=Head
- roar2.Volume=1
- roar2.Pitch=1
- roar2.SoundId="http://www.roblox.com/asset/?id=172088894"
- local Neck=weld(Torso,Head,Torso,cf(0,0,0))
- Neck.C0=necko*euler(0.2,0,0)
- Neck.C1=necko2
- local Helmweld=weld(Torso,Head,Helmet,cf(0,3.8,0.5)*euler(0,3.14,0))
- local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
- local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
- RW.C0=cf(10,1,3)*euler(-0.8,0,0.2)
- RW.C1=cf(0,1,0)
- LW.C0=cf(-10,1,3)*euler(-0.8,0,-0.2)
- LW.C1=cf(0,1,0)
- Torso.CFrame=Torso.CFrame*cf(0,10,0)
- local BodPos=it("BodyPosition")
- BodPos.P=50000
- BodPos.D=1000
- BodPos.maxForce=vt(math.huge,math.huge,math.huge)
- BodPos.position=Damager.Position+vt(0,7,0)
- BodPos.Parent=Torso
- local BodGy=it("BodyGyro")
- BodGy.maxTorque=vt(4e+005,4e+005,4e+005)*math.huge
- BodGy.P=20e+003
- BodGy.Parent=Torso
- BodGy.cframe=Torso.CFrame
- --BodGy.cframe=cf(0,0,0)*euler(0,3.14*i,0)
- for _,v in pairs(Character:children()) do
- if v.className=="Part" then
- v.Transparency=1
- end
- end
- --[[dur=script.Parent.Parent[" "]
- Hum=dur.Humanoid
- while Hum.Health>0 do
- wait()
- end]]
- local Humanoid=Instance.new("Humanoid")
- Humanoid.Parent=Character
- Humanoid.MaxHealth=4000
- Humanoid.Health=Humanoid.MaxHealth
- coroutine.resume(coroutine.create(function()
- for i=1,50 do
- Humanoid.MaxHealth=4000
- Humanoid.Health=4000
- wait()
- end
- --_G["AddHumanoidDamageTag"](Humanoid,workspace.Map,1,"Ranged","Fire","Magic")
- end))
- for _,v in pairs(Character:children()) do
- if v.className=="Part" then
- v.Transparency=0
- end
- end
- function Fireball()
- attack=false
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0.2-0.8*i,0,0)
- RW.C0=cf(10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,0.2-0.6*i)
- RW.C1=cf(0,1+4*i,0)
- LW.C0=cf(-10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,-0.2+0.6*i)
- LW.C1=cf(0,1+4*i,0)
- end
- refprt=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt())
- refwld=weld(refprt,refprt,Torso,cf(0,-15,0))
- game:GetService("Debris"):AddItem(refprt,4)
- fireball=part(3,Character,0,0.5,BrickColor.new("Really red"),"Fireball",vt(10,10,10))
- fireball.Anchored = true
- fireball.CFrame = refprt.CFrame
- frblmsh=mesh("SpecialMesh",fireball,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4))
- so("http://roblox.com/asset/?id=32791565",fireball,1,1)
- prop=Instance.new("RocketPropulsion")
- prop.MaxSpeed=500000
- prop.CartoonFactor=0
- prop.MaxThrust=1000000
- prop.Parent=fireball
- prop.Target=refprt
- prop.ThrustD=1.5
- prop.TurnD=0
- prop.TurnP=0
- prop:Fire()
- fire=Instance.new("Fire")
- fire.Parent=fireball
- fire.Color=Color3.new(255/255,127/255,0)
- fire.SecondaryColor=Color3.new(0,0,0)
- fire.Size=5
- fire.Heat=20
- n=2
- for i=0,1,0.05 do
- wait()
- frblmsh.Scale=vt(0.4+0.2*i,0.4+0.2*i,0.4+0.2*i)
- refwld.C0=cf(0,-15-5*i,0)
- fire.Size=5+10*i
- fire.Heat=20+10*i
- Neck.C0=necko*euler(-0.6-0.1*i*n,0,0)
- RW.C0=cf(10,5,0)*euler(-3-0.1*i*n,0,-0.4-0.1*i*n)
- RW.C1=cf(0,5,0)
- LW.C0=cf(-10,5,0)*euler(-3-0.1*i*n,0,0.4+0.1*i*n)
- LW.C1=cf(0,5,0)
- n=n-0.05
- end
- n=2
- for i=0,1,0.1 do
- wait()
- frblmsh.Scale=vt(0.6+0.8*i,0.6+0.8*i,0.6+0.8*i)
- fire.Size=15+5*i
- fire.Heat=30+10*i
- Neck.C0=necko*euler(-0.7-0.1*i*n,0,0)
- RW.C0=cf(10,5,0)*euler(-3.1-0.2*i*n,0,-0.5+0.6*i*n)
- RW.C1=cf(0,5,0)
- LW.C0=cf(-10,5,0)*euler(-3.1-0.2*i*n,0,0.5-0.6*i*n)
- LW.C1=cf(0,5,0)
- n=n-0.1
- end
- refprt.Parent=nil
- debounce=false
- con1=fireball.Touched:connect(function(hit)
- if hit.Parent.Name~=Character.Name and debounce==false and hit.Name~="Effect" then
- debounce=true
- fireball.Parent=nil
- CF=fireball.CFrame
- POS=fireball.Position
- b=Instance.new("Explosion")
- b.Parent=workspace
- b.Position=fireball.Position
- b.BlastPressure=0
- refprt2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
- refprt2.CFrame=CF
- refprt2.Anchored=true
- so("http://roblox.com/asset/?id=2101148",refprt2,1,0.6)
- game:GetService("Debris"):AddItem(refprt2,1)
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=c:findFirstChild("Torso")
- if head~=nil then
- local targ=head.Position-POS
- local mag=targ.magnitude
- if mag<=20 and c.Name~=Character.Name then
- Damagefunc(head,25,40,math.random(50,100),"Knockdown",refprt2)
- end
- end
- end
- end
- coroutine.resume(coroutine.create(function(tehCF)
- MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,3,3,3,0.05)
- for i=0,1,0.1 do
- wait(0.1)
- MagicBlock(BrickColor.new("Bright red"),tehCF,1,1,1,5,5,5,0.1)
- end
- end),CF)
- end
- end)
- prop.ThrustP=2
- target=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt())
- target.Position = mouse.Hit.p
- fireball.Anchored = false
- prop.Target=target
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(-0.7+0.7*i,0,0)
- RW.C0=cf(10,5,0)*euler(-3.3+2*i,0,0.1-0.5*i)
- RW.C1=cf(0,5,0)
- LW.C0=cf(-10,5,0)*euler(-3.3+2*i,0,-0.1+0.5*i)
- LW.C1=cf(0,5,0)
- end
- game:GetService("Debris"):AddItem(fireball,3)
- wait(0.4)
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0.2*i,0,0)
- RW.C0=cf(10,5-4*i,3*i)*euler(-1.3+0.5*i,0,-0.4+0.6*i)
- RW.C1=cf(0,5-4*i,0)
- LW.C0=cf(-10,5-4*i,3*i)*euler(-1.3+0.5*i,0,0.4-0.6*i)
- LW.C1=cf(0,5-4*i,0)
- end
- attack=true
- end
- function Slam()
- attack=false
- --COME ON AND SLAM
- --AND WELCOME TO THE JAM
- for i=0,1,0.05 do
- wait()
- Neck.C0=necko*euler(0.2-0.8*i,0,0)
- RW.C0=cf(10-4*i,1+4*i,3-3*i)*euler(-0.8-2*i,0,0.2-0.8*i)
- RW.C1=cf(0,1+4*i,0)
- LW.C0=cf(-10+4*i,1+4*i,3-3*i)*euler(-0.8-2*i,0,-0.2+0.8*i)
- LW.C1=cf(0,1+4*i,0)
- end
- n=2
- for i=0,1,0.05 do
- wait()
- Neck.C0=necko*euler(-0.6-0.2*i*n,0,0)
- RW.C0=cf(6,5,0)*euler(-2.8-0.2*i*n,0,-0.6)
- RW.C1=cf(0,5,0)
- LW.C0=cf(-6,5,0)*euler(-2.8-0.2*i*n,0,0.6)
- LW.C1=cf(0,5,0)
- n=n-0.05
- end
- for i=0,1,0.2 do
- wait()
- Neck.C0=necko*euler(-0.8+1*i,0,0)
- RW.C0=cf(6,5-3*i,2*i)*euler(-3+2*i,0,-0.6)
- RW.C1=cf(0,5-3*i,0)
- LW.C0=cf(-6,5-3*i,2*i)*euler(-3+2*i,0,0.6)
- LW.C1=cf(0,5-3*i,0)
- end
- tehCF=Torso.CFrame*cf(0,-5,10)
- refprt=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt())
- refprt.Anchored=true
- refprt.CFrame=tehCF
- so("http://roblox.com/asset/?id=157878578",refprt,1,0.4)
- so("http://roblox.com/asset/?id=2101148",refprt,1,0.6)
- game:GetService("Debris"):AddItem(refprt,2)
- MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,5,5,5,0.05)
- MagicRing(BrickColor.new("Really red"),cf(refprt.Position)*euler(1.57,0,0),1,1,1,3,3,3,0.02)
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=c:findFirstChild("Torso")
- if head~=nil then
- local targ=head.Position-refprt.Position
- local mag=targ.magnitude
- if mag<=30 and c.Name~=Character.Name then
- Damagefunc(head,15,30,math.random(50,100),"",refprt)
- end
- end
- end
- end
- coroutine.resume(coroutine.create(function(Part)
- wait(0.5)
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=c:findFirstChild("Torso")
- if head~=nil then
- local targ=head.Position-Part.Position
- local mag=targ.magnitude
- if mag<=40 and c.Name~=Character.Name then
- Damagefunc(head,10,20,math.random(20,40),"Knockdown",refprt)
- end
- end
- end
- end
- end),refprt)
- wait(0.2)
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0.2,0,0)
- RW.C0=cf(6+4*i,2-1*i,2+1*i)*euler(-1+0.2*i,0,-0.6+0.8*i)
- RW.C1=cf(0,2-1*i,0)
- LW.C0=cf(-6-4*i,2-1*i,2+1*i)*euler(-1+0.2*i,0,0.6-0.8*i)
- LW.C1=cf(0,2-1*i,0)
- end
- attack=true
- end
- function Roar()
- attack=false
- for i=0,1,0.05 do
- wait()
- Neck.C0=necko*euler(0.2+0.2*i,0,0)
- RW.C0=cf(10-4*i,1+3*i,3-3*i)*euler(-0.8-1.4*i,0,0.2-0.8*i)
- RW.C1=cf(0,1+3*i,0)
- LW.C0=cf(-10+4*i,1+3*i,3-3*i)*euler(-0.8-1.4*i,0,-0.2+0.8*i)
- LW.C1=cf(0,1+3*i,0)
- end
- n=2
- for i=0,1,0.05 do
- wait()
- Neck.C0=necko*euler(0.4+0.1*i*n,0,0)
- RW.C0=cf(6,4,0)*euler(-2.2+0.1*i*n,0,-0.6)
- RW.C1=cf(0,4,0)
- LW.C0=cf(-6,4,0)*euler(-2.2+0.1*i*n,0,0.6)
- LW.C1=cf(0,4,0)
- n=n-0.05
- end
- roar:Play()
- roar2:Play()
- for i=0,1,0.2 do
- wait()
- Neck.C0=necko*euler(0.5-0.7*i,0,0)
- RW.C0=cf(6+4*i,4-3*i,-1.8*i)*euler(-2.1+2.7*i,0,-0.6+1.2*i)
- RW.C1=cf(0,4-3*i,0)
- LW.C0=cf(-6-4*i,4-3*i,-1.8*i)*euler(-2.1+2.7*i,0,0.6-1.2*i)
- LW.C1=cf(0,4-3*i,0)
- noe=math.random(10,20)
- 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)
- end
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=c:findFirstChild("Torso")
- if head~=nil then
- local targ=head.Position-Head.Position
- local mag=targ.magnitude
- if mag<=100 and c.Name~=Character.Name then
- Damagefunc(head,40,40,math.random(100,150),"Knockdown",Head)
- end
- end
- end
- end
- n=2
- for i=0,1,0.2 do
- wait()
- Neck.C0=necko*euler(-0.2-0.1*i*n,0,0)
- 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)
- RW.C1=cf(0,1,0)
- 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)
- LW.C1=cf(0,1,0)
- noe=math.random(10,20)
- 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)
- n=n-0.2
- end
- wait(0.5)
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(-0.3+0.5*i,0,0)
- RW.C0=cf(10,1,-2+5*i)*euler(0.7-1.5*i,0,0.7-0.5*i)
- RW.C1=cf(0,1,0)
- LW.C0=cf(-10,1,-2+5*i)*euler(0.7-1.5*i,0,-0.7+0.5*i)
- LW.C1=cf(0,1,0)
- end
- attack=true
- end
- function Scatterball()
- attack=false
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0.2-0.8*i,0,0)
- RW.C0=cf(10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,0.2-0.6*i)
- RW.C1=cf(0,1+4*i,0)
- LW.C0=cf(-10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,-0.2+0.6*i)
- LW.C1=cf(0,1+4*i,0)
- end
- refprt=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt())
- refwld=weld(refprt,refprt,Torso,cf(0,-15,0))
- game:GetService("Debris"):AddItem(refprt,4)
- fireball=part(3,Character,0,0.5,BrickColor.new("Really red"),"Fireball",vt(10,10,10))
- frblmsh=mesh("SpecialMesh",fireball,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4))
- fireball.Anchored = true
- fireball.CFrame = refprt.CFrame
- so("http://roblox.com/asset/?id=32791565",fireball,1,1)
- prop=Instance.new("RocketPropulsion")
- prop.MaxSpeed=500000
- prop.CartoonFactor=0
- prop.MaxThrust=1000000
- prop.Parent=fireball
- prop.Target=refprt
- prop.ThrustD=1.5
- prop.TurnD=0
- prop.TurnP=0
- prop:Fire()
- fire=Instance.new("Fire")
- fire.Parent=fireball
- fire.Color=Color3.new(255/255,127/255,0)
- fire.SecondaryColor=Color3.new(0,0,0)
- fire.Size=5
- fire.Heat=20
- n=2
- con1=fireball.Touched:connect(function(hit)
- if hit.Parent.Name~=Character.Name and debounce==false and hit.Name~="Mini Fireball" and hit.Name~="Effect" then
- debounce=true
- minifireball.Parent=nil
- CF=minifireball.CFrame
- POS=minifireball.Position
- refprt2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
- refprt2.CFrame=CF
- refprt2.Anchored=true
- so("http://roblox.com/asset/?id=2101148",refprt2,1,0.6)
- game:GetService("Debris"):AddItem(refprt2,1)
- Damagefunc(hit,10,20,math.random(20,40),"Knockdown",refprt2)
- --Damagefunc(hit,10,20,math.random(50,100),"Knockdown",Torso)
- coroutine.resume(coroutine.create(function(tehCF)
- MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,3,3,3,0.05)
- for i=0,1,0.1 do
- wait(0.1)
- MagicBlock(BrickColor.new("Bright red"),tehCF,1,1,1,1,1,1,0.1)
- end
- end),CF)
- end
- end)
- for i=0,1,0.05 do
- wait()
- frblmsh.Scale=vt(0.4+0.2*i,0.4+0.2*i,0.4+0.2*i)
- refwld.C0=cf(0,-15-5*i,0)
- fire.Size=5+10*i
- fire.Heat=20+10*i
- Neck.C0=necko*euler(-0.6-0.1*i*n,0,0)
- RW.C0=cf(10,5,0)*euler(-3-0.1*i*n,0,-0.4-0.1*i*n)
- RW.C1=cf(0,5,0)
- LW.C0=cf(-10,5,0)*euler(-3-0.1*i*n,0,0.4+0.1*i*n)
- LW.C1=cf(0,5,0)
- n=n-0.05
- end
- n=2
- for i=0,1,0.1 do
- wait()
- frblmsh.Scale=vt(0.6+0.8*i,0.6+0.8*i,0.6+0.8*i)
- fire.Size=15+5*i
- fire.Heat=30+10*i
- Neck.C0=necko*euler(-0.7-0.1*i*n,0,0)
- RW.C0=cf(10,5,0)*euler(-3.1-0.2*i*n,0,-0.5+0.6*i*n)
- RW.C1=cf(0,5,0)
- LW.C0=cf(-10,5,0)*euler(-3.1-0.2*i*n,0,0.5-0.6*i*n)
- LW.C1=cf(0,5,0)
- n=n-0.1
- end
- wait(0.5)
- fireball.Anchored = false
- fireball.Parent=nil
- refprt.Parent=nil
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=c:findFirstChild("Torso")
- if head~=nil then
- local targ=head.Position-Torso.Position
- local mag=targ.magnitude
- if mag<=150 and c.Name~=Character.Name then
- minifireball=part(3,Character,0,0.5,BrickColor.new("Really red"),"Mini Fireball",vt(10,10,10))
- minifireball.CFrame=fireball.CFrame*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
- minifrblmsh=mesh("SpecialMesh",minifireball,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4))
- game:GetService("Debris"):AddItem(minifireball,3)
- so("http://roblox.com/asset/?id=32791565",fireball,1,1)
- prop=Instance.new("RocketPropulsion")
- prop.MaxSpeed=500000
- prop.CartoonFactor=0
- prop.MaxThrust=1000000
- prop.Parent=minifireball
- prop.Target=head
- prop.ThrustD=1.5
- prop.TurnD=0
- prop.TurnP=0
- prop.ThrustP=10
- prop:Fire()
- fire=Instance.new("Fire")
- fire.Parent=minifireball
- fire.Color=Color3.new(255/255,127/255,0)
- fire.SecondaryColor=Color3.new(0,0,0)
- fire.Size=5
- fire.Heat=10
- prop.Target=head
- con2=minifireball.Touched:connect(function(hit)
- if hit.Parent.Name~=Character.Name and debounce==false and hit.Name~="Mini Fireball" and hit.Name~="Effect" then
- debounce=true
- minifireball.Parent=nil
- CF=minifireball.CFrame
- POS=minifireball.Position
- refprt2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
- refprt2.CFrame=CF
- refprt2.Anchored=true
- so("http://roblox.com/asset/?id=2101148",refprt2,1,0.6)
- game:GetService("Debris"):AddItem(refprt2,1)
- Damagefunc(hit,10,20,math.random(20,40),"Knockdown",refprt2)
- --Damagefunc(hit,10,20,math.random(50,100),"Knockdown",Torso)
- coroutine.resume(coroutine.create(function(tehCF)
- MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,3,3,3,0.05)
- for i=0,1,0.1 do
- wait(0.1)
- MagicBlock(BrickColor.new("Bright red"),tehCF,1,1,1,1,1,1,0.1)
- end
- end),CF)
- end
- end)
- end
- end
- end
- end
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(-0.7+0.7*i,0,0)
- RW.C0=cf(10,5,0)*euler(-3.3+2*i,0,0.1-0.5*i)
- RW.C1=cf(0,5,0)
- LW.C0=cf(-10,5,0)*euler(-3.3+2*i,0,-0.1+0.5*i)
- LW.C1=cf(0,5,0)
- end
- game:GetService("Debris"):AddItem(fireball,3)
- wait(0.4)
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0.2*i,0,0)
- RW.C0=cf(10,5-4*i,3*i)*euler(-1.3+0.5*i,0,-0.4+0.6*i)
- RW.C1=cf(0,5-4*i,0)
- LW.C0=cf(-10,5-4*i,3*i)*euler(-1.3+0.5*i,0,0.4-0.6*i)
- LW.C1=cf(0,5-4*i,0)
- end
- attack=true
- end
- function Warp()
- attack=false
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0.2-0.2*i,0,0)
- RW.C0=cf(10,1+2.5*i,3-3*i)*euler(-0.8-0.77*i,0,0.2+1.37*i)
- RW.C1=cf(0,1+2.5*i,0)
- LW.C0=cf(-10,1+2.5*i,3-3*i)*euler(-0.8-0.77*i,0,-0.2-1.37*i)
- LW.C1=cf(0,1+2.5*i,0)
- end
- so("http://www.roblox.com/asset/?id=2101137",Torso,1,0.6)
- n=0
- for i=0,1,0.02 do
- wait()
- if n==5 then
- n=0
- 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)
- end
- n=n+1
- end
- MagicRing(BrickColor.new("Bright red"),cf(Torso.Position)*euler(0,0,0),200,200,200,-10,-10,-10,0.05)
- MagicRing(BrickColor.new("Bright red"),cf(Torso.Position)*euler(1.57,0,0),200,200,200,-10,-10,-10,0.05)
- MagicRing(BrickColor.new("Bright red"),cf(Torso.Position)*euler(0,1.57,0),200,200,200,-10,-10,-10,0.05)
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=c:findFirstChild("Torso")
- if head~=nil then
- local targ=head.Position-Torso.Position
- local mag=targ.magnitude
- if mag<=200 and c.Name~=Character.Name then
- Damagefunc(head,10,20,math.random(-100,-50),"Knockdown",Torso)
- end
- end
- end
- end
- so("http://www.roblox.com/asset/?id=161006182",Torso,1,0.2)
- so("http://www.roblox.com/asset/?id=158210228",Torso,1,0.4)
- for i=0,1,0.1 do
- wait()
- Neck.C0=necko*euler(0.2*i,0,0)
- RW.C0=cf(10,3.5-2.5*i,3*i)*euler(-1.57+0.77*i,0,1.57-1.37*i)
- RW.C1=cf(0,3.5-2.5*i,0)
- LW.C0=cf(-10,3.5-2.5*i,3*i)*euler(-1.57+0.77*i,0,-1.57+1.37*i)
- LW.C1=cf(0,3.5-2.5*i,0)
- end
- attack=true
- end
- mouse.Button1Down:connect(function()
- end)
- function onKeyDown(key)
- if attack == true then
- if key == "f" then
- Roar()
- elseif key == "z" then
- Slam()
- elseif key == "x" then
- Warp()
- elseif key == "c" then
- Fireball()
- elseif key == "v" then
- Scatterball()
- end
- end
- end
- mouse.KeyDown:connect(onKeyDown)
- coroutine.resume(coroutine.create(function(Hum)
- while Hum.Health>0 do
- wait()
- end
- Hum.Parent=nil
- BodPos.Parent=nil
- for _,i in pairs(Torso:children()) do
- if i.className=="Weld" then
- i.Parent=nil
- end
- end
- for _,i in pairs(Character:children()) do
- if i.className=="Part" then
- coroutine.resume(coroutine.create(function(Part)
- Part.CanCollide=false
- local f=it("Fire")
- f.Parent=Part
- f.Color=Color3.new(255/255,0,0)
- f.Heat=20
- f.Size=30
- f.SecondaryColor=Color3.new(0,0,0)
- local BodPos2=it("BodyPosition")
- BodPos2.P=50000
- BodPos2.D=1000
- BodPos2.maxForce=vt(math.huge,math.huge,math.huge)
- BodPos2.position=Part.Position
- BodPos2.Parent=Part
- local rand1=math.random(-50,50)/100
- local rand2=math.random(-50,50)/100
- for i=0,100 do
- wait()
- BodPos2.position=BodPos2.position+vt(rand1,-0.5,rand2)
- end
- end),i)
- end
- end
- wait(5)
- Character.Parent=nil
- end),Humanoid)
- --[[while Humanoid.Health>0 do
- wait(1)
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- print(distance)
- local pos=Vector3.new(target.Parent.Torso.Position.x,Torso.Position.Y,target.Parent.Torso.Position.z)
- BodGy.cframe=CFrame.new(Torso.Position,pos)*euler(-0.2,3.14,0)
- if math.random(1,10)==1 then
- print("ror")
- Roar()
- if math.random(1,2)==1 then
- Warp()
- Slam()
- end
- else
- if distance<=150 and distance>=50 then
- dur=math.random(1,3)
- if dur==1 then
- Warp()
- Slam()
- else
- attack=math.random(1,2)
- if attack==1 then Fireball()
- elseif attack==2 then Scatterball()
- end
- end
- else
- attack=math.random(1,3)
- if attack==1 then Fireball()
- elseif attack==2 then Slam()
- elseif attack==3 then Scatterball()
- end
- end
- end
- --Fireball()
- --Slam()
- --Roar()
- --Scatterball()
- --Warp()
- end
- Torso.CFrame=Torso.CFrame*cf(0,10,0)
- BodPos.position=Lava.Position+vt(0,2,0)
- end]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement