Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = game.Players.LocalPlayer
- 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 deb = false
- local shot = 0
- local potential = false
- local debris=game:service"Debris"
- local l = game:GetService("Lighting")
- local rs = game:GetService("RunService").RenderStepped
- ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
- math.randomseed(os.time())
- for i,v in pairs(char:children()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- char["Body Colors"].HeadColor = BrickColor.new("White")
- char["Body Colors"].LeftArmColor = BrickColor.new("White")
- char["Body Colors"].RightArmColor = BrickColor.new("White")
- char["Body Colors"].TorsoColor = BrickColor.new("White")
- char["Body Colors"].RightLegColor = BrickColor.new("White")
- char["Body Colors"].LeftLegColor = BrickColor.new("White")
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- Mouse=Player:GetMouse()
- RootPart = Character.HumanoidRootPart
- RootJoint = RootPart.RootJoint
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Neck=Torso.Neck
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- local decreaseatk=0
- local decreasedef=0
- local decreasemvmt=0
- local Anim="Idle"
- local Effects={}
- local armorparts={}
- local armorwelds={}
- local weaponparts={}
- local weaponwelds={}
- local necko=euler(0,0,0)*cf(0,1,0)
- local attack=false
- local jump=false
- local start=false
- local move=10
- local hitfloor,posfloor=nil,nil
- local hitboxing=false
- local snipe=false
- local run=Instance.new("NumberValue")
- run.Name="DecreaseMvmt"
- run.Value=-.6
- local bName="Sticia"
- local MainColor=BrickColor.new("Really black")
- local SubColor=BrickColor.new("Really black")
- --[[if script:findFirstChild("SiegmundHealth")~=nil then
- for _,c in pairs(game.Players:children()) do
- d=script.SiegmundHealth:Clone()
- d.Parent=c.PlayerGui
- end
- end]]
- --local damageFunc=workspace.damageFunc
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- Humanoid.Animator.Parent = nil
- Character.Animate.Parent = nil
- local Create = LoadLibrary("RbxUtility").Create
- ArtificialHB = Create("BindableEvent", script){
- Parent = script,
- Name = "Heartbeat",
- }
- script:WaitForChild("Heartbeat")
- frame = 1 / 30
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- 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 swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- --[[frame,t,lastframe = 1/30,0,tick()
- 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.
- swait = function(dt)
- if dt == nil then
- dt = frame
- elseif dt < frame then
- dt = frame
- elseif dt > frame then
- --round this out into frames
- dt = math.floor(dt/frame)
- end
- local timetomeet = tick() + dt
- end]] --maybe later
- --30hz Pacemaker
- script:WaitForChild("Heartbeat")
- 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("Weld")
- 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("White")
- elseif GuiType=="ImageLabel" then
- gui.Image="rbxassetid://"..image
- gui.ImageColor3=backcol
- end
- return gui
- end
- local Characte=Instance.new("Model")
- Characte.Parent=Character
- Characte.Name=bName
- --local Torso=part(0,Character,0,0,MainColor,"Torso",vt(2,2,1))
- local Torsoc=part(0,Character,0,0,SubColor,"Torso Copy",vt(2,2,1))
- --local LeftArm=part(0,Character,0,0,MainColor,"Left Arm",vt(1,2,1))
- local LeftArmc=part(0,Character,0,0,SubColor,"Left Arm Copy",vt(1,2,1))
- --local RightArm=part(0,Character,0,0,MainColor,"Right Arm",vt(1,2,1))
- local RightArmc=part(0,Character,0,0,SubColor,"Right Arm Copy",vt(1,2,1))
- --local LeftLeg=part(0,Character,0,0,MainColor,"Left Leg",vt(1,2,1))
- local LeftLegc=part(0,Character,0,0,SubColor,"Left Leg Copy",vt(1,2,1))
- --local RightLeg=part(0,Character,0,0,MainColor,"Right Leg",vt(1,2,1))
- local RightLegc=part(0,Character,0,0,SubColor,"Right Leg Copy",vt(1,2,1))
- --local Head=part(0,Character,0,0,BrickColor.new("Pastel brown"),"Head",vt(2,1,1))
- --[[local Torso=part(0,Character,0,0,MainColor,"Torso",vt(2,2,1))
- local Torsoc=part(0,Character,0,0,SubColor,"Torso Copy",vt(2,2,1))
- local LeftArm=part(0,Character,0,0,SubColor,"Left Arm",vt(1,2,1))
- local LeftArmc=part(0,Character,0,0,MainColor,"Left Arm Copy",vt(1,2,1))
- local RightArm=part(0,Character,0,0,SubColor,"Right Arm",vt(1,2,1))
- local RightArmc=part(0,Character,0,0,MainColor,"Right Arm Copy",vt(1,2,1))
- local LeftLeg=part(0,Character,0,0,SubColor,"Left Leg",vt(1,2,1))
- local LeftLegc=part(0,Character,0,0,MainColor,"Left Leg Copy",vt(1,2,1))
- local RightLeg=part(0,Character,0,0,SubColor,"Right Leg",vt(1,2,1))
- local RightLegc=part(0,Character,0,0,MainColor,"Right Leg Copy",vt(1,2,1))]]
- --local RootPart=part(0,Character,0,1,BrickColor.new("Black"),"HumanoidRootPart",vt(2,2,1))
- Head.CanCollide=true
- Torso.CanCollide=true
- LeftArm.CanCollide=true
- RightArm.CanCollide=true
- LeftLeg.CanCollide=true
- RightLeg.CanCollide=true
- RootPart.CanCollide=false
- Character.Head.face:Remove()
- face=Instance.new("Decal",Head)
- face.Face="Front"
- --face.Texture="http://www.roblox.com/asset/?id="
- face.Texture="http://www.roblox.com/asset/?id="
- local HMesh=mesh("SpecialMesh",Head,"Head","nil",vt(0,0,0),vt(1.25,1.25,1.25))
- local TMsh=mesh("SpecialMesh",Torso,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(1.8,1,.8))
- local LAMsh=mesh("SpecialMesh",LeftArm,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,.8,.8))
- local RAMsh=mesh("SpecialMesh",RightArm,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,.8,.8))
- local LLMsh=mesh("SpecialMesh",LeftLeg,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,1,.8))
- local RLMsh=mesh("SpecialMesh",RightLeg,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,1,.8))
- local TcMsh=mesh("SpecialMesh",Torsoc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-2,-1,-1))
- local LAcMsh=mesh("SpecialMesh",LeftArmc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1,-1))
- local RAcMsh=mesh("SpecialMesh",RightArmc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1,-1))
- local LLcMsh=mesh("SpecialMesh",LeftLegc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1.2,-1))
- local RLcMsh=mesh("SpecialMesh",RightLegc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1.2,-1))
- TMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- LAMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- RAMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- LLMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- RLMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- TcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- LAcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- RAcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- LLcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- RLcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- --[[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,cf(0,0,0))
- Neck.C0=cf(0, 1.5, 0)
- local RW=weld(Torso,Torso,RightArm,cf(1.5, 0, 0))
- --RW.C1=cf(0,.5,0)
- local RWc=weld(Torso,RightArm,RightArmc,cf(0,0,0))
- local LW=weld(Torso,Torso,LeftArm,cf(-1.5, 0, 0))
- --LW.C1=cf(0,.5,0)
- local LWc=weld(Torso,LeftArm,LeftArmc,cf(0,0,0))
- local RH=weld(Torso,Torso,RightLeg,cf(.5, -2, 0))
- --RH.C1=cf(0,1,0)
- local RHc=weld(Torso,RightLeg,RightLegc,cf(0,0,0))
- local LH=weld(Torso,Torso,LeftLeg,cf(-.5, -2, 0))
- --LH.C1=cf(0,1,0)
- local LHc=weld(Torso,LeftLeg,LeftLegc,cf(0,0,0))
- local RootJoint=weld(Torso,Torso,RootPart,cf(0,0,0))
- local RootJointc=weld(Torso,Torso,Torsoc,cf(0,0,0))
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- ]]
- local RWc=weld(Torso,RightArm,RightArmc,cf(0,0,0))
- local LWc=weld(Torso,LeftArm,LeftArmc,cf(0,0,0))
- local RHc=weld(Torso,RightLeg,RightLegc,cf(0,0,0))
- local LHc=weld(Torso,LeftLeg,LeftLegc,cf(0,0,0))
- local RootJointc=weld(Torso,Torso,Torsoc,cf(0,0,0))
- --RootPart.CFrame=Characterz.Torso.CFrame*cf(0,6,0)
- 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
- --Torso.CFrame=cf(0,0,0)
- --Torso.CFrame=workspace.Map.BossSpawn.CFrame*cf(0,5,0)
- --Cuz im too lazy V
- local newMotor = function(part0, part1, c0, c1)
- local w = Create('Motor'){
- Parent = part0,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return w
- end
- RootJoint = New("Motor6D",RootPart,"RootJoint",{Part0 = RootPart,Part1 = Torso,})
- Neck = New("Motor6D",RootPart,"Neck",{Part0 = Torso,Part1 = Head,})
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
- local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
- local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
- RootJoint.C1 = CFrame.new(0, 0, 0)
- RootJoint.C0 = CFrame.new(0, 0, 0)
- Neck.C1 = CFrame.new(0, 0, 0)
- Neck.C0 = CFrame.new(0, 1.5, 0)
- local rarmc1 = RW.C1
- local larmc1 = LW.C1
- local rlegc1 = RH.C1
- local llegc1 = LH.C1
- local resetc1 = false
- function PlayAnimationFromTable(table, speed, bool)
- RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
- Neck.C0 = clerp(Neck.C0, table[2], speed)
- RW.C0 = clerp(RW.C0, table[3], speed)
- LW.C0 = clerp(LW.C0, table[4], speed)
- RH.C0 = clerp(RH.C0, table[5], speed)
- LH.C0 = clerp(LH.C0, table[6], speed)
- if bool == true then
- if resetc1 == false then
- resetc1 = true
- RootJoint.C1 = RootJoint.C1
- Torso.Neck.C1 = Torso.Neck.C1
- RW.C1 = rarmc1
- LW.C1 = larmc1
- RH.C1 = rlegc1
- LH.C1 = llegc1
- end
- end
- end
- local modelzorz=it("Model",Character)
- modelzorz.Name="Katana"
- Handle = New("Part",modelzorz,"Handle",{BrickColor = BrickColor.new("White"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.0999999, 0.300000012, 0.199998885),CFrame = CFrame.new(-40.2000084, 1.89947248, 1.26853383, 2.65214953e-06, -4.85777855e-06, 1.00000298, 0.258808136, -0.965930879, -4.3958421e-06, 0.965928674, 0.258808881, -1.37090694e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0705882, 0.933333, 0.831373),})
- Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(1, 0.800000012, 0.699999988),})
- Blade = New("Part",modelzorz,"Blade",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999917, 0.100000016, 3.39999914),CFrame = CFrame.new(-40.2000122, 1.30930293, -0.934016109, 9.66507287e-07, -1.00000596, 1.90273795e-07, 0.965930223, -9.82820893e-07, 0.258818597, -0.258820087, 6.63599167e-08, 0.965925813),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0705882, 0.933333, 0.831373),})
- Mesh = New("BlockMesh",Blade,"Mesh",{Scale = Vector3.new(1, 0.75, 1),})
- mot = New("Weld",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818775, -1, 0, 0, 0, 0.258818775, 0.965925872),C1 = CFrame.new(-2.28024721, 2.38418579e-05, 3.81469727e-06, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
- Blade = New("Part",modelzorz,"Blade",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.0999998897, 0.999999821, 0.199998796),CFrame = CFrame.new(-40.2000084, 1.1097939, -2.41413832, -1.00000596, 1.90272658e-07, 9.66506832e-07, -9.82820893e-07, 0.258817554, 0.9659307, 6.63599167e-08, 0.96592629, -0.258818924),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0, 1, 1),})
- Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
- mot = New("Weld",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.258817732, 0.965926349, 0, 0.965926349, -0.258817613),C1 = CFrame.new(-3.76157427, -0.190331817, 7.62939453e-06, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
- Blade = New("Part",modelzorz,"Blade",{BrickColor = BrickColor.new("White"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.0999998897, 0.599999785, 0.199998796),CFrame = CFrame.new(-40.2000122, 0.989097118, -2.87376833, -1.00000596, 4.33940158e-07, 8.84327847e-07, -9.82820893e-07, 0.49999994, 0.866030335, 6.63599167e-08, 0.866025567, -0.500000238),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0, 1, 1),})
- Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
- mot = New("Weld",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.499998987, 0.866025984, 0, 0.866026163, -0.499998987),C1 = CFrame.new(-4.2367816, -0.192703366, 7.62939453e-06, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
- Blade = New("Part",modelzorz,"Blade",{BrickColor = BrickColor.new("White"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.0999998897, 0.899999857, 0.399998784),CFrame = CFrame.new(-40.2000122, 0.752844095, -3.01075649, 1.00000596, -1.90274022e-07, 9.66387688e-07, 9.82936854e-07, -0.258818716, 0.96593076, -6.63909532e-08, -0.965926468, -0.258820325),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0, 1, 1),})
- Mesh = New("SpecialMesh",Blade,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
- mot = New("Weld",Blade,"mot",{Part0 = Blade,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 1.15706708e-10, -3.10033353e-11, 1.01307851e-15, -0.258818865, -0.965926468, -1.19788332e-10, 0.965926409, -0.258819014),C1 = CFrame.new(-4.43024635, 4.61339951e-05, 7.62939453e-06, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
- Handle1 = New("Part",modelzorz,"Handle1",{BrickColor = BrickColor.new("White"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999917, 0.400000006, 0.199998885),CFrame = CFrame.new(-40.2000046, 1.75712657, 0.737277806, -0.707115054, -0.707107127, -8.20886271e-07, 0.68301028, -0.683021247, 0.258819044, -0.183013171, 0.183014363, 0.965925753),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0705882, 0.933333, 0.831373),})
- Mesh = New("BlockMesh",Handle1,"Mesh",{Scale = Vector3.new(1, 1, 0.400000006),})
- mot = New("Weld",Handle1,"mot",{Part0 = Handle1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.707111597, 0.683007956, -0.183012307, -0.707102239, -0.683017492, 0.183013409, -1.01115427e-06, 0.258819193, 0.965925813),C1 = CFrame.new(-0.54999578, 2.62260437e-06, 3.81469727e-06, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
- hitbox = New("Part",modelzorz,"Hitbox",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999917, 0.100000016, 4.29999828),CFrame = CFrame.new(-40.2000084, 1.19283509, -1.36868203, 0, -1, 0, 0.965925872, 0, 0.258818775, -0.258818775, 0, 0.965925872),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0705882, 0.933333, 0.831373),})
- Mesh = New("BlockMesh",hitbox,"Mesh",{Scale = Vector3.new(1, 0.75, 1),})
- mot = New("Weld",hitbox,"mot",{Part0 = hitbox,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818775, -1, 0, 0, 0, 0.258818775, 0.965925872),C1 = CFrame.new(-2.73024631, 2.83718109e-05, 7.62939453e-06, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
- local modelzorz2=it("Model",Character)
- modelzorz2.Name="Sheath"
- Sheath = New("Part",modelzorz2,"Sheath",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.599999905, 0.400000006, 3.19999957),CFrame = CFrame.new(-41.2000008, 1.33448899, -0.857201993, 0, -1, 0, 0.965925872, 0, 0.258818984, -0.258818984, 0, 0.965925872),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.686275, 0.866667, 1),})
- Mesh = New("BlockMesh",Sheath,"Mesh",{Scale = Vector3.new(1, 0.75, 1),})
- mot = New("Weld",Sheath,"mot",{Part0 = Sheath,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),C1 = CFrame.new(-0.599998474, 0.334478617, 0.757201672, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
- Sheath2 = New("Part",modelzorz2,"Sheath2",{BrickColor = BrickColor.new("White"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.599999905, 0.400000006, 3.09999967),CFrame = CFrame.new(-41.2000008, 1.32154906, -0.905498028, 0, -1, 0, 0.965925872, 0, 0.258818984, -0.258818984, 0, 0.965925872),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0156863, 0.686275, 0.92549),})
- Mesh = New("BlockMesh",Sheath2,"Mesh",{Scale = Vector3.new(0.600000024, 0.75999999, 1),})
- mot = New("Weld",Sheath2,"mot",{Part0 = Sheath2,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),C1 = CFrame.new(9.53674316e-07, 0, -0.0499994755, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
- Sheath1 = New("Part",modelzorz2,"Sheath1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999887, 1.29999995, 0.699998796),CFrame = CFrame.new(-41.2000008, 0.703852952, -3.01759815, 1, 0, 1.1920929e-07, -1.15147344e-07, -0.258818865, 0.965925932, 3.08535988e-08, -0.965925932, -0.258818865),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.686275, 0.866667, 1),})
- Mesh = New("SpecialMesh",Sheath1,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
- mot = New("Weld",Sheath1,"mot",{Part0 = Sheath1,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, 1, -1.15147337e-07, 3.08535988e-08, 0, -0.258818865, -0.965925872, 1.1920929e-07, 0.965925872, -0.258818865),C1 = CFrame.new(-0.0499961376, 0, -2.25000286, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
- Sheath1 = New("Part",modelzorz2,"Sheath1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999887, 0.799999833, 0.399998784),CFrame = CFrame.new(-41.2000008, 0.620673895, -1.99436212, -1, -1.1868978e-09, 1.69256964e-09, 1.99513539e-09, -0.342020988, 0.939691901, -5.33113442e-10, 0.939691901, 0.342020988),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.686275, 0.866667, 1),})
- Mesh = New("SpecialMesh",Sheath1,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
- mot = New("Weld",Sheath1,"mot",{Part0 = Sheath1,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, -1, 1.99513517e-09, -5.33113442e-10, -1.1868978e-09, -0.342020959, 0.939691842, 1.69256964e-09, 0.939691842, 0.342020959),C1 = CFrame.new(-0.395173788, 0, -1.28316116, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
- Sheath1 = New("Part",modelzorz2,"Sheath1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999887, 0.899999857, 0.399998784),CFrame = CFrame.new(-41.2000008, 1.03275704, -2.79913402, 1, 8.51018589e-10, -2.31827668e-10, 2.31826017e-10, 1.74343586e-06, 1.0000006, 8.51018644e-10, -1.0000006, 1.60932541e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.686275, 0.866667, 1),})
- Mesh = New("SpecialMesh",Sheath1,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
- mot = New("Weld",Sheath1,"mot",{Part0 = Sheath1,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, 1, 2.31825989e-10, 8.51018589e-10, 8.51018589e-10, 1.77323818e-06, -1.0000006, -2.31827668e-10, 1.00000048, 1.63912773e-06),C1 = CFrame.new(0.211158156, 0, -1.95385635, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
- Sheath1 = New("Part",modelzorz2,"Sheath1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999887, 0.699999809, 0.399998784),CFrame = CFrame.new(-41.2000008, 1.17449188, -2.46112013, 1, 7.62019836e-10, -4.44187298e-10, 2.31823505e-10, 0.258822739, 0.965924859, 8.51019644e-10, -0.965924919, 0.258822769),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.686275, 0.866667, 1),})
- Mesh = New("SpecialMesh",Sheath1,"Mesh",{Scale = Vector3.new(0.75, 1, 1),MeshType = Enum.MeshType.Wedge,})
- mot = New("Weld",Sheath1,"mot",{Part0 = Sheath1,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, 1, 2.31823477e-10, 8.51019588e-10, 7.62019836e-10, 0.258822769, -0.965924859, -4.44187298e-10, 0.965924799, 0.258822769),C1 = CFrame.new(0.260579109, 0, -1.59067619, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
- Sheath2 = New("Part",modelzorz2,"Sheath2",{BrickColor = BrickColor.new("White"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.399999887, 0.699999809, 0.599998772),CFrame = CFrame.new(-41.2000008, 0.829795897, -2.74076009, 1, 0, 1.1920929e-07, -1.15147344e-07, -0.258818865, 0.965925932, 3.08535988e-08, -0.965925932, -0.258818865),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0156863, 0.686275, 0.92549),})
- Mesh = New("SpecialMesh",Sheath2,"Mesh",{Scale = Vector3.new(0.75999999, 1, 0.600000024),MeshType = Enum.MeshType.Wedge,})
- mot = New("Weld",Sheath2,"mot",{Part0 = Sheath2,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, 1, -1.15147337e-07, 3.08535988e-08, 0, -0.258818865, -0.965925872, 1.1920929e-07, 0.965925872, -0.258818865),C1 = CFrame.new(4.529953e-06, 0, -1.9500016, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
- Hole = New("Part",modelzorz2,"Hole",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.599999905, 0.400000006, 3.19999957),CFrame = CFrame.new(-41.2000008, 1.33448899, -0.857201993, 0, -1, 0, 0.965925872, 0, 0.258818984, -0.258818984, 0, 0.965925872),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("BlockMesh",Hole,"Mesh",{Scale = Vector3.new(0.699999988, 0.25, 1.00100005),})
- mot = New("Weld",Hole,"mot",{Part0 = Hole,Part1 = Sheath,C0 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),C1 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),})
- Hat = New("Part",Character,"Hat",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-35.3999977, 13.3999939, 12.5000019, -1, -1.02872309e-06, 1.57207148e-06, -1.02925287e-06, 1, -3.32534e-10, -1.57253714e-06, -3.42679579e-10, -0.99999994),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("SpecialMesh",Hat,"Mesh",{MeshId = "http://www.roblox.com/asset/?id= ",TextureId = "http://www.roblox.com/asset/?id= ",MeshType = Enum.MeshType.FileMesh,})
- mot = New("Weld",Hat,"mot",{Part0 = Hat,Part1 = Head,C0 = CFrame.new(0, 0, 0, -1, -1.02925287e-06, -1.57253714e-06, -1.02872309e-06, 1, -3.42679579e-10, 1.57207148e-06, -3.32534e-10, -0.99999994),C1 = CFrame.new(0, -1.09999275, -1.90734863e-06, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
- wld1 = New("Weld",Sheath,"mot",{Part0 = Sheath,Part1 = Handle,})--C0 = CFrame.new(0, 0, 0, 0, 0.965925872, -0.258818984, -1, 0, 0, 0, 0.258818984, 0.965925872),C1 = CFrame.new(-2.19953251, -0.00442254543, 1.14440918e-05, 2.65214953e-06, 0.258808166, 0.965928733, -4.85777855e-06, -0.965930879, 0.258808881, 1.00000298, -4.39584255e-06, -1.37090683e-06),})
- --[[local Humanoid=Instance.new("Humanoid")
- Humanoid.Parent=Character
- TehHealth=500
- --TehHealth=2000
- Humanoid.MaxHealth=TehHealth
- Humanoid.Health=TehHealth
- coroutine.resume(coroutine.create(function()
- for i=1,20 do
- wait()
- Humanoid.Health=Humanoid.MaxHealth
- end
- Humanoid:TakeDamage(1)
- end))]]
- local Stats=Instance.new("BoolValue")
- Stats.Name="Stats"
- Stats.Parent=Character
- local Atk=Instance.new("NumberValue")
- Atk.Name="Damage"
- Atk.Parent=Stats
- Atk.Value=1
- local Def=Instance.new("NumberValue")
- Def.Name="Defense"
- Def.Parent=Stats
- Def.Value=1
- 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=100
- 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 RecentEnemy=Instance.new("ObjectValue")
- RecentEnemy.Name="RecentEnemy"
- RecentEnemy.Parent=Stats
- RecentEnemy.Value=nil
- 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=0
- local boss=Instance.new("BoolValue")
- boss.Name="Boss"
- boss.Parent=Stats
- boss.Value=true
- local alive=Instance.new("BoolValue")
- alive.Name="Alive"
- alive.Parent=Character
- alive.Value=true
- local btarget=Instance.new("ObjectValue")
- btarget.Name="Target"
- btarget.Parent=Stats
- btarget.Value=nil
- local passive1=Instance.new("NumberValue",Decrease)
- passive1.Name="DecreaseAtk"
- passive1.Value=-.8
- local passive2=Instance.new("NumberValue",Decrease)
- passive2.Name="DecreaseDef"
- passive2.Value=.1
- local passive3=Instance.new("NumberValue",Decrease)
- passive3.Name="DecreaseMvmt"
- passive3.Value=.3
- so = function(id,par,vol,pit)
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=0
- 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("Teal")
- 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("Teal")
- 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 BreakEffect(brickcolor, cframe, x1, y1, z1)
- local prt = part(3,workspace,0,0,brickcolor,"Effect",vt(.5,.5,.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local msh = mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
- local num = math.random(10, 50) / 1000
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Shatter",
- num,
- prt.CFrame,
- math.random() - math.random(),
- 0,
- math.random(50, 100) / 100
- })
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,3)
- 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,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
- 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,3)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
- 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,3)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*cf(x2,y2,z2)
- local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,3)
- 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(.2,.2,.2))
- 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,"Cylinder3",delay,x3,y3,z3,msh})
- end
- function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,3)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicCylinder3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,Character,0,0,brickcolor,"Effect",vt(.2,.2,.2))
- 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,3)
- 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,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
- 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,3)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
- local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(.2,.2,.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
- game:GetService("Debris"):AddItem(prt,3)
- 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,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,3)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function StartAnim()
- attack=true
- --workspace.CurrentCamera.CameraSubject=Head
- hitfloor2,posfloor2=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,500,Character)
- if hitfloor2~=nil then
- RootPart.CFrame=cf(posfloor2)*cf(0,5,0)
- end
- wld1.C0=euler(-1.57,0,0)*cf(0,1.8,-1.5)
- Neck.C0=necko*euler(0,1,0)*euler(-.3,0,0)
- RootJoint.C0=euler(0,0,0)*cf(0,.4,0)
- RW.C0=cf(1.5,0.5,0)*euler(0,0,.5)*euler(0,0,0)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(1.57,0,-1)*euler(0,0,0)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- RH.C0=cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,0,-.05)
- LH.C0=cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,0,.1)
- swait(20)
- Reload()
- attack=false
- end
- function Reload()
- for i=0,1,0.05 do
- swait()
- wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.2)
- Neck.C0=clerp(Neck.C0,necko*euler(0,.2,0)*euler(-.3,0,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*cf(0,.4,0),.2)
- RW.C0=clerp(RW.C0,cf(1.1,0.4,-.7)*euler(1.5,0,-.6)*euler(0,1.2,0),.2)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.7)*euler(1.1,0,.8)*euler(0,0,0),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.1,-.05),.2)
- LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.5,.1),.2)
- end
- so("10209881",prt5,1,1)
- for i=0,1,0.05 do
- swait()
- wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.2)
- Neck.C0=clerp(Neck.C0,necko*euler(0,.3,0)*euler(-.2,0,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*cf(0,.4,0),.2)
- RW.C0=clerp(RW.C0,cf(.9,0.4,-.7)*euler(1.8,0,-.9)*euler(0,1.2,0),.2)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.7)*euler(1.1,0,.8)*euler(0,0,0),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.1,-.05),.2)
- LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.5,.1),.2)
- end
- for i=0,1,0.05 do
- swait()
- wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.2)
- Neck.C0=clerp(Neck.C0,necko*euler(0,.3,0)*euler(-.2,0,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*cf(0,.4,0),.2)
- RW.C0=clerp(RW.C0,cf(1.1,0.4,-.7)*euler(1.5,0,-.6)*euler(0,1.2,0),.2)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.7)*euler(1.1,0,.8)*euler(0,0,0),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.1,-.05),.2)
- LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.5,.1),.2)
- end
- end
- local BodGy=Instance.new("BodyGyro")
- BodGy.maxTorque=Vector3.new(0,4e+005,0)
- BodGy.P=2000
- BodGy.D=100
- BodGy.Name="SticiaGyro"
- CF=RootPart.CFrame
- BodGy.Parent=RootPart
- BodGy.cframe=CF
- wait()
- print("Sticia spawned.")
- function StunAnim()
- attack=true
- Stunned.Value=true
- showDamage(Character,"Stunned","Interrupt")
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- for i = 0, 1, 0.3 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, 0, 0, -0.989992499, -0.0280361772, -0.138307661, 1.64334025e-07, 0.980066597, -0.19866927, 0.141120613, -0.196681112, -0.970258534) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(3.57627869e-07, 1.49003351, -0.0993347019, 0.87758261, -2.33123387e-09, 0.479425579, -0.095247142, 0.980066597, 0.174348697, -0.469869018, -0.198669285, 0.860089421) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.98177886, 0.368916392, 0.0265715867, 0.267499089, -0.963558137, 5.96046448e-08, 0.944351137, 0.262166917, 0.198669344, -0.191429451, -0.0531438887, 0.980066776) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.00529039, 0.251174599, -0.787523448, 0.916459501, -0.389418304, -0.0919530243, 0.125345141, 0.497651309, -0.858272552, 0.379987657, 0.775046289, 0.504888892) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.958246112, -1.43839157, -0.295145094, -0.140891492, -0.458245724, 0.877587914, 0.259346902, 0.838391423, 0.479415357, -0.955452323, 0.295145303, 0.000722527504) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.698669672, -1.78006673, 0.000158040493, 0.000796169043, 0.198669255, -0.980066359, 2.60770321e-08, 0.980066597, 0.198669314, 0.999999881, -0.000158160925, 0.000780194998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- end
- for i = 0, 1, 0.3 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0.049157355, -0.358602226, -0.344849408, -0.989992261, -0.101225495, -0.0983273685, -3.23392051e-08, 0.696764112, -0.717300236, 0.141120076, -0.71012187, -0.689790964) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-2.60770321e-07, 1.47767019, -0.147753879, 0.877582073, -2.98023224e-08, 0.479425222, -0.141673803, 0.955340385, 0.259332091, -0.458014369, -0.295507491, 0.838389575) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.98177648, 0.40680635, 0.095938459, 0.267501116, -0.963556945, 1.10268593e-06, 0.671372712, 0.186386347, 0.717299461, -0.691159427, -0.191877693, 0.69676435) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.841339767, 0.373754025, -0.724691212, 0.693263769, -0.717317998, -0.0695643127, 0.16559422, 0.252493203, -0.953323483, 0.701400518, 0.649385095, 0.293828428) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.896139264, -1.32430112, -0.564324439, -0.270047665, -0.396137089, 0.87758261, 0.495518774, 0.7243011, 0.479426086, -0.825552821, 0.564325333, 0.00069668889) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.42311722, -1.56103909, 0.644129694, -0.0636428595, -0.0768834427, -0.994997025, 0.64097774, 0.761039615, -0.09980914, 0.764903784, -0.644129753, 0.000848561525) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- end
- for i = 0, 1, 0.3 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0.000560329005, -1.99766433, -0.00393220689, -0.989988863, -0.141120315, -0.000280523673, -8.22125003e-07, 0.0019953521, -0.999996185, 0.141120553, -0.989988565, -0.00197200663) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-2.10106373e-06, 1.47765911, -0.147766709, 0.542267144, -3.27825546e-06, -0.840197563, 0.248290822, 0.955335617, 0.160244569, 0.802674174, -0.295517474, 0.518050015) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.98175132, 0.406811565, 0.0959433764, 0.267496616, -0.963551521, -2.98023224e-08, 0.671317458, 0.186368391, 0.717351019, -0.691214025, -0.191892117, 0.696701765) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.85731494, 0.373431265, -0.326122075, 0.69500041, 0.715610862, -0.0697162151, -0.351065189, 0.253130376, -0.901481032, -0.627465308, 0.651007295, 0.427161932) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.66446209, -1.40886486, -0.564479828, -0.111510336, -0.164483458, 0.980041862, 0.553371668, 0.80887568, 0.198721677, -0.825426996, 0.56449002, 0.000823596492) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.595084071, -1.75052953, 0.29569602, 0.0302553326, 0.0950923562, -0.995001316, 0.294130892, 0.95053786, 0.0997870862, 0.955280066, -0.295688361, 0.000788042438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- end
- local gairost=Instance.new("BodyGyro")
- gairost.Parent=RootPart
- gairost.maxTorque=Vector3.new(4e+005,0,4e+005)*math.huge
- gairost.P=20e+003
- gairost.cframe=cf(0,0,0)
- for i = 0, 1, 0.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-3.40942188e-06, -2.49999952, -0.0019912431, -0.999998927, -0.00159263611, -1.26809755e-06, -2.91038305e-11, 0.000796253444, -0.999999762, 0.00159245729, -0.999998569, -0.000796306645) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(2.98118209e-07, 1.50000083, 2.00472286e-07, 0.000796425506, 1.1920929e-07, -0.999999881, 5.45405783e-08, 1.00000024, -1.49011612e-07, 0.999999702, 5.4238626e-08, 0.000796425389) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.98880923, 0.40064168, 0.034583699, 0.0707328916, -0.977613211, 0.198168695, 0.000792048872, 0.198720574, 0.980056584, -0.997495592, -0.0691657439, 0.0148300845) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-2.00000906, 0.499978811, -0.000398084521, 0.000791076571, 1.00000167, -3.33786011e-06, -0.0707348287, 5.12003899e-05, -0.997496963, -0.997496724, 0.000791037397, 0.0707330182) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.795521617, -1.95533705, 0.000233329833, -0.457320899, -0.295520812, 0.838764668, -0.141680807, 0.955336452, 0.259343952, -0.877943575, -0.000233375424, -0.478764772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.599834263, -1.99500465, 7.92965293e-05, 0.198457003, 0.0998335481, -0.975012064, -0.0198337585, 0.995004416, 0.097843349, 0.979909062, -7.94311345e-05, 0.19944559) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- end
- for i=1,150 do
- swait()
- gairost.cframe=RootPart.CFrame
- end
- for i = 0, 1, 0.1 do
- swait()
- Stun.Value=0
- gairost.cframe=RootPart.CFrame
- PlayAnimationFromTable({
- CFrame.new(0.81780076, -1.68294537, -0.706329942, -0.653645933, 0.636826098, 0.408900231, -9.225094e-07, 0.540300608, -0.84147203, -0.756800413, -0.550025225, -0.353164703) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(2.56018126e-07, 1.50000024, -4.73648925e-08, 0.98006779, 1.49011612e-08, 0.198662654, 2.98023224e-08, 1, -2.98023224e-08, -0.198662758, 0, 0.98006773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.91234863, 0.400455028, 0.26468581, 0.432599187, -0.824698448, -0.364321291, 0.824985623, 0.199090198, 0.52892518, -0.363671064, -0.529372334, 0.766490698) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.40066779, 0.322432995, -0.456730485, 0.98006773, -0.198662803, 9.68575478e-07, 0.0719877779, 0.355134219, -0.93203938, 0.185161144, 0.913461804, 0.362356961) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.594106376, -1.93509674, -0.341670871, -0.53629458, -0.0941065028, 0.838768125, 0.241528273, 0.935096323, 0.259343415, -0.808734775, 0.341670662, -0.478757739) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.38694495, -1.55429649, -0.175390571, 0.191234976, -0.113055296, -0.975011468, 0.826548398, 0.554296315, 0.0978437364, 0.529383361, -0.824605286, 0.199446559) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- end
- gairost.Parent=nil
- dec.Parent=nil
- Stun.Value=0
- Stunned.Value=false
- attack=false
- for i=1,10 do
- swait()
- Stun.Value=0
- end
- end
- --[[
- Neck.C0=clerp(Neck.C0,necko*euler(0,.5,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*cf(0,.4,0),.3)
- RW.C0=clerp(RW.C0,cf(1.3,0.4,-.5)*euler(1.2,0,-.4)*euler(0,-1.57,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.2,0,1)*euler(0,0,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.1,-.05),.3)
- LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.5,.1),.3)
- ]]
- function SpinShot()
- attack=true
- for i=0,1,0.1 do
- swait()
- wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(0,.7,0)*euler(-.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,1,0)*cf(0,.2,-.8),.3)
- RW.C0=clerp(RW.C0,cf(1.1,0.4,-.7)*euler(1.2,0,-.4)*euler(0,-1.57,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.2,0,.8)*euler(0,0,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.2,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.7,-.1),.3)
- end
- n=0
- so("203691492",prt5,.2,1.8)
- hitboxing=true
- hitbox.Parent=modelzorz
- hitbox.Size=vt(1,6,1)
- hitboxCF=prt5.CFrame
- hitbox.CFrame=hitboxCF
- for i=0,1,0.1 do
- swait()
- hitboxCF=prt5.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,3,5,math.random(20,30),"Normal",RootPart,.2,2,math.random(6,8),nil,true,false)
- wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(0,.7,0)*euler(-.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,1,0)*cf(0,.2,-.8),.3)
- RootJoint.C1=euler(0,n,0)
- n=n+.6
- RW.C0=clerp(RW.C0,cf(1.1,0.4,-.7)*euler(1.2,0,-.4)*euler(0,-1.57,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,1)*euler(0,0,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.2,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.7,-.1),.3)
- end
- local thePOS=nil
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- thePOS=target.Position
- end
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.4,-1,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.2,0),.3)
- RootJoint.C1=clerp(RootJoint.C1,euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.3,0.5,-.5)*euler(1.4,0,.4)*euler(0,-1.57,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-.2,0.3,-.5)*euler(1.57,0,1)*euler(0,0,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.4,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.7,-.8,-.2)*euler(0,-1.57,0)*euler(0,.7,.1)*euler(.2,0,0),.3)
- end
- if math.random(1,5)==1 then
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- thePOS=target.Position
- end
- end
- hitboxing=false
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil and thePOS~=nil then
- ref=part(3,workspace,0,1,BrickColor.new("White"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=prt6.CFrame*cf(0,-1.2,0)
- game:GetService("Debris"):AddItem(ref,1)
- so("10209875",ref,1,1)
- --tehCF=cf(ref.Position,target.Position)
- spread=vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*(ref.Position-target.Position).magnitude/100
- tehCF=cf((ref.Position+thePOS)/2,thePOS+spread)
- hit,pos=rayCast(ref.Position,tehCF.lookVector,999,Character)
- local mag=(ref.Position-pos).magnitude
- MagicCylinder3(BrickColor.new("Bright yellow"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),.6,mag*5,.6,.01,.01,.01,0.02)
- MagicRing(BrickColor.new("Bright yellow"),ref.CFrame*euler(1.57,0,0),.5,.5,.5,.1,.1,.1,.05)
- MagicWave2(BrickColor.new("Bright yellow"),ref.CFrame*euler(3.14,0,0),.2,.2,.2,.05,.1,.05,.05)
- if hit~=nil then
- snipe=true
- Damagefunc(hit,8,20,math.random(10,15),"Normal",RootPart,0,1,math.random(5,7),nil,nil,true)
- snipe=false
- end
- Torso.Velocity=RootPart.CFrame.lookVector*-80
- for i=0,1,0.03 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.4,-1,0)*euler(.2,0,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.2,0),.2)
- RootJoint.C1=clerp(RootJoint.C1,euler(0,0,0),.2)
- RW.C0=clerp(RW.C0,cf(1.2,0.5,-.6)*euler(1.4,0,0)*euler(0,-1.57,0)*euler(0,0,-.7),.2)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- LW.C0=clerp(LW.C0,cf(-.6,0.5,-.5)*euler(1.57,0,1)*euler(.3,0,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.4,0,0)*euler(0,0,.2),.2)
- LH.C0=clerp(LH.C0,cf(-.7,-.8,-.2)*euler(0,-1.57,0)*euler(0,.7,.1)*euler(.2,0,0)*euler(.2,0,0),.2)
- end
- Reload()
- end
- RootJoint.C1=euler(0,0,0)
- attack=false
- end
- GetDist = function(Part1, Part2, magni)
- local targ = Part1.Position - Part2.Position
- local mag = targ.magnitude
- if mag <= magni then
- return true
- else
- return false
- end
- end
- effect2 = function(Color, Ref, LP, P1, returnn)
- if LP == nil or P1 == nil then
- return
- end
- local effectsmsh = Instance.new("CylinderMesh")
- effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
- effectsmsh.Name = "Mesh"
- local effectsg = Instance.new("Part")
- NoOutline(effectsg)
- effectsg.formFactor = 3
- effectsg.CanCollide = false
- effectsg.Name = "Eff"
- effectsg.Locked = true
- effectsg.Anchored = true
- effectsg.Size = Vector3.new(0.5, 1, 0.5)
- effectsg.Parent = workspace
- effectsmsh.Parent = effectsg
- effectsg.BrickColor = BrickColor.new(Color)
- effectsg.Reflectance = Ref
- local point1 = P1
- local mg = (LP.p - point1.p).magnitude
- effectsg.Size = Vector3.new(0.5, mg, 0.5)
- effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
- effectsmsh.Scale = Vector3.new(0.6, 1, 0.6)
- game:GetService("Debris"):AddItem(effectsg, 2)
- if returnn then
- return effectsg
- end
- if not returnn then
- table.insert(Effects, {effectsg, "Cylinder", 0.05, 0.01, 0, 0.01, effectsmsh})
- end
- end
- function Precise()
- attack=true
- for i = 0, 2, 0.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0.0611368529, -0.257900625, 0.0436510965, 0.347360253, -9.16138845e-08, -0.937731802, 0.188686728, 0.97955513, 0.0698942095, 0.918550611, -0.20121491, 0.340254277) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-7.40407359e-06, 1.4999963, -7.50456252e-07, 0.348898262, -9.23871994e-07, 0.937160611, -2.54312181e-06, 1, 1.93715096e-06, -0.937160552, -3.07708979e-06, 0.348898232) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.481282055, 0.652927518, -0.637574792, 0.158423424, 0.67579174, 0.719866395, 0.986862183, -0.131784737, -0.093466036, 0.0317038149, 0.72521615, -0.687791109) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.66740441, 0.708322048, -0.252847135, -0.166986838, 0.935331047, -0.311883241, -0.979717374, -0.192946553, -0.05408746, -0.110766463, 0.296525538, 0.948579669) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.80642724, -2.01029491, 0.11350587, 0.947134137, -0.320239782, -0.019582808, 0.320239782, 0.939880073, 0.118624881, -0.0195829868, -0.118624851, 0.992746055) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.78374362, -1.69975388, -0.15899235, 0.751372516, -0.0540148914, 0.657663763, 0.0274387598, 0.998339653, 0.0506466478, -0.659307539, -0.0200090334, 0.75160718) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .15, false)
- wld1.C0 = clerp(wld1.C0, CFrame.new(2.99374869e-06, -0.618395329, 0.376671195, -2.12080777e-05, -2.69711018e-06, 1.0000006, 0.847904086, -0.530150712, 1.65477395e-05, 0.530150115, 0.847904801, 1.3532117e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- end
- local thePOS=nil
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- thePOS=target.Position
- target = findNearestTorso(RootPart.Position)
- if GetDist(RootPart, target, 50) == true then
- RootPart.CFrame = cf(RootPart.Position, target.Position)
- so("199146359", Handle, 1, 1)
- local Point = Handle.CFrame * cf(0, 0, 0)
- local Point2 = hitbox.CFrame * cf(0, 0, 0)
- RootPart.CFrame = cf(RootPart.Position, target.Position)
- RootPart.CFrame = RootPart.CFrame * cf(0, 0, -40)
- ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
- ref.Anchored = true
- ref.CFrame = RootPart.CFrame * cf(0, 50, 0)
- game:GetService("Debris"):AddItem(ref, 1)
- hit = rayCast(ref.Position, CFrame.new(ref.Position, ref.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
- if hit ~= hitfloor then
- RootPart.CFrame = cf(pos) * cf(0, 1, 0)
- RootPart.CFrame = cf(RootPart.Position, target.Position) * euler(0, 3.14, 0)
- end
- Damagefunc(target, 9, 15, 0, "Shatter", RootPart, 0, 1, (math.random(5, 8)), nil, nil, true)
- local LastPoint = Handle.CFrame * cf(0, 0, 0)
- local LastPoint2 = hitbox.CFrame * cf(0, 0, 0)
- effect2("White", 0, LastPoint, Point)
- effect2("White", 0, LastPoint2, Point2)
- hitnum = math.random(1, 6)
- if hitnum == 1 then
- so("199149137", hit, 1, 1)
- elseif hitnum == 2 then
- so("199149186", hit, 1, 1)
- elseif hitnum == 3 then
- so("199149221", hit, 1, 1)
- elseif hitnum == 4 then
- so("199149235", hit, 1, 1)
- elseif hitnum == 5 then
- so("199149269", hit, 1, 1)
- elseif hitnum == 6 then
- so("199149297", hit, 1, 1)
- end
- for i = 0, 1.5, 0.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0.0694815814, -0.214549556, 0.0366792493, -0.0248994324, -0.0592816435, 0.997930646, 0.00527888024, 0.998226404, 0.0594311394, -0.999673724, 0.00674663484, -0.0245414227) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.0742943436, 1.56963074, 0.0360269733, -0.104094937, 0.188081101, -0.976621628, -0.0851342827, 0.976667106, 0.197164029, 0.990916908, 0.103667751, -0.0856539384) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.71172285, 0.533444285, -0.0333994888, 0.066453293, -0.99759537, 0.0196847059, 0.988102734, 0.0630529895, -0.14027673, 0.138698235, 0.0287723504, 0.989916623) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.63649857, 0.447606951, -0.372464895, 0.181963906, 0.9182868, -0.35162279, -0.980216324, 0.141076088, -0.138829559, -0.0778797716, 0.36992833, 0.92579037) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.323828787, -1.85769737, -0.0890697613, -0.0339345708, 0.191831693, -0.9808411, -0.0894305035, 0.97688657, 0.19415231, 0.995414793, 0.0943055749, -0.0159946177) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.01143396, -1.94578791, -0.0411248803, -0.0548802316, 0.599948764, -0.798153996, 0.0103841312, 0.799658418, 0.60036552, 0.998438954, 0.0246600546, -0.0501153693) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- wld1.C0 = clerp(wld1.C0, CFrame.new(-5.55515726e-07, -0.718169928, 0.08414305, -2.83643603e-05, -7.4650161e-06, 1.00000012, 0.999438763, -0.0335023664, 2.81110406e-05, 0.0335023776, 0.999438703, 8.42520967e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- end
- end
- end
- attack=false
- end
- function Bash()
- attack=true
- for i=0,1,0.1 do
- swait()
- wld1.C0=clerp(wld1.C0,euler(3.14,0,0)*cf(0,.8,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(-.2,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.5,0)*cf(0,.2,0),.3)
- RW.C0=clerp(RW.C0,cf(1.3,0.4,-.5)*euler(1.2,0,-.4)*euler(0,-1.57,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1,0,.5)*euler(0,-.5,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.6,-.9,-.3)*euler(0,1.57,0)*euler(0,-.5,.1),.3)
- LH.C0=clerp(LH.C0,cf(-.5,-.8,-.4)*euler(0,-1.57,0)*euler(0,-.5,.1),.3)
- end
- so("203691447",prt5,.2,1.8)
- hitboxing=true
- hitbox.Parent=modelzorz
- hitbox.Size=vt(1,6,1)
- hitboxCF=prt5.CFrame
- hitbox.CFrame=hitboxCF
- for i=0,1,0.1 do
- swait()
- hitboxCF=prt5.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,2,5,math.random(20,30),"Normal",RootPart,.2,2,math.random(6,8),nil,true,false)
- wld1.C0=clerp(wld1.C0,euler(3.14,0,0)*cf(0,.8,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(0,.5,0)*euler(.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*cf(0,.2,2)*euler(.1,0,0),.3)
- RW.C0=clerp(RW.C0,cf(.2,0.4,-.5)*euler(1.6,0,-1)*euler(0,-1.57,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.8,0,-.1)*euler(0,-.5,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.6,-1,0)*euler(0,1.57,0)*euler(0,-.5,-.5)*euler(-.2,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(0,-1.57,0)*euler(0,.5,.3)*euler(-.4,0,0),.3)
- end
- hitboxing=false
- attack=false
- end
- function Push()
- attack=true
- Torso.Velocity=RootPart.CFrame.lookVector*80
- so("203691467",prt5,.2,1.6)
- hitboxing=true
- hitbox.Parent=modelzorz
- hitbox.Size=vt(1,6,1)
- hitboxCF=prt5.CFrame
- hitbox.CFrame=hitboxCF
- for i=0,1,0.05 do
- swait()
- hitboxCF=prt5.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,3,3,6,math.random(30,50),"Normal",RootPart,.2,2,math.random(6,8),nil,true,false)
- wld1.C0=clerp(wld1.C0,euler(0,-.2,-1.57)*cf(-.4,1,-.2),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.1,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*cf(0,.2,0),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,-.3)*euler(2.1,0,0)*euler(0,1.57,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.77,0,0)*euler(0,0,0),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.5,-.9,0)*euler(0,1.57,0)*euler(0,0,-.2),.4)
- LH.C0=clerp(LH.C0,cf(-.5,-.8,-.4)*euler(0,-1.57,0)*euler(0,0,.1),.4)
- end
- hitboxing=false
- attack=false
- end
- function SpinNoScopeBackwards()
- attack=true
- for i=0,1,0.1 do
- swait()
- wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,1,0)*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.3,0.4,-.5)*euler(1.2,0,-.4)*euler(0,-1.57,0),.1)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
- LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.2,0,1)*euler(0,0,0),.1)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
- RH.C0=clerp(RH.C0,cf(.6,-.5,-.5)*euler(-.2,1.3,0),.3)
- LH.C0=clerp(LH.C0,cf(-.6,-.5,-.5)*euler(-.2,-1.3,0),.3)
- end
- n=0
- so("158149887",Torso,.5,1)
- for i=0,1,0.1 do
- swait()
- Torso.Velocity=RootPart.CFrame.lookVector*-80
- wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,-2,0)*euler(0,0,0),.3)
- RootJoint.C1=euler(0,n,0)
- n=n+.6
- RW.C0=clerp(RW.C0,cf(1.3,0.4,-.5)*euler(1.2,0,-.4)*euler(0,-1.57,0),.1)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
- LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.2,0,1)*euler(0,0,0),.1)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
- RH.C0=clerp(RH.C0,cf(.6,-1,-.2)*euler(-.1,1.3,0),.3)
- LH.C0=clerp(LH.C0,cf(-.6,-1,-.2)*euler(-.1,-1.3,0),.3)
- end
- local thePOS=nil
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- thePOS=target.Position
- end
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.4,-1,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.2,0),.3)
- RootJoint.C1=clerp(RootJoint.C1,euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.3,0.5,-.5)*euler(1.4,0,.4)*euler(0,-1.57,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-.2,0.3,-.5)*euler(1.57,0,1)*euler(0,0,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.4,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.7,-.8,-.2)*euler(0,-1.57,0)*euler(0,.7,.1)*euler(.2,0,0),.3)
- end
- if math.random(1,5)==1 then
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- thePOS=target.Position
- end
- end
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil and thePOS~=nil then
- ref=part(3,workspace,0,1,BrickColor.new("White"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=prt6.CFrame*cf(0,-1.2,0)
- game:GetService("Debris"):AddItem(ref,1)
- so("10209875",ref,1,1)
- --tehCF=cf(ref.Position,target.Position)
- spread=vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)*(ref.Position-target.Position).magnitude/100
- tehCF=cf((ref.Position+thePOS)/2,thePOS+spread)
- hit,pos=rayCast(ref.Position,tehCF.lookVector,999,Character)
- local mag=(ref.Position-pos).magnitude
- MagicCylinder3(BrickColor.new("Bright yellow"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),.6,mag*5,.6,.01,.01,.01,0.02)
- MagicRing(BrickColor.new("Bright yellow"),ref.CFrame*euler(1.57,0,0),.5,.5,.5,.1,.1,.1,.05)
- MagicWave2(BrickColor.new("Bright yellow"),ref.CFrame*euler(3.14,0,0),.2,.2,.2,.05,.1,.05,.05)
- if hit~=nil then
- snipe=true
- Damagefunc(hit,8,20,math.random(10,15),"Normal",RootPart,0,1,math.random(5,7),nil,nil,true)
- snipe=false
- end
- Torso.Velocity=RootPart.CFrame.lookVector*-80
- for i=0,1,0.03 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.4,-1,0)*euler(.2,0,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.2,0),.2)
- RootJoint.C1=clerp(RootJoint.C1,euler(0,0,0),.2)
- RW.C0=clerp(RW.C0,cf(1.2,0.5,-.6)*euler(1.4,0,0)*euler(0,-1.57,0)*euler(0,0,-.7),.2)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- LW.C0=clerp(LW.C0,cf(-.6,0.5,-.5)*euler(1.57,0,1)*euler(.3,0,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.4,0,0)*euler(0,0,.2),.2)
- LH.C0=clerp(LH.C0,cf(-.7,-.8,-.2)*euler(0,-1.57,0)*euler(0,.7,.1)*euler(.2,0,0)*euler(.2,0,0),.2)
- end
- Reload()
- end
- RootJoint.C1=euler(0,0,0)
- attack=false
- end
- function SpinNoScopeForwards()
- attack=true
- for i=0,1,0.1 do
- swait()
- wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,1,0)*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.3,0.4,-.5)*euler(1.2,0,-.4)*euler(0,-1.57,0),.1)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
- LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.2,0,1)*euler(0,0,0),.1)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
- RH.C0=clerp(RH.C0,cf(.6,-.5,-.5)*euler(-.2,1.3,0),.3)
- LH.C0=clerp(LH.C0,cf(-.6,-.5,-.5)*euler(-.2,-1.3,0),.3)
- end
- n=0
- so("158149887",Torso,.5,1)
- for i=0,1,0.1 do
- swait()
- Torso.Velocity=RootPart.CFrame.lookVector*80
- wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,-2,0)*euler(0,0,0),.3)
- RootJoint.C1=euler(0,n,0)
- n=n+.6
- RW.C0=clerp(RW.C0,cf(1.3,0.4,-.5)*euler(1.2,0,-.4)*euler(0,-1.57,0),.1)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
- LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.5)*euler(1.2,0,1)*euler(0,0,0),.1)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
- RH.C0=clerp(RH.C0,cf(.6,-1,-.2)*euler(-.1,1.3,0),.3)
- LH.C0=clerp(LH.C0,cf(-.6,-1,-.2)*euler(-.1,-1.3,0),.3)
- end
- local thePOS=nil
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- thePOS=target.Position
- end
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.4,-1,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.2,0),.3)
- RootJoint.C1=clerp(RootJoint.C1,euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.3,0.5,-.5)*euler(1.4,0,.4)*euler(0,-1.57,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-.2,0.3,-.5)*euler(1.57,0,1)*euler(0,0,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(.2,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.7,-.8,-.2)*euler(0,-1.57,0)*euler(0,.7,.1)*euler(-.4,0,0),.3)
- end
- if math.random(1,5)==1 then
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- thePOS=target.Position
- end
- end
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil and thePOS~=nil then
- ref=part(3,workspace,0,1,BrickColor.new("White"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=prt6.CFrame*cf(0,-1.2,0)
- game:GetService("Debris"):AddItem(ref,1)
- so("10209875",ref,1,1)
- --tehCF=cf(ref.Position,target.Position)
- spread=vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)*(ref.Position-target.Position).magnitude/100
- tehCF=cf((ref.Position+thePOS)/2,thePOS+spread)
- hit,pos=rayCast(ref.Position,tehCF.lookVector,999,Character)
- local mag=(ref.Position-pos).magnitude
- MagicCylinder3(BrickColor.new("Bright yellow"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),.6,mag*5,.6,.01,.01,.01,0.02)
- MagicRing(BrickColor.new("Bright yellow"),ref.CFrame*euler(1.57,0,0),.5,.5,.5,.1,.1,.1,.05)
- MagicWave2(BrickColor.new("Bright yellow"),ref.CFrame*euler(3.14,0,0),.2,.2,.2,.05,.1,.05,.05)
- if hit~=nil then
- snipe=true
- Damagefunc(hit,8,20,math.random(10,15),"Normal",RootPart,0,1,math.random(5,7),nil,nil,true)
- snipe=false
- end
- Torso.Velocity=RootPart.CFrame.lookVector*-60
- for i=0,1,0.03 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.4,-1,0)*euler(.2,0,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.2,0),.2)
- RootJoint.C1=clerp(RootJoint.C1,euler(0,0,0),.2)
- RW.C0=clerp(RW.C0,cf(1.2,0.5,-.6)*euler(1.4,0,0)*euler(0,-1.57,0)*euler(0,0,-.7),.2)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- LW.C0=clerp(LW.C0,cf(-.6,0.5,-.5)*euler(1.57,0,1)*euler(.3,0,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.4,-.05)*euler(-.4,0,0)*euler(0,0,.2),.2)
- LH.C0=clerp(LH.C0,cf(-.7,-.8,-.2)*euler(0,-1.57,0)*euler(0,.7,.1)*euler(.2,0,0)*euler(.2,0,0),.2)
- end
- Reload()
- end
- RootJoint.C1=euler(0,0,0)
- attack=false
- 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)
- 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 = 1000
- 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) then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if btarget.Value==nil 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
- else
- if btarget.Value.Parent~=nil then
- if btarget.Value:findFirstChild("Torso")~=nil then
- if btarget.Value:findFirstChild("Humanoid")~=nil then
- if btarget.Value.Humanoid.Health<=0 then
- btarget.Value=nil
- end
- end
- if btarget.Value~=nil then
- torso=btarget.Value.Torso
- dist = (torso.Position - pos).magnitude
- end
- end
- else
- btarget.Value=nil
- end
- end
- end
- end
- end
- return torso,dist
- end]]
- findNearestTorso = function(pos)
- local list = (game.Workspace:children())
- local torso = nil
- local dist = 1000
- local temp, human, temp2 = nil, nil, nil
- for x = 1, #list do
- temp2 = list[x]
- if temp2.className == "Model" and temp2.Name ~= Character.Name then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
- local dohit = true
- if dohit == true then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso, dist
- end
- function findRandomTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- 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~="Vanta") 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
- torso = temp
- table.insert(list2,temp)
- 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)
- 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:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- if hit.Parent:findFirstChild("Stats")~=nil then if hit.Parent.Stats:findFirstChild("Boss")~=nil then if hit.Parent.Stats.Boss.Value==true then return end end end
- RecentEnemy.Value=hit.Parent
- 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 and snipe==false then
- hitnum=math.random(1,3)
- if hitnum==1 then so("199149321",hit,1,1)
- elseif hitnum==2 then so("199149338",hit,1,1)
- elseif hitnum==3 then so("199149367",hit,1,1)
- elseif hitnum==4 then so("199149409",hit,1,1)
- elseif hitnum==5 then so("199149452",hit,1,1)
- end
- elseif ranged==false or ranged==nil and blocked~=true and snipe==false then
- hitnum=math.random(1,3)
- if hitnum==1 then so("199149137",hit,1,1)
- elseif hitnum==2 then so("199149186",hit,1,1)
- elseif hitnum==3 then so("199149221",hit,1,1)
- elseif hitnum==4 then so("199149235",hit,1,1)
- elseif hitnum==5 then so("199149269",hit,1,1)
- elseif hitnum==6 then so("199149297",hit,1,1)
- 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")
- if snipe==false then
- hitnum=math.random(1,2)
- if hitnum==1 then so("199148933",hit,1,1)
- elseif hitnum==2 then so("199148947",hit,1,1)
- end
- end
- enblock.Value=false
- else
- Damage=math.floor(Damage)
- h.Health=h.Health-Damage
- --[[coroutine.resume(coroutine.create(function(Hum,Dam)
- damageFunc:InvokeServer(Hum,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
- so("199146069", hit, 1.5, 1)
- for i=1,10 do
- BreakEffect(BrickColor.new("White"),hit.CFrame,10,1,1)
- 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("Black").Color
- elseif Dealt<3 then
- damgui.TextColor3=BrickColor.new("White").Color
- elseif Dealt>=3 and Dealt<20 then
- damgui.TextColor3=BrickColor.new("Bright yellow").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("New Yeller").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=workspace
- c.CanCollide=false
- end
- function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
- 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=="Model" and ranged~=true then
- head=d:findFirstChild("Hitbox")
- if d.Parent==Character then break end
- if head~=nil then
- local targ=head.Position-Part.Position
- local mag=targ.magnitude
- if mag<=magni then
- ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=cf(head.Position)
- game:GetService("Debris"):AddItem(ref,1)
- hitnum=math.random(1,5)
- if hitnum==1 then so("199148971",ref,1,1)
- elseif hitnum==2 then so("199149025",ref,1,1)
- elseif hitnum==3 then so("199149072",ref,1,1)
- elseif hitnum==4 then so("199149109",ref,1,1)
- elseif hitnum==5 then so("199149119",ref,1,1)
- end
- StaggerHit.Value=true
- end
- end
- end]]
- 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 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 onKeyDown(key)
- if attack==false then
- if key=="z" then
- Precise()
- --[[elseif key=="x" then
- Bash()
- elseif key=="c" then
- SpinShot()
- elseif key=="v" then
- SpinNoScopeForwards()
- elseif key == "b" then
- SpinNoScopeBackwards()]]
- elseif key == "q" then
- StunAnim()
- end
- end
- end
- Mouse.KeyDown:connect(onKeyDown)
- local stunnum=0
- local animnum=0
- local idle=1
- local animlimit=5
- local coln=0
- local col="White"
- local target,distance=nil,nil
- local attacking=false
- local stunanim=false
- while Humanoid.Health>0 do
- swait()
- if hitboxing==true then
- hitbox.Parent=modelzorz
- else
- hitbox.Parent=nil
- end
- coln=coln+1
- if coln>=2 then
- coln=0
- if col=="White" then
- col="Really black"
- else
- col="White"
- end
- end
- for _,v in pairs(modelzorz:children()) do
- if v.className=="Part" then
- v.BrickColor=BrickColor.new(col)
- end
- end
- --[[print(target)
- print(distance)]]
- --[[for _,c in pairs(Character:children()) do
- for _,v in pairs(c:children()) do
- if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
- if v.Name~="SiegmundGyro" and v.Name~="SiegmundPos" then
- print("dai")
- v.Parent=nil
- end
- end
- end
- end]]
- coroutine.resume(coroutine.create(function()
- if start==false then
- start=true
- StartAnim()
- end
- end))
- passive3.Value=-.6
- --[[local mag = (Torso.Position-Character.Torso.Position).magnitude
- if mag >= 36 then
- passive3.Value=-.6
- else
- passive3.Value=-.1
- end]]
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- if attack==false then
- BodGy.cframe=cf(Torso.Position,Mouse.Hit.p)
- end
- numb1=RootPart.Position.y
- numb2=target.Position.y
- --[[if numb2-numb1>=5 or numb2-numb1<=-5 then
- if distance<=30 then
- if attack==false then
- attackrand=math.random(1,20)
- if attackrand==1 then
- coroutine.resume(coroutine.create(function()
- RecentEnemy.Value=nil
- --JumpKick()
- end))
- end
- end
- end
- end
- if distance>60 then --far range
- Humanoid:MoveTo(target.Position)
- run.Parent=Decrease
- if attack==false then
- attackrand=math.random(1,20)
- if attackrand==1 then
- coroutine.resume(coroutine.create(function()
- RecentEnemy.Value=nil
- d=math.random(1,2)
- if d==1 then
- SpinShot()
- elseif d==2 then
- SpinNoScopeForwards()
- end
- end))
- end
- end
- elseif distance<=60 and distance>=20 then --mid range
- move=distance*3
- Humanoid:MoveTo(RootPart.Position)
- run.Parent=nil
- if attack==false then
- attackrand=math.random(1,10)
- if attackrand==1 then
- coroutine.resume(coroutine.create(function()
- RecentEnemy.Value=nil
- d=math.random(1,2)
- if d==1 then
- SpinShot()
- elseif d==2 then
- SpinNoScopeBackwards()
- end
- end))
- end
- end
- else --close range
- move=10
- Humanoid:MoveTo(RootPart.Position)
- run.Parent=nil
- --run.Parent=nil
- if attack==false then
- attackrand=math.random(1,20)
- if distance<=5 then
- attackrand=math.random(1,10)
- end
- if attackrand==1 then
- coroutine.resume(coroutine.create(function()
- RecentEnemy.Value=nil
- d=math.random(1,2)
- if distance<=5 then
- d=math.random(1,4)
- end
- if d==1 then
- SpinShot()
- elseif d==2 then
- SpinNoScopeBackwards()
- elseif d==3 then
- Bash()
- elseif d==4 then
- Push()
- end
- end))
- end
- end
- end]]
- end
- if Mvmt.Value<0 or Stun.Value>=100 or attack==true then
- Humanoid.WalkSpeed=0
- if jump==true then
- Humanoid.WalkSpeed=16*Mvmt.Value
- end
- else
- Humanoid.WalkSpeed=16*Mvmt.Value
- end
- if Stun.Value>=100 and stunanim==false then
- coroutine.resume(coroutine.create(function()
- stunanim=true
- while attack==true do
- swait()
- end
- StunAnim()
- Stun.Value=0
- stunanim=false
- end))
- end
- local stunnum2=80
- if stunnum>=stunnum2 then
- if Stun.Value>0 then
- Stun.Value=Stun.Value-1
- end
- stunnum=0
- end
- stunnum=stunnum+1
- 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
- if c:findFirstChild("Duration")~=nil then
- c.Duration.Value=c.Duration.Value-1
- 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=1-decreaseatk
- if Atk.Value<=0 then
- Atk.Value=0
- end
- Def.Value=1-decreasedef
- if Def.Value<=0 then
- Def.Value=0.01
- end
- Mvmt.Value=1-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
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(-.1,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.5,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
- LH.C0=clerp(LH.C0,cf(-.5,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- if attack==false then
- wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,0.2),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-0.2),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0.4,1.57,0),.2)
- LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(-0.2,-1.57,0),.2)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- animlimit=40
- if attack==false then
- --wld1.C0=clerp(wld1.C0,euler(0,0,0)*cf(0,.5,0),.3)
- if idle==1 or idle==2 then
- wld1.Part0=RightArm
- PlayAnimationFromTable({
- CFrame.new(-0.00408624485, -0.0392880403, -0.101194024, 0.871484816, 7.67805545e-07, 0.490422696, -0.0288249925, 0.998271346, 0.0512206592, -0.489574879, -0.0587744527, 0.869978189) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.0192427598, 1.4993912, -0.0341970138, 0.852411211, 0.0287313629, -0.522082508, 0.00220392179, 0.998282909, 0.0585361086, 0.522867799, -0.0510474481, 0.85088402) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.3835994, 0.610314488, -0.709840655, 0.11161834, -0.261308819, 0.95878011, 0.993747592, 0.0319542773, -0.106980227, -0.00268224627, 0.96472621, 0.263241708) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.49432945, 0.251088977, 0.0154114217, 0.953926027, 0.296317071, -0.0471331477, -0.281624466, 0.93844372, 0.200027913, 0.103503525, -0.177537963, 0.978655875) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.613873959, -1.98154581, -0.295451462, 0.897078693, 0.0662777573, -0.436872274, -0.0130363367, 0.992226481, 0.123761415, 0.441678733, -0.1053285, 0.890969038) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.598620415, -2.01042914, 0.141347021, 0.996638954, 0.0817032978, 0.00597208738, -0.0817031562, 0.986024737, 0.145189792, 0.00597387552, -0.145189732, 0.989385843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .1, false)
- wld1.C0 = clerp(wld1.C0, CFrame.new(0.0250302367, -0.892942786, -0.0165846627, 0.0811756253, 0.0055154711, 0.99668467, -0.0519102216, -0.998604298, 0.00975394249, 0.995347202, -0.0525298566, -0.0807760134) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.1)
- else
- PlayAnimationFromTable({
- CFrame.new(-0.00408569723, -0.203084141, -0.101193637, 0.871484995, -3.24653598e-07, 0.490422279, -0.101034999, 0.978548527, 0.179540813, -0.479901999, -0.206016928, 0.852790296) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.00598204136, 1.5790199, 0.0106313378, 0.852379382, 0.0270338282, -0.522224844, 0.000227842014, 0.998643696, 0.052068308, 0.522924066, -0.0445009172, 0.851217031) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.3534286, 0.617394984, -0.653935552, 0.0273648575, -0.269270003, 0.962675929, 0.999522209, 0.0212172568, -0.0224775597, -0.0143728107, 0.96283114, 0.269721955) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.53894806, 0.394248843, 0.21563448, 0.880533814, 0.473979831, -0.00188797712, -0.452863783, 0.842467725, 0.291826546, 0.13991043, -0.256108165, 0.956469536) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.740831971, -1.74148083, -0.521062076, 0.897167206, 0.0594251081, -0.437675476, -0.0122638233, 0.993877709, 0.109804183, 0.441520959, -0.0931451172, 0.892403245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.626420617, -2.00636411, 0.164316118, 0.993093014, 0.116687, 0.0122732222, -0.116686858, 0.971282244, 0.207352743, 0.0122745633, -0.207352653, 0.978189409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .03, false)
- wld1.C0 = clerp(wld1.C0, CFrame.new(0.025033135, -0.892939806, -0.0165855642, 0.0811744779, 0.0055155158, 0.996684611, -0.051910311, -0.998604178, 0.00975395739, 0.995347202, -0.0525299907, -0.0807748586) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.1)
- end
- end
- elseif torvel>2 and torvel<20 and hitfloor~=nil then
- Anim="Walk"
- animlimit=10
- if attack==false then
- if idle==1 or idle==2 then
- if idle==1 then
- PlayAnimationFromTable({
- CFrame.new(-0, -0.101287723, -0.169587582, 1, 0, 0, 0, 0.960395992, 0.278638989, 0, -0.278638989, 0.960395992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.32473278, 0.671500444, -0.641432405, 0.00947599579, -0.135025963, 0.990796804, 0.995153546, -0.0957114249, -0.0225612372, 0.0978769362, 0.986208677, 0.133464605) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.52342892, 0.305035621, 0.28996551, 0.925308228, 0.378217608, -0.027499482, -0.301324368, 0.777339876, 0.552219629, 0.230235636, -0.502686977, 0.833245218) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5, -1.92117679, -0.461249918, 1, 0, -0, 0, 0.873822451, -0.486245394, 0, 0.486245394, 0.873822451) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5, -1.68541694, 0.764093161, 1, 0, 0, 0, 0.638579726, 0.769555748, 0, -0.769555748, 0.638579726) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- wld1.C0 = clerp(wld1.C0, CFrame.new(3.81898144e-06, -0.880694032, 0.0474553704, 2.25380063e-07, -8.21053982e-06, 1.00000012, -0.0815432966, -0.996669888, -8.13603401e-06, 0.996669888, -0.081543304, -8.94069672e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- elseif idle==2 then
- PlayAnimationFromTable({
- CFrame.new(-0, -0.13556999, -0.182637736, 1, 0, 0, 0, 0.917178869, 0.398475945, 0, -0.398475945, 0.917178869) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.32473123, 0.703307688, -0.625081182, 0.00947600044, -0.135026053, 0.990796745, 0.982692122, -0.182060748, -0.0342097729, 0.185004368, 0.973972321, 0.130963817) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.50532961, 0.310292035, 0.383442849, 0.91940999, 0.391560555, -0.0369549207, -0.272545099, 0.702046812, 0.657913089, 0.283556879, -0.594819903, 0.752186716) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5, -1.92952371, -0.314069629, 1, 0, 0, 0, 0.955978751, -0.293436289, 0, 0.293436289, 0.955978751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5, -1.87455964, 0.532231688, 1, 0, 0, 0, 0.854508638, 0.519437253, 0, -0.519437253, 0.854508638) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- wld1.C0 = clerp(wld1.C0, CFrame.new(3.0440674e-06, -0.880690694, 0.0474576727, -3.93018126e-07, -7.37607479e-06, 1.00000012, -0.0815420896, -0.996670008, -7.37607479e-06, 0.996669948, -0.0815420747, -2.08616257e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- end
- else
- if idle==3 then
- PlayAnimationFromTable({
- CFrame.new(-0, -0.101287723, -0.169587582, 1, 0, 0, 0, 0.960395992, 0.278638989, 0, -0.278638989, 0.960395992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.32473278, 0.671500444, -0.641432405, 0.00947599579, -0.135025963, 0.990796804, 0.995153546, -0.0957114249, -0.0225612372, 0.0978769362, 0.986208677, 0.133464605) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.52342892, 0.305035621, 0.28996551, 0.925308228, 0.378217608, -0.027499482, -0.301324368, 0.777339876, 0.552219629, 0.230235636, -0.502686977, 0.833245218) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5, -1.72390521, 0.835676849, 1, 0, 0, 0, 0.621255219, 0.783608437, 0, -0.783608437, 0.621255219) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5, -1.89754665, -0.501000643, 1, 0, -0, 0, 0.868537724, -0.495623201, 0, 0.495623201, 0.868537724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- wld1.C0 = clerp(wld1.C0, CFrame.new(3.81898144e-06, -0.880694032, 0.0474553704, 2.25380063e-07, -8.21053982e-06, 1.00000012, -0.0815432966, -0.996669888, -8.13603401e-06, 0.996669888, -0.081543304, -8.94069672e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- --^ not doen
- elseif idle==4 then
- PlayAnimationFromTable({
- CFrame.new(-0, -0.13556999, -0.182637736, 1, 0, 0, 0, 0.917178869, 0.398475945, 0, -0.398475945, 0.917178869) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.32473123, 0.703307688, -0.625081182, 0.00947600044, -0.135026053, 0.990796745, 0.982692122, -0.182060748, -0.0342097729, 0.185004368, 0.973972321, 0.130963817) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.50532961, 0.310292035, 0.383442849, 0.91940999, 0.391560555, -0.0369549207, -0.272545099, 0.702046812, 0.657913089, 0.283556879, -0.594819903, 0.752186716) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5, -1.89034307, 0.518616855, 1, 0, 0, 0, 0.868536711, 0.495625079, 0, -0.495625079, 0.868536711) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.499998093, -1.98679137, -0.186833113, 1, 0, 0, 0, 0.970552444, -0.240890607, 0, 0.240890592, 0.970552444) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- wld1.C0 = clerp(wld1.C0, CFrame.new(3.0440674e-06, -0.880690694, 0.0474576727, -3.93018126e-07, -7.37607479e-06, 1.00000012, -0.0815420896, -0.996670008, -7.37607479e-06, 0.996669948, -0.0815420747, -2.08616257e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- end
- end
- end
- elseif torvel>=20 and hitfloor~=nil then
- Anim="Run"
- animlimit=10
- if attack==false then
- if idle==1 or idle==2 then
- if idle==1 then
- PlayAnimationFromTable({
- CFrame.new(-0, -0.101287723, -0.169587582, 1, 0, 0, 0, 0.960395992, 0.278638989, 0, -0.278638989, 0.960395992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.32473278, 0.671500444, -0.641432405, 0.00947599579, -0.135025963, 0.990796804, 0.995153546, -0.0957114249, -0.0225612372, 0.0978769362, 0.986208677, 0.133464605) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.52342892, 0.305035621, 0.28996551, 0.925308228, 0.378217608, -0.027499482, -0.301324368, 0.777339876, 0.552219629, 0.230235636, -0.502686977, 0.833245218) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5, -1.92117679, -0.461249918, 1, 0, -0, 0, 0.873822451, -0.486245394, 0, 0.486245394, 0.873822451) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5, -1.68541694, 0.764093161, 1, 0, 0, 0, 0.638579726, 0.769555748, 0, -0.769555748, 0.638579726) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- wld1.C0 = clerp(wld1.C0, CFrame.new(3.81898144e-06, -0.880694032, 0.0474553704, 2.25380063e-07, -8.21053982e-06, 1.00000012, -0.0815432966, -0.996669888, -8.13603401e-06, 0.996669888, -0.081543304, -8.94069672e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- elseif idle==2 then
- PlayAnimationFromTable({
- CFrame.new(-0, -0.13556999, -0.182637736, 1, 0, 0, 0, 0.917178869, 0.398475945, 0, -0.398475945, 0.917178869) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.32473123, 0.703307688, -0.625081182, 0.00947600044, -0.135026053, 0.990796745, 0.982692122, -0.182060748, -0.0342097729, 0.185004368, 0.973972321, 0.130963817) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.50532961, 0.310292035, 0.383442849, 0.91940999, 0.391560555, -0.0369549207, -0.272545099, 0.702046812, 0.657913089, 0.283556879, -0.594819903, 0.752186716) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5, -1.92952371, -0.314069629, 1, 0, 0, 0, 0.955978751, -0.293436289, 0, 0.293436289, 0.955978751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5, -1.87455964, 0.532231688, 1, 0, 0, 0, 0.854508638, 0.519437253, 0, -0.519437253, 0.854508638) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- wld1.C0 = clerp(wld1.C0, CFrame.new(3.0440674e-06, -0.880690694, 0.0474576727, -3.93018126e-07, -7.37607479e-06, 1.00000012, -0.0815420896, -0.996670008, -7.37607479e-06, 0.996669948, -0.0815420747, -2.08616257e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- end
- else
- if idle==3 then
- PlayAnimationFromTable({
- CFrame.new(-0, -0.101287723, -0.169587582, 1, 0, 0, 0, 0.960395992, 0.278638989, 0, -0.278638989, 0.960395992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.32473278, 0.671500444, -0.641432405, 0.00947599579, -0.135025963, 0.990796804, 0.995153546, -0.0957114249, -0.0225612372, 0.0978769362, 0.986208677, 0.133464605) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.52342892, 0.305035621, 0.28996551, 0.925308228, 0.378217608, -0.027499482, -0.301324368, 0.777339876, 0.552219629, 0.230235636, -0.502686977, 0.833245218) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5, -1.72390521, 0.835676849, 1, 0, 0, 0, 0.621255219, 0.783608437, 0, -0.783608437, 0.621255219) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5, -1.89754665, -0.501000643, 1, 0, -0, 0, 0.868537724, -0.495623201, 0, 0.495623201, 0.868537724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- wld1.C0 = clerp(wld1.C0, CFrame.new(3.81898144e-06, -0.880694032, 0.0474553704, 2.25380063e-07, -8.21053982e-06, 1.00000012, -0.0815432966, -0.996669888, -8.13603401e-06, 0.996669888, -0.081543304, -8.94069672e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- --^ not doen
- elseif idle==4 then
- PlayAnimationFromTable({
- CFrame.new(-0, -0.13556999, -0.182637736, 1, 0, 0, 0, 0.917178869, 0.398475945, 0, -0.398475945, 0.917178869) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.49999583, -7.62939544e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.32473123, 0.703307688, -0.625081182, 0.00947600044, -0.135026053, 0.990796745, 0.982692122, -0.182060748, -0.0342097729, 0.185004368, 0.973972321, 0.130963817) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.50532961, 0.310292035, 0.383442849, 0.91940999, 0.391560555, -0.0369549207, -0.272545099, 0.702046812, 0.657913089, 0.283556879, -0.594819903, 0.752186716) * CFrame.new(0, .5, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5, -1.89034307, 0.518616855, 1, 0, 0, 0, 0.868536711, 0.495625079, 0, -0.495625079, 0.868536711) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.499998093, -1.98679137, -0.186833113, 1, 0, 0, 0, 0.970552444, -0.240890607, 0, 0.240890592, 0.970552444) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- wld1.C0 = clerp(wld1.C0, CFrame.new(3.0440674e-06, -0.880690694, 0.0474576727, -3.93018126e-07, -7.37607479e-06, 1.00000012, -0.0815420896, -0.996670008, -7.37607479e-06, 0.996669948, -0.0815420747, -2.08616257e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- end
- end
- 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("New Yeller",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]~="DecreaseStat" and Thing[2]~="showDamage" 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]
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- if Thing[1].Transparency>=.5 then
- Thing[1].BrickColor=BrickColor.new("Bright blue")
- end
- elseif Thing[2]=="Cylinder3" then
- Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].CFrame=Thing[1].CFrame*cf(0,.1,0)
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Blood" then
- Mesh=Thing[7]
- Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,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]
- elseif Thing[2] == "Shatter" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
- Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
- Thing[6] = Thing[6] + Thing[5]
- end
- else
- table.remove(Effects,e)
- Thing[1].Parent=nil
- end
- end
- end
- --end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement