Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = game.Players.LocalPlayer
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- 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"]
- ModelName = "Weapon"
- attack = false
- attacktype = 1
- Hitdeb = 0
- Neck = Torso.Neck
- local neckcf0 = Neck.C0
- MMouse = nil
- local bonusdmg = 4
- ----------------------------
- --Customize
- mindamage = math.random(40,80)
- maxdamage = math.random(60,90)
- crtmaxdamage = math.random(100,200)
- omindamage = mindamage
- omaxdamage = maxdamage
- ocrtmaxdamage = crtmaxdamage
- crtrate = 5
- handlecolor = BrickColor.new("Really black")
- bcolor = BrickColor.new("Institutional white")
- gemcolor = BrickColor.new("Institutional white")
- ToolName = "STAFF"
- ---------------------------------------------------------------------------------------------------------------------------------------
- char=Player.Character
- diamond="http://www.roblox.com/Asset/?id=9756362"
- suit=Instance.new("Model")
- suit.Name="SuitParts"
- suit.Parent=char
- zcolor=BrickColor.new
- for i,v in pairs(char:getChildren()) do
- if v:IsA("Hat") then
- v:Remove()
- elseif v:IsA("Shirt") then
- v:Remove()
- elseif v:IsA("Pants") then
- v:Remove()
- end
- end
- --[[The Parts ]]
- chest=Instance.new("Part",suit)
- chest:BreakJoints()
- chest.FormFactor="Custom"
- chest.Anchored=false
- chest.CanCollide=false
- chest.Locked=true
- chest.Size=Vector3.new(2.1,2.1,1.1)
- chest.BrickColor=zcolor("Really black")
- wchest=Instance.new("Weld",chest)
- wchest.Part0= chest
- wchest.Part1= char.Torso
- bchest=Instance.new("BlockMesh",chest)
- larm=Instance.new("Part",suit)
- larm.FormFactor="Custom"
- larm.Anchored=false
- larm.CanCollide=false
- larm.Locked=true
- larm.Size=Vector3.new(1.1,1.1,1.1)
- larm.BrickColor=zcolor("Really black")
- wlarm=Instance.new("Weld",larm)
- wlarm.Part0= larm
- wlarm.Part1= char["Left Arm"]
- wlarm.C1=CFrame.new(0,0.5,0)
- blarm=Instance.new("BlockMesh",larm)
- rarm=Instance.new("Part",suit)
- rarm.FormFactor="Custom"
- rarm.Anchored=false
- rarm.CanCollide=false
- rarm.Locked=true
- rarm.Size=Vector3.new(1.1,2.1,1.1)
- rarm.BrickColor=zcolor("Really black")
- wrarm=Instance.new("Weld",rarm)
- wrarm.Part0= rarm
- wrarm.Part1= char["Right Arm"]
- wrarm.C1=CFrame.new(0,0,0)
- brarm=Instance.new("BlockMesh",rarm)
- rleg=Instance.new("Part",suit)
- rleg.FormFactor="Custom"
- rleg.Anchored=false
- rleg.CanCollide=false
- rleg.Locked=true
- rleg.Size=Vector3.new(1.1,2.1,1.1)
- rleg.BrickColor=zcolor("Really black")
- wrleg=Instance.new("Weld",rleg)
- wrleg.Part0= rleg
- wrleg.Part1= char["Right Leg"]
- wrleg.C1=CFrame.new(0,0,0)
- brleg=Instance.new("BlockMesh",rleg)
- lleg=Instance.new("Part",suit)
- lleg.FormFactor="Custom"
- lleg.Anchored=false
- lleg.CanCollide=false
- lleg.Locked=true
- lleg.Size=Vector3.new(1.1,2.1,1.1)
- lleg.BrickColor=zcolor("Really black")
- wlleg=Instance.new("Weld",lleg)
- wlleg.Part0= lleg
- wlleg.Part1= char["Left Leg"]
- wlleg.C1=CFrame.new(0,0,0)
- blleg=Instance.new("BlockMesh",lleg)
- d1=Instance.new("Part",suit)
- d1.FormFactor="Custom"
- d1.Anchored=false
- d1.CanCollide=false
- d1.Locked=true
- d1.Reflectance=0
- d1.Size=Vector3.new(.4,.7,.4)
- d1.BrickColor=zcolor("Institutional white")
- wd1=Instance.new("Weld",d1)
- wd1.Part0=d1
- wd1.Part1=chest
- wd1.C1=CFrame.new(.5,-.6,-.4)
- bd1=Instance.new("BlockMesh",d1)
- d2=Instance.new("Part",suit)
- d2.FormFactor="Custom"
- d2.Anchored=false
- d2.CanCollide=false
- d2.Locked=true
- d2.Reflectance=0
- d2.Size=Vector3.new(.4,.7,.4)
- d2.BrickColor=zcolor("Institutional white")
- wd2=Instance.new("Weld",d2)
- wd2.Part0=d2
- wd2.Part1=chest
- wd2.C1=CFrame.new(-.5,-.6,-.4)
- bd2=Instance.new("BlockMesh",d2)
- d3=Instance.new("Part",suit)
- d3.FormFactor="Custom"
- d3.Anchored=false
- d3.CanCollide=false
- d3.Locked=true
- d3.Reflectance=0
- d3.Size=Vector3.new(.4,.7,.4)
- d3.BrickColor=zcolor("Institutional white")
- wd3=Instance.new("Weld",d3)
- wd3.Part0=d3
- wd3.Part1=chest
- wd3.C1=CFrame.new(-.5,-.1,-.75)
- wd3.C0=CFrame.new(0,0,0) * CFrame.Angles(0,0,9.44)
- bd3=Instance.new("SpecialMesh",d3)
- bd3.MeshType="Wedge"
- d4=Instance.new("Part",suit)
- d4.FormFactor="Custom"
- d4.Anchored=false
- d4.CanCollide=false
- d4.Locked=true
- d4.Reflectance=0
- d4.Size=Vector3.new(.4,.7,.4)
- d4.BrickColor=zcolor("Institutional white")
- wd4=Instance.new("Weld",d4)
- wd4.Part0=d4
- wd4.Part1=chest
- wd4.C1=CFrame.new(.5,-.1,-.75)
- wd4.C0=CFrame.new(0,0,0) * CFrame.Angles(0,0,9.44)
- bd4=Instance.new("SpecialMesh",d4)
- bd4.MeshType="Wedge"
- d5=Instance.new("Part",suit)
- d5.FormFactor="Custom"
- d5.Anchored=false
- d5.CanCollide=false
- d5.Locked=true
- d5.Reflectance=0
- d5.Size=Vector3.new(2,.84,.4)
- d5.BrickColor=zcolor("Institutional white")
- wd5=Instance.new("Weld",d5)
- wd5.Part0=d5
- wd5.Part1=chest
- wd5.C1=CFrame.new(0,.66,-.74)
- bd5=Instance.new("BlockMesh",d5)
- d6=Instance.new("Part",suit)
- d6.FormFactor="Custom"
- d6.Anchored=false
- d6.CanCollide=false
- d6.Locked=true
- d6.Reflectance=0
- d6.Size=Vector3.new(.5,.5,1.5)
- d6.BrickColor=zcolor("Institutional white")
- wd6=Instance.new("Weld",d6)
- wd6.Part0=d6
- wd6.Part1=chest
- wd6.C1=CFrame.new(.7,.84,-.1)
- bd6=Instance.new("BlockMesh",d6)
- d7=Instance.new("Part",suit)
- d7.FormFactor="Custom"
- d7.Anchored=false
- d7.CanCollide=false
- d7.Locked=true
- d7.Reflectance=0
- d7.Size=Vector3.new(.5,.5,1.5)
- d7.BrickColor=zcolor("Institutional white")
- wd7=Instance.new("Weld",d7)
- wd7.Part0=d7
- wd7.Part1=chest
- wd7.C1=CFrame.new(-.7,.84,-.1)
- bd7=Instance.new("BlockMesh",d7)
- d8=Instance.new("Part",suit)
- d8.FormFactor="Custom"
- d8.Anchored=false
- d8.CanCollide=false
- d8.Locked=true
- d8.Reflectance=0
- d8.Size=Vector3.new(2.3,.4,1.3)
- d8.BrickColor=zcolor("Institutional white")
- wd8=Instance.new("Weld",d8)
- wd8.Part0=d8
- wd8.Part1=chest
- wd8.C1=CFrame.new(0,-1,0)
- bd8=Instance.new("BlockMesh",d8)
- d9=Instance.new("Part",suit)
- d9.FormFactor="Custom"
- d9.Anchored=false
- d9.CanCollide=false
- d9.Locked=true
- d9.Reflectance=0
- d9.Size=Vector3.new(.5,2,.5)
- d9.BrickColor=zcolor("Institutional white")
- wd9=Instance.new("Weld",d9)
- wd9.Part0=d9
- wd9.Part1=chest
- wd9.C1=CFrame.new(-.7,-.20,.4)
- bd9=Instance.new("BlockMesh",d9)
- d10=Instance.new("Part",suit)
- d10.FormFactor="Custom"
- d10.Anchored=false
- d10.CanCollide=false
- d10.Locked=true
- d10.Reflectance=0
- d10.Size=Vector3.new(.5,2,.5)
- d10.BrickColor=zcolor("Institutional white")
- wd10=Instance.new("Weld",d10)
- wd10.Part0=d10
- wd10.Part1=chest
- wd10.C1=CFrame.new(.7,-.20,.4)
- bd10=Instance.new("BlockMesh",d10)
- hd = Instance.new("Part",suit)
- hd.Anchored = false
- hd.Size = Vector3.new(1,1,1)
- hd.formFactor = "Symmetric"
- hd.CFrame = CFrame.new(3,3,0)
- hd.BrickColor = BrickColor.new("Really black")
- hd.Reflectance = 0
- m = Instance.new("SpecialMesh")
- m.Parent = hd
- m.MeshType = "FileMesh"
- m.MeshId = ""
- m.Scale = Vector3.new(1.05, 1.05, 1.05)
- local Weld = Instance.new("Weld")
- Weld.Parent = hd
- Weld.Part0 = hd
- Weld.Part1 = char.Head
- Weld.C0 = CFrame.new(0,-0.35,0)*CFrame.Angles(0,0,0)
- d11=Instance.new("Part",suit)
- d11.FormFactor="Custom"
- d11.Anchored=false
- d11.CanCollide=false
- d11.Locked=true
- d11.Reflectance=0
- d11.Size=Vector3.new(.2,1,.2)
- d11.BrickColor=zcolor("Institutional white")
- wd11=Instance.new("Weld",d11)
- wd11.Part0=d11
- wd11.Part1=char["Left Arm"]
- wd11.C1=CFrame.new(-.6,-.8,.2)
- bd11=Instance.new("BlockMesh",d11)
- d12=Instance.new("Part",suit)
- d12.FormFactor="Custom"
- d12.Anchored=false
- d12.CanCollide=false
- d12.Locked=true
- d12.Reflectance=0
- d12.Size=Vector3.new(.2,1,.2)
- d12.BrickColor=zcolor("Institutional white")
- wd12=Instance.new("Weld",d12)
- wd12.Part0=d12
- wd12.Part1=char["Left Arm"]
- wd12.C1=CFrame.new(-.6,-.8,-.2)
- bd12=Instance.new("BlockMesh",d12)
- d13 = Instance.new("Part")
- d13.Parent = suit
- d13.Locked = true
- d13.Size = Vector3.new(1, 1, 1)
- d13.formFactor = "Symmetric"
- d13.BrickColor = BrickColor.new("Institutional white")
- d13.Reflectance = 0
- d13.TopSurface = "Smooth"
- d13.BottomSurface = "Smooth"
- md13 = Instance.new("SpecialMesh")
- md13.MeshType = "Wedge"
- md13.Parent = d13
- md13.Scale = Vector3.new(1.15,1.05,1.15)
- wd13 = Instance.new("Weld")
- wd13.Parent = d13
- wd13.Part0 = d13
- wd13.Part1 = char["Right Arm"]
- wd13.C0 = CFrame.new(0,0.58,0)*CFrame.Angles(math.rad(90),math.rad(90),math.rad(90))
- d14 = Instance.new("Part")
- d14.Parent = suit
- d14.Locked = true
- d14.Size = Vector3.new(1, 1, 1)
- d14.formFactor = "Symmetric"
- d14.BrickColor = BrickColor.new("Institutional white")
- d14.Reflectance = 0
- d14.TopSurface = "Smooth"
- d14.BottomSurface = "Smooth"
- md14 = Instance.new("SpecialMesh")
- md14.MeshType = "Wedge"
- md14.Parent = d14
- md14.Scale = Vector3.new(1.15,1.05,1.15)
- wd14 = Instance.new("Weld")
- wd14.Parent = d14
- wd14.Part0 = d14
- wd14.Part1 = char["Left Arm"]
- wd14.C0 = CFrame.new(0,0.07,-0.5) * CFrame.Angles(0,math.rad(90),math.rad(90))
- game.Workspace.Base:BreakJoints()
- -----------------------------------------------------------------------------
- if Character:findFirstChild("EquippedVal",true) ~= nil then
- Character:findFirstChild("EquippedVal",true).Parent = nil
- end
- ev = Instance.new("BoolValue",Character)
- ev.Name = "EquippedVal"
- ev.Value = false
- --player
- player = nil
- --welds
- RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
- --what anim
- anim = "none"
- --other var
- player = Player
- ch = Character
- --save shoulders
- AoETrue = {}
- RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
- function RWFunc()
- RW.Part1 = ch["Right Arm"]
- RSH.Part1 = nil
- end
- function LWFunc()
- LW.Part1 = ch["Left Arm"]
- LSH.Part1 = nil
- end
- function RWLFunc()
- RWL.Part1 = ch["Right Leg"]
- RHL.Part1 = nil
- ch["Right Leg"].Name = "RightLeg"
- RightLeg.CanCollide = false
- end
- function LWLFunc()
- LWL.Part1 = ch["Left Leg"]
- LHL.Part1 = nil
- ch["Left Leg"].Name = "LeftLeg"
- LeftLeg.CanCollide = true
- end
- function RWLRem()
- RightLeg.Name = "Right Leg"
- RWL.Part1 = nil
- RHL.Part1 = ch["Right Leg"]
- RightLeg.CanCollide = false
- end
- function LWLRem()
- LeftLeg.Name = "Left Leg"
- LWL.Part1 = nil
- LHL.Part1 = ch["Left Leg"]
- LeftLeg.CanCollide = false
- end
- function RWRem()
- RW.Part1 = nil
- RSH.Part1 = ch["Right Arm"]
- end
- function LWRem()
- LW.Part1 = nil
- LSH.Part1 = ch["Left Arm"]
- end
- if Character:findFirstChild(ModelName,true) ~= nil then
- Character:findFirstChild(ModelName,true).Parent = nil
- RHL.Part1 = ch["Right Leg"]
- LHL.Part1 = ch["Left Leg"]
- RSH.Part1 = ch["Right Arm"]
- LSH.Part1 = ch["Left Arm"]
- end
- local swordholder = Instance.new("Model")
- swordholder.Name = ModelName
- swordholder.Parent = Character
- --derp
- RW.Part0 = ch.Torso
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
- RW.Parent = swordholder
- --
- LW.Part0 = ch.Torso
- LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1 = CFrame.new(0, 0.5, 0)
- LW.Parent = swordholder
- --
- RWL.Part0 = ch.Torso
- RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
- RWL.C1 = CFrame.new(0.5, 1, 0)
- RWL.Parent = swordholder
- --
- LWL.Part0 = ch.Torso
- LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
- LWL.C1 = CFrame.new(-0.5, 1, 0)
- LWL.Parent = swordholder
- local msh1 = Instance.new("CylinderMesh")
- msh1.Scale = Vector3.new(1,1,1)
- local msh2 = Instance.new("CylinderMesh")
- msh2.Scale = Vector3.new(1.1,1,1.1)
- local msh3 = Instance.new("CylinderMesh")
- msh3.Scale = Vector3.new(0.5,1.075,0.5)
- local msh4 = Instance.new("SpecialMesh")
- msh4.Scale = Vector3.new(0.35,1,0.35)
- msh4.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- local msh5 = Instance.new("SpecialMesh")
- msh5.Scale = Vector3.new(0.35,1,0.35)
- msh5.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- local msh6 = Instance.new("SpecialMesh")
- msh6.Scale = Vector3.new(0.35,1.5,0.35)
- msh6.MeshId = "http://www.roblox.com/asset/?id=1051557"
- local msh7 = Instance.new("SpecialMesh")
- msh7.Scale = Vector3.new(0.35,1.5,0.35)
- msh7.MeshId = "http://www.roblox.com/asset/?id=1051557"
- local msh8 = Instance.new("SpecialMesh")
- msh8.Scale = Vector3.new(0.2,0.3,0.2)
- msh8.MeshId = "http://www.roblox.com/asset/?id=20329976"
- local msh9 = Instance.new("SpecialMesh")
- msh9.Scale = Vector3.new(0.2,0.3,0.2)
- msh9.MeshId = "http://www.roblox.com/asset/?id=20329976"
- local msh10 = Instance.new("CylinderMesh")
- msh10.Scale = Vector3.new(1,0.1,1)
- local msh11 = Instance.new("CylinderMesh")
- msh11.Scale = Vector3.new(1,0.1,1)
- local prt1 = Instance.new("Part")
- prt1.formFactor = 3
- prt1.CanCollide = false
- prt1.Name = "Handle"
- prt1.Locked = true
- prt1.Size = Vector3.new(0.2,6.5,0.2)
- prt1.Parent = swordholder
- msh1.Parent = prt1
- prt1.BrickColor = handlecolor
- local prt2 = Instance.new("Part")
- prt2.formFactor = 3
- prt2.CanCollide = false
- prt2.Name = "Handle2"
- prt2.Locked = true
- prt2.Size = Vector3.new(0.2,1,0.2)
- prt2.Parent = swordholder
- msh2.Parent = prt2
- prt2.BrickColor = bcolor
- local prt3 = Instance.new("Part")
- prt3.formFactor = 3
- prt3.CanCollide = false
- prt3.Name = "HandleDesign1"
- prt3.Locked = true
- prt3.Size = Vector3.new(0.2,0.2,0.2)
- prt3.Parent = swordholder
- msh3.Parent = prt3
- prt3.BrickColor = handlecolor
- local prt3a = prt3:clone()
- prt3a.Parent = swordholder
- local prt4 = Instance.new("Part")
- prt4.formFactor = 3
- prt4.CanCollide = false
- prt4.Name = "Tip1"
- prt4.Locked = true
- prt4.Size = Vector3.new(0.2,msh4.Scale.Y,0.2)
- prt4.Parent = swordholder
- prt4.Reflectance = 0.25
- msh4.Parent = prt4
- prt4.BrickColor = handlecolor
- local prt5 = Instance.new("Part")
- prt5.formFactor = 3
- prt5.CanCollide = false
- prt5.Name = "Tip2"
- prt5.Locked = true
- prt5.Size = Vector3.new(0.2,msh5.Scale.Y,0.2)
- prt5.Parent = swordholder
- prt5.Reflectance = 0.25
- msh5.Parent = prt5
- prt5.BrickColor = handlecolor
- local prt6 = Instance.new("Part")
- prt6.formFactor = 3
- prt6.CanCollide = false
- prt6.Name = "TipDesign1"
- prt6.Locked = true
- prt6.Size = Vector3.new(0.2,0.2,0.2)
- prt6.Parent = swordholder
- prt6.Transparency = 0.2
- msh6.Parent = prt6
- prt6.BrickColor = bcolor
- local part101 =Instance.new("Part",swordholder)
- part101.formFactor=3
- part101.CanCollide=false
- part101.Name="HoldDesign1"
- part101.Locked=true
- part101.BrickColor=bcolor
- part101.Size=Vector3.new(0.4,0.2,0.4)
- local Msh=Instance.new("CylinderMesh", part101)
- Msh.Scale=Vector3.new(1,1,1)
- local part102 =Instance.new("Part",swordholder)
- part102.formFactor=3
- part102.CanCollide=false
- part102.Name="HoldDesign2"
- part102.Locked=true
- part102.BrickColor=bcolor
- part102.Size=Vector3.new(0.4,0.2,0.4)
- local Msh2=Instance.new("CylinderMesh", part102)
- Msh2.Scale=Vector3.new(1,1,1)
- local prt7 = Instance.new("Part")
- prt7.formFactor = 3
- prt7.CanCollide = false
- prt7.Name = "TipDesign2"
- prt7.Locked = true
- prt7.Size = Vector3.new(0.2,0.2,0.2)
- prt7.Parent = swordholder
- prt7.Transparency = 0.2
- msh7.Parent = prt7
- prt7.BrickColor = bcolor
- local prt8 = Instance.new("Part")
- prt8.formFactor = 3
- prt8.CanCollide = false
- prt8.Name = "TipDesign3"
- prt8.Locked = true
- prt8.Size = Vector3.new(0.2,0.2,0.2)
- prt8.Parent = swordholder
- msh8.Parent = prt8
- prt8.BrickColor = gemcolor
- local prt9 = Instance.new("Part")
- prt9.formFactor = 3
- prt9.CanCollide = false
- prt9.Name = "TipDesign4"
- prt9.Locked = true
- prt9.Size = Vector3.new(0.2,0.2,0.2)
- prt9.Parent = swordholder
- msh9.Parent = prt9
- prt9.BrickColor = gemcolor
- local prt10 = Instance.new("Part")
- prt10.formFactor = 3
- prt10.CanCollide = false
- prt10.Name = "TipDesign5"
- prt10.Locked = true
- prt10.Size = Vector3.new(0.3,0.2,0.3)
- prt10.Parent = swordholder
- msh10.Parent = prt10
- prt10.BrickColor = gemcolor
- local prt11 = Instance.new("Part")
- prt11.formFactor = 3
- prt11.CanCollide = false
- prt11.Name = "TipDesign6"
- prt11.Locked = true
- prt11.Size = Vector3.new(0.3,0.2,0.3)
- prt11.Parent = swordholder
- msh11.Parent = prt11
- prt11.BrickColor = gemcolor
- local w1 = Instance.new("Weld")
- w1.Parent = prt1
- w1.Part0 = prt1
- local p101 =Instance.new("Weld",part101)
- p101.Part0=part101
- p101.Part1=prt1
- p101.C1=CFrame.new(0,.6,0)
- local p102 =Instance.new("Weld",part102)
- p102.Part0=part102
- p102.Part1=prt1
- p102.C1=CFrame.new(0,-.6,0)
- local w2 = Instance.new("Weld")
- w2.Parent = prt2
- w2.Part0 = prt2
- w2.Part1 = prt1
- w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
- w2.C0 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
- local w3 = Instance.new("Weld")
- w3.Parent = prt3
- w3.Part0 = prt3
- w3.Part1 = prt1
- w3.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
- w3.C0 = CFrame.new(0, 0,0) * CFrame.Angles(math.rad(90), 0, 0)
- local w3a = Instance.new("Weld")
- w3a.Parent = prt3a
- w3a.Part0 = prt3a
- w3a.Part1 = prt1
- w3a.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
- w3a.C0 = CFrame.new(0, 0,0) * CFrame.Angles(math.rad(90), math.rad(90), 0)
- local w4 = Instance.new("Weld")
- w4.Parent = prt4
- w4.Part0 = prt4
- w4.Part1 = prt1
- w4.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
- w4.C0 = CFrame.new(0, 3.25,0) * CFrame.Angles(0, 0, 0)
- local w5 = Instance.new("Weld")
- w5.Parent = prt5
- w5.Part0 = prt5
- w5.Part1 = prt1
- w5.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
- w5.C0 = CFrame.new(0, -3.25,0) * CFrame.Angles(0, 0, 0)
- local w6 = Instance.new("Weld")
- w6.Parent = prt6
- w6.Part0 = prt6
- w6.Part1 = prt1
- w6.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
- w6.C0 = CFrame.new(0, 2.3 ,0) * CFrame.Angles(0, 0, 0)
- local w7 = Instance.new("Weld")
- w7.Parent = prt7
- w7.Part0 = prt7
- w7.Part1 = prt1
- w7.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
- w7.C0 = CFrame.new(0, 2.3 ,0) * CFrame.Angles(math.rad(180), 0, 0)
- local w8 = Instance.new("Weld")
- w8.Parent = prt8
- w8.Part0 = prt8
- w8.Part1 = prt1
- w8.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
- w8.C0 = CFrame.new(0, 2.8 ,0) * CFrame.Angles(0, 0, 0)
- local w9 = Instance.new("Weld")
- w9.Parent = prt9
- w9.Part0 = prt9
- w9.Part1 = prt1
- w9.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
- w9.C0 = CFrame.new(0, 2.8 ,0) * CFrame.Angles(math.rad(180), 0, 0)
- local w10 = Instance.new("Weld")
- w10.Parent = prt10
- w10.Part0 = prt10
- w10.Part1 = prt1
- w10.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
- w10.C0 = CFrame.new(0, 2.95 ,0) * CFrame.Angles(0, 0, 0)
- local w11 = Instance.new("Weld")
- w11.Parent = prt11
- w11.Part0 = prt11
- w11.Part1 = prt1
- w11.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
- w11.C0 = CFrame.new(0, -2.95 ,0) * CFrame.Angles(0, 0, 0)
- local RAP = Instance.new("Part")
- RAP.formFactor = 0
- RAP.CanCollide = false
- RAP.Name = "RAPart"
- RAP.Locked = true
- RAP.Size = Vector3.new(1,1,1)
- RAP.Parent = swordholder
- RAP.Transparency = 1
- local w = Instance.new("Weld")
- w.Parent = RAP
- w.Part0 = RAP
- w.Part1 = RightArm
- w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
- w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
- function unequipweld()
- w1.Part1 = Torso
- w1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0, 0,0)
- w1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.5, -0.5, -0.6)
- end
- unequipweld()
- function equipweld()
- w1.Part1 = RAP
- w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
- w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0)
- end
- function ss(parent,p,v) --Slash
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
- SlashSound.Parent = parent
- SlashSound.Volume = (v or .7)
- SlashSound.Pitch = p
- SlashSound.PlayOnRemove = true
- coroutine.resume(coroutine.create(function()
- wait()
- SlashSound.Parent = nil
- end))
- end
- function uss(parent,p,v) --unsheath
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
- SlashSound.Parent = parent
- SlashSound.Volume = (v or .7)
- SlashSound.Pitch = p
- SlashSound.PlayOnRemove = true
- coroutine.resume(coroutine.create(function()
- wait()
- SlashSound.Parent = nil
- end))
- end
- function cs(parent,p,v) --Magic Charge
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
- SlashSound.Parent = parent
- SlashSound.Volume = (v or .7)
- SlashSound.Pitch = p
- SlashSound.PlayOnRemove = true
- coroutine.resume(coroutine.create(function()
- wait()
- SlashSound.Parent = nil
- end))
- end
- function ls(parent,p,v) --Lazer Sound
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
- SlashSound.Parent = parent
- SlashSound.Volume = (v or .7)
- SlashSound.Pitch = p
- SlashSound.PlayOnRemove = true
- coroutine.resume(coroutine.create(function()
- wait()
- SlashSound.Parent = nil
- end))
- end
- function ts(parent,p,v) --Thunder sound
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222030"
- SlashSound.Parent = parent
- SlashSound.Volume = (v or .7)
- SlashSound.Pitch = p
- SlashSound.PlayOnRemove = true
- coroutine.resume(coroutine.create(function()
- wait()
- SlashSound.Parent = nil
- end))
- end
- function fs(parent,p,v) --Fire Sound
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
- SlashSound.Parent = parent
- SlashSound.Volume = (v or .7)
- SlashSound.Pitch = p
- SlashSound.PlayOnRemove = true
- coroutine.resume(coroutine.create(function()
- wait()
- SlashSound.Parent = nil
- end))
- end
- function srfs(parent,p,v)
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222132"
- SlashSound.Parent = parent
- SlashSound.Volume = (v or .7)
- SlashSound.Pitch = p
- SlashSound.PlayOnRemove = true
- coroutine.resume(coroutine.create(function()
- wait(0.1)
- SlashSound.Parent = nil
- end))
- end
- --
- function returndmg()
- mindamage = omindamage
- maxdamage = omaxdamage
- crtmaxdamage = ocrtmaxdamage
- end
- function subdmg(sub)
- mindamage = omindamage - sub
- maxdamage = omaxdamage - sub
- crtmaxdamage = ocrtmaxdamage - sub
- end
- function prcntdmg(sub)
- mindamage = math.floor(omindamage - (omindamage*(sub/100)))
- maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
- crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
- end
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants
- return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function hideanim()
- attack = true
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90+90*i), 0, math.rad(-45+90*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1+0.5*i, 0.5, -0.5-0.5*i) * CFrame.Angles(math.rad(45+90*i), 0, math.rad(45+35*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45-45*i), math.rad(0), math.rad(0))
- end
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(180+90*i), 0, math.rad(45-80*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-0.5+0.5*i, 0.5, -1) * CFrame.Angles(math.rad(135), 0, math.rad(85))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45*i), 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- end
- unequipweld()
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(270-270*i), 0, math.rad(-35+35*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(135-135*i), 0, math.rad(85-85*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45+45*i), 0, 0)
- end
- LWRem()
- RWRem()
- attack = false
- end
- function equipanim()
- attack = true
- RWFunc()
- LWFunc()
- uss(Head,1,0.5)
- for i = 0 , 1 , 0.2 do
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-90*i), 0, math.rad(-45*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- end
- equipweld()
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-90+180*i), 0, math.rad(-45+90*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-90+180*i), 0, math.rad(90))
- end
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+90*i), 0, math.rad(45-45*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(90+180*i), 0, math.rad(90))
- end
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(180-90*i), 0, math.rad(-45*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(45*i), 0, math.rad(45*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-90+45*i), math.rad(0), math.rad(90-90*i))
- end
- attack = false
- end
- if (script.Parent.className ~= "HopperBin") then
- Tool = Instance.new("HopperBin")
- Tool.Parent = Backpack
- Tool.Name = ToolName
- script.Parent = Tool
- end
- Bin = script.Parent
- function damagesplat(dmg,hit)
- local mo = Instance.new("Model")
- mo.Name = dmg
- local pa = Instance.new("Part",mo)
- pa.formFactor = 3
- pa.Size = Vector3.new(0.8,0.3,0.8)
- pa.BrickColor = BrickColor.new("Bright red")
- pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
- pa.Name = "Head"
- local hah = Instance.new("Humanoid")
- hah.Parent = mo
- hah.MaxHealth = 0
- hah.Health = 0
- local bp = Instance.new("BodyPosition")
- bp.P = 14000
- bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bp.position = hit.Position + Vector3.new(0, 5, 0)
- coroutine.resume(coroutine.create(function()
- wait()
- mo.Parent = workspace
- bp.Parent = pa
- wait(1.4)
- mo:remove()
- end))
- end
- function damage(hum,dmg,critornot)
- damagesplat(dmg,hum.Torso,critornot)
- hum:TakeDamage(dmg)
- coroutine.resume(coroutine.create(function()
- tagHumanoid(hum,Player)
- wait(1)
- untagHumanoid(hum)
- end))
- end
- function OT(hit) --Normal Damage
- if Hitdeb == 1 then return end
- if hit.Parent == nil then return end
- local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
- local critrandomizer = math.random(crtrate)
- if critrandomizer ~= 1 then
- local rndmdamage = math.random(mindamage,maxdamage) + bonusdmg
- damage(hum,rndmdamage,false)
- elseif critrandomizer == 1 then
- local rndmdamage = math.random(maxdamage,crtmaxdamage) + bonusdmg
- damage(hum,rndmdamage,true)
- end
- Hitdeb = 1
- end
- end
- function OT2(hit) --Flip Damage
- if Hitdeb == 1 then return end
- if hit.Parent == nil then return end
- local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
- local critrandomizer = math.random(crtrate)
- if critrandomizer ~= 1 then
- local rndmdamage = math.random(mindamage,maxdamage) + bonusdmg
- damage(hum,rndmdamage,false)
- hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame * CFrame.Angles(-0.5*math.random(),0,0)
- elseif critrandomizer == 1 then
- local rndmdamage = math.random(maxdamage,crtmaxdamage) + bonusdmg
- damage(hum,rndmdamage,true)
- hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame * CFrame.Angles(-0.5*math.random(),0,0)
- end
- Hitdeb = 1
- end
- end
- function AoE(p,magnitude)
- local c = game.Workspace:GetChildren();
- for i = 1, #c do
- local hum = c[i]:findFirstChild("Humanoid")
- if hum ~= nil and hum.Health ~= 0 then
- local head = c[i]:findFirstChild("Head");
- if head ~= nil then
- local mag = (head.Position - p).magnitude;
- if mag <= magnitude and c[i].Name ~= Character.Name then
- local foundd = false
- for ii = 1 , #AoETrue do
- if AoETrue[ii] == c[i].Name then
- foundd = true
- end
- end
- if foundd then
- end
- --
- if not foundd then
- local critrandomizer = math.random(crtrate)
- if critrandomizer ~= 1 then
- local rndmdamage = math.random(mindamage,maxdamage) + bonusdmg
- damage(hum,rndmdamage,false)
- elseif critrandomizer == 1 then
- local rndmdamage = math.random(maxdamage,crtmaxdamage) + bonusdmg
- damage(hum,rndmdamage,true)
- end
- table.insert(AoETrue,c[i].Name)
- end
- end
- end
- end
- end
- for ii = 1 , #AoETrue do
- table.remove(AoETrue,#AoETrue)
- end
- end
- --
- --
- LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0)
- function effect(Color,Ref,LP,P1,returnn)
- local effectsmsh = Instance.new("BlockMesh")
- effectsmsh.Scale = Vector3.new(1,1,1)
- effectsmsh.Name = "Mesh"
- local effectsg = Instance.new("Part")
- effectsg.formFactor = 3
- effectsg.CanCollide = false
- effectsg.Name = "Eff"
- effectsg.Locked = true
- effectsg.Anchored = true
- effectsg.Size = Vector3.new(0.2,1,0.2)
- effectsg.Parent = swordholder
- 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.2,mg,0.2)
- effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
- if returnn then return effectsg end
- coroutine.resume(coroutine.create(function()
- if not returnn then
- for i = 0 , 1 , 0.1 do
- wait()
- effectsg.Transparency = 1*i
- effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
- end
- wait()
- effectsg.Parent = nil
- end
- end))
- end
- --
- con = nil
- function dmgcnnct()
- if con ~= nil then
- con:disconnect()
- Hitdeb = 0
- end
- con = prt1.Touched:connect(OT)
- end
- function dmgflipcnnct()
- if con ~= nil then
- con:disconnect()
- Hitdeb = 0
- end
- con = prt1.Touched:connect(OT2)
- end
- function dmgdc()
- if con ~= nil then
- con:disconnect()
- Hitdeb = 0
- end
- end
- function rptddmg(value,des,inc)
- coroutine.resume(coroutine.create(function()
- repeat
- wait(inc)
- Hitdeb = 0
- until value == des
- end))
- end
- function atktype(s,e)
- coroutine.resume(coroutine.create(function ()
- attacktype = e
- wait(0.5)
- attacktype = s
- end))
- end
- function Slash1()
- attack = true
- local LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- local LastPoint2 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0)
- for i = 0 , 1 , 0.2 do
- wait()
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- local Point2 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0)
- effect("White",0.5,LastPoint,Point)
- effect("White",0.5,LastPoint2,Point2)
- LastPoint = Point
- LastPoint2 = Point2
- RW.C0 = CFrame.new(1, 0.5+1*i, -0.5) * CFrame.Angles(math.rad(90+90*i), 0, math.rad(-45))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1, 0.5+1*i, -0.5) * CFrame.Angles(math.rad(45+135*i), 0, math.rad(45))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45-45*i), math.rad(0), math.rad(135*i))
- end
- local TorsPos = Torso.Position
- local bp = Instance.new("BodyPosition",Torso)
- bp.maxForce = Vector3.new(0, math.huge,0)
- bp.P = 14000
- bp.position = TorsPos + Vector3.new(0,2,0)
- local mesh = Instance.new("CylinderMesh")
- mesh.Scale = Vector3.new(5.1,0.1,5.1)
- local shell = Instance.new("Part")
- mesh.Parent = shell
- shell.Anchored = true
- shell.formFactor = 3
- shell.Size = Vector3.new(1,0.5,1)
- shell.CFrame = CFrame.new() + prt1.Position
- shell.Parent = swordholder
- shell.Transparency = 0.5
- shell.BrickColor = BrickColor.new("White")
- shell.CanCollide = false
- local mesh2 = Instance.new("SpecialMesh")
- mesh2.Scale = Vector3.new(5.5,1,5.5)
- mesh2.MeshId = "http://www.roblox.com/asset/?id=1051557"
- local shell2 = Instance.new("Part")
- shell2.Anchored = true
- mesh2.Parent = shell2
- shell2.formFactor = 3
- shell2.Size = Vector3.new(0.2,0.2,0.2)
- shell2.CFrame = shell.CFrame * CFrame.Angles(math.rad(180),0,0)
- shell2.Parent = swordholder
- shell2.Transparency = 0.5
- shell2.BrickColor = BrickColor.new("Really black")
- shell2.CanCollide = false
- local derp = false
- coroutine.resume(coroutine.create(function()
- for i = 0 , 1 , 0.2 do
- wait()
- shell.Transparency = 1-0.5*i
- shell2.Transparency = 1-0.5*i
- end
- end))
- coroutine.resume(coroutine.create(function()
- local ii = 0
- local yy = 1
- repeat
- wait()
- ii = ii + 50
- yy = yy + 0.25
- shell.CFrame = CFrame.Angles(0,math.rad(ii),0) + prt1.Position
- shell2.CFrame = shell.CFrame * CFrame.Angles(math.rad(180),0,0)
- mesh2.Scale = Vector3.new(5.5,yy,5.5)
- until derp
- for i = 0 , 1 , 0.1 do
- wait()
- yy = yy + 0.5
- shell.Transparency = 0.5+0.5*i
- shell2.Transparency = 0.5+0.5*i
- mesh2.Scale = Vector3.new(5.5-2*i,yy,5.5-2*i)
- end
- shell.Parent = nil
- shell2.Parent = nil
- end))
- dmgcnnct()
- prcntdmg(50)
- rptddmg(derp,true,0.75)
- for rep = 1 , 2 do
- ss(Head,1,0.5)
- for i = 0 , 1 , 0.2 do
- wait()
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- local Point2 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0)
- effect("White",0.5,LastPoint,Point)
- effect("White",0.5,LastPoint2,Point2)
- LastPoint = Point
- LastPoint2 = Point2
- w1.C0 = CFrame.Angles(math.rad(-90), math.rad(180*i), math.rad(135))
- end
- ss(Head,1,0.5)
- for i = 0 , 1 , 0.2 do
- wait()
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- local Point2 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0)
- effect("White",0.5,LastPoint,Point)
- effect("White",0.5,LastPoint2,Point2)
- LastPoint = Point
- LastPoint2 = Point2
- w1.C0 = CFrame.Angles(math.rad(-90), math.rad(180+180*i), math.rad(135))
- end
- end
- returndmg()
- dmgdc()
- derp = true
- local done = false
- local hit,pos = nil,nil
- for i = 0 , 1 , 0.2 do
- wait()
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- effect("White",0.5,LastPoint,Point)
- LastPoint = Point
- RW.C0 = CFrame.new(1+0.5*i, 1.5-1*i, -0.5+0.5*i) * CFrame.Angles(math.rad(180-45*i), 0, math.rad(-45+90*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1-0.5*i, 1.5-1*i, -0.5+0.5*i) * CFrame.Angles(math.rad(180-45*i), 0, math.rad(45-90*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-90+45*i), math.rad(0), math.rad(135-135*i))
- w1.C1 = CFrame.new(0,0,0)
- if i > 0.5 and not done then
- hit,pos = rayCast(Torso.Position, (Torso.CFrame * CFrame.Angles(math.rad(-90),0,0)).lookVector, 100, Character)
- bp.position = pos + Vector3.new(0,1,0)
- bp.P = 5000
- done = true
- end
- end
- dmgcnnct()
- local p1 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- for i = 0 , 1 , 0.2 do
- wait()
- RW.C0 = CFrame.new(1.5-1*i, 0.5, -1*i) * CFrame.Angles(math.rad(135-90*i), 0, math.rad(45-90*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(135-180*i), 0, math.rad(-45))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- w1.C1 = CFrame.new(0,0,0)
- end
- bp.Parent = nil
- ss(Head,1.5,1)
- for i = 0 , 1 , 0.2 do
- wait()
- RW.C0 = CFrame.new(0.5, 0.5, -1) * CFrame.Angles(math.rad(45-10*i), 0, math.rad(-45-10*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-45), 0, math.rad(-45))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- w1.C1 = CFrame.new(0,0,0)
- end
- local effectsmsh = Instance.new("SpecialMesh")
- effectsmsh.Scale = Vector3.new(0.5,1,0.5)
- effectsmsh.MeshId = "http://www.roblox.com/asset/?id=13425802"
- local effectsg = Instance.new("Part")
- effectsg.formFactor = 3
- effectsg.CanCollide = false
- effectsg.Name = "Eff"
- effectsg.Locked = true
- effectsg.Anchored = true
- effectsg.Size = Vector3.new(0.2,0.2,0.2)
- effectsg.Parent = swordholder
- effectsmsh.Parent = effectsg
- effectsg.BrickColor = bcolor
- effectsg.Reflectance = 0.25
- local point1 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- local LP = p1
- local mg = (LP.p - point1.p).magnitude
- effectsmsh.Scale = Vector3.new(mg/3,1,0.2)
- effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,math.rad(-90))
- coroutine.resume(coroutine.create(function()
- for i = 0 , 1 , 0.1 do
- wait()
- effectsg.Transparency = 1*i
- end
- wait()
- effectsg.Parent = nil
- end))
- wait(0.2)
- dmgdc()
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(0.5+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(35+55*i), 0, math.rad(-55+10*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(-45+90*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- end
- attack = false
- end
- function RoundSlash()
- attack = true
- ss(Head,1,0.5)
- local TorsCF = Torso.CFrame
- local bg = Instance.new("BodyGyro",Torso)
- bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- bg.P = bg.p * 25
- bg.cframe = TorsCF
- for i = 0 , 1 , 0.2 do
- wait()
- RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90+45*i), 0, math.rad(-45+90*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(45+25*i), 0, math.rad(45-90*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- end
- dmgcnnct()
- LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- for i = 0 , 1 , 0.2 do
- wait()
- RW.C0 = CFrame.new(1.5-1*i, 0.5, -1*i) * CFrame.Angles(math.rad(135-90*i), 0, math.rad(45-90*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(70-90*i), 0, math.rad(-45))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(45*i))
- w1.C1 = CFrame.Angles(math.rad(-25*i),0,0)
- bg.cframe = TorsCF * CFrame.Angles(0,math.rad(180*i),0)
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- effect("White",0.5,LastPoint,Point)
- LastPoint = Point
- end
- Hitdeb=0
- RWLFunc() LWLFunc()
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(0.5, 0.5, -1) * CFrame.Angles(math.rad(45), 0, math.rad(-45-25*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-45))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- RWL.C0 = CFrame.new(1, -1+1*i, -1*i) * CFrame.Angles(0, 0, 0)
- RWL.C1 = CFrame.new(0.5, 1, 0)
- LWL.C0 = CFrame.new(-1, -1-0.5*i, -0.5*i) * CFrame.Angles(math.rad(-90*i), 0, 0)
- LWL.C1 = CFrame.new(-0.5, 1, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(45))
- w1.C1 = CFrame.Angles(math.rad(-25),0,0)
- bg.cframe = TorsCF * CFrame.Angles(0,math.rad(180+180*i),0)
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- effect("White",0.5,LastPoint,Point)
- LastPoint = Point
- end
- dmgdc()
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(0.5+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(45+45*i), 0, math.rad(-70+25*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(-20+65*i), 0, math.rad(-45+90*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- RWL.C0 = CFrame.new(1, -1*i, -1+1*i) * CFrame.Angles(0, 0, 0)
- RWL.C1 = CFrame.new(0.5, 1, 0)
- LWL.C0 = CFrame.new(-1, -1.5+0.5*i, -0.5+0.5*i) * CFrame.Angles(math.rad(-90+90*i), 0, 0)
- LWL.C1 = CFrame.new(-0.5, 1, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(45-45*i))
- w1.C1 = CFrame.Angles(math.rad(-25+25*i),0,0)
- bg.cframe = TorsCF * CFrame.Angles(0,math.rad(360*i),0)
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- effect("White",0.5,LastPoint,Point)
- LastPoint = Point
- end
- RWLRem() LWLRem()
- wait(0.1)
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- effect("White",0.5,LastPoint,Point)
- LastPoint = Point
- bg.Parent = nil
- wait(0.1)
- attack = false
- end
- function Combo1()
- attack = true
- ss(Head,1,0.5)
- ss(Head,2,0.5)
- LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- dmgcnnct()
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90+90*i),math.rad(-45*i), math.rad(-45+90*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1+1*i, 0.5, -0.5-0.5*i) * CFrame.Angles(math.rad(45+90*i), 0, math.rad(45+45*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45-270*i), math.rad(0), math.rad(0))
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- effect("White",0.5,LastPoint,Point)
- LastPoint = Point
- if i > 0.2 then ss(Head,2,0.5) end
- end
- Hitdeb=0
- for i = 0 , 1 , 0.2 do
- wait()
- RW.C0 = CFrame.new(1.5-0.8*i, 0.5, -1*i) * CFrame.Angles(math.rad(180-145*i),math.rad(-45), math.rad(45-90*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(135-45*i), 0, math.rad(90-80*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-315), math.rad(0), math.rad(0))
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- effect("White",0.5,LastPoint,Point)
- LastPoint = Point
- end
- dmgdc()
- atktype(1,2)
- attack = false
- for i = 0 , 1 , 0.1 do
- if attack then return end
- wait()
- RW.C0 = CFrame.new(0.7-0.2*i, 0.5, -1) * CFrame.Angles(math.rad(35-20*i),math.rad(-45), math.rad(-45-20*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(10))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-315), math.rad(0), math.rad(0))
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- effect("White",0.5,LastPoint,Point)
- LastPoint = Point
- end
- for i = 0 , 1 , 0.1 do
- if attack then return end
- wait()
- RW.C0 = CFrame.new(0.5+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(15+75*i),math.rad(-45+45*i), math.rad(-65+20*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(10+35*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-315-90*i), math.rad(0), math.rad(0))
- end
- end
- function Combo2()
- attack = true
- ss(Head,1,0.5)
- for i = 0 , 1 ,0.1 do
- wait()
- RW.C0 = CFrame.new(0.7, 0.5, -1) * CFrame.Angles(math.rad(35+55*i),math.rad(-45+135*i), math.rad(-45+45*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-60*i), 0, 0)
- LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90), 0, math.rad(10))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-315-90*i), math.rad(0), math.rad(0))
- end
- dmgflipcnnct()
- LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- for i = 0 , 1 ,0.2 do
- wait()
- RW.C0 = CFrame.new(0.7-0.8*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90),math.rad(90), math.rad(0))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-60+195*i), 0, 0)
- LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(90), 0, math.rad(10+80*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- effect("White",0.5,LastPoint,Point)
- LastPoint = Point
- end
- dmgdc()
- local TorsCF = Torso.CFrame
- local bg = Instance.new("BodyGyro",Torso)
- bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- bg.P = 100000
- bg.cframe = TorsCF
- ss(Head,1,0.5)
- dmgflipcnnct()
- for i = 0 , 1 ,0.15 do
- wait()
- RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90),math.rad(90), math.rad(0))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(135-180*i), 0, 0)
- LW.C0 = CFrame.new(-1-0.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90), 0, math.rad(90-180*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- bg.cframe = TorsCF * CFrame.Angles(0,math.rad(-90*i),0)
- end
- LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- for i = 0 , 1 ,0.1 do
- wait()
- RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90),math.rad(90), math.rad(0))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45+180*i), 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-90))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- bg.cframe = TorsCF * CFrame.Angles(0,math.rad(-90-270*i),0)
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- effect("White",0.5,LastPoint,Point)
- LastPoint = Point
- end
- dmgdc()
- bg.Parent = nil
- attack = false
- atktype(1,3)
- for i = 0 , 1 ,0.2 do
- if attack then break end
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(90), math.rad(0))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(135+20*i), 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-90))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- end
- for i = 0 , 1 ,0.1 do
- if attack then break end
- wait()
- RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90),math.rad(90-90*i), math.rad(-45*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(155-155*i), 0, 0)
- LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(-90+135*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- end
- end
- function Combo3()
- attack=true
- wait(0.1)
- local TorsCF = Torso.CFrame
- local bg = Instance.new("BodyGyro",Torso)
- bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- bg.P = 100000
- bg.cframe = TorsCF
- for i = 0 , 1 ,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(90-90*i), math.rad(90*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(135-90*i), 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-90))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- Neck.C0 = neckcf0 * CFrame.Angles(0,0,math.rad(-90*i))
- bg.cframe = TorsCF * CFrame.Angles(0,math.rad(90*i),0)
- end
- local P1 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- local hitt = nil
- local TorsPos = P1.p
- local bp = Instance.new("BodyPosition")
- bp.maxForce = Vector3.new(math.huge, math.huge,math.huge)
- bp.P = 14000
- bp.position = TorsPos+Vector3.new(0,5,0)
- local connection = prt1.Touched:connect(function(hit)
- if hitt ~= nil then
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- hitt = hit.Parent.Torso
- bp.Parent=hitt
- wait(2)
- bp.Parent = nil
- end
- end
- end)
- subdmg(-10)
- dmgflipcnnct()
- for i = 0 , 1 ,0.2 do
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0), math.rad(90))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(45-135*i), 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-90))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- Neck.C0 = neckcf0 * CFrame.Angles(0,0,math.rad(-90))
- bg.cframe = TorsCF * CFrame.Angles(0,math.rad(90),0)
- end
- srfs(Head,1,0.5)
- ss(Head,1,0.5)
- returndmg()
- dmgdc()
- local P2 = CFrame.new(P1.p) * CFrame.new(0,15,0) * CFrame.Angles(math.rad(-10),0,0)
- local effectsmsh = Instance.new("SpecialMesh")
- effectsmsh.MeshType = "Sphere"
- local effectsg = Instance.new("Part")
- effectsg.formFactor = 3
- effectsg.CanCollide = false
- effectsg.Name = "Eff"
- effectsg.Locked = true
- effectsg.Anchored = true
- effectsg.Size = Vector3.new(1,2,1)
- effectsg.Parent = swordholder
- effectsmsh.Parent = effectsg
- effectsg.BrickColor = bcolor
- effectsg.Reflectance = 0.25
- local point1 = P2
- local LP = P1
- local mg = (LP.p - point1.p).magnitude
- effectsmsh.Scale = Vector3.new(mg/5,mg*2,mg/5)
- effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) + Vector3.new(0,-mg,0)
- coroutine.resume(coroutine.create(function()
- for i = 0 , 1 , 0.1 do
- wait()
- effectsg.Transparency = 1*i
- end
- wait()
- effectsg.Parent = nil
- end))
- connection:disconnect()
- for i = 0 , 1 ,0.2 do
- wait()
- RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90),math.rad(0), math.rad(90-135*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-90+90*i), 0, 0)
- LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(-90+135*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- Neck.C0 = neckcf0 * CFrame.Angles(0,0,math.rad(-90+90*i))
- bg.cframe = TorsCF * CFrame.Angles(0,math.rad(90-90*i),0)
- end
- Neck.C0 = neckcf0
- bg.Parent = nil
- attack=false
- end
- local helm = Instance.new("Part")
- helm.formFactor = 3
- helm.CanCollide = false
- helm.Name = "LancerHelm"
- helm.Locked = true
- helm.Size = Vector3.new(0.2,0.2,0.2)
- helm.BrickColor = bcolor
- local helmm = Instance.new("SpecialMesh")
- helmm.MeshId = ""
- helmm.Parent = helm
- local helmw = Instance.new("Weld")
- local LancerM = false
- function ultimate()
- attack = true
- ss(Head,1,0.7)
- ss(Head,2,0.7)
- LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- dmgcnnct()
- Hitdeb=0
- for i = 0 , 1 , 0.2 do
- wait()
- RW.C0 = CFrame.new(1.5-0.8*i, 0.5, -1*i) * CFrame.Angles(math.rad(180-125*i),math.rad(-35), math.rad(45-90*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(135-45*i), 0, math.rad(90-80*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-315), math.rad(0), math.rad(0))
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- effect("White",0.5,LastPoint,Point)
- LastPoint = Point
- end
- dmgdc()
- atktype(1,2)
- attack = false
- for i = 0 , 1 , 0.1 do
- if attack then return end
- wait()
- RW.C0 = CFrame.new(0.7-0.2*i, 0.5, -1) * CFrame.Angles(math.rad(35-20*i),math.rad(-45), math.rad(-45-20*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(10))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-315), math.rad(0), math.rad(0))
- local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
- effect("White",0.5,LastPoint,Point)
- LastPoint = Point
- end
- for i = 0 , 1 , 0.1 do
- if attack then return end
- wait()
- RW.C0 = CFrame.new(0.5+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(15+75*i),math.rad(-45+45*i), math.rad(-65+20*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(10+35*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-315-90*i), math.rad(0), math.rad(0))
- end
- end
- function LancerMode()
- attack=true
- if not LancerM then
- hd.Transparency=1
- for i = 0,1,0.2 do
- wait()
- RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90), 0, math.rad(-45+135*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(45-45*i), 0, math.rad(45-45*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45-45*i), math.rad(0), math.rad(0))
- end
- for i = 0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90), 0, math.rad(90))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, 0) * CFrame.Angles(math.rad(-45*i), 0, math.rad(45*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- end
- helm.Parent = swordholder
- helmw.Parent = helm
- helmw.Part0 = helm
- helmw.Part1 = LeftArm
- helmw.C0 = CFrame.Angles(math.rad(90),0,math.rad(90))
- helmw.C1 = CFrame.new(0,-1.5,0)
- bonusdmg = 10
- LancerM = true
- wait()
- for i = 0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90), 0, math.rad(90))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0 , 0)
- LW.C0 = CFrame.new(-1-0.5*i, 0.5, 0) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(45-90*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- end
- for i = 0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90), 0, math.rad(90))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0 , 0)
- LW.C0 = CFrame.new(-1.5-0.5*i, 0.5+1*i, 0) * CFrame.Angles(math.rad(45+45*i), 0, math.rad(-45+135*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- end
- helmw.Part1 = Head
- helmw.C0 = CFrame.new(0,-0.25,0)
- helmw.C1 = CFrame.new()
- coroutine.resume(coroutine.create(function()
- local meshb = Instance.new("SpecialMesh")
- meshb.Scale = Vector3.new(0,0,0)
- meshb.MeshType = "Sphere"
- local shellb = Instance.new("Part")
- meshb.Parent = shellb
- shellb.Anchored = true
- shellb.formFactor = 3
- shellb.Size = Vector3.new(1,1,1)
- shellb.CFrame = Torso.CFrame
- shellb.Parent = swordholder
- shellb.Transparency = 0
- shellb.BrickColor = bcolor
- shellb.CanCollide = false
- coroutine.resume(coroutine.create(function()
- for i = 0 ,1,0.05 do
- wait()
- shellb.Transparency = 1*i
- meshb.Scale = Vector3.new(20*i,20*i,20*i)
- end
- shellb.Parent = nil
- end))
- local spinval = 0
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
- SlashSound.Parent = Head
- SlashSound.Volume = 0.25
- SlashSound.Pitch = 0.1
- SlashSound.PlayOnRemove = true
- SlashSound.Looped = true
- coroutine.resume(coroutine.create(function()
- wait()
- SlashSound.Parent = nil
- end))
- local SlashSound2 = Instance.new("Sound")
- SlashSound2.SoundId = "http://www.roblox.com/asset?id=1369158"
- SlashSound2.Parent = Head
- SlashSound2.Volume = 1
- SlashSound2.Pitch = 0.05
- SlashSound2.PlayOnRemove = true
- SlashSound2.Looped = true
- coroutine.resume(coroutine.create(function()
- wait()
- SlashSound2.Parent = nil
- end))
- local ws = Character.Humanoid.WalkSpeed
- repeat
- wait(0.05)
- Character.Humanoid.WalkSpeed = ws * 1.25
- spinval = spinval + 0.1
- local mesh = Instance.new("SpecialMesh")
- mesh.Scale = Vector3.new(5.1,5,5.1)
- mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
- local shell = Instance.new("Part")
- mesh.Parent = shell
- shell.Anchored = true
- shell.formFactor = 3
- shell.Size = Vector3.new(0.2,0.2,0.2)
- shell.CFrame = Torso.CFrame * CFrame.Angles(0,spinval,0) + Vector3.new(0,-2.5,0)
- shell.Parent = swordholder
- shell.Transparency = 1
- shell.BrickColor = handlecolor
- shell.CanCollide = false
- local mesh2 = Instance.new("SpecialMesh")
- mesh2.Scale = Vector3.new(8,8,8)
- mesh2.MeshId = "http://www.roblox.com/asset/?id=1051557"
- local shell2 = Instance.new("Part")
- mesh2.Parent = shell2
- shell2.Anchored = true
- shell2.formFactor = 3
- shell2.Size = Vector3.new(0.2,0.2,0.2)
- shell2.CFrame = Torso.CFrame * CFrame.Angles(0,spinval,0) + Vector3.new(0,-2.5,0)
- shell2.Parent = swordholder
- shell2.Transparency = 1
- shell2.BrickColor = bcolor
- shell2.CanCollide = false
- local mesh3 = Instance.new("BlockMesh")
- mesh3.Scale = Vector3.new(5,5,5)
- local shell3 = Instance.new("Part")
- mesh3.Parent = shell3
- shell3.Anchored = true
- shell3.formFactor = 3
- shell3.Size = Vector3.new(1,1,1)
- shell3.CFrame = Torso.CFrame * CFrame.Angles(math.random(),math.random(),math.random())
- shell3.Parent = swordholder
- shell3.Transparency = 0.5
- shell3.BrickColor = bcolor
- shell3.CanCollide = false
- coroutine.resume(coroutine.create(function()
- for i = 0 ,1,0.2 do
- wait()
- shell.Transparency = 1-1*i
- shell2.Transparency = 1-1*i
- shell3.Transparency = 0.5+0.25*i
- end
- for i = 0 ,1,0.2 do
- wait()
- shell.Transparency = 1*i
- shell2.Transparency = 1*i
- shell3.Transparency = 0.75+0.25*i
- end
- shell.Parent = nil
- shell2.Parent = nil
- shell3.Parent = nil
- end))
- until not LancerM
- Character.Humanoid.WalkSpeed = ws
- SlashSound:Stop() SlashSound2:Stop()
- end))
- for i = 0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.Angles(math.rad(90), 0, math.rad(90-135*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0 , 0)
- LW.C0 = CFrame.new(-1, 1.5-1*i, -0.5*i) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(90-45*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-90+45*i), math.rad(0), math.rad(0))
- end
- elseif LancerM then
- LancerM = false
- local meshb = Instance.new("SpecialMesh")
- meshb.Scale = Vector3.new(0,0,0)
- meshb.MeshId = "http://www.roblox.com/asset/?id=1038653"
- local shellb = Instance.new("Part")
- meshb.Parent = shellb
- shellb.Anchored = true
- shellb.formFactor = 3
- shellb.Size = Vector3.new(1,1,1)
- shellb.CFrame = Torso.CFrame
- shellb.Parent = swordholder
- shellb.Transparency = 1
- shellb.Reflectance = 0.25
- shellb.BrickColor = bcolor
- shellb.CanCollide = false
- local meshb2 = Instance.new("SpecialMesh")
- meshb2.Scale = Vector3.new(0,0,0)
- meshb2.MeshType = "Sphere"
- local shellb2 = Instance.new("Part")
- meshb2.Parent = shellb2
- shellb2.Anchored = true
- shellb2.formFactor = 3
- shellb2.Size = Vector3.new(1,1,1)
- shellb2.CFrame = Torso.CFrame
- shellb2.Parent = swordholder
- shellb2.Transparency = 1
- shellb2.Reflectance = 0.25
- shellb2.BrickColor = bcolor
- shellb2.CanCollide = false
- coroutine.resume(coroutine.create(function()
- for i = 0 ,1,0.05 do
- wait()
- shellb.Transparency = 1-1*i
- meshb.Scale = Vector3.new(30*i,30*i,30*i)
- shellb2.Transparency = 1-1*i
- meshb2.Scale = Vector3.new(15*i,100*i,15*i)
- end
- for i = 0 ,1,0.05 do
- wait()
- shellb.Transparency = 1*i
- meshb.Scale = Vector3.new(30+50*i,30+50*i,30+50*i)
- shellb2.Transparency = 1*i
- meshb2.Scale = Vector3.new(15-15*i,100+100*i,15-15*i)
- end
- shellb2.Parent = nil
- shellb.Parent = nil
- end))
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-45+45*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1, 0.5+1*i, -0.5+0.5*i) * CFrame.Angles(math.rad(45+45*i), 0, math.rad(45+45*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45-45*i), math.rad(0), math.rad(0))
- end
- helmw.Part1 = LeftArm
- helmw.C0 = CFrame.Angles(math.rad(90),0,math.rad(90))
- helmw.C1 = CFrame.new(0,-1.5,0)
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(0))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1-0.5*i, 1.5-1*i, 0) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(90-135*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- end
- for i = 0 , 1 , 0.2 do
- wait()
- RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(0))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45-90*i), 0, math.rad(-45+90*i))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- end
- helm.Parent = nil
- helmw.Parent = nil
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-45*i))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(45))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-90+45*i), math.rad(0), math.rad(0))
- end
- end
- attack=false
- hd.Transparency=0
- end
- local recentlyjumped = false
- function Jump()
- attack=true
- local vel = Instance.new("BodyVelocity")
- vel.maxForce = Vector3.new(0,math.huge,0)
- vel.P = vel.P * 2
- vel.velocity = Vector3.new(0,80,0)
- vel.Parent = Torso
- wait(0.1)
- vel.Parent = nil
- local floor = false
- coroutine.resume(coroutine.create(function()
- repeat
- wait(0.05)
- hit,pos = rayCast(Torso.Position, (CFrame.new(Torso.Position,Torso.Position - Vector3.new(0,6,0))).lookVector, 6, Character)
- if hit ~= nil then
- floor = true
- end
- until floor
- end))
- local spinval = 0
- ss(Head,1,0.25)
- coroutine.resume(coroutine.create(function()
- for i = 0 , 1 , 0.1 do
- if floor then return end
- wait()
- RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(-45))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(45), 0, math.rad(45))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.new(0,-1*i,0) * CFrame.Angles(math.rad(-45-90*i), 0, math.rad(-45*i))
- end
- end))
- repeat
- wait(0.05)
- spinval = spinval + 0.1
- local mesh = Instance.new("SpecialMesh")
- mesh.Scale = Vector3.new(5.1,5,5.1)
- mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
- local shell = Instance.new("Part")
- mesh.Parent = shell
- shell.Anchored = true
- shell.formFactor = 3
- shell.Size = Vector3.new(0.2,0.2,0.2)
- shell.CFrame = Torso.CFrame * CFrame.Angles(0,spinval,0) + Vector3.new(0,-2.5,0)
- shell.Parent = swordholder
- shell.Transparency = 1
- shell.BrickColor = handlecolor
- shell.CanCollide = false
- local mesh2 = Instance.new("SpecialMesh")
- mesh2.Scale = Vector3.new(8,8,8)
- mesh2.MeshId = "http://www.roblox.com/asset/?id=1051557"
- local shell2 = Instance.new("Part")
- mesh2.Parent = shell2
- shell2.Anchored = true
- shell2.formFactor = 3
- shell2.Size = Vector3.new(0.2,0.2,0.2)
- shell2.CFrame = Torso.CFrame * CFrame.Angles(0,spinval,0) + Vector3.new(0,-2.5,0)
- shell2.Parent = swordholder
- shell2.Transparency = 1
- shell2.BrickColor = bcolor
- shell2.CanCollide = false
- coroutine.resume(coroutine.create(function()
- for i = 0 ,1,0.2 do
- wait()
- shell.Transparency = 1-1*i
- shell2.Transparency = 1-1*i
- end
- for i = 0 ,1,0.2 do
- wait()
- shell.Transparency = 1*i
- shell2.Transparency = 1*i
- end
- shell.Parent = nil
- shell2.Parent = nil
- end))
- until floor
- local ps = Instance.new("BodyPosition")
- ps.Parent = Torso
- ps.position = Torso.Position
- ps.maxForce = Vector3.new(1,1,1) * math.huge
- ps.P = ps.P * 2
- coroutine.resume(coroutine.create(function() wait(0.05) ps.Parent = nil end))
- for rep = 1,3 do
- srfs(Head,0.45+0.2*math.random(),0.5) ls(Head,0.15+0.2*math.random(),0.5) cs(Head,0.4+0.2*math.random(),0.5)
- end
- local meshb = Instance.new("SpecialMesh")
- meshb.Scale = Vector3.new(0,0,0)
- meshb.MeshId = "http://www.roblox.com/asset/?id=1038653"
- local shellb = Instance.new("Part")
- meshb.Parent = shellb
- shellb.Anchored = true
- shellb.formFactor = 3
- shellb.Size = Vector3.new(1,1,1)
- shellb.CFrame = CFrame.new(Torso.Position)
- shellb.Parent = swordholder
- shellb.Transparency = 1
- shellb.Reflectance = 0.25
- shellb.BrickColor = bcolor
- shellb.CanCollide = false
- local meshb2 = Instance.new("SpecialMesh")
- meshb2.Scale = Vector3.new(0,0,0)
- meshb2.MeshType = "Sphere"
- local shellb2 = Instance.new("Part")
- meshb2.Parent = shellb2
- shellb2.Anchored = true
- shellb2.formFactor = 3
- shellb2.Size = Vector3.new(1,1,1)
- shellb2.CFrame = CFrame.new(Torso.Position)
- shellb2.Parent = swordholder
- shellb2.Transparency = 1
- shellb2.Reflectance = 0.25
- shellb2.BrickColor = bcolor
- shellb2.CanCollide = false
- local meshb3 = Instance.new("SpecialMesh")
- meshb3.Scale = Vector3.new(0,0,0)
- meshb3.MeshId = "http://www.roblox.com/asset/?id=1051557"
- local shellb3 = Instance.new("Part")
- meshb3.Parent = shellb3
- shellb3.Anchored = true
- shellb3.formFactor = 3
- shellb3.Size = Vector3.new(1,1,1)
- shellb3.CFrame = CFrame.new(Torso.Position+Vector3.new(0,10,0)) * CFrame.Angles(math.rad(180),0,0)
- shellb3.Parent = swordholder
- shellb3.Transparency = 1
- shellb3.Reflectance = 0.25
- shellb3.BrickColor = bcolor
- shellb3.CanCollide = false
- coroutine.resume(coroutine.create(function()
- local spinv = 0
- for i = 0 ,1,0.05 do
- wait()
- spinv = spinv+0.5
- shellb.Transparency = 1-1*i
- meshb.Scale = Vector3.new(25*i,25*i,25*i)
- shellb2.Transparency = 1-1*i
- meshb2.Scale = Vector3.new(50*i,5*i,50*i)
- shellb3.Transparency = 1-1*i
- meshb3.Scale = Vector3.new(40*i,40,40*i)
- shellb3.CFrame = shellb3.CFrame * CFrame.Angles(0,spinval,0)
- end
- prcntdmg(-50)
- AoE(Torso.Position,25)
- for i = 0 ,1,0.05 do
- wait()
- spinv = spinv+0.5
- shellb.Transparency = 1*i
- meshb.Scale = Vector3.new(25+25*i,25+25*i,25+25*i)
- shellb2.Transparency = 1*i
- meshb2.Scale = Vector3.new(50+25*i,5-5*i,50+25*i)
- shellb3.Transparency = 1*i
- meshb3.Scale = Vector3.new(40+40*i,40,40+40*i)
- shellb3.CFrame = shellb3.CFrame * CFrame.Angles(0,spinval,0)
- end
- AoE(Torso.Position,35)
- returndmg()
- shellb3.Parent = nil
- shellb2.Parent = nil
- shellb.Parent = nil
- end))
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(45+45*i), 0, math.rad(-45))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(45), 0, math.rad(45))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.new(0,-1+1*i,0) * CFrame.Angles(math.rad(-135+90*i), 0, math.rad(-45+45*i))
- end
- attack=false
- coroutine.resume(coroutine.create(function()
- recentlyjumped = true
- wait(5)
- recentlyjumped = false
- end))
- end
- function Dash()
- attack = true
- for i = 0 , 1 ,0.1 do
- wait()
- RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-45))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(45), 0, math.rad(45))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- end
- attack = false
- end
- function returnwelds()
- RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-45))
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(45), 0, math.rad(45))
- LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
- w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
- RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
- RWL.C1 = CFrame.new(0.5, 1, 0)
- LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
- LWL.C1 = CFrame.new(-0.5, 1, 0)
- end
- function ob1d(mouse)
- hold = true
- if attack then return end
- if attacktype == 1 then
- Combo1()
- elseif attacktype == 2 then
- Combo2()
- elseif attacktype == 3 then
- Combo3()
- end
- end
- function ob1u(mouse)
- end
- buttonhold = false
- local last_attack = 0
- function key(key)
- if attack then return end
- t = game:service("RunService").Stepped:wait()
- if key == "q" then
- Slash1()
- end
- if key == "e" then
- RoundSlash()
- end
- if key == "g" then
- ultimate()
- end
- if key == "f" then
- LancerMode()
- end
- if key == "w" and (t - last_attack < 0.5) then
- buttonhold = true
- Dash()
- end
- if key == " " and (t - last_attack < 0.5) and (Torso.Velocity.y > -15) and not recentlyjumped then
- Jump()
- end
- last_attack = t
- end
- function key2(key)
- if key == "w" then
- buttonhold = false
- end
- end
- function s(mouse)
- repeat wait() until not attack
- repeat wait() until not ev.Value
- mouse.Button1Down:connect(function() ob1d(mouse) end)
- mouse.Button1Up:connect(function() ob1u(mouse) end)
- mouse.KeyDown:connect(key)
- mouse.KeyUp:connect(key2)
- equipanim()
- MMouse = mouse
- ev.Value = true
- end
- function ds(mouse)
- repeat wait() until not attack
- repeat wait() until ev.Value
- hideanim()
- wait(0.1)
- ev.Value = false
- end
- Bin.Selected:connect(s)
- Bin.Deselected:connect(ds)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement