Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---King neph fixed by navaltom02.Version 1.1
- local p = game.Players.LocalPlayer--300899323
- local char = p.Character
- local mouse = p:GetMouse()
- local larm = char["Left Arm"]
- local rarm = char["Right Arm"]
- local lleg = char["Left Leg"]
- local rleg = char["Right Leg"]
- local hed = char.Head
- local torso = char.Torso
- local hum = char.Humanoid
- local cam = game.Workspace.CurrentCamera
- local root = char.HumanoidRootPart
- local rj = root.RootJoint
- local deb = false
- local shot = 0
- local stanceToggle = "Idle1"
- local l = game:GetService("Lighting")
- local rs = game:GetService("RunService").RenderStepped
- local hb = game:GetService("RunService").Heartbeat
- local Stepped = game:GetService("RunService").Stepped
- math.randomseed(os.time())
- local Transforming = true
- hum.WalkSpeed = 0
- local fx = Instance.new("Part",torso)
- wit = Color3.new(0, 1, 1), Color3.new(0.5, 0, 1)
- wit2 = Color3.new(0.5,0,1)
- local glowz = Instance.new("ParticleEmitter",fx)
- glowz.LightEmission = 1
- glowz.Texture = "rbxassetid://280516525"
- glowz.Color = ColorSequence.new(Color3.new(0, 1, 1), Color3.new(0.5, 0, 1))
- glowz.Size = NumberSequence.new(5)
- glowz.Speed = NumberRange.new(25,50)
- glowz.LockedToPart = false
- glowz.Transparency = NumberSequence.new(0.75)
- glowz.RotSpeed = NumberRange.new(-2000,2000)
- glowz.Lifetime = NumberRange.new(1)
- glowz.Rate = 5000
- glowz.VelocitySpread = 9001
- fx.Anchored = true
- fx.Material = "Neon"
- fx.CanCollide = false
- fx.Locked = true
- fx.Transparency = 1
- fx.Material = "Neon"
- fx.Size = Vector3.new(1,1,1)
- fx.TopSurface = "SmoothNoOutlines"
- fx.BottomSurface = "SmoothNoOutlines"
- fx.BrickColor = BrickColor.new("Really black")
- fxm = Instance.new("SpecialMesh",fx)
- fxm.MeshType = "Sphere"
- local sa2 = Instance.new("Sound",torso)
- sa2.SoundId = "rbxassetid://93724183"
- sa2.Pitch = 0.5
- sa2.Volume = 5
- sa2.Looped = false
- sa2:Play()
- local value = 1
- fxm.Scale = Vector3.new(1,1,1)
- for i = 1, 20 do rs:wait()
- value = value - 0.05
- fx.Transparency = fx.Transparency - (1/20)
- fx.CFrame = torso.CFrame
- fxm.Scale = fxm.Scale + Vector3.new(value,value,value)
- rs:wait()
- end
- ----------------------------------------------------
- GroundWave1 = function()
- local Transforming = true
- hum.WalkSpeed = 0
- local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- local Colors = {"White", "Really black"}
- local wave = Instance.new("Part", torso)
- wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave.Anchored = true
- wave.CanCollide = false
- wave.Locked = true
- wave.Size = Vector3.new(1, 1, 1)
- wave.TopSurface = "Smooth"
- wave.BottomSurface = "Smooth"
- wave.Transparency = 0.35
- wave.CFrame = HandCF
- wm = Instance.new("SpecialMesh", wave)
- wm.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm.Scale = Vector3.new(50, 50, 1 + i*50)
- wave.Size = wm.Scale
- wave.CFrame = HandCF
- wave.Transparency = i/30
- wait()
- end
- wait()
- wave:Destroy()
- end)()
- end
- ----------------------------------------------------
- GroundWave = function()
- if Transforming == true then
- local value = 5
- local value2 = 10
- local value3 = 20
- local sa2 = Instance.new("Sound",torso)
- sa2.SoundId = "rbxassetid://413682983"
- sa2.Pitch = 1
- sa2.Volume = 10
- sa2.Looped = false
- sa2:Play()
- local wave = Instance.new("Part", torso)
- local glowz = Instance.new("ParticleEmitter",wave)
- glowz.LightEmission = 1
- glowz.Texture = "0"
- glowz.Color = ColorSequence.new(Color3.new(0, 1, 1), Color3.new(0.5, 0, 1))
- glowz.Size = NumberSequence.new(30)
- glowz.Speed = NumberRange.new(25,100)
- glowz.LockedToPart = false
- glowz.Transparency = NumberSequence.new(0.75)
- glowz.RotSpeed = NumberRange.new(-2000,2000)
- glowz.Lifetime = NumberRange.new(1)
- glowz.Rate = 5000
- glowz.VelocitySpread = 9001
- wave.BrickColor = BrickColor.new("Toothpaste")
- wave.Anchored = true
- wave.CanCollide = false
- wave.Locked = true
- wave.Size = Vector3.new(1, 1, 1)
- wave.TopSurface = "Smooth"
- wave.BottomSurface = "Smooth"
- wave.Transparency = 0.35
- wave.CFrame = fx.CFrame
- wave.Material = "Neon"
- wm = Instance.new("SpecialMesh", wave)
- wm.MeshType = "Sphere"
- wm.Scale = Vector3.new(1,1,1)
- local wave2 = Instance.new("Part", torso)
- wave2.BrickColor = BrickColor.new("Toothpaste")
- wave2.Anchored = true
- wave2.CanCollide = false
- wave2.Locked = true
- wave2.Size = Vector3.new(1, 1, 1)
- wave2.TopSurface = "Smooth"
- wave2.BottomSurface = "Smooth"
- wave2.Transparency = 0.35
- wave2.CFrame = fx.CFrame
- wave2.Material = "Neon"
- wm2 = Instance.new("SpecialMesh", wave2)
- wm2.MeshType = "FileMesh"
- wm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
- wm2.Scale = Vector3.new(1,1,1)
- local wave3 = Instance.new("Part", torso)
- wave3.BrickColor = BrickColor.new("Really black")
- wave3.Anchored = true
- wave3.CanCollide = false
- wave3.Locked = true
- wave3.Size = Vector3.new(1, 1, 1)
- wave3.TopSurface = "Smooth"
- wave3.BottomSurface = "Smooth"
- wave3.Transparency = 0.35
- wave3.CFrame = fx.CFrame
- wave3.Material = "Neon"
- wm3 = Instance.new("SpecialMesh", wave3)
- wm3.MeshType = "FileMesh"
- wm3.MeshId = "http://www.roblox.com/asset/?id=3270017"
- wm3.Scale = Vector3.new(1,1,1)
- coroutine.wrap(function()
- for i = 1, 18, 1 do
- value = value - 0.5
- value2 = value2 - 0.75*1.5
- value3 = value3 - 0.475*1.5
- wm.Scale = wm.Scale + Vector3.new(value*3.5,value*3.5,value*3.5)
- wm2.Scale = wm.Scale + Vector3.new(value2*3.5,value2*3.5,0.5)
- wm3.Scale = wm.Scale + Vector3.new(value3*3.5,value3*3.5,0.25)
- --wave.Size = wm.Scale
- wave.CFrame = fx.CFrame
- wave.Transparency = i/14
- --wave2.Size = wm2.Scale
- wave2.CFrame = fx.CFrame
- wave2.Rotation = Vector3.new(90, 0, 0)
- wave2.Transparency = i/14
- --wave3.Size = wm3.Scale
- wave3.CFrame = fx.CFrame
- wave3.Rotation = Vector3.new(90, 0, 0)
- wave3.Transparency = i/14
- wait()
- glowz.Rate = 0
- end
- wait()
- wave:Destroy()
- wave2:Destroy()
- wave3:Destroy()
- end)()
- elseif Transforming == false then
- wait()
- end
- end
- for i = 1, 100 do rs:wait()
- fx.CFrame = torso.CFrame
- end
- Spawn(function()
- while wait(1) do
- GroundWave()
- end
- end)
- wait(4)
- Transforming = false
- local value2 = 1
- for i = 1, 20 do rs:wait()
- value2 = value2 - 0.05
- glowz.Rate = 0
- fx.Transparency = fx.Transparency + (1/20)
- fx.CFrame = torso.CFrame
- fxm.Scale = fxm.Scale + Vector3.new(value2,value2,value2)
- rs:wait()
- end
- glowz:Destroy()
- local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- local valuer = 5
- local valuer2 = 10
- local valuer3 = 15
- local sa2 = Instance.new("Sound",torso)
- sa2.SoundId = "rbxassetid://130972023"
- sa2.Pitch = 1
- sa2.Volume = 5
- sa2.Looped = false
- sa2:Play()
- local sar2 = Instance.new("Sound",torso)
- sar2.SoundId = "rbxassetid://153274423"
- sar2.Pitch = 1
- sar2.Volume = 5
- sar2.Looped = false
- sar2:Play()
- local wave = Instance.new("Part", torso)
- wave.BrickColor = BrickColor.new("Toothpaste")
- wave.Anchored = true
- wave.CanCollide = false
- wave.Locked = true
- wave.Size = Vector3.new(1, 1, 1)
- wave.TopSurface = "Smooth"
- wave.BottomSurface = "Smooth"
- wave.Transparency = 0.35
- wave.CFrame = HandCF
- wm = Instance.new("SpecialMesh", wave)
- wm.MeshId = "rbxassetid://3270017"
- local wave2 = Instance.new("Part", torso)
- wave2.BrickColor = BrickColor.new("Really black")
- wave2.Anchored = true
- wave2.CanCollide = false
- wave2.Locked = true
- wave2.Size = Vector3.new(1, 1, 1)
- wave2.TopSurface = "Smooth"
- wave2.BottomSurface = "Smooth"
- wave2.Transparency = 0.35
- wave2.CFrame = HandCF
- wm2 = Instance.new("SpecialMesh", wave2)
- wm2.MeshId = "rbxassetid://3270017"
- local wave3 = Instance.new("Part", torso)
- wave3.BrickColor = BrickColor.new("Toothpaste")
- wave3.Anchored = true
- wave3.CanCollide = false
- wave3.Locked = true
- wave3.Size = Vector3.new(1, 1, 1)
- wave3.TopSurface = "Smooth"
- wave3.BottomSurface = "Smooth"
- wave3.Transparency = 0.35
- wave3.CFrame = HandCF
- wm3 = Instance.new("SpecialMesh", wave3)
- wm3.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 14, 1 do
- valuer = valuer - 0.35
- valuer2 = valuer - 0.45
- valuer3 = valuer3 - 0.475
- wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200)
- wave.Size = wm.Scale
- wave.CFrame = HandCF
- wave.Transparency = i/14
- wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10)
- wave2.Size = wm2.Scale
- wave2.CFrame = HandCF
- wave2.Transparency = i/14
- wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1)
- wave3.Size = wm2.Scale
- wave3.CFrame = HandCF
- wave3.Transparency = i/14
- wait()
- end
- wait()
- wave:Destroy()
- wave2:Destroy()
- end)()
- hum.WalkSpeed = 16
- Me = game.Players.LocalPlayer
- player = Me
- char = Me.Character
- chara = char
- larm = char["Left Arm"]
- rarm = char["Right Arm"]
- lleg = char["Left Leg"]
- rleg = char["Right Leg"]
- torso = char.Torso
- hed = char.Head
- mouse = player:GetMouse()
- lght = game.Lighting
- lichtact = false
- moosicact = false
- gotsagofest = true
- hat=Instance.new("Part",chara)
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- Mouse = player:GetMouse()
- local IsFreeFalling = false
- local SpinPart = Instance.new('Part')
- SpinPart.Transparency = 1
- SpinPart.Size = Vector3.new(1000,10,1000)
- SpinPart.CanCollide = false
- SpinPart.FormFactor = 'Custom'
- local FX = Instance.new('ParticleEmitter',SpinPart)
- FX.Color,FX.Size,FX.Lifetime,FX.Rate,FX.Speed,FX.EmissionDirection,FX.Transparency,FX.LockedToPart,FX.Texture,FX.VelocityInheritance = ColorSequence.new({ColorSequenceKeypoint.new(0, BrickColor.new("Really black").Color, 0), ColorSequenceKeypoint.new(1, BrickColor.new("Really red").Color, 0)}), NumberSequence.new(20), NumberRange.new(3.75,3.75), 100, NumberRange.new(5,5), "Top", NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.25,0,0),NumberSequenceKeypoint.new(0.9,0,0),NumberSequenceKeypoint.new(0.975,1,0),NumberSequenceKeypoint.new(1,1,0)}), false, "rbxassetid://160508788",0.1
- local FX = Instance.new('ParticleEmitter',SpinPart)
- FX.Color,FX.Size,FX.Lifetime,FX.Rate,FX.Speed,FX.EmissionDirection,FX.Transparency,FX.LockedToPart,FX.Texture,FX.VelocityInheritance = ColorSequence.new({ColorSequenceKeypoint.new(0, BrickColor.new("Really black").Color, 0), ColorSequenceKeypoint.new(1, BrickColor.new("Really red").Color, 0)}), NumberSequence.new(20), NumberRange.new(3.75,3.75), 100, NumberRange.new(5,5), "Top", NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.25,0,0),NumberSequenceKeypoint.new(0.9,0,0),NumberSequenceKeypoint.new(0.975,1,0),NumberSequenceKeypoint.new(1,1,0)}), false, "rbxassetid://268043891",0.1
- --CricleForTarget
- --121028264 MagicCircle1
- --160506713 MagicCircle2
- --327794305 MagicCircle3 (Death)
- --160508788 MagicCircle4 (Scary)
- --124339738 CoolCircle5
- --268043891 Abyss-Demon-Magic-Circle
- --165647841 I SHE GOD!
- do
- local tspin = Instance.new('BodyAngularVelocity')
- tspin.angularvelocity = Vector3.new(0,8,0)
- tspin.maxTorque =Vector3.new(math.huge,math.huge,math.huge)
- tspin.Parent = SpinPart
- end
- local SpinPos = Instance.new('BodyPosition')
- SpinPos.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- SpinPos.Parent = SpinPart
- function Equipped()
- IsEquipped = true
- local MyTorso = char.Torso
- if MyTorso then
- spawn(function()
- local startTime = tick()
- SpinPart.CFrame = CFrame.new(MyTorso.CFrame.p+Vector3.new(0,-2.8,0))
- SpinPart.Parent = MyTorso
- local fadeIn = true
- while IsEquipped do
- if not IsFreeFalling then
- SpinPos.position = MyTorso.CFrame.p+Vector3.new(0,-2.8,0)
- end
- wait()
- end
- SpinPart.Parent = nil
- end)
- end
- end
- wait(0.01)
- Equipped()
- function start()
- print("Darkness falls across the battlefield...")
- wait()
- print("----------------------------------------")
- wait()
- print(" - Ender booted up. -")
- wait()
- print("- Ender written by yeox769. -")
- i = 0
- while i<1 do
- wait()
- i = i + 0.01
- l.Contrast,l.Saturation,l.Brightness = l.Contrast + 0.02, l.Saturation - 0.0075, l.Brightness + 0.00375
- l.TintColor = Color3.new(1,1-i,1-i)
- end
- end
- delay(0,start)
- wait(3)
- local sky = game.Lighting
- game.Lighting.TimeOfDay = "00:00:00"
- sky.Ambient = BrickColor.new("Really black").Color
- sky.Brightness = 0
- sky.FogEnd = 50000
- sky.FogColor = BrickColor.new("Really black").Color
- script.Name = "nigga srsly"
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- Player = game:GetService("Players").LocalPlayer
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- script.Parent = PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- Humanoid = Character.Humanoid
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- ch = Character
- RootPart = Character.HumanoidRootPart
- RootJoint = RootPart.RootJoint
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- local decreaseatk=50
- local decreasedef=100
- local decreasemvmt=0
- local Anim="Idle"
- local Effects={}
- local armorparts={}
- local armorwelds={}
- local weaponparts={}
- local weaponwelds={}
- local necko=euler(0,0,0)*cf(0,3,0)
- local attack=false
- local jump=false
- local hitfloor,posfloor=nil,nil
- local target,distance=nil,nil
- local meleecooldown=0
- local mcdadd=1
- local summoncrystals=0
- local crystals=false
- local stunanim=false
- Humanoid.WalkSpeed=7
- local sa2 = Instance.new("Sound",Character)
- sa2.SoundId = "rbxassetid://472006887"
- sa2.Pitch = 1
- sa2.Volume = 20
- sa2.Looped = true
- sa2:Play()
- --472006887 Doom Choir
- --598378876 War of Change
- --194431946 Carol of the Bells
- --251935616 Child-of-Light-Boss-Battle-Theme-3-With-Choir
- --571756774 Angel
- --545677173 Red Army Choir
- --738743040 Choir Of The Fayth
- if workspace:findFirstChild("Neflhelm",true) ~= nil then
- workspace:findFirstChild("Neflhelm",true).Parent = nil
- end
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- function swait(num)
- if num==0 or num==nil then
- --if Stagger.Value==false or Stun.Value<=100 then
- script.Heartbeat.Event:wait()
- --end
- else
- for i=0,num do
- script.Heartbeat.Event:wait()
- --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end]]
- end
- end
- end
- --30hz Pacemaker
- frame = 1/30
- tf = 0
- allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
- tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
- lastframe = tick()
- script.Heartbeat:Fire() --ayy lmao
- game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe=tick()
- else
- ----print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
- for i=1, math.floor(tf/frame) do
- script.Heartbeat:Fire()
- end
- lastframe=tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf/frame)
- end
- end
- end)
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- 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
- NoOutline(fp)
- fp.Material="SmoothPlastic"
- 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
- if meshid~="nil" then
- mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
- end
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0)
- local weld=it("Motor")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- return weld
- end
- function gui(GuiType,parent,text,backtrans,backcol,pos,size,image)
- local gui=it(GuiType)
- gui.Parent=parent
- gui.BackgroundTransparency=backtrans
- gui.BackgroundColor3=backcol
- gui.SizeConstraint="RelativeXY"
- gui.Position=pos
- gui.Size=size
- if GuiType=="TextLabel" then
- gui.Text=text
- gui.TextXAlignment="Center"
- gui.TextYAlignment="Center"
- gui.Font="SourceSans"
- gui.FontSize="Size14"
- gui.TextWrapped=false
- gui.TextStrokeTransparency=0
- gui.TextColor=BrickColor.new("Really black")
- elseif GuiType=="ImageLabel" then
- gui.Image="rbxassetid://"..image
- gui.ImageColor3=backcol
- end
- return gui
- end
- local nr=NumberRange.new
- local ns=NumberSequence.new
- local cs=ColorSequence.new
- local nsk=NumberSequenceKeypoint.new
- function particle(parent,col1,col2,lightemis,size,texture,transparency,zoffset,accel,drag,ltp,velinher,emisdir,enabled,lifetime,rate,rotation,rotspeed,speed,velspread)
- local fp=it("ParticleEmitter")
- fp.Parent=parent
- fp.Color=cs(col1,col2)
- fp.LightEmission=lightemis
- fp.Size=size
- fp.Texture=texture
- fp.Transparency=transparency
- fp.ZOffset=zoffset
- fp.Acceleration=accel
- fp.Drag=drag
- fp.LockedToPart=ltp
- fp.VelocityInheritance=velinher
- fp.EmissionDirection=emisdir
- fp.Enabled=enabled
- fp.Lifetime=lifetime
- fp.Rate=rate
- fp.Rotation=rotation
- fp.RotSpeed=rotspeed
- fp.Speed=speed
- fp.VelocitySpread=velspread
- return fp
- end
- --[[local Head=part(0,Character,0,0,BrickColor.new("Really black"),"Head",vt(2,2,2)) Head.Material="Neon"
- local Torso=part(0,Character,0,0,BrickColor.new("Really black"),"Torso",vt(2,2,2)) Torso.Material="Neon"]]
- Head.Size = vt(2,2,2)
- Torso.Size = vt(2,2,2)
- Head.BrickColor = BrickColor.new("Really black")
- Torso.BrickColor = BrickColor.new("Really black")
- Head.Material = "Neon"
- Torso.Material = "Neon"
- Head.face:Destroy()
- workspace.CurrentCamera.CameraSubject = Torso
- local Back=part(0,Character,0,0,BrickColor.new("Really black"),"Back",vt(2,2,2)) Back.Material="Neon"
- local Lower1=part(0,Character,0,0,BrickColor.new("Really black"),"Lower1",vt(2,2,2)) Lower1.Material="Neon"
- local Lower2=part(0,Character,0,0,BrickColor.new("Really black"),"Lower2",vt(2,2,2)) Lower2.Material="Neon"
- --local RootPart=part(0,Character,0,0,BrickColor.new("Really red"),"HumanoidRootPart",vt(2,2,1))
- --RootPart.CanCollide=false
- local HMesh=mesh("SpecialMesh",Head,"Sphere","nil",vt(0,0,0),vt(59.5,59.5,59.5))
- local TMesh=mesh("SpecialMesh",Torso,"Sphere","nil",vt(0,0,0),vt(105,105,105))
- local BMesh=mesh("SpecialMesh",Back,"Sphere","nil",vt(0,0,0),vt(100,100,100))
- local L1Mesh=mesh("SpecialMesh",Lower1,"Sphere","nil",vt(0,0,0),vt(90,90,90))
- local L2Mesh=mesh("SpecialMesh",Lower2,"Sphere","nil",vt(0,0,0),vt(90,90,90))
- --[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
- Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
- local Neck=weld(Torso,Torso,Head,euler(0,0,0)*cf(0,35,0))
- --Neck.C1=cf(0,-1.5,0)
- Neck.C1=cf(0,-80,0)
- --Neck.C0=clerp(Neck.C0,euler(0,0,0)*cf(0,115,0)*euler(-.3,0,0),.3)
- local RootJoint=weld(Torso,Torso,RootPart,cf(-1.749,-200,0))
- local BackJoint=weld(Torso,Torso,Back,cf(0,51,-87.75))
- local L1Joint=weld(Torso,Torso,Lower1,cf(0,-42,-7.75))
- local L2Joint=weld(Torso,Torso,Lower2,cf(0,-54.75,-16.749))
- --Torso.CFrame=cf(0,20,0)
- RootPart.Anchored=true
- for d=10,180,10 do
- for i=10,360,10 do
- local Hitbox1=part(0,Character,0,1,BrickColor.new("Really black"),"Left Arm",vt(1,1,1)) Hitbox1.Material="Neon"
- local HbMesh=mesh("SpecialMesh",Hitbox1,"Sphere","nil",vt(0,0,0),vt(1,1,1))
- --local HHJoint=weld(Hitbox1,Hitbox1,Head,cf(60/(d/30),d,0)*euler(0,math.rad(i),0))
- local HHJoint=weld(Hitbox1,Hitbox1,Head,cf(60,0,0)*euler(0,math.rad(i),math.rad(d)))
- end
- end
- local armor=Instance.new("Model")
- armor.Parent=Character
- armor.Name="Body"
- --RootPart.Parent=armor
- prt1=part(3,armor,0,0,BrickColor.new("Really black"),"Part01",vt(2,2,2)) prt1.Material="Neon"
- prt2=part(3,armor,0,0,BrickColor.new("Really black"),"Part02",vt(2,2,2))
- prt3=part(3,armor,0,0,BrickColor.new("Really red"),"Part03",vt(2,2,2)) prt3.Material="Neon"
- prt4=part(3,armor,0,0,BrickColor.new("Really black"),"Part04",vt(2,2,2))
- prt5=part(3,armor,0,0,BrickColor.new("Really red"),"Part05",vt(2,2,2)) prt5.Material="Neon"
- prt6=part(3,armor,0,0,BrickColor.new("Really black"),"Part06",vt(2,2,2)) prt6.Material="Neon"
- prt7=part(3,armor,0,0,BrickColor.new("Really black"),"Part07",vt(2,2,2)) prt7.Material="Neon"
- prt8=part(3,armor,0,0,BrickColor.new("Really black"),"Part08",vt(2,2,2)) prt8.Material="Neon"
- prt9=part(3,armor,0,0,BrickColor.new("Really black"),"Part09",vt(2,2,2)) prt9.Material="Neon"
- prt10=part(3,armor,0,0,BrickColor.new("Really black"),"Part10",vt(2,2,2)) prt10.Material="Neon"
- prt11=part(3,armor,.4,0,BrickColor.new("Really black"),"Part11",vt(2,2,2))
- prt12=part(3,armor,.4,0,BrickColor.new("Really red"),"Part12",vt(2,2,2))
- prt13=part(3,armor,.4,0,BrickColor.new("Really black"),"Part13",vt(2,2,2))
- prt14=part(3,armor,.4,0,BrickColor.new("Really black"),"Part14",vt(2,2,2))
- prt15=part(3,armor,.4,0,BrickColor.new("Really black"),"Part15",vt(2,2,2))
- prt16=part(3,armor,.4,0,BrickColor.new("Really black"),"Part16",vt(2,2,2))
- prt17=part(3,armor,.4,0,BrickColor.new("Really black"),"Part17",vt(2,2,2))
- prt18=part(3,armor,.4,0,BrickColor.new("Really black"),"Part18",vt(2,2,2))
- prt19=part(3,armor,0,0,BrickColor.new("Really black"),"Part19",vt(2,2,2)) prt19.Material="Neon" --main right arm
- prt20=part(3,armor,0,0,BrickColor.new("Really black"),"Part20",vt(2,2,2)) prt20.Material="Neon"
- prt21=part(3,armor,0,0,BrickColor.new("Really black"),"Part21",vt(2,2,2)) prt21.Material="Neon" --second right arm point
- prt22=part(3,armor,0,0,BrickColor.new("Really black"),"Part22",vt(2,2,2)) prt22.Material="Neon"
- prt23=part(3,armor,0,0,BrickColor.new("Really black"),"Part23",vt(2,2,2)) prt23.Material="Neon"
- prt24=part(3,armor,0,0,BrickColor.new("Really black"),"Part24",vt(2,2,2)) prt24.Material="Neon" --third right arm point
- prt25=part(3,armor,0,0,BrickColor.new("Really black"),"Part25",vt(2,2,2)) prt25.Material="Neon"
- prt26=part(3,armor,0,0,BrickColor.new("Really black"),"Part26",vt(2,2,2)) prt26.Material="Neon"
- prt27=part(3,armor,0,0,BrickColor.new("Really black"),"Part27",vt(2,2,2)) prt27.Material="Neon"
- prt28=part(3,armor,0,0,BrickColor.new("Really black"),"Part28",vt(2,2,2)) prt28.Material="Neon"
- prt29=part(3,armor,0,0,BrickColor.new("Really black"),"Part29",vt(2,2,2)) prt29.Material="Neon" --fourth right arm point
- prt30=part(3,armor,0,0,BrickColor.new("Really black"),"Part30",vt(2,2,2)) prt30.Material="Neon"
- prt31=part(3,armor,0,0,BrickColor.new("Really black"),"Part31",vt(2,2,2)) prt31.Material="Neon"
- prt32=part(3,armor,0,0,BrickColor.new("Really black"),"Part32",vt(2,2,2)) prt32.Material="Neon"
- prt33=part(3,armor,0,0,BrickColor.new("Really black"),"Part33",vt(2,2,2)) prt33.Material="Neon" --main left arm
- prt34=part(3,armor,0,0,BrickColor.new("Really black"),"Part34",vt(2,2,2)) prt34.Material="Neon"
- prt35=part(3,armor,0,0,BrickColor.new("Really black"),"Part35",vt(2,2,2)) prt35.Material="Neon" --second right arm point
- prt36=part(3,armor,0,0,BrickColor.new("Really black"),"Part36",vt(2,2,2)) prt36.Material="Neon"
- prt37=part(3,armor,0,0,BrickColor.new("Really black"),"Part37",vt(2,2,2)) prt37.Material="Neon"
- prt38=part(3,armor,0,0,BrickColor.new("Really black"),"Part38",vt(2,2,2)) prt38.Material="Neon" --third right arm point
- prt39=part(3,armor,0,0,BrickColor.new("Really black"),"Part39",vt(2,2,2)) prt39.Material="Neon"
- prt40=part(3,armor,0,0,BrickColor.new("Really black"),"Part40",vt(2,2,2)) prt40.Material="Neon"
- prt41=part(3,armor,0,0,BrickColor.new("Really black"),"Part41",vt(2,2,2)) prt41.Material="Neon"
- prt42=part(3,armor,0,0,BrickColor.new("Really black"),"Part42",vt(2,2,2)) prt42.Material="Neon"
- prt43=part(3,armor,0,0,BrickColor.new("Really black"),"Part43",vt(2,2,2)) prt43.Material="Neon" --fourth right arm point
- prt44=part(3,armor,0,0,BrickColor.new("Really black"),"Part44",vt(2,2,2)) prt44.Material="Neon"
- prt45=part(3,armor,0,0,BrickColor.new("Really black"),"Part45",vt(2,2,2)) prt45.Material="Neon"
- prt46=part(3,armor,0,0,BrickColor.new("Really black"),"Part46",vt(2,2,2)) prt46.Material="Neon"
- msh1=mesh("SpecialMesh",prt1,"FileMesh","62740878",vt(0,0,0),vt(80,50,80))
- msh2=mesh("SpecialMesh",prt2,"Sphere","nil",vt(0,0,0),vt(5,10,10))
- msh3=mesh("SpecialMesh",prt3,"Sphere","nil",vt(0,0,0),vt(4,8.5,8.5))
- msh4=mesh("SpecialMesh",prt4,"Sphere","nil",vt(0,0,0),vt(5,10,10))
- msh5=mesh("SpecialMesh",prt5,"Sphere","nil",vt(0,0,0),vt(4,8.5,8.5))
- msh6=mesh("SpecialMesh",prt6,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
- msh7=mesh("SpecialMesh",prt7,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
- msh8=mesh("SpecialMesh",prt8,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
- msh9=mesh("SpecialMesh",prt9,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
- msh10=mesh("SpecialMesh",prt10,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
- msh11=mesh("SpecialMesh",prt11,"FileMesh","9756362",vt(0,0,0),vt(20,90,20))
- msh12=mesh("SpecialMesh",prt12,"FileMesh","9756362",vt(0,0,0),vt(20,100,27.5))
- msh13=mesh("SpecialMesh",prt13,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
- msh14=mesh("SpecialMesh",prt14,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
- msh15=mesh("SpecialMesh",prt15,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
- msh16=mesh("SpecialMesh",prt16,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
- msh17=mesh("SpecialMesh",prt17,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
- msh18=mesh("SpecialMesh",prt18,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
- msh19=mesh("SpecialMesh",prt19,"Sphere","nil",vt(0,0,0),vt(65,65,65))
- msh20=mesh("SpecialMesh",prt20,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
- msh21=mesh("CylinderMesh",prt21,"nil","nil",vt(0,0,0),vt(50,30,50))
- msh22=mesh("SpecialMesh",prt22,"Sphere","nil",vt(0,0,0),vt(50,50,50))
- msh23=mesh("SpecialMesh",prt23,"Sphere","nil",vt(0,0,0),vt(50,50,50))
- msh24=mesh("CylinderMesh",prt24,"nil","nil",vt(0,0,0),vt(65,10,65))
- msh25=mesh("SpecialMesh",prt25,"Sphere","nil",vt(0,0,0),vt(65,65,65))
- msh26=mesh("SpecialMesh",prt26,"Sphere","nil",vt(0,0,0),vt(65,65,65))
- msh27=mesh("SpecialMesh",prt27,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
- msh28=mesh("SpecialMesh",prt28,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
- msh29=mesh("CylinderMesh",prt29,"nil","nil",vt(0,0,0),vt(52.5,60,52.5))
- msh30=mesh("SpecialMesh",prt30,"Sphere","nil",vt(0,0,0),vt(52.5,52.5,52.5))
- msh31=mesh("SpecialMesh",prt31,"Sphere","nil",vt(0,0,0),vt(85,85,85))
- msh32=mesh("SpecialMesh",prt32,"FileMesh","1290033",vt(0,0,0),vt(90,90,90))
- msh33=mesh("SpecialMesh",prt33,"Sphere","nil",vt(0,0,0),vt(65,65,65))
- msh34=mesh("SpecialMesh",prt34,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
- msh35=mesh("CylinderMesh",prt35,"nil","nil",vt(0,0,0),vt(50,30,50))
- msh36=mesh("SpecialMesh",prt36,"Sphere","nil",vt(0,0,0),vt(50,50,50))
- msh37=mesh("SpecialMesh",prt37,"Sphere","nil",vt(0,0,0),vt(50,50,50))
- msh38=mesh("CylinderMesh",prt38,"nil","nil",vt(0,0,0),vt(65,10,65))
- msh39=mesh("SpecialMesh",prt39,"Sphere","nil",vt(0,0,0),vt(65,65,65))
- msh40=mesh("SpecialMesh",prt40,"Sphere","nil",vt(0,0,0),vt(65,65,65))
- msh41=mesh("SpecialMesh",prt41,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
- msh42=mesh("SpecialMesh",prt42,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
- msh43=mesh("CylinderMesh",prt43,"nil","nil",vt(0,0,0),vt(52.5,60,52.5))
- msh44=mesh("SpecialMesh",prt44,"Sphere","nil",vt(0,0,0),vt(52.5,52.5,52.5))
- msh45=mesh("SpecialMesh",prt45,"Sphere","nil",vt(0,0,0),vt(85,85,85))
- msh46=mesh("SpecialMesh",prt46,"FileMesh","1290033",vt(0,0,0),vt(90,90,90))
- local wld1=weld(prt1,prt1,Head,euler(0,math.rad(180),0)*cf(-4.597,-46.367,0))
- local wld2=weld(prt1,prt2,Head,euler(0,math.rad(90+(90-65)),0)*cf(23.772,0,-50.979))
- local wld3=weld(prt1,prt3,Head,euler(0,math.rad(90+(90-65)),0)*cf(24.406,0,-52.339))
- local wld4=weld(prt1,prt4,Head,euler(0,math.rad(65),0)*cf(-23.772,0,-50.979))
- local wld5=weld(prt1,prt5,Head,euler(0,math.rad(65),0)*cf(-24.406,0,-52.339))
- local wld6=weld(prt1,prt6,Torso,euler(math.rad(63.644),0,0)*cf(0,-118.531,124.184))
- local wld7=weld(prt1,prt7,Torso,euler(math.rad(-90-165.516),0,0)*cf(0,-1.816,157.992))
- local wld8=weld(prt1,prt8,Torso,euler(math.rad(171.785),0,0)*cf(-3.372,67.659,3.285))
- local wld9=weld(prt1,prt9,Torso,euler(math.rad(-90-55),math.rad(-90-65),0)*cf(-32.5,66.459,35.483))
- local wld10=weld(prt1,prt10,Torso,euler(math.rad(-90-60),math.rad(-90-115),0)*cf(32.5,66.459,35.483))
- local wld11=weld(prt1,prt11,Torso,euler(0,math.rad(45),0)*cf(0,0,-104.75))
- local wld12=weld(prt1,prt12,Torso,euler(0,math.rad(90),0)*cf(0,0,-104.75))
- local wld13=weld(prt1,prt13,Torso,euler(0,math.rad(90),math.rad(-35))*cf(32.009,-22.413,-88.007))
- local wld14=weld(prt1,prt14,Torso,euler(0,math.rad(90),math.rad(35))*cf(-32.009,-22.413,-88.007))
- local wld15=weld(prt1,prt15,Torso,euler(0,math.rad(90),math.rad(90))*cf(32.075,0,-88.007))
- local wld16=weld(prt1,prt16,Torso,euler(0,math.rad(90),math.rad(-90))*cf(-32.075,0,-88.007))
- local wld17=weld(prt1,prt17,Torso,euler(0,math.rad(90),math.rad(90-35))*cf(32.009,22.413,-88.007))
- local wld18=weld(prt1,prt18,Torso,euler(0,math.rad(90),math.rad(-90+35))*cf(-32.009,22.413,-88.007))
- local wld19=weld(prt1,prt19,Torso,euler(0,0,0)*cf(94,-47.5,-2.248))
- local wld20=weld(prt1,prt20,prt19,euler(math.rad(90),math.rad(-90+75),0)*cf(21.417,0,79.93))
- local wld21=weld(prt1,prt21,prt19,euler(0,0,math.rad(90))*cf(74.25,0,0))
- local wld22=weld(prt1,prt22,prt21,euler(0,0,0)*cf(0,-30,0))
- local wld23=weld(prt1,prt23,prt21,euler(0,0,0)*cf(0,30,0))
- local wld24=weld(prt1,prt24,prt21,euler(0,0,0)*cf(0,90.25,0))
- local wld25=weld(prt1,prt25,prt24,euler(0,0,0)*cf(0,10,0))
- local wld26=weld(prt1,prt26,prt24,euler(0,0,0)*cf(0,-10,0))
- local wld27=weld(prt1,prt27,prt24,euler(0,0,math.rad(-90))*cf(88.5,0,0))
- local wld28=weld(prt1,prt28,prt24,euler(0,0,math.rad(90))*cf(-88.5,0,0))
- local wld29=weld(prt1,prt29,prt24,euler(0,0,0)*cf(0,125,0))
- local wld30=weld(prt1,prt30,prt29,euler(0,0,0)*cf(0,-60,0))
- local wld31=weld(prt1,prt31,prt29,euler(0,0,0)*cf(0,130,0))
- local wld32=weld(prt1,prt32,prt29,euler(0,0,0)*cf(0,130,0))
- local wld33=weld(prt1,prt33,Torso,euler(0,0,0)*cf(-94,-47.5,-2.248))
- local wld34=weld(prt1,prt34,prt33,euler(math.rad(-90),math.rad(-90-75),0)*cf(-21.417,0,79.93))
- local wld35=weld(prt1,prt35,prt33,euler(0,0,math.rad(90))*cf(-74.25,0,0))
- local wld36=weld(prt1,prt36,prt35,euler(0,0,0)*cf(0,30,0))
- local wld37=weld(prt1,prt37,prt35,euler(0,0,0)*cf(0,-30,0))
- local wld38=weld(prt1,prt38,prt35,euler(0,0,0)*cf(0,-90.25,0))
- local wld39=weld(prt1,prt39,prt38,euler(0,0,0)*cf(0,-10,0))
- local wld40=weld(prt1,prt40,prt38,euler(0,0,0)*cf(0,10,0))
- local wld41=weld(prt1,prt41,prt38,euler(0,0,math.rad(-90))*cf(88.5,0,0))
- local wld42=weld(prt1,prt42,prt38,euler(0,0,math.rad(90))*cf(-88.5,0,0))
- local wld43=weld(prt1,prt43,prt38,euler(0,0,0)*cf(0,-125,0))
- local wld44=weld(prt1,prt44,prt43,euler(0,0,0)*cf(0,60,0))
- local wld45=weld(prt1,prt45,prt43,euler(0,0,0)*cf(0,-130,0))
- local wld46=weld(prt1,prt46,prt43,euler(0,0,0)*cf(0,-130,0))
- --[[wld19.C0=clerp(wld19.C0,euler(0,0,0)*cf(94,-47.5,-2.248),.3)
- wld21.C0=clerp(wld21.C0,euler(0,0,math.rad(90))*cf(74.25,0,0),.3)
- wld24.C0=clerp(wld24.C0,euler(0,0,0)*cf(0,90.25,0),.3)
- wld29.C0=clerp(wld29.C0,euler(0,0,0)*cf(0,125,0),.3)
- wld33.C0=clerp(wld33.C0,euler(0,0,0)*cf(-94,-47.5,-2.248),.3)
- wld35.C0=clerp(wld35.C0,euler(0,0,math.rad(90))*cf(-74.25,0,0),.3)
- wld38.C0=clerp(wld38.C0,euler(0,0,0)*cf(0,-90.25,0),.3)
- wld43.C0=clerp(wld43.C0,euler(0,0,0)*cf(0,-125,0),.3)]]
- local effects=it("Model",Character)
- effects.Name="Effects"
- local refs2={}
- local createref=true
- if workspace:findFirstChild("SnowfRef",true) ~= nil then
- createref=false
- end
- local refs=it("Model",nil)
- refs.Name="SnowfRef"
- --circle size 170,170,170
- Ref1=part(0,refs,0,1,BrickColor.new("Really black"),"Ref1",vt(210,210,210)) Ref1.CanCollide=true Ref1.Anchored=true Ref1.Shape="Ball"
- Ref2=part(0,refs,0,1,BrickColor.new("Really black"),"Ref2",vt(119,119,119)) Ref2.CanCollide=true Ref2.Anchored=true Ref2.Shape="Ball"
- Ref3=part(0,refs,0,1,BrickColor.new("Really black"),"Ref3",vt(130,130,130)) Ref3.CanCollide=true Ref3.Anchored=true Ref3.Shape="Ball"
- Ref4=part(0,refs,0,1,BrickColor.new("Really black"),"Ref4",vt(130,100,100)) Ref4.CanCollide=true Ref4.Anchored=true Ref4.Shape="Cylinder"
- Ref5=part(0,refs,0,1,BrickColor.new("Really black"),"Ref5",vt(130,130,130)) Ref5.CanCollide=true Ref5.Anchored=true Ref5.Shape="Ball"
- Ref6=part(0,refs,0,1,BrickColor.new("Really black"),"Ref6",vt(160,105,105)) Ref6.CanCollide=true Ref6.Anchored=true Ref6.Shape="Cylinder"
- Ref7=part(0,refs,0,1,BrickColor.new("Really black"),"Ref7",vt(170,170,170)) Ref7.CanCollide=true Ref7.Anchored=true Ref7.Shape="Ball"
- Ref8=part(0,refs,0,1,BrickColor.new("Really black"),"Ref8",vt(130,130,130)) Ref8.CanCollide=true Ref8.Anchored=true Ref8.Shape="Ball"
- Ref9=part(0,refs,0,1,BrickColor.new("Really black"),"Ref9",vt(130,100,100)) Ref9.CanCollide=true Ref9.Anchored=true Ref9.Shape="Cylinder"
- Ref10=part(0,refs,0,1,BrickColor.new("Really black"),"Ref10",vt(130,130,130)) Ref10.CanCollide=true Ref10.Anchored=true Ref10.Shape="Ball"
- Ref11=part(0,refs,0,1,BrickColor.new("Really black"),"Ref11",vt(160,105,105)) Ref11.CanCollide=true Ref11.Anchored=true Ref11.Shape="Cylinder"
- Ref12=part(0,refs,0,1,BrickColor.new("Really black"),"Ref12",vt(170,170,170)) Ref12.CanCollide=true Ref12.Anchored=true Ref12.Shape="Ball"
- if createref==false then
- refs=workspace.SnowfRef
- Ref1=refs.Ref1
- Ref2=refs.Ref2
- Ref3=refs.Ref3
- Ref4=refs.Ref4
- Ref5=refs.Ref5
- Ref6=refs.Ref6
- Ref7=refs.Ref7
- Ref8=refs.Ref8
- Ref9=refs.Ref9
- Ref10=refs.Ref10
- Ref11=refs.Ref11
- Ref12=refs.Ref12
- else
- --refs.Parent=workspace
- end
- --[[R1wld=weld(Ref1,Ref1,Torso,euler(0,0,0)*cf(0,0,0))
- R2wld=weld(Ref2,Ref2,Head,euler(0,0,0)*cf(0,0,0))
- R3wld=weld(Ref3,Ref3,prt19,euler(0,0,0)*cf(0,0,0))
- R4wld=weld(Ref4,Ref4,prt21,euler(0,0,0)*cf(0,0,0))
- R5wld=weld(Ref5,Ref5,prt24,euler(0,0,0)*cf(0,0,0))
- R6wld=weld(Ref6,Ref6,prt29,euler(0,0,0)*cf(0,0,0))
- R7wld=weld(Ref7,Ref7,prt31,euler(0,0,0)*cf(0,0,0))
- R8wld=weld(Ref8,Ref8,prt33,euler(0,0,0)*cf(0,0,0))
- R9wld=weld(Ref9,Ref9,prt35,euler(0,0,0)*cf(0,0,0))
- R10wld=weld(Ref10,Ref10,prt38,euler(0,0,0)*cf(0,0,0))
- R11wld=weld(Ref11,Ref11,prt43,euler(0,0,0)*cf(0,0,0))
- R12wld=weld(Ref12,Ref12,prt45,euler(0,0,0)*cf(0,0,0))]]
- table.insert(refs2,{Ref1,Torso,cf(0,0,0)})
- table.insert(refs2,{Ref2,Head,cf(0,0,0)})
- table.insert(refs2,{Ref3,prt19,cf(0,0,0)})
- table.insert(refs2,{Ref4,prt21,euler(0,0,math.rad(90))})
- table.insert(refs2,{Ref5,prt24,cf(0,0,0)})
- table.insert(refs2,{Ref6,prt29,euler(0,0,math.rad(90))})
- table.insert(refs2,{Ref7,prt31,cf(0,0,0)})
- table.insert(refs2,{Ref8,prt33,cf(0,0,0)})
- table.insert(refs2,{Ref9,prt35,euler(0,0,math.rad(90))})
- table.insert(refs2,{Ref10,prt38,cf(0,0,0)})
- table.insert(refs2,{Ref11,prt43,euler(0,0,math.rad(90))})
- table.insert(refs2,{Ref12,prt45,cf(0,0,0)})
- for _,c in pairs(armor:children()) do
- table.insert(armorparts,c)
- end
- --[[for _,c in pairs(modelzorz:children()) do
- table.insert(weaponparts,c)
- end]]
- for _,c in pairs(prt1:children()) do
- table.insert(weaponwelds,c)
- end
- local hitbox=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
- --hitbox.Anchored=true
- local hitbox2=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
- hitbox2.Anchored=true
- local hitboxCF=cf(0,0,0)
- --TehHealth=500+(#game.Players:GetChildren()*20)
- local CurrentHealth=300000
- Humanoid.MaxHealth=CurrentHealth
- Humanoid.Health=CurrentHealth
- local Stats=Instance.new("BoolValue")
- Stats.Name="Stats"
- Stats.Parent=Character
- local Alive=Instance.new("BoolValue")
- Alive.Name="Alive"
- Alive.Parent=Character
- Alive.Value=true
- local Atk=Instance.new("NumberValue")
- Atk.Name="Damage"
- Atk.Parent=Stats
- Atk.Value= math.huge
- local Def=Instance.new("NumberValue")
- Def.Name="Defense"
- Def.Parent=Stats
- Def.Value=100
- local Mvmt=Instance.new("NumberValue")
- Mvmt.Name="Movement"
- Mvmt.Parent=Stats
- Mvmt.Value=1
- local Block=Instance.new("BoolValue")
- Block.Name="Block"
- Block.Parent=Stats
- Block.Value=false
- local Stun=Instance.new("NumberValue")
- Stun.Name="Stun"
- Stun.Parent=Stats
- Stun.Value=0
- local StunT=Instance.new("NumberValue")
- StunT.Name="StunThreshold"
- StunT.Parent=Stats
- StunT.Value=800
- local Rooted=Instance.new("BoolValue")
- Rooted.Name="Rooted"
- Rooted.Parent=Stats
- Rooted.Value=false
- local Stunned=Instance.new("BoolValue")
- Stunned.Name="Stunned"
- Stunned.Parent=Stats
- Stunned.Value=false
- local Stagger=Instance.new("BoolValue")
- Stagger.Name="Stagger"
- Stagger.Parent=Stats
- Stagger.Value=false
- local StaggerHit=Instance.new("BoolValue")
- StaggerHit.Name="StaggerHit"
- StaggerHit.Parent=Stats
- StaggerHit.Value=false
- local Decrease=Instance.new("BoolValue")
- Decrease.Name="Decrease"
- Decrease.Parent=Stats
- Decrease.Value=false
- local mana=Instance.new("NumberValue")
- mana.Name="Mana"
- mana.Parent=Stats
- mana.Value=10000000
- local boss=Instance.new("BoolValue")
- boss.Name="Boss"
- boss.Parent=Stats
- boss.Value=true
- local ungrab=Instance.new("BoolValue")
- ungrab.Name="Ungrabbable"
- ungrab.Parent=Stats
- ungrab.Value=true
- local Cryst1=it("Model",nil)
- Cryst1.Name="Heart Of The King"
- local C1Head=part(0,Cryst1,0,0,BrickColor.new("Really red"),"Head",vt(15,20,15)) C1Head.Anchored=true
- local C1msh=mesh("SpecialMesh",C1Head,"FileMesh","9756362",vt(0,0,0),vt(20,30,20))
- local C1Torso=part(0,Cryst1,0,.5,BrickColor.new("Really red"),"Torso",vt()) C1Torso.Anchored=true
- local C1msh=mesh("SpecialMesh",C1Torso,"FileMesh","9756362",vt(0,0,0),vt(-20,-50,-20))
- local C1S=Stats:Clone() C1S.Parent=Cryst1
- local Cryst2=it("Model",nil) Cryst2.Name="Sould Of The King"
- local C2Head=C1Head:Clone() C2Head.Parent=Cryst2
- local C2Torso=C1Torso:Clone() C2Torso.Parent=Cryst2
- local C2S=Stats:Clone() C2S.Parent=Cryst2
- local Cryst3=it("Model",nil) Cryst3.Name="Power OF The King"
- local C3Head=C1Head:Clone() C3Head.Parent=Cryst3
- local C3Torso=C1Torso:Clone() C3Torso.Parent=Cryst3
- local C3S=Stats:Clone() C3S.Parent=Cryst3
- local Cryst4=it("Model",nil) Cryst4.Name="Energy Of The King"
- local C4Head=C1Head:Clone() C4Head.Parent=Cryst4
- local C4Torso=C1Torso:Clone() C4Torso.Parent=Cryst4
- local C4S=Stats:Clone() C4S.Parent=Cryst4
- local C1Neck=weld(C1Torso,C1Torso,C1Head,euler(0,0,0)*cf(0,0,0))
- local C2Neck=weld(C2Torso,C2Torso,C2Head,euler(0,0,0)*cf(0,0,0))
- local C3Neck=weld(C3Torso,C3Torso,C3Head,euler(0,0,0)*cf(0,0,0))
- local C4Neck=weld(C4Torso,C4Torso,C4Head,euler(0,0,0)*cf(0,0,0))
- local C1Hum=it("Humanoid")
- local C2Hum=it("Humanoid")
- local C3Hum=it("Humanoid")
- local C4Hum=it("Humanoid")
- local C1a=false
- local C2a=false
- local C3a=false
- local C4a=false
- so = function(id,par,vol,pit)
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId="http://www.roblox.com/asset/?id="..id
- --swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c-a):Dot((b-a).unit)
- local edg2 = (a-b):Dot((c-b).unit)
- local edg3 = (b-c):Dot((a-c).unit)
- if edg1 <= (b-a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- assert(false, "unreachable")
- end
- local len1 = (c-a):Dot((b-a).unit)
- local len2 = (b-a).magnitude - len1
- local width = (a + (b-a).unit*len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
- local list = {}
- if len1 > 0.01 then
- local w1 = Instance.new('WedgePart', m)
- w1.Name = "Triangle"
- game:GetService("Debris"):AddItem(w1,5)
- w1.Material = "SmoothPlastic"
- w1.FormFactor = 'Custom'
- w1.BrickColor = BrickColor.new("Really black")
- w1.Transparency = 0
- w1.Reflectance = 0
- w1.Material = "SmoothPlastic"
- w1.CanCollide = false
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Instance.new("SpecialMesh",w1)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Parent = workspace
- w1.Transparency = 0.7
- table.insert(Effects,{w1,"Disappear",.05})
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = Instance.new('WedgePart', m)
- w2.Name = "Triangle"
- game:GetService("Debris"):AddItem(w2,5)
- w2.Material = "SmoothPlastic"
- w2.FormFactor = 'Custom'
- w2.BrickColor = BrickColor.new("Really black")
- w2.Transparency = 0
- w2.Reflectance = 0
- w2.Material = "SmoothPlastic"
- w2.CanCollide = false
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Instance.new("SpecialMesh",w2)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Parent = workspace
- w2.Transparency = 0.7
- table.insert(Effects,{w2,"Disappear",.05})
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- if Type==1 or Type==nil then
- table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
- elseif Type==2 then
- table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
- end
- end
- function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,push)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Blood",delay,x3,y3,z3,msh,push})
- end
- function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*cf(x2,y2,z2)
- local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
- local prt=part(3,effects,0,1,brickcolor,"Effect",vt())
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
- end
- function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicWave2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","1323306",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh,0})
- end
- function MagicCrystal(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","9756362",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function BreakEffect(brickcolor,cframe,x1,y1,z1)
- local prt=part(3,effects,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))
- game:GetService("Debris"):AddItem(prt,10)
- local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
- local num=math.random(10,50)/1000
- table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
- --table.insert(Effects,{prt,"Shatter",.02,msh})
- --[[
- 1=prt
- 2=Shatter
- 3=.02
- 4=Thing[1].CFrame
- 5=randnum
- 6=Numbb
- coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
- CF=Part.CFrame
- Numbb=0
- randnumb=math.random()-math.random()
- for i=0,1,0.05 do
- wait()
- CF=CF*cf(0,1,0)
- --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
- Part.CFrame=CF*euler(Numbb,0,0)
- Part.Transparency=i
- Numbb=Numbb+randnumb
- end
- Part.Parent=nil
- end),prt,CF,Numbb,randnumb)]]
- end
- function BreakEffect2(brickcolor,cframe,x1,y1,z1)
- local prt=part(3,effects,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))
- game:GetService("Debris"):AddItem(prt,10)
- local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
- local num=math.random(100,200)/1000
- table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(300,1000)/100})
- end
- --Break effect. Credits to whoever made it
- local MaxPieces = 10
- local Explode = true
- local Connection = nil
- function IsWhole(Number)
- return math.ceil(Number) == Number
- end
- function ChangeAxis(Vector,Axis,Value)
- if(Axis == "x")then
- return Vector3.new(Value,Vector.y,Vector.z)
- end
- if(Axis == "y")then
- return Vector3.new(Vector.x,Value,Vector.z)
- end
- if(Axis == "z")then
- return Vector3.new(Vector.x,Vector.y,Value)
- end
- end
- function Break(mouse)
- local Targ = mouse
- local oldParent = mouse.Parent
- local FF = 1
- if(Targ.formFactor == Enum.FormFactor.Symmetric)then
- FF = 1
- end
- if(Targ.formFactor == Enum.FormFactor.Brick)then
- FF = 1.2
- end
- if(Targ.formFactor == Enum.FormFactor.Plate)then
- FF = 0.4
- end
- local New = Targ:Clone()
- local Rotation = Targ.CFrame - Targ.CFrame.p
- local SizeFactorX = 1
- local SizeFactorY = FF
- local SizeFactorZ = 1
- local Extra = (Targ.Size.x*Targ.Size.y*Targ.Size.z/(SizeFactorX*SizeFactorY*SizeFactorZ))/MaxPieces
- while Extra > 1 do
- SizeFactorX = SizeFactorX * 2
- SizeFactorY = SizeFactorY * 2
- SizeFactorZ = SizeFactorZ * 2
- if(SizeFactorX > Targ.Size.x)then
- SizeFactorX = Targ.Size.x
- end
- if(SizeFactorY > Targ.Size.y)then
- SizeFactorY = Targ.Size.y
- end
- if(SizeFactorZ > Targ.Size.z)then
- SizeFactorZ = Targ.Size.z
- end
- Extra = (Targ.Size.x*Targ.Size.y*Targ.Size.z/(SizeFactorX*SizeFactorY*SizeFactorZ))/MaxPieces
- end
- local Start = Targ.Position - (Targ.CFrame.lookVector * (Targ.Size.z/2 + (SizeFactorZ / 2)))-((Targ.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)).lookVector * (Targ.Size.x/2 + (SizeFactorX / 2)))-((Targ.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)).lookVector * (Targ.Size.y/2 + (SizeFactorY/2)))
- New.Size = Vector3.new(SizeFactorX,SizeFactorY,SizeFactorZ)
- New.Anchored = false
- local OverShootZ = (Targ.Size.z/SizeFactorZ) - math.floor(Targ.Size.z/SizeFactorZ)
- local OverShootX = (Targ.Size.x/SizeFactorX) - math.floor(Targ.Size.x/SizeFactorX)
- local OverShootY = (Targ.Size.y/SizeFactorY) - math.floor(Targ.Size.y/SizeFactorY)
- ----print("SizeFactor",SizeFactorX,SizeFactorY,SizeFactorZ)
- ----print("OverShoot",OverShootX,OverShootY,OverShootZ)
- for z = 1,math.ceil(Targ.Size.z/SizeFactorZ) do
- if(OverShootZ > 0)then
- if(z == math.ceil(Targ.Size.z/SizeFactorZ))then
- z = z - ((1 - OverShootZ) / 2)
- New.Size = ChangeAxis(New.Size,"z",OverShootZ * SizeFactorZ)
- else
- New.Size = ChangeAxis(New.Size,"z",SizeFactorZ)
- end
- end
- for y = 1,math.ceil(Targ.Size.y/SizeFactorY) do
- if(OverShootY > 0)then
- if(y == math.ceil(Targ.Size.y/SizeFactorY))then
- y = y - ((1 - OverShootY) / 2)
- New.Size = ChangeAxis(New.Size,"y",OverShootY * SizeFactorY)
- else
- New.Size = ChangeAxis(New.Size,"y",SizeFactorY)
- end
- end
- for x = 1,math.ceil(Targ.Size.x/SizeFactorX) do
- if(OverShootX > 0)then
- if(x == math.ceil(Targ.Size.x/SizeFactorX))then
- x = x - ((1 - OverShootX) / 2)
- New.Size = ChangeAxis(New.Size,"x",OverShootX * SizeFactorX)
- else
- New.Size = ChangeAxis(New.Size,"x",SizeFactorX)
- end
- end
- local N = New:Clone()
- N.CFrame = CFrame.new(Start + (Targ.CFrame.lookVector * z * SizeFactorZ)+((Targ.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)).lookVector * x * SizeFactorX)+((Targ.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)).lookVector * y * SizeFactorY))*Rotation
- --N.Parent = oldParent
- N.Parent = workspace
- N.CanCollide = false
- N.Velocity = vt(math.random(-300,300),math.random(-20,40),math.random(-300,300))
- N.RotVelocity = vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
- game:GetService("Debris"):AddItem(N,5)
- end
- end
- end
- Targ:Remove()
- end
- local BodGy=Instance.new("BodyGyro")
- BodGy.maxTorque=Vector3.new(0,4e+005,0)
- BodGy.P=2000
- BodGy.D=100
- BodGy.Name="SiegmundGyro"
- CF=RootPart.CFrame
- BodGy.Parent=RootPart
- BodGy.cframe=CF
- sizeseq=ns({nsk(0,4),nsk(.027,8.5),nsk(.184,9),nsk(1,10)})
- transseq=ns({nsk(0,.375),nsk(.4,1),nsk(1,1)})
- local icicleparti1=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.2,sizeseq,"http://www.roblox.com/asset/?id=329766994",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),15,nr(-360,360),nr(-30,30),nr(3),20)
- sizeseq=ns({nsk(0,5),nsk(.025,7.7),nsk(.192,9),nsk(1,10)})
- transseq=ns({nsk(0,.8),nsk(.3,1),nsk(1,1)})
- local icicleparti2=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.3,sizeseq,"http://www.roblox.com/asset/?id=241594419",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),80,nr(-360,360),nr(-30,30),nr(3),20)
- sizeseq=ns({nsk(0,.328),nsk(.075,3.11),nsk(.206,4.97),nsk(1,10)})
- transseq=ns({nsk(0,.363),nsk(.107,1),nsk(1,1)})
- --[[Neck.C0=euler(0,0,0)*cf(0,3,0)*euler(0,.6,0)*euler(-.2,0,0)
- RootJoint.C0=cf(0,-2,0)*euler(0,.6,0)
- RW.C0=cf(4.5,1.5,0)*euler(-.4,0,.5)*euler(0,0,0)
- RW.C1=cf(0,1.5,0)*euler(0,0,0)
- LW.C0=cf(-4.5,1.5,0)*euler(.2,0,-.5)
- LW.C1=cf(0,1.5,0)*euler(0,0,0)
- RH.C0=cf(1.5,-3,0)*euler(0,-.6,0)*euler(0,0,.1)
- RH.C1=cf(0,3,0)*euler(0,0,0)
- LH.C0=cf(-1.5,-3,0)*euler(0,.6,0)*euler(.1,0,0)
- LH.C1=cf(0,3,0)*euler(0,0,0)]]
- -- idle pose
- --[[Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),1)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),1)
- wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),1)
- wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),1)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),1)
- wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),1)
- wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),1)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),1)]]
- --[[ old idle
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),1)
- wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8),1)
- wld24.C0=wld24.C0:lerp(euler(1.4,-.2,0)*cf(0,90.25,0),1)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),1)
- wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8),1)
- wld38.C0=wld38.C0:lerp(euler(-1.4,-.2,0)*cf(0,-90.25,0),1)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),1)
- ]]
- --[[RootJoint.C0=clerp(RootJoint.C0,cf(-1.749,-200,0),1)
- wld19.C0=clerp(wld19.C0,euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
- wld21.C0=clerp(wld21.C0,euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8),1)
- wld24.C0=clerp(wld24.C0,euler(1.4,-.2,0)*cf(0,90.25,0),1)
- wld29.C0=clerp(wld29.C0,euler(0,0,0)*cf(0,125,0),1)
- wld33.C0=clerp(wld33.C0,euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
- wld35.C0=clerp(wld35.C0,euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8),1)
- wld38.C0=clerp(wld38.C0,euler(-1.4,-.2,0)*cf(0,-90.25,0),1)
- wld43.C0=clerp(wld43.C0,euler(0,0,0)*cf(0,-125,0),1)]]
- msh3.Scale=vt(4,0,8.5)
- msh5.Scale=vt(4,0,8.5)
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),1)
- RootJoint.C0=RootJoint.C0:lerp(euler(-.2,0,.1)*cf(-1.749,-60,-30),1)
- wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,-.6)*euler(0,-.8,0)*euler(0,0,0),1)
- wld24.C0=wld24.C0:lerp(euler(1.4,.5,0)*cf(0,90.25,0),1)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),1)
- wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.8)*euler(0,.8,0)*euler(.8,0,0),1)
- wld38.C0=wld38.C0:lerp(euler(-.6,1,0)*cf(0,-90.25,0),1)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),1)
- --[[local Ice1=part(0,armor,.2,0,BrickColor.new("Hot pink"),"Ice",vt(57.75,136.17,57.77))
- Ice1.Material="Ice"
- Ice1.Anchored=true
- Ice1.CFrame=workspace.BossSpawn.CFrame*cf(144.341,286.773,15.162)
- local Ice2=part(0,armor,.2,0,BrickColor.new("Really red"),"Ice",vt(89.99,35.13,77.57)) Ice2.Material="Ice" Ice2.Anchored=true
- Ice2.CFrame=workspace.BossSpawn.CFrame*cf(-53.887,-10.726,-155.145)
- local Ice3=part(0,armor,.2,0,BrickColor.new("Really red"),"Ice",vt(164.4,63.01,89.76)) Ice3.Material="Ice" Ice3.Anchored=true
- Ice3.CFrame=workspace.BossSpawn.CFrame*cf(-107.848,12.137,-93.992)
- local Ice4=part(0,armor,.2,0,BrickColor.new("Really red"),"Ice",vt(25.2,179.13,34.57))
- Ice4.Material="Ice"
- Ice4.Anchored=true
- Ice4.CFrame=workspace.BossSpawn.CFrame*cf(319.875,454.041,179.418)]]
- --I1wld=weld(Ice1,RootPart,Ice1,euler(0,0,0)*cf(144.341,286.773,15.162))
- --I1wld=weld(Ice1,RootPart,Ice1,euler(0,0,0)*cf(15.162,286.773))
- --local HMesh=mesh("SpecialMesh",Head,"Sphere","nil",vt(0,0,0),vt(59.5,59.5,59.5))
- --[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
- Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
- --local Neck=weld(Torso,Torso,Head,euler(0,0,0)*cf(0,35,0))
- for i=0,1,0.05 do
- swait()
- msh3.Scale=vt(4,1+7.5*i,8.5)
- msh5.Scale=vt(4,1+7.5*i,8.5)
- end
- msh3.Scale=vt(4,8.5,8.5)
- msh5.Scale=vt(4,8.5,8.5)
- stunanim=true
- attack=true
- stunanim=false
- attack=false
- --[[for i=0,1,0.02 do
- swait()
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),.1)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.1)
- wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.1)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),.1)
- wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.1)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
- wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.1)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),.1)
- wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.1)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.1)
- end]]
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),1)
- --print("START BOSS BATTLE")
- function TriIceShards()
- --for i=1,math.random(1,4) do
- local dacfm=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
- local dacf=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
- local dacf2=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
- local dacf3=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
- local icepart1=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart1.Anchored=true
- i1msh=mesh("SpecialMesh",icepart1,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
- icepart1.CFrame=dacf
- local icepart2=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart2.Anchored=true
- i2msh=mesh("SpecialMesh",icepart2,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
- icepart2.CFrame=dacf2
- local icepart3=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart3.Anchored=true
- i3msh=mesh("SpecialMesh",icepart3,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
- icepart3.CFrame=dacf3
- local partic1=icicleparti1:Clone() partic1.Parent=icepart1 partic1.Enabled=true
- local partic2=icicleparti2:Clone() partic2.Parent=icepart1 partic2.Enabled=true
- local partic3=icicleparti1:Clone() partic3.Parent=icepart2 partic3.Enabled=true
- local partic4=icicleparti2:Clone() partic4.Parent=icepart2 partic4.Enabled=true
- local partic5=icicleparti1:Clone() partic5.Parent=icepart3 partic5.Enabled=true
- local partic6=icicleparti2:Clone() partic6.Parent=icepart3 partic6.Enabled=true
- for i=0,1,0.1 do
- swait()
- icepart1.CFrame=dacf
- icepart2.CFrame=dacf2
- icepart3.CFrame=dacf3
- dacf=dacf*cf(0,math.random(500,1000)/10,0)
- dacf2=dacf2*cf(0,math.random(500,1000)/10,0)
- dacf3=dacf3*cf(0,math.random(500,1000)/10,0)
- end
- local target1,distance1=findRandomTorso(icepart1.Position)
- local target2,distance2=findRandomTorso(icepart2.Position)
- local target3,distance3=findRandomTorso(icepart3.Position)
- MagicBlock(BrickColor.new("Really red"),cf(icepart1.Position),60,60,60,20,20,20,.1,1)
- MagicBlock(BrickColor.new("Really red"),cf(icepart2.Position),60,60,60,20,20,20,.1,1)
- MagicBlock(BrickColor.new("Really red"),cf(icepart3.Position),60,60,60,20,20,20,.1,1)
- if target1~=nil then
- so("333475957",icepart1,1,.9)
- local MouseLook=cf((icepart1.Position+target1.Position)/2,target1.Position+vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100))
- table.insert(Effects,{MouseLook,"ShootIce",200,icepart1.Position,5,7,0,icepart1,10,1,partic1,partic2})
- else
- icepart1.Parent=nil
- end
- if target2~=nil then
- so("333475957",icepart2,1,.9)
- local MouseLook=cf((icepart2.Position+target2.Position)/2,target2.Position+vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100))
- table.insert(Effects,{MouseLook,"ShootIce",200,icepart2.Position,5,7,0,icepart2,10,1,partic3,partic4})
- else
- icepart2.Parent=nil
- end
- if target3~=nil then
- so("333475957",icepart3,1,.9)
- local MouseLook=cf((icepart3.Position+target3.Position)/2,target3.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100))
- table.insert(Effects,{MouseLook,"ShootIce",200,icepart3.Position,8,10,0,icepart3,10,1,partic5,partic6})
- else
- icepart3.Parent=nil
- end
- --end
- end
- function TriIceShards2()
- --for i=1,math.random(1,4) do
- local dacfm=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
- --[[eul1=math.random(0,800)/1000 eul2=math.random(400,1200)/1000
- eul3=math.random(200,1000)/1000
- eul4=math.random(0,800)/1000 eul5=math.random(400,1200)/1000
- local dacf=Torso.CFrame*euler(-eul1,0,eul2)
- local dacf2=Torso.CFrame*euler(-eul3,0,0)
- local dacf3=Torso.CFrame*euler(-eul4,0,-eul5)]]
- local dacf=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
- local dacf2=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
- local dacf3=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
- local icepart1=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart1.Anchored=true
- i1msh=mesh("SpecialMesh",icepart1,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
- icepart1.CFrame=dacf
- local icepart2=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart2.Anchored=true
- i2msh=mesh("SpecialMesh",icepart2,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
- icepart2.CFrame=dacf2
- local icepart3=part(3,effects,.5,0,BrickColor.new("Really black"),"Ice",vt()) icepart3.Anchored=true
- i3msh=mesh("SpecialMesh",icepart3,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
- icepart3.CFrame=dacf3
- local partic1=icicleparti1:Clone() partic1.Parent=icepart1 partic1.Enabled=true
- local partic2=icicleparti2:Clone() partic2.Parent=icepart1 partic2.Enabled=true
- local partic3=icicleparti1:Clone() partic3.Parent=icepart2 partic3.Enabled=true
- local partic4=icicleparti2:Clone() partic4.Parent=icepart2 partic4.Enabled=true
- local partic5=icicleparti1:Clone() partic5.Parent=icepart3 partic5.Enabled=true
- local partic6=icicleparti2:Clone() partic6.Parent=icepart3 partic6.Enabled=true
- for i=0,1,0.1 do
- swait()
- icepart1.CFrame=dacf
- icepart2.CFrame=dacf2
- icepart3.CFrame=dacf3
- dacf=dacf*cf(0,math.random(500,1000)/10,0)
- dacf2=dacf2*cf(0,math.random(500,1000)/10,0)
- dacf3=dacf3*cf(0,math.random(500,1000)/10,0)
- end
- local target1,distance1=findNearestTorso(Head.Position)
- local target2,distance2=findNearestTorso(Head.Position)
- local target3,distance3=findNearestTorso(Head.Position)
- MagicBlock(BrickColor.new("Really red"),cf(icepart1.Position),60,60,60,20,20,20,.1,1)
- MagicBlock(BrickColor.new("Really red"),cf(icepart2.Position),60,60,60,20,20,20,.1,1)
- MagicBlock(BrickColor.new("Really red"),cf(icepart3.Position),60,60,60,20,20,20,.1,1)
- if target1~=nil then
- so("333475957",icepart1,1,.9)
- local MouseLook=cf((icepart1.Position+target1.Position)/2,target1.Position+vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100))
- table.insert(Effects,{MouseLook,"ShootIce",200,icepart1.Position,5,7,0,icepart1,10,1,partic1,partic2})
- else
- icepart1.Parent=nil
- end
- if target2~=nil then
- so("333475957",icepart2,1,.9)
- local MouseLook=cf((icepart2.Position+target2.Position)/2,target2.Position+vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100))
- table.insert(Effects,{MouseLook,"ShootIce",200,icepart2.Position,5,7,0,icepart2,10,1,partic3,partic4})
- else
- icepart2.Parent=nil
- end
- if target3~=nil then
- so("333475957",icepart3,1,.9)
- local MouseLook=cf((icepart3.Position+target3.Position)/2,target3.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100))
- table.insert(Effects,{MouseLook,"ShootIce",200,icepart3.Position,8,10,0,icepart3,10,1,partic5,partic6})
- else
- icepart3.Parent=nil
- end
- --end
- end
- function TriOrbs()
- --for i=1,math.random(1,4) do
- local dacf=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
- local dacf2=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
- local dacf3=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
- local icepart1=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart1.Anchored=true
- i1msh=mesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(100,100,100))
- icepart1.CFrame=dacf
- local icepart2=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart2.Anchored=true
- i2msh=mesh("SpecialMesh",icepart2,"Sphere","nil",vt(0,0,0),vt(100,100,100))
- icepart2.CFrame=dacf2
- local icepart3=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart3.Anchored=true
- i3msh=mesh("SpecialMesh",icepart3,"Sphere","nil",vt(0,0,0),vt(100,100,100))
- icepart3.CFrame=dacf3
- local partic1=icicleparti2:Clone() partic1.Parent=icepart1 partic1.Enabled=true
- local partic3=icicleparti2:Clone() partic3.Parent=icepart2 partic3.Enabled=true
- local partic5=icicleparti2:Clone() partic5.Parent=icepart3 partic5.Enabled=true
- for i=0,1,0.1 do
- swait()
- icepart1.CFrame=dacf
- icepart2.CFrame=dacf2
- icepart3.CFrame=dacf3
- dacf=dacf*cf(0,math.random(400,800)/10,0)
- dacf2=dacf2*cf(0,math.random(400,800)/10,0)
- dacf3=dacf3*cf(0,math.random(400,800)/10,0)
- end
- local target1,distance1=findRandomTorso(icepart1.Position)
- local target2,distance2=findRandomTorso(icepart2.Position)
- local target3,distance3=findRandomTorso(icepart3.Position)
- local test1,dist1=findNearestTorso(Head.Position)
- local pos1,pos2,pos3=nil,nil,nil
- local refpart1=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart1.Anchored=true
- local refpart2=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart2.Anchored=true
- local refpart3=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart3.Anchored=true
- if target1~=nil then
- pos1=target1.Position
- refpart1.CFrame=cf(pos1)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
- end
- if target2~=nil then
- pos2=target2.Position
- refpart2.CFrame=cf(pos2)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
- end
- if target3~=nil then
- pos3=target3.Position
- refpart3.CFrame=cf(pos3)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
- end
- local move=40
- for i=0,1,0.1 do
- swait()
- move=40-40*i
- if target1~=nil then
- refpart1.CFrame=cf(refpart1.Position,target1.Position)
- MagicCircle2(BrickColor.new("Really red"),icepart1.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
- icepart1.CFrame=dacf
- dacf=dacf*cf(0,move,0)
- end
- if target2~=nil then
- refpart2.CFrame=cf(refpart2.Position,target2.Position)
- MagicCircle2(BrickColor.new("Really red"),icepart2.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
- icepart2.CFrame=dacf2
- dacf2=dacf2*cf(0,move,0)
- end
- if target3~=nil then
- refpart3.CFrame=cf(refpart3.Position,target3.Position)
- MagicCircle2(BrickColor.new("Really red"),icepart3.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
- icepart3.CFrame=dacf3
- dacf3=dacf3*cf(0,move,0)
- end
- end
- local laser1=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser1.Anchored=true
- local lmsh1=mesh("SpecialMesh",laser1,"Head","nil",vt(0,0,0),vt(10,1,10))
- local laser2=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser2.Anchored=true
- local lmsh2=mesh("SpecialMesh",laser2,"Head","nil",vt(0,0,0),vt(10,1,10))
- local laser3=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser3.Anchored=true
- local lmsh3=mesh("SpecialMesh",laser3,"Head","nil",vt(0,0,0),vt(10,1,10))
- local ref=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=cf(0,0,0)
- game:GetService("Debris"):AddItem(ref,1)
- local ref1=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
- ref1.Anchored=true
- ref1.CFrame=cf(0,0,0)
- game:GetService("Debris"):AddItem(ref1,5)
- local ice1=0
- local ref2=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
- ref2.Anchored=true
- ref2.CFrame=cf(0,0,0)
- game:GetService("Debris"):AddItem(ref2,5)
- local ice2=2
- local ref3=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
- ref3.Anchored=true
- ref3.CFrame=cf(0,0,0)
- game:GetService("Debris"):AddItem(ref3,5)
- local ice3=4
- for i=0,3,0.05 do
- swait()
- ice1=ice1+1
- ice2=ice2+1
- ice3=ice3+1
- if target1~=nil then
- if i>1 then
- refpart1.CFrame=refpart1.CFrame*cf(0,0,-1.5)
- end
- local cfnew=cf(icepart1.Position,refpart1.Position)
- local hit1,pos1=rayCast(icepart1.Position,cfnew.lookVector,9999,Character)
- local mag1=(icepart1.Position-pos1).magnitude
- laser1.CFrame=CFrame.new((icepart1.Position+pos1)/2,pos1)*angles(1.57,0,0)
- lmsh1.Scale=vt(10,mag1*5,10)
- MagicBlock(BrickColor.new("Really red"),cf(pos1),5,5,5,5,5,5,.1,1)
- ref.CFrame=cf(pos1)
- MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
- ref1.CFrame=cf(ref.Position)
- if ice1%2==0 then
- so("333476017",ref1,.3,1.4)
- end
- end
- if target2~=nil then
- if i>1 then
- refpart2.CFrame=refpart2.CFrame*cf(0,0,-1.5)
- end
- local cfnew=cf(icepart2.Position,refpart2.Position)
- local hit2,pos2=rayCast(icepart2.Position,cfnew.lookVector,9999,Character)
- local mag2=(icepart2.Position-pos2).magnitude
- laser2.CFrame=CFrame.new((icepart2.Position+pos2)/2,pos2)*angles(1.57,0,0)
- lmsh2.Scale=vt(10,mag2*5,10)
- MagicBlock(BrickColor.new("Really red"),cf(pos2),5,5,5,5,5,5,.1,1)
- ref.CFrame=cf(pos2)
- MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
- ref2.CFrame=cf(ref.Position)
- if ice2%2==0 then
- so("333476017",ref2,.3,1.4)
- end
- end
- if target3~=nil then
- if i>1 then
- refpart3.CFrame=refpart3.CFrame*cf(0,0,-1.5)
- end
- local cfnew=cf(icepart3.Position,refpart3.Position)
- local hit3,pos3=rayCast(icepart3.Position,cfnew.lookVector,9999,Character)
- local mag3=(icepart3.Position-pos3).magnitude
- laser3.CFrame=CFrame.new((icepart3.Position+pos3)/2,pos3)*angles(1.57,0,0)
- lmsh3.Scale=vt(10,mag3*5,10)
- MagicBlock(BrickColor.new("Really red"),cf(pos3),5,5,5,5,5,5,.1,1)
- ref.CFrame=cf(pos3)
- MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
- ref3.CFrame=cf(ref.Position)
- if ice3%2==0 then
- so("333476017",ref3,.3,1.4)
- end
- end
- end
- if target1~=nil then
- local pos1=laser1.CFrame
- local x1=lmsh1.Scale.X local y1=lmsh1.Scale.Y local z1=lmsh1.Scale.Z
- MagicHead(BrickColor.new("Really red"),pos1,x1,y1,z1,1,1,1,.1)
- end
- if target2~=nil then
- local pos2=laser2.CFrame
- local x2=lmsh2.Scale.X local y2=lmsh2.Scale.Y local z2=lmsh2.Scale.Z
- MagicHead(BrickColor.new("Really red"),pos2,x2,y2,z2,1,1,1,.1)
- end
- if target3~=nil then
- local pos3=laser3.CFrame
- local x3=lmsh3.Scale.X local y3=lmsh3.Scale.Y local z3=lmsh3.Scale.Z
- MagicHead(BrickColor.new("Really red"),pos3,x3,y3,z3,1,1,1,.1)
- end
- MagicCircle(BrickColor.new("Really red"),cf(icepart1.Position),100,100,100,5,5,5,.2)
- MagicCircle(BrickColor.new("Really red"),cf(icepart2.Position),100,100,100,5,5,5,.2)
- MagicCircle(BrickColor.new("Really red"),cf(icepart3.Position),100,100,100,5,5,5,.2)
- icepart1.Parent=nil
- icepart2.Parent=nil
- icepart3.Parent=nil
- refpart1.Parent=nil
- refpart2.Parent=nil
- refpart3.Parent=nil
- laser1.Parent=nil
- laser2.Parent=nil
- laser3.Parent=nil
- ref.Parent=nil
- end
- function TriOrbs2()
- --for i=1,math.random(1,4) do
- local dacf=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
- local dacf2=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
- local dacf3=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
- local icepart1=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart1.Anchored=true
- i1msh=mesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(100,100,100))
- icepart1.CFrame=dacf
- local icepart2=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart2.Anchored=true
- i2msh=mesh("SpecialMesh",icepart2,"Sphere","nil",vt(0,0,0),vt(100,100,100))
- icepart2.CFrame=dacf2
- local icepart3=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart3.Anchored=true
- i3msh=mesh("SpecialMesh",icepart3,"Sphere","nil",vt(0,0,0),vt(100,100,100))
- icepart3.CFrame=dacf3
- local partic1=icicleparti2:Clone() partic1.Parent=icepart1 partic1.Enabled=true
- local partic3=icicleparti2:Clone() partic3.Parent=icepart2 partic3.Enabled=true
- local partic5=icicleparti2:Clone() partic5.Parent=icepart3 partic5.Enabled=true
- for i=0,1,0.1 do
- swait()
- icepart1.CFrame=dacf
- icepart2.CFrame=dacf2
- icepart3.CFrame=dacf3
- dacf=dacf*cf(0,math.random(400,800)/10,0)
- dacf2=dacf2*cf(0,math.random(400,800)/10,0)
- dacf3=dacf3*cf(0,math.random(400,800)/10,0)
- end
- local target1,distance1=findNearestTorso(Head.Position)
- local target2,distance2=findNearestTorso(Head.Position)
- local target3,distance3=findNearestTorso(Head.Position)
- local test1,dist1=findNearestTorso(Head.Position)
- local pos1,pos2,pos3=nil,nil,nil
- local refpart1=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart1.Anchored=true
- local refpart2=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart2.Anchored=true
- local refpart3=part(3,effects,0,1,BrickColor.new("Really red"),"Ref",vt()) refpart3.Anchored=true
- if target1~=nil then
- pos1=target1.Position
- refpart1.CFrame=cf(pos1)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
- end
- if target2~=nil then
- pos2=target2.Position
- refpart2.CFrame=cf(pos2)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
- end
- if target3~=nil then
- pos3=target3.Position
- refpart3.CFrame=cf(pos3)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
- end
- local move=40
- for i=0,1,0.1 do
- swait()
- move=40-40*i
- if target1~=nil then
- refpart1.CFrame=cf(refpart1.Position,target1.Position)
- MagicCircle2(BrickColor.new("Really red"),icepart1.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
- icepart1.CFrame=dacf
- dacf=dacf*cf(0,move,0)
- end
- if target2~=nil then
- refpart2.CFrame=cf(refpart2.Position,target2.Position)
- MagicCircle2(BrickColor.new("Really red"),icepart2.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
- icepart2.CFrame=dacf2
- dacf2=dacf2*cf(0,move,0)
- end
- if target3~=nil then
- refpart3.CFrame=cf(refpart3.Position,target3.Position)
- MagicCircle2(BrickColor.new("Really red"),icepart3.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
- icepart3.CFrame=dacf3
- dacf3=dacf3*cf(0,move,0)
- end
- end
- local laser1=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser1.Anchored=true
- local lmsh1=mesh("SpecialMesh",laser1,"Head","nil",vt(0,0,0),vt(10,1,10))
- local laser2=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser2.Anchored=true
- local lmsh2=mesh("SpecialMesh",laser2,"Head","nil",vt(0,0,0),vt(10,1,10))
- local laser3=part(3,effects,0,0,BrickColor.new("Really red"),"Effect",vt()) laser3.Anchored=true
- local lmsh3=mesh("SpecialMesh",laser3,"Head","nil",vt(0,0,0),vt(10,1,10))
- local ref=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=cf(0,0,0)
- game:GetService("Debris"):AddItem(ref,1)
- local ref1=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
- ref1.Anchored=true
- ref1.CFrame=cf(0,0,0)
- game:GetService("Debris"):AddItem(ref1,5)
- local ice1=0
- local ref2=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
- ref2.Anchored=true
- ref2.CFrame=cf(0,0,0)
- game:GetService("Debris"):AddItem(ref2,5)
- local ice2=2
- local ref3=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
- ref3.Anchored=true
- ref3.CFrame=cf(0,0,0)
- game:GetService("Debris"):AddItem(ref3,5)
- local ice3=4
- for i=0,3,0.1 do
- swait()
- ice1=ice1+1
- ice2=ice2+1
- ice3=ice3+1
- if target1~=nil then
- if i>1 then
- refpart1.CFrame=refpart1.CFrame*cf(0,0,-2)
- end
- local cfnew=cf(icepart1.Position,refpart1.Position)
- local hit1,pos1=rayCast(icepart1.Position,cfnew.lookVector,9999,Character)
- local mag1=(icepart1.Position-pos1).magnitude
- laser1.CFrame=CFrame.new((icepart1.Position+pos1)/2,pos1)*angles(1.57,0,0)
- lmsh1.Scale=vt(10,mag1*5,10)
- MagicBlock(BrickColor.new("Really red"),cf(pos1),5,5,5,5,5,5,.1,1)
- ref.CFrame=cf(pos1)
- MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
- ref1.CFrame=cf(ref.Position)
- if ice1%2==0 then
- so("333476017",ref1,.3,1.4)
- end
- end
- if target2~=nil then
- if i>1 then
- refpart2.CFrame=refpart2.CFrame*cf(0,0,-2)
- end
- local cfnew=cf(icepart2.Position,refpart2.Position)
- local hit2,pos2=rayCast(icepart2.Position,cfnew.lookVector,9999,Character)
- local mag2=(icepart2.Position-pos2).magnitude
- laser2.CFrame=CFrame.new((icepart2.Position+pos2)/2,pos2)*angles(1.57,0,0)
- lmsh2.Scale=vt(10,mag2*5,10)
- MagicBlock(BrickColor.new("Really red"),cf(pos2),5,5,5,5,5,5,.1,1)
- ref.CFrame=cf(pos2)
- MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
- ref2.CFrame=cf(ref.Position)
- if ice2%2==0 then
- so("333476017",ref2,.3,1.4)
- end
- end
- if target3~=nil then
- if i>1 then
- refpart3.CFrame=refpart3.CFrame*cf(0,0,-2)
- end
- local cfnew=cf(icepart3.Position,refpart3.Position)
- local hit3,pos3=rayCast(icepart3.Position,cfnew.lookVector,9999,Character)
- local mag3=(icepart3.Position-pos3).magnitude
- laser3.CFrame=CFrame.new((icepart3.Position+pos3)/2,pos3)*angles(1.57,0,0)
- lmsh3.Scale=vt(10,mag3*5,10)
- MagicBlock(BrickColor.new("Really red"),cf(pos3),5,5,5,5,5,5,.1,1)
- ref.CFrame=cf(pos3)
- MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
- ref3.CFrame=cf(ref.Position)
- if ice3%2==0 then
- so("333476017",ref3,.3,1.4)
- end
- end
- end
- if target1~=nil then
- local pos1=laser1.CFrame
- local x1=lmsh1.Scale.X local y1=lmsh1.Scale.Y local z1=lmsh1.Scale.Z
- MagicHead(BrickColor.new("Really red"),pos1,x1,y1,z1,1,1,1,.1)
- end
- if target2~=nil then
- local pos2=laser2.CFrame
- local x2=lmsh2.Scale.X local y2=lmsh2.Scale.Y local z2=lmsh2.Scale.Z
- MagicHead(BrickColor.new("Really red"),pos2,x2,y2,z2,1,1,1,.1)
- end
- if target3~=nil then
- local pos3=laser3.CFrame
- local x3=lmsh3.Scale.X local y3=lmsh3.Scale.Y local z3=lmsh3.Scale.Z
- MagicHead(BrickColor.new("Really red"),pos3,x3,y3,z3,1,1,1,.1)
- end
- MagicCircle(BrickColor.new("Really red"),cf(icepart1.Position),100,100,100,5,5,5,.2)
- MagicCircle(BrickColor.new("Really red"),cf(icepart2.Position),100,100,100,5,5,5,.2)
- MagicCircle(BrickColor.new("Really red"),cf(icepart3.Position),100,100,100,5,5,5,.2)
- icepart1.Parent=nil
- icepart2.Parent=nil
- icepart3.Parent=nil
- refpart1.Parent=nil
- refpart2.Parent=nil
- refpart3.Parent=nil
- laser1.Parent=nil
- laser2.Parent=nil
- laser3.Parent=nil
- ref.Parent=nil
- end
- function IceMortar()
- for i=1,math.random(2,3) do
- local dacf=Torso.CFrame*euler(-1.57+math.random(40,80)/100,0,math.random(-80,80)/100)
- local icepart1=part(3,effects,0,0,BrickColor.new("Really red"),"Ice",vt()) icepart1.Anchored=true
- i1msh=mesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(200,200,200))
- icepart1.CFrame=dacf
- local inc=100
- for i=0,1,0.1 do
- swait()
- icepart1.CFrame=dacf
- dacf=dacf*cf(0,inc,0)
- inc=100-100*i
- end
- local cfinc=99999
- MagicHead(BrickColor.new("Really red"),cf(icepart1.Position)*cf(0,cfinc/10,0),200,cfinc,200,-10,1,-10,.1)
- MagicCircle(BrickColor.new("Really red"),cf(icepart1.Position),200,200,200,-10,0,-10,.1)
- icepart1.Transparency=1
- so("334325056",icepart1,1,1)
- game:GetService("Debris"):AddItem(icepart1,1)
- local target1,distance1=findRandomTorso(icepart1.Position)
- local test1,dist1=findNearestTorso(Head.Position)
- if target1~=nil then
- cfda=target1.Position+vt(math.random(-3000,3000)/100,0,math.random(-3000,3000)/100)
- local hit2,pos2=rayCast(cfda,(CFrame.new(cfda,cfda - Vector3.new(0,1,0))).lookVector,999,Character)
- local d1=part(3,effects,0,.5,BrickColor.new("Really red"),"Effect",vt())
- d1.Anchored=true
- d1.CFrame=cf(pos2)
- msh=mesh("CylinderMesh",d1,"nil","nil",vt(0,0,0),vt(200,5,200))
- d2=d1:Clone()
- d2.Parent=d1
- d2.CFrame=cf(d1.Position)
- d2.BrickColor=BrickColor.new("Really black")
- d2.Mesh.Scale=vt(0,5,0)
- table.insert(Effects,{d1,"SatelliteStrike",d2,d2.Mesh,0})
- end
- end
- end
- function TurnSlam()
- attack=true
- local value = 50
- local value2 = 100
- local value3 = 200
- GroundWave = function()
- local sa2 = Instance.new("Sound",Torso)
- sa2.SoundId = "rbxassetid://262562442"
- sa2.Pitch = 1
- sa2.Volume = 10
- sa2.Looped = false
- sa2:Play()
- local wave = Instance.new("Part", Torso)
- wave.BrickColor = BrickColor.new("Really black")
- wave.Anchored = true
- wave.CanCollide = false
- wave.Locked = true
- wave.Size = Vector3.new(1, 1, 1)
- wave.TopSurface = "Smooth"
- wave.BottomSurface = "Smooth"
- wave.Transparency = 0.35
- wave.CFrame = prt45.CFrame
- wave.Material = "Neon"
- wm = Instance.new("SpecialMesh", wave)
- wm.MeshType = "Sphere"
- wm.Scale = Vector3.new(1,1,1)
- local wave2 = Instance.new("Part", Torso)
- wave2.BrickColor = BrickColor.new("Really red")
- wave2.Anchored = true
- wave2.CanCollide = false
- wave2.Locked = true
- wave2.Size = Vector3.new(1, 1, 1)
- wave2.TopSurface = "Smooth"
- wave2.BottomSurface = "Smooth"
- wave2.Transparency = 0.35
- wave2.CFrame = prt45.CFrame
- wave2.Material = "Neon"
- wm2 = Instance.new("SpecialMesh", wave2)
- wm2.MeshType = "FileMesh"
- wm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
- wm2.Scale = Vector3.new(1,1,1)
- local wave3 = Instance.new("Part", Torso)
- wave3.BrickColor = BrickColor.new("Really black")
- wave3.Anchored = true
- wave3.CanCollide = false
- wave3.Locked = true
- wave3.Size = Vector3.new(1, 1, 1)
- wave3.TopSurface = "Smooth"
- wave3.BottomSurface = "Smooth"
- wave3.Transparency = 0.35
- wave3.CFrame = prt45.CFrame
- wave3.Material = "Neon"
- wm3 = Instance.new("SpecialMesh", wave3)
- wm3.MeshType = "FileMesh"
- wm3.MeshId = "http://www.roblox.com/asset/?id=3270017"
- wm3.Scale = Vector3.new(1,1,1)
- coroutine.wrap(function()
- for i = 1, 18, 1 do
- value = value - 0.5
- value2 = value2 - 0.75*1.5
- value3 = value3 - 0.475*1.5
- wm.Scale = wm.Scale + Vector3.new(value*5.5,value*5.5,value*5.5)
- wm2.Scale = wm.Scale + Vector3.new(value2*5.5,value2*5.5,0.5)
- wm3.Scale = wm.Scale + Vector3.new(value3*5.5,value3*5.5,0.25)
- --wave.Size = wm.Scale
- wave.CFrame = prt45.CFrame
- wave.Transparency = i/14
- --wave2.Size = wm2.Scale
- wave2.CFrame = prt45.CFrame
- wave2.Rotation = Vector3.new(90, 0, 0)
- wave2.Transparency = i/14
- --wave3.Size = wm3.Scale
- wave3.CFrame = prt45.CFrame
- wave3.Rotation = Vector3.new(90, 0, 0)
- wave3.Transparency = i/14
- wait()
- end
- wait()
- wave:Destroy()
- wave2:Destroy()
- wave3:Destroy()
- end)()
- end
- ROW = function(out, trans, s, wt, t, ang, plus)
- for i = 1, 360, 360/t do
- local c = Instance.new("Part", game.Workspace)
- c.FormFactor = 3
- c.TopSurface = 0
- c.BottomSurface = 0
- c.Size = s
- c.Anchored = true
- c.CanCollide = wt
- c.Material=workspace.Base.Material
- c.Transparency = trans
- c.BrickColor = workspace.Base.BrickColor
- c.CFrame = CFrame.new(prt45.CFrame.x,0,prt45.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang
- c.Locked=true
- game.Debris:AddItem(c,15)
- end
- end
- local target,distance=findRandomTorso(RootPart.Position)
- if target~=nil or target==nil then
- local x,y,z = 0,0,0
- for i=0,1,0.02 do
- swait()
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.05)
- wld19.C0=wld19.C0:lerp(euler(-.6,.3,0)*cf(94,-47.5,-2.248),.01)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,.4,-.6),.01)
- wld24.C0=wld24.C0:lerp(euler(2.4,.2,0)*cf(0,90.25,0),.01)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.01)
- wld33.C0=wld33.C0:lerp(euler(-.6,-.3,0)*cf(-94,-47.5,-2.248),.01)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,-.4,.6),.01)
- wld38.C0=wld38.C0:lerp(euler(-2.4,.2,0)*cf(0,-90.25,0),.01)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.01)
- if Stun.Value>=StunT.Value then
- break
- end
- end
- so("849891594",Character,40,1)
- for i=0,1,0.01 do
- swait()
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(-.2,0,0),.02)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.05)
- wld19.C0=wld19.C0:lerp(euler(.2,.3,0)*cf(94,-47.5,-2.248),.02)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1,-1.2),.02)
- wld24.C0=wld24.C0:lerp(euler(2,-1,0)*cf(0,90.25,0),.02)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0)*euler(.5,0,1),.02)
- wld33.C0=wld33.C0:lerp(euler(.2,-.3,0)*cf(-94,-47.5,-2.248),.02)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,1,1.2),.02)
- wld38.C0=wld38.C0:lerp(euler(-2,-1,0)*cf(0,-90.25,0),.02)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0)*euler(-.5,0,-1),.02)
- if Stun.Value>=StunT.Value then
- break
- end
- end
- shockwave=false
- ref1a=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
- ref1a.Anchored=true
- ref1a.CFrame=cf(0,-50,0)
- game:GetService("Debris"):AddItem(ref1a,3)
- ref2a=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
- ref2a.Anchored=true
- ref2a.CFrame=cf(0,-50,0)
- game:GetService("Debris"):AddItem(ref2a,3)
- incda=80
- for i=0,3,0.03 do
- swait()
- dan=.1
- if shockwave==true then
- incda=incda+10
- if i<1.5 then
- MagniDamage(ref1a,incda,10000,10000000,math.random(0,0),"Knockdown2",RootPart,1.5,1,math.random(8,10),nil,nil,false,"Movement",.1,300)
- MagniDamage(ref2a,incda,10000,10000000,math.random(0,0),"Knockdown2",RootPart,1.5,1,math.random(8,10),nil,nil,false,"Movement",.1,300)
- end
- end
- if i>1 then
- dan=.05
- if shockwave==false then
- for i=1,2 do
- so("157878578",ref1a,1,0.4)
- so("2101148",ref1a,1,0.6)
- end
- for i=1,2 do
- so("157878578",ref2a,1,0.4)
- so("2101148",ref2a,1,0.6)
- end
- shockwave=true
- refcam=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
- refcam.Anchored=true
- refcam.CFrame=cf(prt31.Position)
- refcam.CFrame=refcam.CFrame:lerp(cf(prt45.Position),.5)
- game:GetService("Debris"):AddItem(refcam,1)
- hitfl1,posfl1=rayCast(prt31.Position,(CFrame.new(prt31.Position,prt31.Position - Vector3.new(0,1,0))).lookVector,50,Character)
- MagicRing(BrickColor.new("Really black"),cf(posfl1)*euler(1.57,0,0),160,160,1,20,20,1,.1)
- ref1a.CFrame=cf(posfl1)
- hitfl2,posfl2=rayCast(prt45.Position,(CFrame.new(prt45.Position,prt45.Position - Vector3.new(0,1,0))).lookVector,50,Character)
- MagicRing(BrickColor.new("Really red"),cf(posfl2)*euler(1.57,0,0),160,160,1,20,20,1,.1)
- GroundWave()
- ref2a.CFrame=cf(posfl2)
- end
- else
- MagniDamage(prt31,90,10000,10000000,math.random(40,60),"Knockdown2",RootPart,2,1,math.random(25,40),nil,nil,false)
- MagniDamage(prt45,90,10000,10000000,math.random(40,60),"Knockdown2",RootPart,2,1,math.random(25,40),nil,nil,false)
- end
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),dan)
- wld19.C0=wld19.C0:lerp(euler(-.6,.3,0)*cf(94,-47.5,-2.248),dan)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1,-1.2),dan)
- wld24.C0=wld24.C0:lerp(euler(1.2,-1,0)*cf(0,90.25,0),dan)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0)*euler(-.5,0,0)*euler(0,-.6,0)*euler(.3,0,0),dan)
- wld33.C0=wld33.C0:lerp(euler(-.6,-.3,0)*cf(-94,-47.5,-2.248),dan)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,1,1.2),dan)
- wld38.C0=wld38.C0:lerp(euler(-1.2,-1,0)*cf(0,-90.25,0),dan)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0)*euler(.5,0,0)*euler(0,-.6,0)*euler(-.3,0,0),dan)
- if Stun.Value>=StunT.Value then
- break
- end
- end
- meleecooldown=0
- mcdadd=.05
- if CurrentHealth<=1500 then
- mcdadd=1
- end
- --mcdadd=1
- end
- ROW(12, 0, Vector3.new(50.5, 150, 10), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0)
- attack=false
- end
- function GrandPunch()
- attack=true
- local target,distance=findRandomTorso(RootPart.Position)
- if target~=nil or target==nil then
- local x,y,z = 0,0,0
- for i=0,1,0.01 do
- swait()
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,.5,0),.02)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(0,.5,0),.02)
- wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.02)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,.3,-.4)*euler(0,-.2,0),.02)
- wld24.C0=wld24.C0:lerp(euler(2,0,0)*euler(0,0,0)*cf(0,90.25,0),.02)
- wld29.C0=wld29.C0:lerp(euler(0,.5,0)*cf(0,125,0),.02)
- wld33.C0=wld33.C0:lerp(euler(-.4,-.8,0)*cf(-94,-47.5,-2.248),.02)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.2)*euler(0,0,0),.02)
- wld38.C0=wld38.C0:lerp(euler(-1,-.4,0)*cf(0,-90.25,0),.02)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.02)
- if Stun.Value>=StunT.Value then
- break
- end
- end
- da=0
- local oldpos=prt31.Position
- for i=0,1.5,0.01 do
- swait()
- da=da+1
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,-.5,0),.04)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(0,-.5,0),.04)
- wld19.C0=wld19.C0:lerp(euler(-.8,.6,0)*cf(94,-47.5,-2.248),.04)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1.2,-.2)*euler(0,-.2,0),.04)
- --wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1.2,-.8)*euler(0,-.2,0),.1)
- wld24.C0=wld24.C0:lerp(euler(.8,0,0)*euler(0,0,0)*cf(0,90.25,0),.04)
- wld29.C0=wld29.C0:lerp(euler(0,3,0)*cf(0,125,0),.04)
- wld33.C0=wld33.C0:lerp(euler(-.4,-.1,0)*cf(-94,-47.5,-2.248),.04)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,-.2,.2)*euler(0,0,0),.04)
- wld38.C0=wld38.C0:lerp(euler(-1.8,-.4,0)*cf(0,-90.25,0),.04)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.04)
- if i<.5 then
- if da%4==0 then
- MagniDamage(prt31,95,15,20,math.random(60,100),"Knockdown2",prt31,.5,1,math.random(25,40),nil,nil,false)
- MagicWave(BrickColor.new("Really red"),cf(prt31.Position,oldpos)*euler(-1.57,0,0),100,100,100,10,10,10,.1)
- oldpos=prt31.Position
- end
- end
- if Stun.Value>=StunT.Value then
- break
- end
- end
- meleecooldown=0
- mcdadd=.1
- if CurrentHealth<=1500 then
- mcdadd=1
- end
- --mcdadd=50
- end
- attack=false
- end
- --[[ punch
- wld19.C0=wld19.C0:lerp(euler(-.4,-.3,0)*cf(94,-47.5,-2.248),.1)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(-.8,0,0)*euler(0,-.2,0),.1)
- wld24.C0=wld24.C0:lerp(euler(1.2,.8,0)*cf(0,90.25,0),.1)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
- ]]
- function FrostSlam()
- attack=true
- local target,distance=findRandomTorso(RootPart.Position)
- if target~=nil or target==nil then
- local x,y,z = 0,0,0
- for i=0,1,0.008 do
- swait()
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0)*euler(0,.3,-.2),.015)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(0,.3,0),.015)
- wld19.C0=wld19.C0:lerp(euler(-.4,-.3,0)*cf(94,-47.5,-2.248),.015)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(-1,0,0)*euler(0,-.4,0)*euler(0,0,-.4),.015)
- wld24.C0=wld24.C0:lerp(euler(.8,.8,0)*euler(0,-.2,0)*cf(0,90.25,0),.015)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.015)
- wld33.C0=wld33.C0:lerp(euler(.4,-.3,0)*cf(-94,-47.5,-2.248),.015)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,1)*euler(.5,0,0)*euler(0,.2,0),.015)
- wld38.C0=wld38.C0:lerp(euler(-1,-.2,0)*cf(0,-90.25,0),.015)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.015)
- if Stun.Value>=StunT.Value then
- break
- end
- end
- da=0
- local oldpos=prt45.Position
- shockwave=false
- ref2a=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
- ref2a.Anchored=true
- ref2a.CFrame=cf(0,-50,0)
- game:GetService("Debris"):AddItem(ref2a,3)
- incda=80
- for i=0,10,0.02 do
- swait()
- da=da+1
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0)*euler(0,.3,-.2),.025)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-190,0)*euler(0,.3,0)*euler(-.1,0,0),.025)
- wld19.C0=wld19.C0:lerp(euler(-.4,-.3,0)*cf(94,-47.5,-2.248),.025)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(-1,0,0)*euler(0,-.4,0)*euler(0,0,0),.025)
- wld24.C0=wld24.C0:lerp(euler(1,0,0)*euler(0,.3,0)*cf(0,90.25,0),.025)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.025)
- wld33.C0=wld33.C0:lerp(euler(-.2,-.3,0)*cf(-94,-47.5,-2.248),.025)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.6)*euler(0,1.4,0)*euler(0,0,0),.025)
- wld38.C0=wld38.C0:lerp(euler(-.5,0,0)*euler(0,0,-.2)*cf(0,-90.25,0),.025)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.025)
- if i>1 and i<8 then
- if da%10==0 then
- local do1=0
- local do2=0
- local rand1=math.random(1,2)
- if rand1==1 then do1=math.random(5000,15000)/100
- elseif rand1==2 then do1=math.random(-15000,-5000)/100 end
- local rand2=math.random(1,2)
- if rand2==1 then do2=math.random(5000,15000)/100
- elseif rand2==2 then do2=math.random(-15000,-5000)/100 end
- cfda=ref2a.Position+vt(do1,10,do2)
- local hit2,pos2=rayCast(cfda,(CFrame.new(cfda,cfda - Vector3.new(0,1,0))).lookVector,999,Character)
- local d1=part(3,effects,0,.5,BrickColor.new("Really red"),"Effect",vt())
- d1.Anchored=true
- d1.CFrame=cf(pos2)
- msh=mesh("CylinderMesh",d1,"nil","nil",vt(0,0,0),vt(300,5,300))
- d2=d1:Clone()
- d2.Parent=d1
- d2.CFrame=cf(d1.Position)
- d2.BrickColor=BrickColor.new("Really black")
- d2.Mesh.Scale=vt(0,5,0)
- table.insert(Effects,{d1,"SatelliteStrike2",d2,d2.Mesh,0})
- end
- end
- if i>1 and i<1.3 then
- incda=incda+10
- MagniDamage(ref2a,incda,6,8,math.random(10000,1000000),"Knockdown2",RootPart,1.5,1,math.random(8,10),nil,nil,false,"Movement",.1,300)
- end
- if i<1 then
- if da%4==0 then
- MagniDamage(prt45,95,15,20,math.random(10000,10000000),"Knockdown2",prt45,.5,1,math.random(25,40),nil,nil,false)
- MagicWave(BrickColor.new("Really red"),cf(prt45.Position,oldpos)*euler(-1.57,0,0),100,100,100,10,10,10,.1)
- oldpos=prt45.Position
- end
- else
- if shockwave==false then
- shockwave=true
- so("157878578",ref2a,1,0.4)
- so("2101148",ref2a,1,0.6)
- hitfl2,posfl2=rayCast(prt45.Position,(CFrame.new(prt45.Position,prt45.Position - Vector3.new(0,1,0))).lookVector,50,Character)
- refaa=part(3,effects,0,1,BrickColor.new("Really black"),"Reference",vt())
- refaa.Anchored=true
- refaa.CFrame=cf(posfl2)
- game:GetService("Debris"):AddItem(refaa,1)
- MagicRing(BrickColor.new("Really black"),cf(posfl2)*euler(1.57,0,0),160,160,1,20,20,1,.1)
- ref2a.CFrame=cf(posfl2)
- end
- end
- if Stun.Value>=StunT.Value then
- break
- end
- end
- --print(incda)
- meleecooldown=0
- mcdadd=.08
- if CurrentHealth<=1500 then
- mcdadd=1
- end
- end
- attack=false
- end
- function SkyBeamOfDeath()
- wait()
- spark = Instance.new("Part",Character)
- spark.Size = Vector3.new(2,2,2)
- spark.BrickColor = BrickColor.new("Really black")
- spark.Material = "Neon"
- spark.TopSurface = 0
- sparkw = Instance.new("Weld",spark)
- sparkw.Part0 = spark
- sparkw.Part1 = Head
- sparkw.C0 = CFrame.new(0,0,905)
- spark.BottomSurface = 0
- sparkm = Instance.new("SpecialMesh",spark)
- sparkm.MeshType = "Sphere"
- for i = 2,20,0.5 do wait()
- sparkm.Scale = Vector3.new(i,i,i)
- spark.Transparency = i/10
- end
- wait(2)
- m = Player:GetMouse()
- local rng = Instance.new("Part", Character)
- rng.Anchored = true
- rng.BrickColor = BrickColor.new("Really black")
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(1.5,1.5,1.1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.Material = "Neon"
- rng.CFrame = Character.Torso.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.new(0,0,-100)
- rng.CFrame = CFrame.new(rng.Position, Vector3.new(m.Hit.p.x,m.Hit.p.y,m.Hit.p.z))* CFrame.Angles(math.rad(90),0,0)
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- for i = 1,40,0.5 do wait()
- rngm.Scale = Vector3.new(80,0.5,i)
- end
- endpoint = Instance.new("Part",Character)
- endpoint.Transparency = 1
- wait(0.5)
- s1 = Instance.new("Sound",Character)
- s1.SoundId = "rbxassetid://130792236"
- s1:Play()
- s1.Pitch = 0.8
- s1.Volume = 60
- wait(0.4)
- s = Instance.new("Sound",Character)
- s.SoundId ="rbxassetid://254847708"
- -- "rbxassetid://228343271"
- s.Volume = 1
- s.Pitch = 1
- s:Play()
- for i = 1,85 do wait()
- local ray=Ray.new(rng.CFrame.p,(rng.CFrame.p-(rng.CFrame
- *CFrame.new(0,20,0).p)).unit*900)
- local part, position = workspace:FindPartOnRay(ray, Player.Character, false, true)
- local beam = Instance.new("Part", workspace)
- beam.BrickColor = BrickColor.new("Really black")
- beam.FormFactor = "Custom"
- beam.Material = "Neon"
- beam.Transparency = 0
- beam.Anchored = true
- beam.Locked = true
- beam.CanCollide = false
- local distance = (rng.CFrame.p - position).magnitude
- beam.Size = Vector3.new(60,27, distance)
- beam.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
- endpoint.Position = position
- game:GetService("Debris"):AddItem(beam, 0.5)
- local rng2= Instance.new("Part", Character)
- rng2.Anchored= true
- rng2.BrickColor = BrickColor.new("Really black")
- rng2.CanCollide = false
- rng2.FormFactor = 3
- rng2.Name = "Ring"
- rng2.Size = Vector3.new(1, 1, 1)
- rng2.Transparency = 0
- rng2.TopSurface = 0
- rng2.BottomSurface = 0
- rng2.CFrame = rng.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))* CFrame.new(0,-3,0)
- local rngm2 = Instance.new("SpecialMesh", rng2)
- rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976"
- rngm2.Scale = Vector3.new(1, 1.3, 2)
- local rng3 = Instance.new("Part", Character)
- rng3.Anchored = true
- rng3.BrickColor = BrickColor.new("Really black")
- rng3.CanCollide = false
- rng3.FormFactor = 3
- rng3.Name = "Ring"
- rng3.Size = Vector3.new(1, 1, 1)
- rng3.Transparency = 0
- rng3.TopSurface = 0
- rng3.BottomSurface = 0
- rng3.Material = "Neon"
- rng3.Position = endpoint.Position
- rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local rngm3 = Instance.new("SpecialMesh", rng3)
- rngm3.MeshType = "Sphere"
- rngm3.Scale = Vector3.new(1, 1.3, 2)
- local rng4 = Instance.new("Part", Character)
- rng4.Anchored = true
- rng4.BrickColor = BrickColor.new("Really red")
- rng4.CanCollide = false
- rng4.FormFactor = 3
- rng4.Name = "Ring"
- rng4.Size = Vector3.new(1, 1, 1)
- rng4.Transparency = 0
- rng4.TopSurface = 0
- rng4.BottomSurface = 0
- rng4.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))* CFrame.new(0,-3,0)
- local rngm4 = Instance.new("SpecialMesh", rng4)
- rngm4.MeshId = "http://www.roblox.com/asset/?id=3270017"
- rngm4.Scale = Vector3.new(1, 1.3, 2)
- local rng5 = Instance.new("Part", Character)
- rng5.Anchored = true
- rng5.BrickColor = BrickColor.new("Really black")
- rng5.CanCollide = false
- rng5.FormFactor = 3
- rng5.Name = "Ring"
- rng5.Size = Vector3.new(1, 1, 1)
- rng5.Transparency = 0
- rng5.TopSurface = 0
- rng5.BottomSurface = 0
- rng5.CFrame = rng3.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))* CFrame.new(0,-15,0)
- local rngm5 = Instance.new("SpecialMesh", rng5)
- rngm5.MeshId = "http://www.roblox.com/asset/?id=3270017"
- rngm5.Scale = Vector3.new(1, 1.3, 2)
- wait(0.1)
- coroutine.wrap(function()
- for i = 1, 70, 3 do
- rngm2.Scale = Vector3.new(30+i*2,30+i,30+i*2)
- rng2.Transparency = i/50
- rngm4.Scale = Vector3.new(100+i*2,100+i,1*2)
- rng4.Transparency = i/50
- rngm5.Scale = Vector3.new(10+i*10,10+i*10,1*2)
- rng5.Transparency = i/50
- rngm3.Scale = Vector3.new(90+i,90+i,90+i)
- rng3.Transparency = i/50
- wait()
- end
- wait()
- rng5:Remove()
- rng2:Remove()
- rng4:Remove()
- rng3:Remove()
- wait()
- end)()
- local function CreateRegion3FromLocAndSize(Position, Size) local SizeOffset = Size/2 local Point1 = Position - SizeOffset local Point2 = Position + SizeOffset return Region3.new(Point1, Point2) end
- local reg = CreateRegion3FromLocAndSize(endpoint.Position, endpoint.Size* 40)
- for i, v in pairs(game:service'Workspace':FindPartsInRegion3WithIgnoreList(reg, Character:GetChildren(), 100)) do print(v) Spawn(function() ypcall(function() local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid") humanoid:TakeDamage(math.random(5000,6000)) humanoid.PlatformStand = true wait(0.1) humanoid:Destroy() end) end) end
- end
- for i = 40,0,-0.5 do wait()
- rngm.Scale = Vector3.new(49,0.5,i)
- end
- rng:Remove()
- end
- LightOnBody = Instance.new("PointLight", Cryst1)
- LightOnBody.Brightness = 10
- LightOnBody.Range = 1000
- LightOnBody.Color = Color3.new(0, 0, 0)
- local base = game.Workspace.Base
- base.BrickColor = BrickColor.new("Medium grey")
- base.Material = "Granite"
- function FindNearestTorso(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Torso")then
- if v ~= Character then
- if(v.Torso.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- function Roar()
- attack=true
- for i=0,1,0.01 do
- swait()
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.5,0,0),.03)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-210,0)*euler(.05,0,0),.03)
- --[[wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.1)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),.1)
- wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.1)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
- wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.1)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),.1)
- wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.1)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.1)]]
- wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.03)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8)*euler(.2,0,0),.03)
- wld24.C0=wld24.C0:lerp(euler(1.8,-.2,0)*cf(0,90.25,0),.03)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.03)
- wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.03)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8)*euler(.2,0,0),.03)
- wld38.C0=wld38.C0:lerp(euler(-1.8,-.2,0)*cf(0,-90.25,0),.03)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.03)
- end
- for i=0,1,0.04 do
- swait()
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.05)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(-.05,0,0),.05)
- wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8)*euler(.2,0,0)*euler(0,-.2,0),.05)
- wld24.C0=wld24.C0:lerp(euler(1.4,-.2,0)*cf(0,90.25,0),.05)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
- wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8)*euler(.2,0,0)*euler(0,.2,0),.05)
- wld38.C0=wld38.C0:lerp(euler(-1.4,-.2,0)*cf(0,-90.25,0),.05)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
- end
- sa2.Volume = 2
- so("850152775",Character,90,1)
- for i,v in pairs(FindNearestTorso(Torso.CFrame.p,5000))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(10000020,10000030))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = Head.CFrame.lookVector * 200
- end
- end
- local HandCF = CFrame.new(RootPart.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- local valuer = 30
- local valuer2 = 50
- local valuer3 = 75
- local wave = Instance.new("Part", Torso)
- wave.BrickColor = BrickColor.new("Really red")
- wave.Anchored = true
- wave.CanCollide = false
- wave.Locked = true
- wave.Size = Vector3.new(1, 1, 1)
- wave.TopSurface = "Smooth"
- wave.BottomSurface = "Smooth"
- wave.Transparency = 0.35
- wave.CFrame = HandCF
- wm = Instance.new("SpecialMesh", wave)
- wm.MeshId = "rbxassetid://3270017"
- local wave2 = Instance.new("Part", Torso)
- wave2.BrickColor = BrickColor.new("Really black")
- wave2.Anchored = true
- wave2.CanCollide = false
- wave2.Locked = true
- wave2.Size = Vector3.new(1, 1, 1)
- wave2.TopSurface = "Smooth"
- wave2.BottomSurface = "Smooth"
- wave2.Transparency = 0.35
- wave2.CFrame = HandCF
- wm2 = Instance.new("SpecialMesh", wave2)
- wm2.MeshId = "rbxassetid://3270017"
- local wave3 = Instance.new("Part", Torso)
- wave3.BrickColor = BrickColor.new("Really red")
- wave3.Anchored = true
- wave3.CanCollide = false
- wave3.Locked = true
- wave3.Size = Vector3.new(1, 1, 1)
- wave3.TopSurface = "Smooth"
- wave3.BottomSurface = "Smooth"
- wave3.Transparency = 0.35
- wave3.CFrame = HandCF
- wm3 = Instance.new("SpecialMesh", wave3)
- wm3.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 14, 1 do
- valuer = valuer - 0.35
- valuer2 = valuer - 0.45
- valuer3 = valuer3 - 0.475
- wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200)
- wave.Size = wm.Scale
- wave.CFrame = HandCF
- wave.Transparency = i/14
- wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10)
- wave2.Size = wm2.Scale
- wave2.CFrame = HandCF
- wave2.Transparency = i/14
- wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1)
- wave3.Size = wm2.Scale
- wave3.CFrame = HandCF
- wave3.Transparency = i/14
- wait()
- end
- wait()
- wave:Destroy()
- wave2:Destroy()
- end)()
- attack = false
- wait(4)
- sa2.Volume = 20
- end
- function StunAnim()
- attack=true
- for i=0,1,0.06 do
- swait()
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.7,0,0),.06)
- RootJoint.C0=RootJoint.C0:lerp(euler(-.2,0,0)*cf(-1.749,-180,0),.06)
- wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.06)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,.6)*euler(0,-.2,0)*euler(-.5,0,0),.06)
- wld24.C0=wld24.C0:lerp(euler(1,.1,0)*cf(0,90.25,0),.06)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.06)
- wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.06)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,-.6)*euler(0,.2,0)*euler(-.5,0,0),.06)
- wld38.C0=wld38.C0:lerp(euler(-1,.1,0)*cf(0,-90.25,0),.06)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.06)
- if Humanoid.Health<=0 then
- break
- end
- end
- for i=0,1,0.04 do
- swait()
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.2,0,0)*euler(0,0,.2),.07)
- RootJoint.C0=RootJoint.C0:lerp(euler(-.5,.2,0)*cf(-1.749,-140,0),.07)
- wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.07)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,.8)*euler(0,.2,0)*euler(-.4,0,0),.07)
- wld24.C0=wld24.C0:lerp(euler(1.2,.3,0)*cf(0,90.25,0),.07)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.07)
- wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.07)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.6)*euler(0,.2,0)*euler(.7,0,0),.07)
- wld38.C0=wld38.C0:lerp(euler(-1.4,.1,0)*cf(0,-90.25,0),.07)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.07)
- if Humanoid.Health<=0 then
- break
- end
- end
- for i=0,1,0.01 do
- swait()
- msh3.Scale=vt(4,8.5-8*i,8.5)
- msh5.Scale=vt(4,8.5-8*i,8.5)
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0)*euler(0,1.5,0),.02)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-100,0)*euler(-1.3,0,0),.05)
- wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,1)*euler(0,.2,0)*euler(-.1,0,0),.05)
- wld24.C0=wld24.C0:lerp(euler(.5,2.2,0)*cf(0,90.25,0),.05)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
- wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.6)*euler(0,-.6,0)*euler(1.6,0,0),.05)
- wld38.C0=wld38.C0:lerp(euler(-1.6,.1,0)*cf(0,-90.25,0),.05)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
- if Humanoid.Health<=0 then
- break
- end
- end
- msh3.Scale=vt(4,.5,8.5)
- msh5.Scale=vt(4,.5,8.5)
- --swait(100)
- local numb=1300
- if CurrentHealth<=1500 then
- numb=1000
- end
- local removedeb=8
- for i=0,numb do
- swait()
- removedeb=removedeb+1
- if removedeb>8 then
- removedeb=0
- for _,c in pairs(Character:children()) do
- if c.Name=="DebounceHit" then c.Parent=nil end
- end
- end
- if Humanoid.Health<=0 then
- break
- end
- end
- for i=0,1,0.1 do
- swait()
- msh3.Scale=vt(4,.5+8*i,8.5)
- msh5.Scale=vt(4,.5+8*i,8.5)
- end
- msh3.Scale=vt(4,8.5,8.5)
- msh5.Scale=vt(4,8.5,8.5)
- for i=0,1,0.02 do
- swait()
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-100,0)*euler(-1.3,0,0),.05)
- wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,.1)*euler(0,.4,0)*euler(1,0,0),.05)
- wld24.C0=wld24.C0:lerp(euler(1.6,.1,0)*cf(0,90.25,0),.05)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
- wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,-.1)*euler(0,-.4,0)*euler(1,0,0),.05)
- wld38.C0=wld38.C0:lerp(euler(-1.6,.1,0)*cf(0,-90.25,0),.05)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
- if Humanoid.Health<=0 then
- break
- end
- end
- for i=0,1,0.03 do
- swait()
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-180,0)*euler(-.6,0,0),.06)
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.06)
- wld19.C0=wld19.C0:lerp(euler(.2,.3,0)*cf(94,-47.5,-2.248),.06)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,-.4)*euler(0,-.2,0)*euler(-.3,0,0),.06)
- wld24.C0=wld24.C0:lerp(euler(1.2,.1,0)*cf(0,90.25,0),.06)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.06)
- wld33.C0=wld33.C0:lerp(euler(.2,-.3,0)*cf(-94,-47.5,-2.248),.06)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.4)*euler(0,.2,0)*euler(-.3,0,0),.06)
- wld38.C0=wld38.C0:lerp(euler(-1.2,.1,0)*cf(0,-90.25,0),.06)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.06)
- if Humanoid.Health<=0 then
- break
- end
- end
- for i=0,1,0.008 do
- swait()
- if i<.4 then
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(-.1,0,0),.06)
- else
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.06)
- end
- RootJoint.C0=RootJoint.C0:lerp(cf(5,-210,0)*euler(.1,0,0),.06)
- wld19.C0=wld19.C0:lerp(euler(.2,.3,0)*cf(94,-47.5,-2.248),.06)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,-.8)*euler(0,-.6,0)*euler(-.5,0,0),.06)
- wld24.C0=wld24.C0:lerp(euler(.6,.3,0)*cf(0,90.25,0),.06)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.06)
- wld33.C0=wld33.C0:lerp(euler(.2,-.3,0)*cf(-94,-47.5,-2.248),.06)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.8)*euler(0,.6,0)*euler(-.5,0,0),.06)
- wld38.C0=wld38.C0:lerp(euler(-.6,.3,0)*cf(0,-90.25,0),.06)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.06)
- if Humanoid.Health<=0 then
- break
- end
- end
- attack=false
- end
- function SummonCrystals()
- attack=true
- for i=0,1,0.01 do
- swait()
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.5,0,0),.03)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-210,0)*euler(.05,0,0),.03)
- --[[wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.1)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),.1)
- wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.1)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
- wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.1)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),.1)
- wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.1)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.1)]]
- wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.03)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8)*euler(.2,0,0),.03)
- wld24.C0=wld24.C0:lerp(euler(1.8,-.2,0)*cf(0,90.25,0),.03)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.03)
- wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.03)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8)*euler(.2,0,0),.03)
- wld38.C0=wld38.C0:lerp(euler(-1.8,-.2,0)*cf(0,-90.25,0),.03)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.03)
- end
- for i=0,1,0.04 do
- swait()
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.05)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(-.05,0,0),.05)
- wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8)*euler(.2,0,0)*euler(0,-.2,0),.05)
- wld24.C0=wld24.C0:lerp(euler(1.4,-.2,0)*cf(0,90.25,0),.05)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
- wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8)*euler(.2,0,0)*euler(0,.2,0),.05)
- wld38.C0=wld38.C0:lerp(euler(-1.4,-.2,0)*cf(0,-90.25,0),.05)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
- end
- Cryst1.Parent=workspace
- C1Head.CFrame=RootPart.CFrame*cf(math.random(-2000,20000)/100,0,math.random(-20000,2000)/100)
- C1Torso.CFrame=C1Head.CFrame
- C1Neck.Parent=C1Head
- C1S.Parent=Cryst1
- C1Hum.Parent=Cryst1
- C1Hum.MaxHealth=800
- C1Hum.Health=800
- C1Hum.Parent=Cryst1
- C1Hum:TakeDamage(1)
- C1a=true
- for _,c in pairs(Cryst1:children()) do
- if c.Name=="DebounceHit" then c.Parent=nil end
- end
- Cryst2.Parent=workspace
- C2Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
- C2Torso.CFrame=C2Head.CFrame
- C2Neck.Parent=C2Head
- C2S.Parent=Cryst2
- C2Hum.Parent=Cryst2
- C2Hum.MaxHealth=500
- C2Hum.Health=500
- C2Hum.Parent=Cryst2
- C2Hum:TakeDamage(1)
- C2a=true
- for _,c in pairs(Cryst2:children()) do
- if c.Name=="DebounceHit" then c.Parent=nil end
- end
- Cryst3.Parent=workspace
- C3Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
- C3Torso.CFrame=C3Head.CFrame
- C3Neck.Parent=C3Head
- C3S.Parent=Cryst3
- C3Hum.Parent=Cryst3
- C3Hum.MaxHealth=500
- C3Hum.Health=500
- C3Hum.Parent=Cryst3
- C3Hum:TakeDamage(1)
- C3a=true
- for _,c in pairs(Cryst3:children()) do
- if c.Name=="DebounceHit" then c.Parent=nil end
- end
- Cryst4.Parent=workspace
- C4Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
- C4Torso.CFrame=C4Head.CFrame
- C4Neck.Parent=C4Head
- C4S.Parent=Cryst4
- C4Hum.Parent=Cryst4
- C4Hum.MaxHealth=500
- C4Hum.Health=500
- C4Hum.Parent=Cryst4
- C4Hum:TakeDamage(1)
- C4a=true
- for _,c in pairs(Cryst4:children()) do
- if c.Name=="DebounceHit" then c.Parent=nil end
- end
- MagicCircle(BrickColor.new("Really red"),cf(C1Head.Position),150,400,150,5,10,5,.05)
- MagicCircle(BrickColor.new("Really red"),cf(C2Head.Position),150,400,150,5,10,5,.05)
- MagicCircle(BrickColor.new("Really red"),cf(C3Head.Position),150,400,150,5,10,5,.05)
- MagicCircle(BrickColor.new("Really red"),cf(C4Head.Position),150,400,150,5,10,5,.05)
- crystals=true
- if CurrentHealth>1500 then
- else
- end
- swait(50)
- attack=false
- end
- function HeavySlam()
- attack=true
- for i=0,1,0.05 do
- swait()
- wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,3,0),.1)
- wld2.C0=clerp(wld2.C0,euler(0,0,0)*cf(0,1,0),.1)
- Neck.C0=clerp(Neck.C0,necko*euler(0,1,0)*euler(-.3,0,0),.1)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,-2,0)*euler(0,1,0),.1)
- RW.C0=clerp(RW.C0,cf(4.5,1.5,0)*euler(2,0,.3),.1)
- RW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
- LW.C0=clerp(LW.C0,cf(-4.5,1.5,0)*euler(-.2,0,-.6),.1)
- LW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
- LH.C0=clerp(LH.C0,cf(-1.5,-3,0)*euler(0,1,0)*euler(.1,0,0),.1)
- RH.C0=clerp(RH.C0,cf(1.5,-3,0)*euler(0,-1,0)*euler(.1,0,0),.1)
- end
- for i=0,1,0.04 do
- swait()
- wld1.C0=clerp(wld1.C0,euler(1,0,0)*cf(0,3,0),.1)
- wld2.C0=clerp(wld2.C0,euler(0,0,0)*cf(0,1,0),.1)
- Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(-.4,0,0),.1)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,-2,0)*euler(0,-.2,0),.1)
- RW.C0=clerp(RW.C0,cf(4.5,1.5,0)*euler(3.5,0,0)*euler(0,.2,0),.1)
- RW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
- LW.C0=clerp(LW.C0,cf(-4.5,1.5,0)*euler(-.4,0,-.6),.1)
- LW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
- LH.C0=clerp(LH.C0,cf(-1.5,-3,0)*euler(0,0,0)*euler(-.3,0,0),.1)
- RH.C0=clerp(RH.C0,cf(1.5,-3,-1)*euler(0,0,0)*euler(-.1,0,0),.1)
- end
- so("161006212",prt9,1,.6)
- con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(50,70),"Knockdown2",RootPart,2,1,math.random(20,40),nil,true) end)
- hitbox.Parent=modelzorz
- hitbox.Size=vt(2,20,8)
- hitboxCF=prt9.CFrame*cf(0,0,0)
- hitbox.CFrame=hitboxCF
- blcf=nil
- scfr=nil
- for i=0,1,0.02 do
- swait()
- --[[local blcf = prt9.CFrame*cf(0,0,0)
- if scfr and (prt9.Position-scfr.p).magnitude > .1 then
- local h = 14
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end]]
- hitboxCF=prt9.CFrame*cf(0,0,0)
- hitbox.CFrame=hitboxCF
- wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*cf(0,3,0),.4)
- wld2.C0=clerp(wld2.C0,euler(0,0,0)*cf(0,1,0),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.6,0,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,0,0)*euler(0,0,0),.2)
- RW.C0=clerp(RW.C0,cf(2.5,1.5,-1)*euler(.5,0,-.2)*euler(0,0,0),.4)
- RW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.2)
- LW.C0=clerp(LW.C0,cf(-4.5,1.5,0)*euler(-.8,0,-.6),.2)
- LW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.2)
- LH.C0=clerp(LH.C0,cf(-1.5,-3,0)*euler(0,0,0)*euler(-1,0,0),.2)
- RH.C0=clerp(RH.C0,cf(1.5,-1,-1.5)*euler(0,0,0)*euler(-.1,0,0),.2)
- if i>=.16 and i<=.17 then
- hit,pos=rayCast(prt9.Position,(CFrame.new(prt9.Position,prt9.Position - Vector3.new(0,1,0))).lookVector,10,Character)
- if hit~=nil then
- ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=cf(pos)
- so("199145477",prt9,1,.8)
- game:GetService("Debris"):AddItem(ref,1)
- --MagniDamage(ref,30,1,5,math.random(50,70),"Knockdown2",false,"Movement",.2,400,math.random(90,100))
- MagniDamage(ref,30,1,5,math.random(200,400),"Knockdown2",false,"Movement",.2,200,math.random(90,100))
- MagicWave(BrickColor.new("Really red"),cf(ref.Position),1,1,1,2,2,2,.05)
- end
- end
- end
- con1:disconnect()
- hitbox.Parent=nil
- attack=false
- end
- local magref=part(3,effects,0,.5,BrickColor.new("Black"),"Effect",vt())
- magref.Anchored=true
- magref.CFrame=cf(0,0,0)
- magref.Parent=nil
- local mrmsh=mesh("SpecialMesh",magref,"Sphere","nil",vt(0,0,0),vt(1,1,1))
- function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
- --magref.CFrame=cf(Part.Position)
- --mrmsh.Scale=vt(magni*10,magni*10,magni*10)
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=nil
- for _,d in pairs(c:children()) do
- --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
- if d.className=="Part" then
- head=d
- if head~=nil then
- local targ=head.Position-Part.Position
- local mag=targ.magnitude
- if mag<=magni and c.Name~=Character.Name and c.Name~="Crystal" then
- if stun==nil then
- stun=math.random(5,10)
- end
- local Rang=nil
- if Ranged==false then
- Rang=true
- end
- local stag=nil
- if shbash==true then
- stag=true
- end
- Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
- --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
- end
- end
- end
- end
- end
- end
- end
- function DecreaseStat(Model,Stat,Amount,Duration)
- if Model:findFirstChild("Stats")~=nil then
- if Model.Stats[Stat]~=nil then
- Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
- d=Instance.new("NumberValue",Model.Stats.Decrease)
- dur=Instance.new("NumberValue",d)
- dur.Name="Duration"
- dur.Value=Duration
- game:GetService("Debris"):AddItem(d,40)
- if Stat=="Damage" then
- d.Name="DecreaseAtk"
- elseif Stat=="Defense" then
- d.Name="DecreaseDef"
- elseif Stat=="Movement" then
- d.Name="DecreaseMvmt"
- end
- if Model:findFirstChild("Torso")~=nil then
- display=""
- if Stat=="Damage" then
- if Amount>0 then
- display="-Damage"
- else
- display="+Damage"
- end
- elseif Stat=="Defense" then
- if Amount>0 then
- display="-Defense"
- else
- display="+Defense"
- end
- elseif Stat=="Movement" then
- if Amount>0 then
- display="-Movement"
- else
- display="+Movement"
- end
- end
- showDamage(Model,display,"Debuff")
- end
- d.Value=Amount
- table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
- end
- end
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 10000
- 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.Name) and (temp2.Name~="Crystal") then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- local dohit=true
- if temp2:findFirstChild("Stats")~=nil then if temp2.Stats:findFirstChild("Boss")~=nil then if temp2.Stats.Boss.Value==true then dohit=false end end end
- if temp2:findFirstChild("Alive")==nil then dohit=false end
- if dohit==true then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- end
- return torso,dist
- end
- function findRandomTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 10000
- local temp = nil
- local human = nil
- local temp2 = nil
- local list2 = {}
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2.Name~=Character.Name) and (temp2.Name~="Crystal") then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if pos.magnitude < dist then
- local dohit=true
- if temp2:findFirstChild("Stats")~=nil then if temp2.Stats:findFirstChild("Boss")~=nil then if temp2.Stats.Boss.Value==true then dohit=false end end end
- if temp2:findFirstChild("Alive")==nil then dohit=false end
- if dohit==true then
- torso = temp
- table.insert(list2,temp)
- end
- end
- end
- end
- end
- if #list2>0 then
- rand=math.random(1,#list2)
- return list2[rand],dist
- else
- return nil,dist
- end
- end
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- --[[for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end]]
- --[[if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end]]
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent.Name~="Crystal" and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- if Sound=="GreatHit" then
- so("200632875",hit,1,1)
- end
- game:GetService("Debris"):AddItem(c,.5)
- minim=minim*Atk.Value
- maxim=maxim*Atk.Value
- Damage=0
- if minim==maxim or minim>maxim then
- Damage=maxim
- else
- Damage=math.random(minim,maxim)
- end
- blocked=false
- enblock=nil
- Stats=hit.Parent:findFirstChild("Stats")
- if Stats~=nil then
- enblock=Stats:findFirstChild("Block")
- if enblock~=nil then
- if enblock.Value==true then
- blocked=true
- end
- end
- if Stats:findFirstChild("Defense")~=nil then
- Damage=Damage/(Stats.Defense.Value)
- if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
- hitnum=math.random(1,5)
- if hitnum==1 then so("199149321",hit,1,.7)
- elseif hitnum==2 then so("199149338",hit,1,.7)
- elseif hitnum==3 then so("199149367",hit,1,.7)
- elseif hitnum==4 then so("199149409",hit,1,.7)
- elseif hitnum==5 then so("199149452",hit,1,.7)
- end
- elseif ranged==false or ranged==nil and blocked~=true then
- hitnum=math.random(1,6)
- if hitnum==1 then so("199149137",hit,1,.7)
- elseif hitnum==2 then so("199149186",hit,1,.7)
- elseif hitnum==3 then so("199149221",hit,1,.7)
- elseif hitnum==4 then so("199149235",hit,1,.7)
- elseif hitnum==5 then so("199149269",hit,1,.7)
- elseif hitnum==6 then so("199149297",hit,1,.7)
- end
- end
- end
- if Stats:findFirstChild("Stun")~=nil then
- if blocked==true then
- incstun=math.floor(incstun/2)
- end
- Stats.Stun.Value=Stats.Stun.Value+incstun
- end
- if Stats:findFirstChild("Stagger")~=nil then
- if stagger==true then
- Stats.Stagger.Value=true
- end
- end
- end
- if blocked==true then
- showDamage(hit.Parent,"Block","Damage")
- hitnum=math.random(1,2)
- if hitnum==1 then so("199148933",hit,1,1)
- elseif hitnum==2 then so("199148947",hit,1,1)
- end
- enblock.Value=false
- else
- Damage=math.floor(Damage)
- h:TakeDamage(Damage)
- --[[coroutine.resume(coroutine.create(function(Hum,Dam)
- damageFunc:InvokeServer(nil,h,Damage)
- --print(Dam)
- end),h,Damage)]]
- showDamage(hit.Parent,Damage,"Damage")
- if DecreaseState~=nil then
- if DecreaseState=="Shatter" then
- DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
- DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
- else
- DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
- end
- end
- if Type=="Knockdown" then
- hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=cf(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=="Shatter" then
- for i=1,10 do
- BreakEffect(BrickColor.new("Really red"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
- end
- elseif Type=="Knockdown2" then
- hum=hit.Parent.Humanoid
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- 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
- game:GetService("Debris"):AddItem(bodvol,.5)
- elseif Type=="Normal" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- game:GetService("Debris"):AddItem(vp,.5)
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- CRIT=false
- end
- end
- showDamage=function(Char,Dealt,Type)
- m=Instance.new("Model")
- m.Name="Effect"
- c=Instance.new("Part")
- c.Transparency=1
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- c.formFactor="Plate"
- c.Size=Vector3.new(1,.4,1)
- b=Instance.new("BillboardGui",c)
- b.Size=UDim2.new(5,0,5,0)
- b.AlwaysOnTop=true
- damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
- if Type=="Damage" then
- damgui.Font="SourceSans"
- if Dealt=="Block" then
- damgui.TextColor3=BrickColor.new("Really red").Color
- elseif Dealt<3 then
- damgui.TextColor3=BrickColor.new("Really red").Color
- elseif Dealt>=3 and Dealt<20 then
- damgui.TextColor3=BrickColor.new("Really red").Color
- else
- damgui.TextColor3=BrickColor.new("Really red").Color
- damgui.Font="SourceSansBold"
- end
- elseif Type=="Debuff" then
- damgui.TextColor3=BrickColor.new("White").Color
- elseif Type=="Interrupt" then
- damgui.TextColor3=BrickColor.new("Really red").Color
- end
- --damgui.FontSize="Size48"
- damgui.TextScaled=true
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- if Char:findFirstChild("Head")~=nil then
- c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
- elseif Char.Parent:findFirstChild("Head")~=nil then
- c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
- end
- f=Instance.new("BodyPosition")
- f.P=2000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- if Type=="Damage" then
- f.position=c.Position+Vector3.new(0,3,0)
- elseif Type=="Debuff" or Type=="Interrupt" then
- f.position=c.Position+Vector3.new(0,5,0)
- end
- f.Parent=c
- game:GetService("Debris"):AddItem(m,5)
- table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
- c.CanCollide=false
- m.Parent=effects
- c.CanCollide=false
- end
- Mouse = Player:GetMouse()
- Mouse.KeyDown:connect(function(kek)
- kek = kek:lower()
- if kek == "z" then
- TurnSlam()
- end
- if kek == "x" then
- GrandPunch()
- end
- if kek == "c" then
- FrostSlam()
- end
- if kek == "v" then
- TriIceShards()
- end
- if kek == "q" then
- TriOrbs()
- end
- if kek == "e" then
- IceMortar()
- end
- if kek == "r" then
- TriIceShards2()
- end
- if kek == "f" then
- TriOrbs2()
- end
- if kek == "t" then
- SummonCrystals()
- end
- if kek == "y" then
- StunAnim()
- end
- if kek == "l" then
- SkyBeamOfDeath()
- end
- if kek == "p" then
- Roar()
- end
- end)
- local stunnum=0
- local animnum=0
- local idle=1
- local animlimit=120
- local attacking=false
- while Humanoid.Health>0 do
- swait()
- for _,c in pairs(C1S:children()) do
- if c.Name=="Defense" then c.Value=1 end
- if c.Name=="Decrease" then
- for _,d in pairs(c:children()) do
- d.Parent=nil
- end
- end
- end
- for _,c in pairs(C2S:children()) do
- if c.Name=="Defense" then c.Value=1 end
- if c.Name=="Decrease" then
- for _,d in pairs(c:children()) do
- d.Parent=nil
- end
- end
- end
- for _,c in pairs(C3S:children()) do
- if c.Name=="Defense" then c.Value=1 end
- if c.Name=="Decrease" then
- for _,d in pairs(c:children()) do
- d.Parent=nil
- end
- end
- end
- for _,c in pairs(C4S:children()) do
- if c.Name=="Defense" then c.Value=1 end
- if c.Name=="Decrease" then
- for _,d in pairs(c:children()) do
- d.Parent=nil
- end
- end
- end
- if stunanim==false then
- Humanoid.Health=CurrentHealth
- else
- CurrentHealth=Humanoid.Health
- end
- for i=1,#refs2 do
- refs2[i][1].CFrame=refs2[i][2].CFrame*refs2[i][3]
- end
- if meleecooldown<100 then
- meleecooldown=meleecooldown+mcdadd
- end
- hitbox2.Parent=hitbox.Parent
- hitbox2.Size=hitbox.Size
- hitbox2.CFrame=hitboxCF
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- local test1,dist1=findNearestTorso(Head.Position)
- if dist1<200 then
- if math.random(1,50)==1 and stunanim==false then --close projectile attack
- coroutine.resume(coroutine.create(function()
- atktype=math.random(1,4)
- if atktype==1 then
- TriIceShards2()
- elseif atktype==2 then
- TriIceShards2()
- elseif atktype==3 then
- TriIceShards2()
- elseif atktype==4 then
- TriOrbs2()
- end
- end))
- end
- end
- local rand=math.random(1,30)
- if CurrentHealth<1500 then
- rand=math.random(1,20)
- end
- if rand==1 and stunanim==false then --projectile attack
- coroutine.resume(coroutine.create(function()
- atktype=math.random(1,4)
- if atktype==1 then
- TriIceShards()
- elseif atktype==2 then
- TriIceShards()
- elseif atktype==3 then
- TriOrbs()
- elseif atktype==4 then
- IceMortar()
- end
- end))
- end
- if math.random(1,50)==1 and attack==false and meleecooldown>=100 and stunanim==false then --melee attack
- coroutine.resume(coroutine.create(function()
- atktype=math.random(1,3)
- if atktype==1 then
- TurnSlam()
- elseif atktype==2 then
- GrandPunch()
- elseif atktype==3 then
- FrostSlam()
- end
- end))
- end
- end
- if C1a==true then
- if C1Hum.Health<=0 then
- C1a=false
- summoncrystals=0
- Stun.Value=Stun.Value+160
- MagicCrystal(BrickColor.new("Really red"),cf(C1Head.Position),10,20,10,3,3,3,.1)
- Cryst1.Parent=nil
- end
- end
- if C2a==true then
- if C2Hum.Health<=0 then
- C2a=false
- summoncrystals=0
- Stun.Value=Stun.Value+160
- MagicCrystal(BrickColor.new("Really red"),cf(C2Head.Position),10,20,10,3,3,3,.1)
- Cryst2.Parent=nil
- end
- end
- if C3a==true then
- if C3Hum.Health<=0 then
- C3a=false
- summoncrystals=0
- Stun.Value=Stun.Value+160
- MagicCrystal(BrickColor.new("Really red"),cf(C3Head.Position),10,20,10,3,3,3,.1)
- Cryst3.Parent=nil
- end
- end
- if C4a==true then
- if C4Hum.Health<=0 then
- C4a=false
- summoncrystals=0
- Stun.Value=Stun.Value+160
- MagicCrystal(BrickColor.new("Really red"),cf(C4Head.Position),10,20,10,3,3,3,.1)
- Cryst4.Parent=nil
- end
- end
- if C1a==false and C2a==false and C3a==false and C4a==false then
- if CurrentHealth>1500 then
- else
- end
- crystals=false
- end
- if CurrentHealth<=1500 then
- end
- summoncrystals=summoncrystals+.1
- if summoncrystals>100 and crystals==false and attack==false then
- coroutine.resume(coroutine.create(function()
- while attack==true do
- swait()
- end
- SummonCrystals()
- end))
- end
- Humanoid.WalkSpeed=0
- if Stun.Value>=StunT.Value and stunanim==false and attack==false then
- coroutine.resume(coroutine.create(function()
- stunanim=true
- while attack==true do
- swait()
- Stun.Value=StunT.Value
- end
- summoncrystals=0
- StunAnim()
- Stun.Value=0
- stunanim=false
- end))
- end
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
- for _,c in pairs(Decrease:children()) do
- c.Parent=nil
- if c:findFirstChild("Duration")~=nil then
- c.Duration.Value=c.Duration.Value-9999
- if c.Duration.Value<=0 then
- c.Parent=nil
- end
- end
- if c.Name=="DecreaseAtk" then
- decreaseatk=decreaseatk+c.Value
- elseif c.Name=="DecreaseDef" then
- decreasedef=decreasedef+c.Value
- elseif c.Name=="DecreaseMvmt" then
- decreasemvmt=decreasemvmt+c.Value
- end
- end
- Atk.Value=2-decreaseatk
- if Atk.Value<=0 then
- Atk.Value=0
- end
- Def.Value=2-decreasedef
- if Def.Value<=0 then
- Def.Value=0.01
- end
- Mvmt.Value=0-decreasemvmt
- if Mvmt.Value<=0 then
- Mvmt.Value=0
- end
- decreaseatk=0
- decreasedef=0
- decreasemvmt=0
- AtkVal=Atk.Value*100
- AtkVal=math.floor(AtkVal)
- AtkVal=AtkVal/100
- DefVal=Def.Value*100
- DefVal=math.floor(DefVal)
- DefVal=DefVal/100
- MvmtVal=Mvmt.Value*100
- MvmtVal=math.floor(MvmtVal)
- MvmtVal=MvmtVal/100
- if MvmtVal<=0 then
- MvmtVal=0
- end
- animnum=animnum+1
- if animnum>=animlimit*5 then
- idle=1
- animnum=0
- elseif animnum>=animlimit*4 then
- idle=1
- animnum=0
- elseif animnum>=animlimit*3 then
- idle=4
- elseif animnum>=animlimit*2 then
- idle=3
- elseif animnum>=animlimit*1 then
- idle=2
- end
- player = game.Players.LocalPlayer
- chara = player.Character
- debby = game:GetService("Debris")
- angles=CFrame.Angles
- euler=CFrame.fromEulerAnglesXYZ
- skybox = Instance.new("Part",chara)
- skybox.Size = Vector3.new(0,0,0)
- skybox.Anchored = true
- skybox.CanCollide = true
- skyboxmesh = Instance.new("SpecialMesh",skybox)
- skyboxmesh.MeshId = "http://www.roblox.com/asset/?id=1527559"
- skyboxmesh.TextureId = "http://www.roblox.com/asset/?id=563138225"
- skyboxmesh.VertexColor = Vector3.new(1,0,0)
- skyboxmesh.Scale = Vector3.new(-3000,-1000,-3000)
- skybox.CFrame = skybox.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(1),0)
- local naeeym = Instance.new("BillboardGui",chara)
- naeeym.Size = UDim2.new(0,100,0,400)
- naeeym.StudsOffset = Vector3.new(0,200,0)
- naeeym.Adornee = chara.Head
- local tecks = Instance.new("TextLabel",naeeym)
- tecks.BackgroundTransparency = 1
- tecks.BorderSizePixel = 0
- tecks.Text = "King_NELF"
- tecks.Font = "Fantasy"
- tecks.FontSize = "Size24"
- tecks.TextStrokeTransparency = 0
- tecks.TextStrokeColor3 = Color3.new(0,0,0)
- tecks.TextColor3 = Color3.new(0,0,0)
- tecks.Size = UDim2.new(1,0,0.5,0)
- tecks.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
- --Death--
- chara.Humanoid.Died:connect(function()
- local pat = Instance.new("Part",game.Workspace)
- pat.Transparency = 1
- pat.Anchored = true
- pat.CFrame = chara.Torso.CFrame
- naeeym.Parent = pat
- naeeym.Adornee = pat
- skybox.Parent = game.Workspace
- tecks.Text = "hahaha ;)"
- tecks.FontSize = "Size48"
- tecks.TextColor3 = Color3.new(1,0,0)
- music1:Stop()
- music2:Stop()
- deathmus.Parent = game.Workspace
- deathex.Parent = game.Workspace
- deathmus:Play()
- deathex:Play()
- game.Lighting.TimeOfDay = "00:00:00"
- game.Lighting.OutdoorAmbient = Color3.new(0,0,0)
- game.Lighting.FogColor = Color3.new(0,0,0)
- game.Lighting.FogEnd = 50000000000000000
- local ex = Instance.new("Explosion",game.Workspace)
- ex.Position = chara.Torso.Position
- ex.Visible = false
- ex.BlastRadius = 999999999999999999999999
- ex.BlastPressure = 9999999999999999999999999
- end)
- --Loop Function--
- while true do
- wait(.01)
- if chara.Humanoid.Health > 0 then
- chara.Humanoid.MaxHealth = math.huge
- chara.Humanoid.Health = math.huge
- skybox.CFrame = skybox.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(1),0)
- tecks.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
- end
- end
- if attack==false then --idle anim
- if idle==1 or idle==2 then
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),.005)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.005)
- wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.005)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),.005)
- wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.005)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.005)
- wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.005)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),.005)
- wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.005)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.005)
- else
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),.005)
- RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-180,10)*euler(-.2,0,0),.005)
- wld19.C0=wld19.C0:lerp(euler(-.2,.3,0)*cf(94,-47.5,-2.248),.005)
- wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,0,0),.005)
- wld24.C0=wld24.C0:lerp(euler(1.2,-.2,0)*cf(0,90.25,0),.005)
- wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.005)
- wld33.C0=wld33.C0:lerp(euler(-.2,-.3,0)*cf(-94,-47.5,-2.248),.005)
- wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,0,0),.005)
- wld38.C0=wld38.C0:lerp(euler(-1.2,-.2,0)*cf(0,-90.25,0),.005)
- wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.005)
- end
- end
- if #Effects>0 then
- --table.insert(Effects,{prt,"Block1",delay})
- for e=1,#Effects do
- if Effects[e]~=nil then
- --for j=1,#Effects[e] do
- local Thing=Effects[e]
- if Thing~=nil then
- local Part=Thing[1]
- local Mode=Thing[2]
- local Delay=Thing[3]
- local IncX=Thing[4]
- local IncY=Thing[5]
- local IncZ=Thing[6]
- if Thing[2]=="DecreaseStat" then
- --table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
- Thing[5]=Thing[5]-1
- if Thing[5]<=0 then
- if Thing[1]:findFirstChild("Stats")~=nil then
- if Thing[1].Stats:findFirstChild("Decrease")~=nil then
- --Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
- end
- end
- Thing[6].Parent=nil
- table.remove(Effects,e)
- end
- end
- if Thing[2]=="CylinderClang" then
- if Thing[3]<=1 then
- Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
- Thing[7]=Thing[1].CFrame
- effect("Really red",0,Thing[8],Thing[7])
- Thing[8]=Thing[7]
- Thing[3]=Thing[3]+Thing[4]
- else
- Part.Parent=nil
- table.remove(Effects,e)
- end
- end
- if Thing[2]=="showDamage" then
- if Thing[6]<Thing[5] then
- Thing[6]=Thing[6]+1
- elseif Thing[6]<Thing[7] then
- Thing[4].position=Thing[4].position+vt(0,-.2,0)
- Thing[6]=Thing[6]+1
- elseif Thing[6]<Thing[8] then
- Thing[6]=Thing[6]+1
- elseif Thing[6]<Thing[9] then
- Thing[6]=Thing[6]+1
- Thing[4].position=Thing[4].position+vt(0,.2,0)
- Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
- Thing[3].TextTransparency=Thing[3].TextTransparency+.1
- else
- Thing[1].Parent=nil
- table.remove(Effects,e)
- end
- end
- if Thing[2]=="ShootIce" then
- local Look=Thing[1]
- local hit,pos = rayCast(Thing[4],Look.lookVector,Thing[9],Character)
- local mag=(Thing[4]-pos).magnitude
- --MagicHead(BrickColor.new(NewCol),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.5,0,.5,.2)
- Thing[8].CFrame=CFrame.new((Thing[4]+pos)/2,pos)*euler(-1.57,0,0)
- Thing[4]=Thing[4]+(Look.lookVector*Thing[9])
- Thing[3]=Thing[3]-1
- Thing[9]=Thing[9]+.2
- if hit~=nil then
- Thing[3]=0
- --DecreaseStat(hit.Parent,"Movement",.02,50,false)
- --Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(1,3),nil,nil,true)
- ref=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=cf(pos)
- --MagicCircle(BrickColor.new(NewCol3),cf(pos),5,5,5,1,1,1,0.2)
- game:GetService("Debris"):AddItem(ref,1)
- ref2=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt(5,5,5))
- ref2.Anchored=true
- ref2.CFrame=cf(pos)
- --MagicCircle(BrickColor.new(NewCol3),cf(pos),5,5,5,1,1,1,0.2)
- so("199146181",ref2,1,1.6)
- game:GetService("Debris"):AddItem(ref2,5)
- --MagicCircle(BrickColor.new("Really red"),ref.CFrame,40,40,40,1,1,1,.05)
- freeze=true
- MagicCircle(BrickColor.new("Really red"),cf(ref.Position),20,20,20,20,20,20,.1)
- MagniDamage(ref,15,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(10,15),nil,nil,true,"Movement",.1,100)
- freeze=false
- for i=1,8 do
- BreakEffect(BrickColor.new("Black"),ref.CFrame*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100),math.random(60,120)/100,math.random(3,20),math.random(60,120)/100)
- end
- end
- if Thing[3]<=0 then
- Thing[8].Transparency=1
- Thing[11].Enabled=false
- Thing[12].Enabled=false
- game:GetService("Debris"):AddItem(Thing[8],5)
- table.remove(Effects,e)
- end
- end
- if Thing[2]=="SatelliteStrike" then
- if Thing[5]<200 then
- Thing[5]=Thing[5]+2
- Thing[4].Scale=vt(Thing[5],5,Thing[5])
- else
- refda=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- refda.Anchored=true
- refda.CFrame=cf(Thing[1].Position)
- game:GetService("Debris"):AddItem(refda,1)
- so("334325056",refda,1,1)
- so("199145739",refda,.8,2)
- MagniDamage(refda,20,8,10,0,"Knockdown2",refda,0,1,math.random(10,12),nil,nil,true,"Movement",.4,100)
- MagicHead(BrickColor.new("Really red"),cf(refda.Position),50,99999,50,-4,1,-4,.1)
- MagicBlock(BrickColor.new("Really red"),cf(refda.Position),120,120,120,-5,-5,-5,.07,1)
- for i=1,15 do
- local freezepart=part(3,effects,0.5,0.5,BrickColor.new("Really black"),"Ice Part",vt(math.random(500,800)/100,math.random(500,800)/100,math.random(500,800)/100))
- freezepart.Anchored=true
- freezepart.CanCollide=true
- freezepart.CFrame=cf(refda.Position)*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- game:GetService("Debris"):AddItem(freezepart,5)
- end
- Thing[1].Parent=nil
- --MagicIcicle(BrickColor.new("Really red"),cf(Thing[1].Position)*cf(0,-4,0)*euler(math.random(-50,50)/100,0,math.random(-50,50)/100),5,15,5,.05)
- table.remove(Effects,e)
- end
- end
- if Thing[2]=="SatelliteStrike2" then
- if Thing[5]<300 then
- Thing[5]=Thing[5]+2
- Thing[4].Scale=vt(Thing[5],5,Thing[5])
- else
- refda=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- refda.Anchored=true
- refda.CFrame=cf(Thing[1].Position)
- game:GetService("Debris"):AddItem(refda,1)
- refda2=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- refda2.Anchored=true
- refda2.CFrame=refda.CFrame*cf(0,-10,0)
- game:GetService("Debris"):AddItem(refda2,1)
- so("178452221",refda,1,1.2)
- so("334325056",refda,1,1)
- MagniDamage(refda,30,8,10,math.random(40,60),"Knockdown2",refda2,0,1,math.random(15,20),nil,nil,true,"Damage",.4,300)
- --MagicHead(BrickColor.new("Medium blue"),cf(refda.Position),50,99999,50,-4,1,-4,.1)
- MagicBlock(BrickColor.new("Really red"),cf(refda.Position),120,120,120,-5,-5,-5,.07,1)
- MagicWave2(BrickColor.new("Really red"),cf(refda.Position),40,30,40,5,8,5,.07)
- --[[for i=1,15 do
- local freezepart=part(3,effects,0.5,0.5,BrickColor.new("Really red"),"Ice Part",vt(math.random(500,800)/100,math.random(500,800)/100,math.random(500,800)/100))
- freezepart.Anchored=true
- freezepart.CanCollide=true
- freezepart.CFrame=cf(refda.Position)*cf(math.random(-1500,1500)/100,0,math.random(-1500,1500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- game:GetService("Debris"):AddItem(freezepart,5)
- end]]
- Thing[1].Parent=nil
- --MagicIcicle(BrickColor.new("Really red"),cf(Thing[1].Position)*cf(0,-4,0)*euler(math.random(-50,50)/100,0,math.random(-50,50)/100),5,15,5,.05)
- table.remove(Effects,e)
- end
- end
- if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="ShootIce" and Thing[2]~="SatelliteStrike" and Thing[2]~="SatelliteStrike2" then
- if Thing[1].Transparency<=1 then
- if Thing[2]=="Block1" then
- Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Block2" then
- Thing[1].CFrame=Thing[1].CFrame
- Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Cylinder" then
- Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Cylinder2" then
- Mesh=Thing[7]
- if Thing[1].Transparency<=.5 then
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[8]=Thing[8]+.2
- Thing[1].CFrame=Thing[1].CFrame*cf(0,1,0)*euler(0,Thing[8],0)
- else
- Mesh.Scale=Mesh.Scale+vt(Thing[4]/2,-Thing[5]/1,Thing[6]/2)
- Thing[1].CFrame=Thing[1].CFrame*cf(0,-1,0)
- end
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Shatter" then
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- Thing[4]=Thing[4]*cf(0,Thing[7],0)
- Thing[1].CFrame=Thing[4]*euler(Thing[6],0,0)
- --Thing[1].CFrame=Thing[1].CFrame
- Thing[6]=Thing[6]+Thing[5]
- elseif Thing[2]=="Blood" then
- Mesh=Thing[7]
- Thing[1].CFrame=Thing[1].CFrame*cf(0,Thing[8],0)
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Elec" then
- Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Disappear" then
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- end
- else
- table.remove(Effects,e)
- end
- end
- end
- --end
- end
- end
- end
- end
- refs.Parent=nil
- effects.Parent=nil
- Humanoid.Parent=nil
- for _,c in pairs(Character:children()) do
- if c.className=="Part" then
- --[[c:BreakJoints()
- c.CanCollide=true
- c.Anchored=false]]
- c.Anchored=true
- end
- end
- for _,c in pairs(armor:children()) do
- if c.className=="Part" then
- --[[c:BreakJoints()
- c.CanCollide=true
- c.Anchored=false]]
- c.Anchored=true
- end
- end
- for _,c in pairs(Character:children()) do
- if c.className=="Part" then
- if c.Name~="Left Arm" then
- swait()
- end
- c:BreakJoints()
- c.CanCollide=false
- c.Anchored=false
- end
- end
- for _,c in pairs(armor:children()) do
- if c.className=="Part" then
- swait()
- c:BreakJoints()
- c.CanCollide=false
- c.Anchored=false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement