Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- m=Instance.new('Model',Character)
- 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"]
- Face = Head.face
- Neck=Torso.Neck
- it=Instance.new
- attacktype=1
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- cloaked=false
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- attackdebounce = false
- deb=false
- equipped=true
- hand=false
- MMouse=nil
- combo=0
- mana=0
- trispeed=1
- pathtrans=.7
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local Effects={}
- local gun=false
- local shoot=false
- player=nil
- cloak=false
- lightcolor='Bright blue'
- local Color1=Torso.BrickColor
- mouse=Player:GetMouse()
- --save shoulders
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- TorsoColor=Torso.BrickColor
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- 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
- fp.Position=Torso.Position
- 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
- local Color1=Torso.BrickColor
- Player=game:GetService('Players').LocalPlayer
- Character=Player.Character
- Mouse=Player:GetMouse()
- m=Instance.new('Model',Character)
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- it=Instance.new
- function nooutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,material,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.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0,c1)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- weld.C1=c1
- return weld
- end
- --------------------------------
- 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 debris=game:service"Debris"
- local l = game:GetService("Lighting")
- local rs = game:GetService("RunService").RenderStepped
- ptz = {500, 1, 0.9, 0.95, 1, 9.05, 1.1}
- math.randomseed(os.time())
- for i,v in pairs(char:children()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- for i,v in pairs (hed:GetChildren()) do
- if v:IsA("Sound") then
- v:Destroy()
- end
- end
- ----------------------------------------------------
- z = Instance.new("Sound", torso)
- z.SoundId = "rbxassetid://0" -- Put Music ID Here.
- z.Looped = true
- z.Volume = 1
- wait(.1)
- z:Play()
- -----------------------------------------------------
- Debounces = {
- CanAttack = true;
- NoIdl = false;
- Slashing = false;
- Slashed = false;
- RPunch = false;
- RPunched = false;
- LPunch = false;
- LPunched = false;
- }
- local Touche = {char.Name, }
- ----------------------------------------------------
- hed.face.Texture = "rbxassetid://406001167"
- char["Body Colors"].HeadColor = BrickColor.new("Institutional white")
- char["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
- char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
- char["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
- char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
- char["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
- ----------------------------------------------------
- ypcall(function()
- char.Shirt:Destroy()
- char.Pants:Destroy()
- shirt = Instance.new("Shirt", char)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", char)
- pants.Name = "Pants"
- char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=318247349"
- char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=454827278"
- end)
- ----------------------------------------------------
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
- Character.Head.Transparency = 0
- local Orb = Instance.new("Part", Character)
- Orb.Name = "Orb"
- Orb.CanCollide = false
- Orb.BrickColor = BrickColor.new("Institutional white")
- Orb.Transparency = 0
- Orb.Material = "Plastic"
- Orb.Size = Vector3.new(1, 1, 1)
- local M = Instance.new("SpecialMesh")
- M.Parent = Orb
- M.MeshId = "http://www.roblox.com/asset/?id=23264474"
- M.Scale = Vector3.new(1.3, 1.3, 1.3)
- local Weld = Instance.new("Weld", Orb)
- Weld.Part0 = Character.Head
- Weld.Part1 = Orb
- Weld.C1 = CFrame.new(0, -0.5, 0)
- ------------------------------------------------------
- CV="Institutional white"
- local txt = Instance.new("BillboardGui", char)
- txt.Adornee = char .Orb
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-2, 1.5, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(3, 0, 0.5, 0)
- text.FontSize = "Size8"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Arial"
- text.TextStrokeColor3 = Color3.new(0,0,0)
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=p.Character
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,2,3)
- v.Transparency=0.7
- v.CFrame=char.Torso.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- text.TextColor3 = v.BrickColor.Color
- v.Shape="Block"
- text.Text = "Herdin"
- --------------------------------------------------------
- local Orbd = Instance.new("Part", Character)
- Orbd.Name = "Orbd"
- Orbd.Shape = Enum.PartType.Ball
- Orbd.CanCollide = false
- Orbd.BrickColor = BrickColor.new("Institutional white")
- Orbd.Transparency = 0
- Orbd.Material = "Neon"
- Orbd.Size = Vector3.new(0.1, 0.1, 0.1)
- Orbd.TopSurface = Enum.SurfaceType.Smooth
- Orbd.BottomSurface = Enum.SurfaceType.Smooth
- local Weld = Instance.new("Weld", Orbd)
- Weld.Part0 = Character.Head
- Weld.Part1 = Orbd
- Weld.C1 = CFrame.new(-0.2, -0.2, 0.5)
- --------------------------------------------------------
- local Orbvc = Instance.new("Part", Character)
- Orbvc.Name = "Orbvc"
- Orbvc.Shape = Enum.PartType.Ball
- Orbvc.CanCollide = false
- Orbvc.BrickColor = BrickColor.new("Institutional white")
- Orbvc.Transparency = 0
- Orbvc.Material = "Neon"
- Orbvc.Size = Vector3.new(0.1, 0.1, 0.1)
- Orbvc.TopSurface = Enum.SurfaceType.Smooth
- Orbvc.BottomSurface = Enum.SurfaceType.Smooth
- local Weld = Instance.new("Weld", Orbvc)
- Weld.Part0 = Character.Head
- Weld.Part1 = Orbvc
- Weld.C1 = CFrame.new(0.2, -0.2, 0.5)
- ---------------------
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
- Character.Head.Transparency = 1
- local Camisa = Instance.new("Part", Character)
- Camisa.Name = "Camisa"
- Camisa.CanCollide = false
- Camisa.BrickColor = BrickColor.new("Institutional white")
- Camisa.Transparency = 1
- Camisa.Material = "Plastic"
- Camisa.Size = Vector3.new(1.5, 1.5, 1)
- local Weld = Instance.new("Weld", Camisa)
- Weld.Part0 = Character.Torso
- Weld.Part1 = Camisa
- Weld.C1 = CFrame.new(0, 0, 0)
- ----------------------------------------
- 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 rj = root.RootJoint
- local deb = false
- local shot = 0
- local stanceToggle = "Idle1"
- local l = game:GetService("Lighting")
- local rs = game:GetService("RunService").RenderStepped
- local hb = game:GetService("RunService").Heartbeat
- local Stepped = game:GetService("RunService").Stepped
- math.randomseed(os.time())
- hum.JumpPower = 100
- hed.face:Remove()
- ----------------------------------------------------
- fat = Instance.new("BindableEvent",script)
- fat.Name = "Heartbeat"
- 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)
- ----------------------------------------------------
- for i,v in pairs(char:children()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- for i,v in pairs (hed:GetChildren()) do
- if v:IsA("Sound") then
- v:Destroy()
- end
- end
- ----------------------------------------------------
- Debounces = {
- CanAttack = true;
- CanJoke = true;
- NoIdl = false;
- Slashing = false;
- Slashed = false;
- ks = false;
- }
- ----------------------------------------------------
- function weld5(part0, part1, c0, c1)
- weeld=Instance.new("Weld", part0)
- weeld.Part0=part0
- weeld.Part1=part1
- weeld.C0=c0
- weeld.C1=c1
- return weeld
- end
- ----------------------------------------------------
- function NewPart(prnt,siz,cf,trans,anc,mat,col)
- local prt=Instance.new("Part")
- prt.Parent=prnt
- prt.Name="Part"
- prt.Size=siz
- prt.CanCollide=false
- prt.Anchored=anc
- prt.Locked=true
- prt.Transparency = trans
- prt.TopSurface=10
- prt.BottomSurface=10
- prt.FrontSurface=10
- prt.BackSurface=10
- prt.LeftSurface=10
- prt.RightSurface=10
- prt:BreakJoints()
- prt.CFrame=cf or CFrame.new(30,10,30)
- prt.Material=mat
- prt.BrickColor=BrickColor.new(col)
- m=Instance.new("SpecialMesh",prt)
- m.MeshType=6
- return prt
- end
- ----------------------------------------------------
- function lerp(a, b, t) -- Linear interpolation
- return a + (b - a)*t
- end
- function slerp(a, b, t) --Spherical interpolation
- dot = a:Dot(b)
- if dot > 0.99999 or dot < -0.99999 then
- return t <= 0.5 and a or b
- else
- r = math.acos(dot)
- return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
- end
- end
- function matrixInterpolate(a, b, t)
- local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
- local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
- local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
- local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
- local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
- local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
- local t = v1:Dot(v2)
- if not (t < 0 or t == 0 or t > 0) then -- Failsafe
- return CFrame.new()
- end
- return CFrame.new(
- v0.x, v0.y, v0.z,
- v1.x, v1.y, v1.z,
- v2.x, v2.y, v2.z,
- v3.x, v3.y, v3.z)
- end
- ----------------------------------------------------
- function genWeld(a,b)
- local w = Instance.new("Weld",a)
- w.Part0 = a
- w.Part1 = b
- return w
- end
- function weld(a, b)
- local weld = Instance.new("Weld")
- weld.Name = "W"
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = a.CFrame:inverse() * b.CFrame
- weld.Parent = a
- return weld;
- end
- ----------------------------------------------------
- function Lerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- ----------------------------------------------------
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- ----------------------------------------------------
- newWeld(torso, larm, -1.5, 0.5, 0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, rarm, 1.5, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, hed, 0, 1.5, 0)
- newWeld(torso, lleg, -0.5, -1, 0)
- lleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(torso, rleg, 0.5, -1, 0)
- rleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(root, torso, 0, -1, 0)
- torso.Weld.C1 = CFrame.new(0, -1, 0)
- ----------------------------------------------------
- z = Instance.new("Sound",char) --Smile: print("â?º")
- z.SoundId = "rbxassetid://0"--410761150, 411368002
- z.Looped = true
- z.Pitch = 1
- z.Volume = 1
- wait(0.1)
- z:Play()
- ----------------------------------------------------
- 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
- ----------------------------------------------------
- --Left Arm
- m = Instance.new("Model")
- m.Name = "LeftArm"
- p4 = Instance.new("Part", m)
- p4.BrickColor = BrickColor.new("Really black")
- p4.Material = Enum.Material.SmoothPlastic
- p4.Name = "LeftArmPlate"
- p4.Size = Vector3.new(1, 2, 1)
- p4.Transparency = 1
- p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- b4 = Instance.new("SpecialMesh", p4)
- b4.MeshType = Enum.MeshType.Brick
- b4.Name = "Mesh"
- b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
- w1 = Instance.new("Weld", p1)
- w1.Name = "Part_Weld"
- w1.Part0 = p1
- w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w1.Part1 = p2
- w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w2 = Instance.new("Weld", p2)
- w2.Name = "Part_Weld"
- w2.Part0 = p2
- w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w2.Part1 = p3
- w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w3 = Instance.new("Weld", p3)
- w3.Name = "LeftArmPlate_Weld"
- w3.Part0 = p3
- w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w3.Part1 = p4
- w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w4 = Instance.new("Weld", p4)
- w4.Name = "Part_Weld"
- w4.Part0 = p4
- w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w4.Part1 = p5
- w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w5 = Instance.new("Weld", p5)
- w5.Name = "Part_Weld"
- w5.Part0 = p5
- w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w5.Part1 = p6
- w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w6 = Instance.new("Weld", p6)
- w6.Name = "Part_Weld"
- w6.Part0 = p6
- w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w6.Part1 = p7
- w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w7 = Instance.new("Weld", p7)
- w7.Name = "Part_Weld"
- w7.Part0 = p7
- w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w7.Part1 = p8
- w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w8 = Instance.new("Weld", p8)
- w8.Name = "Part_Weld"
- w8.Part0 = p8
- w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w8.Part1 = p9
- w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w9 = Instance.new("Weld", p9)
- w9.Name = "Part_Weld"
- w9.Part0 = p9
- w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w9.Part1 = p10
- w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w10 = Instance.new("Weld", p10)
- w10.Name = "Part_Weld"
- w10.Part0 = p10
- w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w10.Part1 = p11
- w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w11 = Instance.new("Weld", p11)
- w11.Name = "Part_Weld"
- w11.Part0 = p11
- w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w11.Part1 = p12
- w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w12 = Instance.new("Weld", p12)
- w12.Name = "Part_Weld"
- w12.Part0 = p12
- w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w12.Part1 = p13
- w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w13 = Instance.new("Weld", p13)
- w13.Name = "Part_Weld"
- w13.Part0 = p13
- w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w13.Part1 = p14
- w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w14 = Instance.new("Weld", p14)
- w14.Name = "Part_Weld"
- w14.Part0 = p14
- w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w14.Part1 = p15
- w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w15 = Instance.new("Weld", p15)
- w15.Name = "Part_Weld"
- w15.Part0 = p15
- w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w15.Part1 = p16
- w15.C1 = CFrame.new(1.49142683, -27.338007, 3.81166649, 1, -2.04123751e-007, -6.57511308e-008, 1.67448022e-007, 0.500000119, 0.866025329, -1.06342185e-007, -0.866025269, 0.5)
- m.Parent = larm
- m:MakeJoints()
- ----------------------------------------------------
- local cor = Instance.new("Part", larm.LeftArm)
- cor.Name = "Thingy"
- cor.Locked = true
- cor.BottomSurface = 0
- cor.CanCollide = false
- cor.Size = Vector3.new(1, 1, 1)
- cor.Transparency = 1
- cor.TopSurface = 0
- corw = Instance.new("Weld", cor)
- corw.Part0 = larm
- corw.Part1 = cor
- corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- weld1 = Instance.new("Weld", larm.LeftArm)
- weld1.Part0 = cor
- weld1.Part1 = larm.LeftArm.LeftArmPlate
- weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- --Right Arm
- m2 = Instance.new("Model")
- m2.Name = "RightArm"
- p7 = Instance.new("Part", m2)
- p7.BrickColor = BrickColor.new("Institutional white")
- p7.Material = Enum.Material.SmoothPlastic
- p7.Transparency = 1
- p7.Name = "RightArmPlate"
- p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p7.FormFactor = Enum.FormFactor.Symmetric
- p7.Size = Vector3.new(1, 2, 1)
- p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- b7 = Instance.new("SpecialMesh", p7)
- b7.MeshType = Enum.MeshType.Brick
- b7.Name = "Mesh"
- b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
- w1 = Instance.new("Weld", p1)
- w1.Name = "Part_Weld"
- w1.Part0 = p1
- w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w1.Part1 = p2
- w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w2 = Instance.new("Weld", p2)
- w2.Name = "Part_Weld"
- w2.Part0 = p2
- w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w2.Part1 = p3
- w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w3 = Instance.new("Weld", p3)
- w3.Name = "Part_Weld"
- w3.Part0 = p3
- w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w3.Part1 = p4
- w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w4 = Instance.new("Weld", p4)
- w4.Name = "Part_Weld"
- w4.Part0 = p4
- w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w4.Part1 = p5
- w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w5 = Instance.new("Weld", p5)
- w5.Name = "Part_Weld"
- w5.Part0 = p5
- w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w5.Part1 = p6
- w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w6 = Instance.new("Weld", p6)
- w6.Name = "RightArmPlate_Weld"
- w6.Part0 = p6
- w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w6.Part1 = p7
- w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w7 = Instance.new("Weld", p7)
- w7.Name = "Part_Weld"
- w7.Part0 = p7
- w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w7.Part1 = p8
- w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w8 = Instance.new("Weld", p8)
- w8.Name = "Part_Weld"
- w8.Part0 = p8
- w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w8.Part1 = p9
- w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w9 = Instance.new("Weld", p9)
- w9.Name = "Part_Weld"
- w9.Part0 = p9
- w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w9.Part1 = p10
- w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w10 = Instance.new("Weld", p10)
- w10.Name = "Part_Weld"
- w10.Part0 = p10
- w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w10.Part1 = p11
- w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w11 = Instance.new("Weld", p11)
- w11.Name = "Part_Weld"
- w11.Part0 = p11
- w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w11.Part1 = p12
- w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w12 = Instance.new("Weld", p12)
- w12.Name = "Part_Weld"
- w12.Part0 = p12
- w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w12.Part1 = p13
- w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w13 = Instance.new("Weld", p13)
- w13.Name = "Part_Weld"
- w13.Part0 = p13
- w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w13.Part1 = p14
- w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w14 = Instance.new("Weld", p14)
- w14.Name = "Part_Weld"
- w14.Part0 = p14
- w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w14.Part1 = p15
- w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w15 = Instance.new("Weld", p15)
- w15.Name = "Part_Weld"
- w15.Part0 = p15
- w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w15.Part1 = p16
- w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w16 = Instance.new("Weld", p16)
- w16.Name = "Part_Weld"
- w16.Part0 = p16
- w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w16.Part1 = p17
- w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w17 = Instance.new("Weld", p17)
- w17.Name = "Part_Weld"
- w17.Part0 = p17
- w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w17.Part1 = p18
- w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w18 = Instance.new("Weld", p18)
- w18.Name = "Part_Weld"
- w18.Part0 = p18
- w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w18.Part1 = p19
- w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- m2.Parent = rarm
- m2:MakeJoints()
- ----------------------------------------------------
- local cor2 = Instance.new("Part", rarm.RightArm)
- cor2.Name = "Thingy"
- cor2.Locked = true
- cor2.BottomSurface = 0
- cor2.CanCollide = false
- cor2.Size = Vector3.new(1, 1, 1)
- cor2.Transparency = 1
- cor2.TopSurface = 0
- corw2 = Instance.new("Weld", cor2)
- corw2.Part0 = rarm
- corw2.Part1 = cor2
- corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- weld2 = Instance.new("Weld", rarm.RightArm)
- weld2.Part0 = cor2
- weld2.Part1 = rarm.RightArm.RightArmPlate
- weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- --Zyrodoxa
- m8 = Instance.new("Model")
- m8.Name = "Zyrodoxa"
- p16 = Instance.new("Part", m8)
- p16.BrickColor = BrickColor.new("Instutional white")
- p16.Material = Enum.Material.Metal
- p16.Name = "Handle"
- p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007)
- p16.CanCollide = false
- p16.Locked = true
- p16.FormFactor = Enum.FormFactor.Custom
- p16.Size = Vector3.new(0, 0, 0)
- p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- b16 = Instance.new("BlockMesh", p16)
- b16.Name = "Mesh"
- b16.Scale = Vector3.new(0, 0, 0)
- w16 = Instance.new("Weld", p16)
- w16.Name = "Block_Weld"
- w16.Part0 = p16
- w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015)
- w16.Part1 = p17
- w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1)
- m8.Parent = rarm
- m8:MakeJoints()
- ----------------------------------------------------
- local cor8 = Instance.new("Part", rarm.Zyrodoxa)
- cor8.Name = "Thingy"
- cor8.Locked = true
- cor8.BottomSurface = 0
- cor8.CanCollide = false
- cor8.Size = Vector3.new(1, 1, 1)
- cor8.Transparency = 1
- cor8.TopSurface = 0
- corw8 = Instance.new("Weld", cor8)
- corw8.Part0 = rarm
- corw8.Part1 = cor8
- corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180))
- corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- weld8 = Instance.new("Weld", rarm.Zyrodoxa)
- weld8.Part0 = cor8
- weld8.Part1 = rarm.Zyrodoxa.Handle
- weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- ----------------------------------------------------
- models = {m,m2,m3,m4,m5,m6,m7,m8}
- parts = {}
- Stepped:connect(function()
- for i,v in pairs(models) do
- for _, a in pairs(v:GetChildren()) do
- if v:IsA("Part") and v.Name ~= "Thingy" then
- table.insert(parts, a)
- for i,v in pairs(parts) do
- v.CanCollide = false
- end
- end
- end
- end
- end)
- ----------------------------------------------------
- local animpose = "Idle1"
- local lastanimpose = "Idle1"
- local grab = false
- local Smooth = 1
- local sine = 0
- local change = 1
- local val = 0
- local ffing = false
- ----------------------------------------------------
- --[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k
- function FindHumanoids()
- local function c_region(Position, Size)
- local SizeOffset = Size/2
- local Point1 = Position - SizeOffset
- local Point2 = Position + SizeOffset
- local a = Instance.new("Part", workspace)
- a.Anchored = true
- a.Size = Size
- a.Position = Position
- print("Hey!, I'm making a part!")
- return Region3.new(Point1, Point2)
- end
- local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
- local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
- local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
- local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
- local regions = {a, b, c, d}
- local found_humanoids = {}
- local already_found = {char.Name}
- for _, region in pairs(regions) do
- for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do
- print(part, part.Parent, part.Name) ---nope
- if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
- local humanoid = part.Parent:FindFirstChild("Humanoid")
- local name = humanoid.Parent.Name
- local exists = false
- for _, n in pairs(already_found) do
- if n == name then
- exists = true
- end
- end
- if not exists then
- table.insert(already_found, name)
- table.insert(found_humanoids, humanoid)
- end
- elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
- local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
- local name = humanoid.Parent.Parent.Name
- local exists = false
- for _, n in pairs(already_found) do
- if n == name then
- exists = true
- end
- end
- if not exists then
- table.insert(already_found, name)
- table.insert(found_humanoids, humanoid)
- end
- end
- end
- end
- return found_humanoids
- end
- local humanoids = FindHumanoids()
- if #humanoids == 0 then
- for i, v in pairs(humanoids) do
- print(v.Parent.Name)
- if Debounces.Slashing == true then
- v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage?
- elseif Debounces.Slashing == false then
- wait()
- end
- end
- wait(0.3)
- end]]--
- ----------------------------------------------------
- --[[mouse.KeyDown:connect(function(key)
- if key == "f" then
- if Debounces.CanAttack == true then
- Debounces.CanAttack = false
- Debounces.NoIdl = true
- Debounces.on = true
- for i = 1, 20 do
- corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
- corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1)
- CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
- CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
- CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
- CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6,0.6,-0.2)*CFrame.Angles(math.rad(8),math.rad(22),math.rad(15)), 0.8)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6,0.6,0.2)*CFrame.Angles(math.rad(-8),math.rad(12),math.rad(-12)), 0.8)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)), 0.5)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.5)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(5)), 0.1)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-5)), 0.1)
- if Debounces.on == false then
- break
- end
- fat.Event:wait()
- end
- end
- end
- end)]]--
- ----------------------------------------------------
- mod4 = Instance.new("Model",char)
- ptez = {0.7, 0.8, 0.9, 1}
- function FindNearestTorso(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Torso")then
- if v ~= char then
- if(v.Torso.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- function Slam()
- local part=Instance.new('Part',mod4)
- part.Anchored=true
- part.CanCollide=false
- part.FormFactor='Custom'
- part.Size=Vector3.new(.2,.2,.2)
- part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
- part.Transparency=.7
- part.BrickColor=BrickColor.new('Really black')
- mesh=Instance.new('SpecialMesh',part)
- mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
- mesh.Scale=Vector3.new(3,3,3)
- local part2=Instance.new('Part',mod4)
- part2.Anchored=true
- part2.CanCollide=false
- part2.FormFactor='Custom'
- part2.Size=Vector3.new(.2,.2,.2)
- part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
- part2.Transparency=.7
- part2.BrickColor=BrickColor.new('Institutional white')
- mesh2=Instance.new('SpecialMesh',part2)
- mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
- mesh2.Scale=Vector3.new(3,1.5,3)
- x = Instance.new("Sound",larm)
- x.SoundId = "http://www.roblox.com/asset/?id=142070127"
- x.Pitch = ptez[math.random(1,#ptez)]
- x.Volume = 1
- wait(.1)
- x1 = Instance.new("Sound",larm)
- x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
- x1.Pitch = ptez[math.random(1,#ptez)]
- x1.Volume = 1
- wait(.1)
- x:Play()
- x1:Play()
- for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(30,45))
- end
- end
- coroutine.resume(coroutine.create(function()
- for i=0,0.62,0.13 do
- wait()
- part.CFrame=part.CFrame
- part.Transparency=i
- mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
- part2.CFrame=part2.CFrame
- part2.Transparency=i
- mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
- end
- part.Parent=nil
- part2.Parent=nil
- x:Destroy()
- end))
- end
- ----------------------------------------------------
- wPart = function(x,y,z,color,tr,cc,an,parent)
- local wp = Instance.new('WedgePart',parent or Weapon)
- wp.formFactor = 'Custom'
- wp.Size = Vector3.new(x,y,z)
- wp.BrickColor = BrickColor.new(color)
- wp.CanCollide = cc
- wp.Transparency = tr
- wp.Anchored = an
- wp.TopSurface,wp.BottomSurface = 0,0
- return wp
- end
- Mesh = function(par,num,x,y,z)
- local msh = _
- if num == 1 then
- msh = Instance.new("CylinderMesh",par)
- elseif num == 2 then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshType = 3
- elseif num == 3 then
- msh = Instance.new("BlockMesh",par)
- elseif num == 4 then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshType = "Torso"
- elseif type(num) == 'string' then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshId = num
- end
- msh.Scale = Vector3.new(x,y,z)
- return msh
- 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
- print("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 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Mesh(w1,2,0,0,0)
- sp.MeshType='Wedge'
- sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Transparency = 0.7
- Spawn(function()
- for i=0,1,0.1 do
- fat.Event:wait()
- w1.Transparency=w1.Transparency+0.03
- end
- end)
- 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 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Mesh(w2,2,0,0,0)
- sp.MeshType='Wedge'
- sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Transparency = 0.7
- Spawn(function()
- for i=0,1,0.1 do
- fat.Event:wait()
- w2.Transparency=w2.Transparency+0.03
- end
- end)
- 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 trail(p,t,h)
- Spawn(function()
- local blcf = p.CFrame
- local scfr = blcf
- for i=1,t do
- local blcf = p.CFrame
- if scfr and (p.Position-scfr.p).magnitude > .1 then
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end
- if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end
- if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- fat.Event:wait()
- end
- scfr=nil
- end)
- end
- --trail(char.Sword.Blade,1e1000,5)
- ----------------------------------------------------
- function Dmg()
- local partofdeath = rarm.Zyrodoxa.Hitbox
- local function CreateRegion3FromLocAndSize(Position, Size)
- local SizeOffset = Size/2
- local Point1 = Position - SizeOffset
- local Point2 = Position + SizeOffset
- return Region3.new(Point1, Point2)
- end
- local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
- for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
- Spawn(function()
- if Debounces.Slashing == true and Debounces.Slashed == false then
- Debounces.Slashed = true
- ypcall(function()
- local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
- humanoid:TakeDamage(math.random(10,18))
- end)
- wait(.4)
- Debounces.Slashed = false
- end
- end)
- end
- end
- ----------------------------------------------------
- pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
- ptz = {0.7, 0.8, 0.9, 1}
- idz = {"161006212", "161006195"}
- function attackone()
- for i = 1, 13 do
- corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.3, -1, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
- corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.3)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-10)), 0.3)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0.4)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.5)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(18), math.rad(0), math.rad(15)), 0.7)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.4, -1.3, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(15)), 0.5)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
- if Debounces.on == false then
- break
- end
- fat.Event:wait()
- end
- trail(rarm.Zyrodoxa.Hitbox,20,2)
- Debounces.Slashing = true
- wait(0.2)
- --[[z = Instance.new("Sound", hed)
- z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
- z.Pitch = ptz[math.random(1,#ptz)]
- z.Volume = 1
- wait(.01)
- z:Play()]]--
- for i = 1, 14 do
- Dmg()
- corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
- corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(100)), 0.4)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, -0.3)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-20)), 0.4)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(15)), 0.5)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(-10)), 0.5)
- if Debounces.on == false then break end
- rs:wait()
- end
- Debounces.Slashing = false
- end
- function attacktwo()
- Debounces.Slashing = true
- for i = 1, 14 do
- Dmg()
- corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
- corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80)), 0.7)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (-70)), 0.5)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.5)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
- if Debounces.on == false then
- break
- end
- rs:wait()
- end
- end
- ----------------------------------------------------
- ----------------------------------------------------
- definition = 5
- bc = {}
- bezierparts = {}
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- function draw(p,d)
- for i=1,d do
- local t = i/d
- bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2
- end
- Spawn(function() fat.Event:wait()
- for i,v in pairs(bezierparts) do
- v.Transparency = 1
- end
- end)
- end
- --local points = {larm.Position,rarn.Position,invisipart.Position}
- --draw(points,definition)
- fat.Event:wait()
- rpart = Instance.new("Part",rarm)
- NoOutline(rpart)
- rpart.Anchored = false
- rpart.Size = Vector3.new(1,1,1)
- rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
- rpart.Transparency = 1
- newWeld(rarm, rpart, 0, 0, 0)
- rpart.Weld.C1 = CFrame.new(0, 1.1, 0)
- lpart = Instance.new("Part",larm)
- NoOutline(lpart)
- lpart.Anchored = false
- lpart.Size = Vector3.new(1,1,1)
- lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0)
- lpart.Transparency = 1
- newWeld(larm, lpart, 0, 0, 0)
- lpart.Weld.C1 = CFrame.new(0, 1.1, 0)
- invisipart = Instance.new("Part",torso)
- NoOutline(invisipart)
- invisipart.Anchored = false
- invisipart.Size = Vector3.new(1,1,1)
- invisipart.Transparency = 1
- invisipart.CFrame = torso.CFrame
- newWeld(torso, invisipart, 0, 0, 0)
- invisipart.Weld.C1 = CFrame.new(0, 0, 6)
- table.insert(bezierparts, rpart)
- table.insert(bezierparts, lpart)
- table.insert(bezierparts, invisipart)
- for i = 1, 40 do
- local points = {lpart.Position,invisipart.Position,rpart.Position}
- draw(points,definition)
- --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.1)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-90)), 0.1)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.2)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
- if Debounces.on == false then
- break
- end
- fat.Event:wait()
- end
- for i,v in pairs(bezierparts) do
- v:Destroy()
- end
- --draw(points,definition)
- if Debounces.CanAttack == false then
- Debounces.CanAttack = true
- Debounces.NoIdl = false
- Debounces.on = false
- end
- ----------------------------------------------------
- ----------------------------------------------------
- pt = {6.6, 6.8, 7, 7.2, 7.4}
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- if Debounces.CanJoke == true then
- Debounces.CanJoke = false
- u = Instance.new("Sound",char)
- u.SoundId = "http://www.roblox.com/asset/?id=261303790"
- u.Pitch = pt[math.random(1,#pt)]
- u.Volume = 0.3
- u2 = Instance.new("Sound",char)
- u2.SoundId = "http://www.roblox.com/asset/?id=261303790"
- u2.Pitch = u.Pitch
- u2.Volume = 0.3
- u3 = Instance.new("Sound",char)
- u3.SoundId = "http://www.roblox.com/asset/?id=261303790"
- u3.Pitch = u.Pitch
- u3.Volume = 0.3
- wait(.01)
- u:Play()
- u2:Play()
- u3:Play()
- wait(1.5)
- u:Destroy()
- u2:Destroy()
- u3:Destroy()
- if Debounces.CanJoke == false then
- Debounces.CanJoke = true
- end
- end
- end
- end)
- ----------------------------------------------------
- ----------------------------------------------------
- mouse.KeyDown:connect(function(key)
- if key == "j" then
- if Debounces.CanJoke == true then
- Debounces.CanJoke = false
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://415859013"
- z.Pitch = pitches[math.random(1,#pitches)]
- z.Volume = 1
- wait()
- z:Play()
- wait(0.1)
- z:Destroy()
- if Debounces.CanJoke == false then
- Debounces.CanJoke = true
- end
- end
- end
- end)
- ----------------------------------------------------
- Grab = false
- mouse.KeyDown:connect(function(key)
- if key == "e" then
- Debounces.on = true
- Debounces.NoIdl = true
- Debounces.ks = true
- if Grab == false then
- gp = nil
- for i = 1, 20 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- if Debounces.on == false then break end
- fat.Event:wait()
- end
- con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit)
- ht = hit.Parent
- for i,v in pairs(ht:GetChildren()) do
- if v:IsA("Part") then
- v.CanCollide = false
- v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
- end
- end
- hum1=ht:FindFirstChild('Humanoid')
- if hum1 ~= nil then
- if Debounces.ks==true then
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://169380525"
- z.Volume = 1
- z:Play()
- Debounces.ks=false
- end
- hum1.PlatformStand=true
- hum1:ChangeState'Physics'
- gp = ht
- Grab = true
- asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
- asd.Parent = larm
- asd.Name = "asd"
- asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
- stanceToggle = "Grabbed"
- --[[elseif hum1 == nil then
- con1:disconnect()
- wait() return]]--
- end
- end)
- for i = 1, 20 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- if Debounces.on == false then break end
- fat.Event:wait()
- end
- con1:disconnect()
- Debounces.on = false
- Debounces.NoIdl = false
- elseif Grab == true then
- Grab = false
- --[[for i = 1, 16 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
- cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
- if Debounces.on == false then end
- rs:wait()
- end]]--
- for i = 1, 16 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.5)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), 0.3)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- if Debounces.on == false then end
- rs:wait()
- end
- for i = 1, 12 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.6)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.3,-0.1)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-32)), 0.6)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(40), math.rad(14)),0.6)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.6)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.5)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, .2, -0.8) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4)
- if Debounces.on == false then end
- rs:wait()
- end
- Slam()
- if gp ~= nil then
- for i,v in pairs(larm:GetChildren()) do
- if v.Name == "asd" and v:IsA("Weld") then
- v:Remove()
- end
- if v:IsA("Part") then
- v.CanCollide = true
- v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1)
- end
- end
- end
- stanceToggle = "Idle1"
- --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
- bv.maxForce = Vector3.new(400000, 400000, 400000)
- bv.P = 125000
- bv.velocity = char.Head.CFrame.lookVector * 200]]--
- ht=nil
- Debounces.on = false
- Debounces.NoIdl = false
- elseif ht == nil then wait()
- Grab = false
- Debounces.on = false
- Debounces.NoIdl = false
- end
- end
- end)
- ----------------------------------------------------
- Change = false
- mouse.KeyDown:connect(function(key)
- if key == "n" then
- if Change == false then
- Change = true
- stanceToggle = "Idle2"
- elseif Change == true then
- Change = false
- stanceToggle = "Idle1"
- end
- end
- end)
- ----------------------------------------------------
- mouse.KeyDown:connect(function(key)
- if string.byte(key) == 52 then
- Swing = 2
- char.Humanoid.WalkSpeed = 28
- end
- end)
- mouse.KeyUp:connect(function(key)
- if string.byte(key) == 52 then
- Swing = 1
- char.Humanoid.WalkSpeed = 16
- end
- end)
- ----------------------------------------------------
- jump = false
- rs:connect(function()
- if char.Humanoid.Jump == true then
- jump = true
- else
- jump = false
- end
- char.Humanoid.FreeFalling:connect(function(f)
- if f then
- ffing = true
- else
- ffing = false
- end
- end)
- sine = sine + change
- if jump == true then
- animpose = "Jumping"
- elseif ffing == true then
- animpose = "Freefalling"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
- animpose = "Idle"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
- animpose = "Walking"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
- animpose = "Running"
- end
- RightLeg = CFrame.new(0.5,-1,0)
- LeftLeg = CFrame.new(-0.5,-1,0)
- lefth = (torso.CFrame*LeftLeg)
- righth = (torso.CFrame*RightLeg)
- speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
- TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
- local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
- local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
- if animpose ~= lastanimpose then
- sine = 0
- if Debounces.NoIdl == false then
- if stanceToggle == "Idle1" then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2)
- elseif stanceToggle == "Idle2" then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2)
- end
- fat.Event:wait()
- end
- else
- end
- lastanimpose = animpose
- if Debounces.NoIdl == false then
- if animpose == "Idle" then
- change = 0.5
- if stanceToggle == "Idle1" then
- corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
- corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1)
- elseif stanceToggle == "Idle2" then
- corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
- --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8)
- elseif stanceToggle == "Grabbed" then
- grab = true
- corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
- corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
- lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
- end
- elseif animpose == "Walking" then
- if stanceToggle == "Grabbed" then
- corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
- corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
- --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
- lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
- lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
- rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
- elseif stanceToggle ~= "Grabbed" then
- change = 1
- corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
- corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
- --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
- --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
- lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
- lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
- --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
- rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
- end
- elseif animpose == "Running" then
- change = 1
- corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
- corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- elseif animpose == "Jumping" then
- corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
- corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- elseif animpose == "Freefalling" then
- corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
- corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- end
- end
- end)
- hum.MaxHealth = 99999e99999
- wait(3)
- hum.Health = 99999e99999
- plr=game.Players.Imtannerbanner56
- char=plr.Character
- char.Humanoid.WalkSpeed=67
- pcall(function() char.MainParts:Remove() end)
- bin=Instance.new("HopperBin",plr.Backpack)
- bin.Name="Pheonix Sword"
- script.Parent=bin
- attacking=false
- pcall(function() workspace.MainParts:Destroy() end)
- function makepart(name,parent,s1,s2,s3,color)
- p=Instance.new("Part",parent)
- p.Name=name
- p.formFactor="Custom"
- p.Anchored=false
- p.Locked=true
- p.CanCollide=false
- p.Size=Vector3.new(s1,s2,s3)
- p.BrickColor=BrickColor.new(color)
- p:BreakJoints()
- return p
- end
- function cylinder(part)
- bm=Instance.new("CylinderMesh",part)
- return bm
- end
- function blockmesh(part)
- bm=Instance.new("BlockMesh",part)
- return bm
- end
- function specmesh(part,type,s1,s2,s3)
- spec=Instance.new("SpecialMesh",part)
- spec.MeshType=type
- spec.Scale=Vector3.new(s1,s2,s3)
- return spec
- end
- chosen="Really black"
- main=Instance.new("Model",char)
- main.Name="MainParts"
- handle = makepart("Handle",main,.2,2,.2,"Really black")
- cylinder(handle)
- wd1=Instance.new("Weld",handle)
- wd1.Part1=handle
- wd1.Part0=nil
- handlep = makepart("HandlePart",main,.22,0.02,.22,chosen)
- cyl1 = cylinder(handlep)
- cyl1.Scale=Vector3.new(1,.5,1)
- w1=Instance.new("Weld",handlep)
- w1.Part1=handle
- w1.Part0=handlep
- w1.C1=CFrame.new(0,1,0) * CFrame.Angles(0,0,0)
- handlep2 = makepart("HandlePart2",main,.25,.25,.25,chosen)
- specmesh(hanelp2,"Sphere",1,1,1)
- w1=Instance.new("Weld",handlep2)
- w1.Part1=handlep
- w1.Part0=handlep2
- w1.C1=CFrame.new(0,.05,0) * CFrame.Angles(0,0,0)
- handlep3 = makepart("HandlePart3",main,.22,0.02,.22,chosen)
- cyl1 = cylinder(handlep3)
- cyl1.Scale=Vector3.new(1,.3,1)
- w1=Instance.new("Weld",handlep3)
- w1.Part1=handle
- w1.Part0=handlep3
- w1.C1=CFrame.new(0,-.5,0) * CFrame.Angles(0,0,0)
- handlep4 = makepart("HandlePart4",main,.24,0.02,.24,chosen)
- cyl1 = cylinder(handlep4)
- cyl1.Scale=Vector3.new(1,.3,1)
- w1=Instance.new("Weld",handlep4)
- w1.Part1=handle
- w1.Part0=handlep4
- w1.C1=CFrame.new(0,-.54,0) * CFrame.Angles(0,0,0)
- handlep5 = makepart("HandlePart5",main,.26,0.02,.26,chosen)
- cyl1 = cylinder(handlep5)
- cyl1.Scale=Vector3.new(1,.3,1)
- w1=Instance.new("Weld",handlep5)
- w1.Part1=handle
- w1.Part0=handlep5
- w1.C1=CFrame.new(0,-.57,0) * CFrame.Angles(0,0,0)
- handlep6 = makepart("HandlePart6",main,.02,0.02,.02,chosen)
- bm6=blockmesh(handlep6)
- bm6.Scale=Vector3.new(2,2.6,1.3)
- w1=Instance.new("Weld",handlep6)
- w1.Part1=handle
- w1.Part0=handlep6
- w1.C1=CFrame.new(0,-.84,0) * CFrame.Angles(0,0,0)
- handlep7 = makepart("HandlePart7",main,.02,0.02,.02,chosen)
- bm7=blockmesh(handlep7)
- bm7.Scale=Vector3.new(3,1.6,1.3)
- w1=Instance.new("Weld",handlep7)
- w1.Part1=handle
- w1.Part0=handlep7
- w1.C1=CFrame.new(.5,-.84,0) * CFrame.Angles(0,0,0)
- handlep8 = makepart("HandlePart8",main,.02,0.02,.02,chosen)
- bm8=blockmesh(handlep8)
- bm8.Scale=Vector3.new(3,1.6,1.3)
- w1=Instance.new("Weld",handlep8)
- w1.Part1=handle
- w1.Part0=handlep8
- w1.C1=CFrame.new(-.5,-.84,0) * CFrame.Angles(0,0,0)
- handlep11 = makepart("HandlePart11",main,.02,0.02,.02,"Really black")
- bm11=blockmesh(handlep11)
- bm11.Scale=Vector3.new(1.4,1.4,1.61)
- w1=Instance.new("Weld",handlep11)
- w1.Part1=handle
- w1.Part0=handlep11
- w1.C1=CFrame.new(0,-.84,0) * CFrame.Angles(0,0,0)
- bladep1 = makepart("BladePart1",main,.02,4,.02,"Really black")
- bp1=blockmesh(bladep1)
- bp1.Scale=Vector3.new(4,1,.5)
- w1=Instance.new("Weld",bladep1)
- w1.Part1=handle
- w1.Part0=bladep1
- w1.C1=CFrame.new(0,-3,0) * CFrame.Angles(0,0,0)
- bladep2 = makepart("BladePart2",main,.02,.02,.02,chosen)
- bp2=specmesh(bladep2,"Wedge",.6,1,1)
- w1=Instance.new("Weld",bladep2)
- w1.Part1=handle
- w1.Part0=bladep2
- w1.C1=CFrame.new(-0.2,-4.6,0)
- w1.C0=CFrame.Angles(0,math.rad(90),0)
- bladep3 = makepart("BladePart3",main,.02,.02,.02,chosen)
- bp3=specmesh(bladep3,"Wedge",.6,1,1)
- w1=Instance.new("Weld",bladep3)
- w1.Part1=handle
- w1.Part0=bladep3
- w1.C1=CFrame.new(0.2,-4.6,0)
- w1.C0=CFrame.Angles(0,math.rad(270),0)
- bladep4 = makepart("BladePart4",main,.02,.02,.02,chosen)
- bp4=specmesh(bladep4,"Wedge",.6,1,1)
- w1=Instance.new("Weld",bladep4)
- w1.Part1=handle
- w1.Part0=bladep4
- w1.C1=CFrame.new(0.2,-4.3,0)
- w1.C0=CFrame.Angles(math.rad(90),math.rad(270),0)
- bladep5 = makepart("BladePart5",main,.02,.02,.02,chosen)
- bp5=specmesh(bladep5,"Wedge",.6,1,1)
- w1=Instance.new("Weld",bladep5)
- w1.Part1=handle
- w1.Part0=bladep5
- w1.C1=CFrame.new(-0.2,-4.3,0)
- w1.C0=CFrame.Angles(math.rad(90),math.rad(90),0)
- bladep6 = makepart("BladePart6",main,.02,.02,.02,chosen)
- bp6=cylinder(bladep6)
- bp6.Scale=Vector3.new(1,.6,1)
- w1=Instance.new("Weld",bladep6)
- w1.Part1=handle
- w1.Part0=bladep6
- w1.C1=CFrame.new(0,-4.45,0)
- w1.C0=CFrame.Angles(math.rad(90),0,math.rad(90))
- bladep7 = makepart("BladePart7",main,.02,.02,.02,chosen)
- bp7=blockmesh(bladep7)
- bp7.Scale=Vector3.new(.6,16.6,.6)
- w1=Instance.new("Weld",bladep7)
- w1.Part1=handle
- w1.Part0=bladep7
- w1.C1=CFrame.new(0,-2.72,0)
- bladep8 = makepart("BladePart8",main,.02,.02,.02,"red")
- bp8=specmesh(bladep8,"Wedge",.51,2,3)
- w1=Instance.new("Weld",bladep8)
- w1.Part1=handle
- w1.Part0=bladep8
- w1.C1=CFrame.new(0.20,-5.3,0)
- w1.C0=CFrame.Angles(math.rad(90),math.rad(90),0)
- bladep9 = makepart("BladePart9",main,.02,.02,.02,"red")
- bp9=specmesh(bladep9,"Wedge",.51,2,3)
- w1=Instance.new("Weld",bladep9)
- w1.Part1=handle
- w1.Part0=bladep9
- w1.C1=CFrame.new(-0.20,-5.3,0)
- w1.C0=CFrame.Angles(math.rad(90),math.rad(270),0)
- --[[ Ghost Sword ]]
- function ghost()
- main2=Instance.new("Model",char)
- main2.Name="GhostMainParts"
- handleg = makepart("Handle",main2,.2,2,.2,"Really black")
- cylinder(handleg)
- wd12=Instance.new("Weld",handleg)
- wd12.Part1=handleg
- wd12.Name="Weldd"
- wd12.Part0=nil
- handlep = makepart("HandlePart",main2,.22,0.02,.22,chosen)
- cyl1 = cylinder(handlep)
- cyl1.Scale=Vector3.new(1,.5,1)
- w1=Instance.new("Weld",handlep)
- w1.Part1=handleg
- w1.Part0=handlep
- w1.C1=CFrame.new(0,1,0) * CFrame.Angles(0,0,0)
- handlep2 = makepart("HandlePart2",main2,.25,.25,.25,chosen)
- specmesh(hanelp2,"Sphere",1,1,1)
- w1=Instance.new("Weld",handlep2)
- w1.Part1=handlep
- w1.Part0=handlep2
- w1.C1=CFrame.new(0,.05,0) * CFrame.Angles(0,0,0)
- handlep3 = makepart("HandlePart3",main2,.22,0.02,.22,chosen)
- cyl1 = cylinder(handlep3)
- cyl1.Scale=Vector3.new(1,.3,1)
- w1=Instance.new("Weld",handlep3)
- w1.Part1=handleg
- w1.Part0=handlep3
- w1.C1=CFrame.new(0,-.5,0) * CFrame.Angles(0,0,0)
- handlep4 = makepart("HandlePart4",main2,.24,0.02,.24,chosen)
- cyl1 = cylinder(handlep4)
- cyl1.Scale=Vector3.new(1,.3,1)
- w1=Instance.new("Weld",handlep4)
- w1.Part1=handleg
- w1.Part0=handlep4
- w1.C1=CFrame.new(0,-.54,0) * CFrame.Angles(0,0,0)
- handlep5 = makepart("HandlePart5",main2,.26,0.02,.26,chosen)
- cyl1 = cylinder(handlep5)
- cyl1.Scale=Vector3.new(1,.3,1)
- w1=Instance.new("Weld",handlep5)
- w1.Part1=handleg
- w1.Part0=handlep5
- w1.C1=CFrame.new(0,-.57,0) * CFrame.Angles(0,0,0)
- handlep6 = makepart("HandlePart6",main2,.02,0.02,.02,chosen)
- bm6=blockmesh(handlep6)
- bm6.Scale=Vector3.new(2,2.6,1.3)
- w1=Instance.new("Weld",handlep6)
- w1.Part1=handleg
- w1.Part0=handlep6
- w1.C1=CFrame.new(0,-.84,0) * CFrame.Angles(0,0,0)
- handlep7 = makepart("HandlePart7",main2,.02,0.02,.02,chosen)
- bm7=blockmesh(handlep7)
- bm7.Scale=Vector3.new(3,1.6,1.3)
- w1=Instance.new("Weld",handlep7)
- w1.Part1=handleg
- w1.Part0=handlep7
- w1.C1=CFrame.new(.5,-.84,0) * CFrame.Angles(0,0,0)
- handlep8 = makepart("HandlePart8",main2,.02,0.02,.02,chosen)
- bm8=blockmesh(handlep8)
- bm8.Scale=Vector3.new(3,1.6,1.3)
- w1=Instance.new("Weld",handlep8)
- w1.Part1=handleg
- w1.Part0=handlep8
- w1.C1=CFrame.new(-.5,-.84,0) * CFrame.Angles(0,0,0)
- handlep11 = makepart("HandlePart11",main2,.02,0.02,.02,"Really black")
- bm11=blockmesh(handlep11)
- bm11.Scale=Vector3.new(1.4,1.4,1.61)
- w1=Instance.new("Weld",handlep11)
- w1.Part1=handleg
- w1.Part0=handlep11
- w1.C1=CFrame.new(0,-.84,0) * CFrame.Angles(0,0,0)
- bladep1 = makepart("BladePart1",main2,.02,4,.02,"red")
- bp1=blockmesh(bladep1)
- bp1.Scale=Vector3.new(4,1,.5)
- w1=Instance.new("Weld",bladep1)
- w1.Part1=handleg
- w1.Part0=bladep1
- w1.C1=CFrame.new(0,-3,0) * CFrame.Angles(0,0,0)
- bladep2 = makepart("BladePart2",main2,.02,.02,.02,chosen)
- bp2=specmesh(bladep2,"Wedge",.6,1,1)
- w1=Instance.new("Weld",bladep2)
- w1.Part1=handleg
- w1.Part0=bladep2
- w1.C1=CFrame.new(-0.2,-4.6,0)
- w1.C0=CFrame.Angles(0,math.rad(90),0)
- bladep3 = makepart("BladePart3",main2,.02,.02,.02,chosen)
- bp3=specmesh(bladep3,"Wedge",.6,1,1)
- w1=Instance.new("Weld",bladep3)
- w1.Part1=handleg
- w1.Part0=bladep3
- w1.C1=CFrame.new(0.2,-4.6,0)
- w1.C0=CFrame.Angles(0,math.rad(270),0)
- bladep4 = makepart("BladePart4",main2,.02,.02,.02,chosen)
- bp4=specmesh(bladep4,"Wedge",.6,1,1)
- w1=Instance.new("Weld",bladep4)
- w1.Part1=handleg
- w1.Part0=bladep4
- w1.C1=CFrame.new(0.2,-4.3,0)
- w1.C0=CFrame.Angles(math.rad(90),math.rad(270),0)
- bladep5 = makepart("BladePart5",main2,.02,.02,.02,chosen)
- bp5=specmesh(bladep5,"Wedge",.6,1,1)
- w1=Instance.new("Weld",bladep5)
- w1.Part1=handleg
- w1.Part0=bladep5
- w1.C1=CFrame.new(-0.2,-4.3,0)
- w1.C0=CFrame.Angles(math.rad(90),math.rad(90),0)
- bladep6 = makepart("BladePart6",main2,.02,.02,.02,chosen)
- bp6=cylinder(bladep6)
- bp6.Scale=Vector3.new(1,.6,1)
- w1=Instance.new("Weld",bladep6)
- w1.Part1=handleg
- w1.Part0=bladep6
- w1.C1=CFrame.new(0,-4.45,0)
- w1.C0=CFrame.Angles(math.rad(90),0,math.rad(90))
- bladep7 = makepart("BladePart7",main2,.02,.02,.02,chosen)
- bp7=blockmesh(bladep7)
- bp7.Scale=Vector3.new(.6,16.6,.6)
- w1=Instance.new("Weld",bladep7)
- w1.Part1=handleg
- w1.Part0=bladep7
- w1.C1=CFrame.new(0,-2.72,0)
- bladep8 = makepart("BladePart8",main2,.02,.02,.02,"red")
- bp8=specmesh(bladep8,"Wedge",.51,2,3)
- w1=Instance.new("Weld",bladep8)
- w1.Part1=handleg
- w1.Part0=bladep8
- w1.C1=CFrame.new(0.20,-5.3,0)
- w1.C0=CFrame.Angles(math.rad(90),math.rad(90),0)
- bladep9 = makepart("BladePart9",main2,.02,.02,.02,"red")
- bp9=specmesh(bladep9,"Wedge",.51,2,3)
- w1=Instance.new("Weld",bladep9)
- w1.Part1=handleg
- w1.Part0=bladep9
- w1.C1=CFrame.new(-0.20,-5.3,0)
- w1.C0=CFrame.Angles(math.rad(90),math.rad(270),0)
- return main2
- end
- hold=false
- --[[Key/Mouse]]
- mode="normal"
- function select()
- mode="normal"
- equipanim()
- end
- function unselect()
- char.Humanoid.WalkSpeed=20
- hideanim()
- end
- combo=0
- bin.Selected:connect(function(mouse)
- select()
- mouse.Button1Down:connect(function()
- if combo==0 then
- slashanim()
- combo = 1
- elseif combo==1 then
- slashanim2()
- combo = 0
- end
- end)
- mouse.KeyDown:connect(function(key)
- hold=true
- if mode=="normal" then
- if key == "q" then
- move3()
- elseif key=="e" then
- move4()
- elseif key=="r" then
- move5()
- end
- end
- end)
- mouse.KeyUp:connect(function()
- hold=false
- end)
- end)
- bin.Deselected:connect(function()
- unselect()
- end)
- --[[DMG]]
- 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(chosen)
- pa.CanCollide=false
- pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
- pa.Name = "Head"
- cm=Instance.new("CylinderMesh",pa)
- 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
- con = nil
- con2 = nil
- hitd=0
- hitd2=0
- function OT(hit)
- if hit.Parent == nil then return end
- local hum = hit.Parent:findFirstChild("Humanoid")
- local head = hit.Parent:findFirstChild("Head")
- if hum ~= nil then
- dm=math.random(10000,10000)
- hum:TakeDamage(dm)
- if head ~= nil then
- damagesplat(dm,head)
- end
- end
- hitd=1
- end
- function OT2(hit)
- if hit.Parent == nil then return end
- local hum = hit.Parent:findFirstChild("Humanoid")
- local head = hit.Parent:findFirstChild("Head")
- if hum ~= nil then
- dm=math.random(10000,10000)
- hum:TakeDamage(dm)
- if head ~= nil then
- damagesplat(dm,head)
- end
- end
- hitd2=1
- end
- function dmgcnnct(p)
- con = p.Touched:connect(OT)
- end
- function dmgcnnct2(p)
- con2 = p.Touched:connect(OT2)
- end
- function dmgdc2()
- if con2 ~= nil then
- con2:disconnect()
- hitd2=0
- end
- end
- function dmgdc()
- if con ~= nil then
- con:disconnect()
- hitd=0
- end
- end
- --[[Anims]]--
- RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
- ch = char
- player=plr
- RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
- 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 = main
- --
- 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 = main
- --
- RWL.Part0 = ch.Torso
- RWL.C0 = CFrame.new(1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RWL.C1 = CFrame.new(0.5, 1, 0)
- RWL.Parent = main
- --
- LWL.Part0 = ch.Torso
- LWL.C0 = CFrame.new(-1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LWL.C1 = CFrame.new(-0.5, 1, 0)
- LWL.Parent = main
- 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
- 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 = main
- RAP.Transparency = 1
- local w = Instance.new("Weld")
- w.Parent = RAP
- w.Part0 = RAP
- w.Part1 = char["Right Arm"]
- 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)
- local LAP = Instance.new("Part")
- LAP.formFactor = 0
- LAP.CanCollide = false
- LAP.Name = "LAPart"
- LAP.Locked = true
- LAP.Size = Vector3.new(1,1,1)
- LAP.Parent = main
- LAP.Transparency = 1
- local ww = Instance.new("Weld")
- ww.Parent = LAP
- ww.Part0 = LAP
- ww.Part1 = char["Left Arm"]
- ww.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
- ww.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
- function unequipweld()
- wd1.Part0 = char.Torso
- wd1.C1=CFrame.new(0,-1.5,-.6) * CFrame.Angles(0,0,.8)
- wd1.C0=CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
- end
- unequipweld()
- function equipweld()
- wd1.Part0 = RAP
- wd1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
- wd1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(90)) * CFrame.new(0, 0, 0.2)
- end
- function hideanim()
- RWFunc()
- for i = 0 , 1 , 0.2 do
- wait()
- RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+67*i), math.rad(45), math.rad(-45+90*i))
- end
- for i = 0 , 1 , 0.15 do
- wait()
- RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147+103*i), math.rad(45), math.rad(45-35*i))
- end
- unequipweld()
- wait(0.1)
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250-250*i), math.rad(45-45*i), math.rad(10-10*i))
- end
- RWRem()
- LWRem()
- end
- function equipanim()
- RWFunc()
- for i = 0 , 1 , 0.1 do
- wait(.05)
- RW.C0 = CFrame.new(1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250*i), math.rad(45*i), math.rad(-10*i))
- end
- equipweld()
- for i = 0 , 1 , 0.2 do
- wait(.05)
- RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(250-102.5*i), math.rad(45), math.rad(-10+27.5*i))
- end
- for i = 0 , 1 , 0.15 do
- wait(.05)
- RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147-67*i), math.rad(45), math.rad(17.5+27.5*i))
- end
- for i = 0 , 1 , 0.1 do
- wait(.05)
- RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(35), math.rad(45-90*i))
- end
- end
- function slashanim()
- RWFunc()
- if attacking==true then return end
- attacking=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.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+45*i))
- RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(10*i), math.rad(0))
- end
- dmgcnnct(bladep1)
- for i = 0 , 1 , 0.3 do
- wait()
- RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
- RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10+35*i), math.rad(0))
- end
- for i = 0 , 1 , 0.2 do
- wait()
- RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
- RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(45+5*i), math.rad(0))
- end
- dmgdc()
- if mode=="normal" then
- wait(0.15)
- wait()
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i))
- RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-110*i), math.rad(50-50*i), math.rad(0))
- end
- end
- attacking=false
- end
- function test(f)
- local a,b=coroutine.resume(coroutine.create(f))
- if not a then
- local h=Instance.new("Hint",workspace)
- h.Text="LOCAL: "..b
- wait(10)
- h:remove()
- end
- end
- function slashanim2()
- test(function()
- RWFunc()
- LWFunc()
- if attacking==true then return end
- attacking=true
- for i=0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(0,0,math.rad(30*i))
- LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(0,0,math.rad(-30*i))
- end
- fake=ghost()
- fake.Handle.Weldd.Part0=LAP
- fake.Handle.Weldd.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
- fake.Handle.Weldd.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(90)) * CFrame.new(0, 0, 0.2)
- for i,d in pairs(fake:GetChildren()) do
- d.Transparency=0.5
- d.BrickColor=BrickColor.new("Really black")
- end
- for i=0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(0+120*i),0,math.rad(30))
- LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(0+120*i),0,math.rad(-30))
- end
- dmgcnnct(bladep1)
- dmgcnnct2(fake.BladePart1)
- for i=0,1,0.2 do
- wait()
- RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(120 - 120*i),0,math.rad(30 - 30*i))
- LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(120 - 120*i),0,math.rad(-30 - -30*i))
- end
- dmgdc()
- dmgdc2()
- for i=0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(0,0,math.rad(0 + 90*i))
- LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(0,0,math.rad(-0 + -90*i))
- end
- dmgcnnct(bladep1)
- dmgcnnct2(fake.BladePart1)
- for i=0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(0,math.rad(0 + 60*i),math.rad(90 + 0))
- LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(0,math.rad(-0 + -60*i),math.rad(-80 + -0))
- end
- dmgdc()
- dmgdc2()
- for i=0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(0,math.rad(60 - 60*i),math.rad(90 + 0))
- LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(0,math.rad(-60 - -60*i),math.rad(-80 + -0))
- end
- for i=0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(0,0,math.rad(90 - 90*i))
- LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(0,0,math.rad(-90 - -90*i))
- end
- fake:Remove()
- LWRem()
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i), math.rad(35*i), math.rad(-35 + -10*i))
- end
- attacking=false
- end)
- end
- function move3()
- RWFunc()
- LWFunc()
- if attacking==true then return end
- attacking=true
- fake2=ghost()
- fake2.Handle.Weldd.Part0=LAP
- fake2.Handle.Weldd.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
- fake2.Handle.Weldd.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(90)) * CFrame.new(0, 0, 0.2)
- for i,d in pairs(fake2:GetChildren()) do
- d.Transparency=0.5
- d.BrickColor=BrickColor.new("Really black")
- end
- for i=0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(50+50*i),0,math.rad(40+43*i))
- LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(50+50*i),0,math.rad(-40+-43*i))
- wd1.C0 = CFrame.Angles(0,0,math.rad(90*i))
- fake2.Handle.Weldd.C0 = CFrame.Angles(0,0,math.rad(90*i))
- end
- dmgcnnct(bladep1)
- dmgcnnct2(fake2.BladePart1)
- local TorsCF = char.Torso.CFrame
- local bg = Instance.new("BodyGyro",char.Torso)
- bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- bg.P = bg.p * 25
- bg.cframe = TorsCF
- char.Humanoid.WalkSpeed=30
- for i=0,50,0.2 do
- wait()
- bg.cframe = TorsCF * CFrame.Angles(0,math.rad(180+180*i),0)
- end
- char.Humanoid.WalkSpeed=20
- game.Debris:AddItem(bg,0.02)
- dmgdc()
- dmgdc2()
- for i=0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(100 - 0*i),0,math.rad(-83 + 83*i))
- LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(100 - 0*i),0,math.rad(-83 + 83*i))
- end
- fake2:Remove()
- LWRem()
- for i=0,1,0.1 do
- wait()
- wd1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(90 + 0*i)) * CFrame.new(0, 0, 0.2)
- RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(100 + -20*i), math.rad(35*i), math.rad(-35 + -10*i))
- end
- attacking=false
- end
- function move4()
- RWFunc()
- LWFunc()
- if attacking==true then return end
- attacking=true
- for i=0,1,0.1 do
- wait()
- RW.C0=CFrame.new(1.5,.5,0) * CFrame.Angles(0,math.rad(10 + 5*i),math.rad(50+50*i))
- LW.C0=CFrame.new(-1.5,.5,0) * CFrame.Angles(0,math.rad(80 + 0*i),math.rad(0+-50*i))
- end
- for i=0,1,0.1 do
- wait()
- LW.C0=CFrame.new(-1.5,.5,0) * CFrame.Angles(0,math.rad(80 + 0*i),math.rad(-50 + 150*i))
- end
- function Burn(Part)
- if Part.Anchored == true and Part.Name == "Base" then return end
- if Part:IsDescendantOf(char) then return end
- if Part.Name =="Fireball" then return end
- local Fire = Instance.new("Fire")
- Fire.Heat = 2
- Fire.Size = 5
- Fire.Parent = Part
- Part:BreakJoints()
- Part.BrickColor = BrickColor.new("Really black")
- wait(2)
- game.Debris:AddItem(Part,0.02)
- end
- function Ignite(Part)
- if Part.Anchored == true and Part.Name == "Base" then return end
- if Part:IsDescendantOf(char) then return end
- if Part:FindFirstChild("Fire") == nil then
- Part.Anchored = false
- local Fire = Instance.new("Fire")
- Fire.Heat = 2
- Fire.Size = 5
- Fire.Parent = Part
- Part:BreakJoints()
- Part.Touched:connect(function(Hit) Burn(Hit) end)
- Part.BrickColor = BrickColor.new("Really black")
- end
- end
- for i = 1, 150 do
- local Source = char.Torso
- local Fireball = Instance.new("Part", Workspace)
- Fireball.Name = "Fireball"
- Fireball.CanCollide = false
- Fireball.TopSurface = 0
- Fireball.BottomSurface = 0
- Fireball.FormFactor = "Custom"
- Fireball.Shape = "Ball"
- Fireball.Size = Vector3.new(5, 5, 5)
- Fireball.CFrame = Source.CFrame * CFrame.new(0, 0, -5)
- local Velocity = Instance.new("BodyVelocity")
- Velocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- Velocity.velocity = (Source.CFrame.lookVector * 50) + Vector3.new(math.random(-25,25), math.random(-10,10), math.random(-10,10))
- Velocity.Parent = Fireball
- Ignite(Fireball)
- Fireball.BrickColor = BrickColor.new("Really black")
- coroutine.wrap(function() wait(math.random(1, 9) / 10) for i = 0, 1, 0.1 do Fireball.Transparency = i wait() end Fireball.Fire.Enabled = false Fireball.Anchored = true wait(1) Fireball:Remove() end)()
- wait()
- end
- for i=0,1,0.1 do
- wait()
- RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(15+15+50*i), math.rad(35*i), math.rad(100-140*i))
- LW.C0=CFrame.new(-1.5,.5,0) * CFrame.Angles(0,math.rad(80 - 80*i),math.rad(100-100*i))
- end
- LWRem()
- attacking=false
- end
- function move5()
- RWFunc()
- LWFunc()
- if attacking==true then return end
- attacking=true
- fake3=ghost()
- fake3.Handle.Weldd.Part0=LAP
- fake3.Handle.Weldd.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
- fake3.Handle.Weldd.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(90)) * CFrame.new(0, 0, -0.2)
- for i,d in pairs(fake3:GetChildren()) do
- d.Transparency=0.5
- d.BrickColor=BrickColor.new("Really black")
- end
- for i=0,1,0.1 do
- wait()
- RW.C0=CFrame.new(1.5,.5,0) * CFrame.Angles(0,math.rad(-50+-50*i),math.rad(30+30*i))
- LW.C0=CFrame.new(-1.5,.5,0) * CFrame.Angles(0,math.rad(50+50*i),math.rad(-30+-30*i))
- end
- f=0
- powermod=Instance.new("Model",char)
- powermod.Name="PowerMode"
- for i=0,3,0.1 do
- f=f+1
- wait()
- ball=Instance.new("Part",powermod)
- ball.formFactor="Custom"
- ball.Shape="Ball"
- ball.TopSurface="Smooth"
- ball.BottomSurface="Smooth"
- ball.BrickColor=BrickColor.new(chosen)
- ball.Transparency=0.5
- ball.Anchored=true
- ball.CanCollide=false
- ball.Size=Vector3.new(f,f,f)
- ball.CFrame=char.Torso.CFrame
- end
- wait(.1)
- powermod:Remove()
- function Burn(Part)
- if Part.Anchored == true and Part.Name == "Base" then return end
- if Part:IsDescendantOf(char) then return end
- if Part.Name =="Fireball" then return end
- local Fire = Instance.new("Fire")
- Fire.Heat = 2
- Fire.Size = 5
- Fire.Parent = Part
- Part:BreakJoints()
- Part.BrickColor = BrickColor.new("Really black")
- wait(2)
- game.Debris:AddItem(Part,0.02)
- end
- function Ignite(Part)
- if Part.Anchored == true and Part.Name == "Base" then return end
- if Part:IsDescendantOf(char) then return end
- if Part:FindFirstChild("Fire") == nil then
- Part.Anchored = false
- local Fire = Instance.new("Fire")
- Fire.Heat = 100
- Fire.Size = 100
- Fire.Parent = Part
- Part:BreakJoints()
- Part.Touched:connect(function(Hit) Burn(Hit) end)
- Part.BrickColor = BrickColor.new("Really black")
- end
- end
- for i = 1, 250 do
- local Source = char.Torso
- local Fireball = Instance.new("Part", Workspace)
- Fireball.Name = "Fireball"
- Fireball.CanCollide = false
- Fireball.TopSurface = 0
- Fireball.BottomSurface = 0
- Fireball.FormFactor = "Custom"
- Fireball.Shape = "Ball"
- Fireball.Size = Vector3.new(50, 50, 50)
- Fireball.CFrame = Source.CFrame * CFrame.new(0, 0, -30)
- local Velocity = Instance.new("BodyVelocity")
- Velocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- Velocity.velocity = (Source.CFrame.lookVector * 250) + Vector3.new(math.random(-2,2), math.random(-2,2), math.random(-2,2))
- Velocity.Parent = Fireball
- Ignite(Fireball)
- Fireball.BrickColor = BrickColor.new("Really black")
- coroutine.wrap(function() wait(math.random(1, 9) / 10) for i = 0, 1, 0.1 do Fireball.Transparency = i wait() end Fireball.Fire.Enabled = false Fireball.Anchored = true wait(1) Fireball:Remove() end)()
- wait(0.02)
- end
- fake3:Remove()
- LWRem()
- attacking=false
- end
- function swordmode()
- RWFunc()
- char.Humanoid.WalkSpeed=20
- bin.Name="Pheonix Sword"
- hitdeb=1
- hitdeb=0
- wd1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
- wd1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(90)) * CFrame.new(0, 0, 0.2)
- for i = 0 , 1 , 0.1 do
- wait()
- RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(35), math.rad(45-90*i))
- end
- mode="normal"
- end --[[Filterd, May Error]]-- --[[Filterd, May Error]]--
- local function WaitForChild(parent, child)
- while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end
- return parent[child]
- end
- local Tool = script.Parent
- local Handle = WaitForChild(Tool, "Handle")
- local SkullFire = WaitForChild(Tool, "SkullFire")
- local sword = script.Parent.Handle
- local radius = 1
- local angle = math.random()*math.pi*2
- local NUM_SKULLS = 100 -- heh heh
- local StormEye = Instance.new("Part")
- StormEye.formFactor = "Custom"
- StormEye.Size = Vector3.new(3, 3, 3)
- StormEye.Transparency = 1
- StormEye.CanCollide = false
- -- remove gravity from storm
- local newBF = Instance.new("BodyForce")
- local stormMass = (NUM_SKULLS+1)*.2*.2*.2 + 27
- newBF.force = Vector3.new(0, stormMass*196.2, 0)
- newBF.Parent = StormEye
- local skullPart = Instance.new("Part")
- skullPart.formFactor = "Custom"
- skullPart.Size = Vector3.new(.2, .2, .2)
- skullPart.Transparency = 1
- skullPart.BrickColor = BrickColor.new("Really black")
- skullPart.CanCollide = false
- skullPart.Reflectance = 0
- SkullFire:Clone().Parent = skullPart
- local skullMotor = Instance.new("Motor6D")
- skullMotor.Part0 = StormEye -- Handle
- skullMotor.Part1 = skullPart
- skullMotor.MaxVelocity = .1
- skullMotor.C0 = CFrame.Angles(math.pi/2, 0, 0)
- skullMotor.C1 = CFrame.Angles(math.pi/2, 0, 0) + radius*Vector3.new(math.sin(angle), 0, math.cos(angle))
- local skullParts = {skullPart}
- local skullMotors = {skullMotor}
- local miniDebounce = false
- for i = 1, NUM_SKULLS do
- table.insert(skullParts, skullPart:Clone())
- table.insert(skullMotors, skullMotor:Clone())
- radius = math.sqrt(i) + 4
- angle = math.random()*math.pi*2
- skullMotors[i+1].Part1 = skullParts[i+1]
- skullMotors[i+1].C1 = CFrame.Angles(math.pi/2, 0, 0) + radius*Vector3.new(math.sin(angle), -math.sqrt(i)*2/radius, math.cos(angle))
- skullMotors[i+1].Parent = skullParts[i+1]
- end
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
- SlashSound.Parent = sword
- SlashSound.Volume = .7
- local LungeSound = Instance.new("Sound")
- LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
- LungeSound.Parent = sword
- LungeSound.Volume = .6
- local UnsheathSound = Instance.new("Sound")
- UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
- UnsheathSound.Parent = sword
- UnsheathSound.Volume = 1
- local StormSound = Instance.new("Sound")
- StormSound.SoundId = "http://www.roblox.com/asset/?id=101173442"
- StormSound.Parent = sword
- StormSound.Volume = 1
- function DarkKill(character, humanoid, attacker)
- if (character:FindFirstChild("ForceField") ~= nil) then return end
- local childs = character:GetChildren()
- local colors = {}
- tagHumanoid(humanoid, attacker)
- humanoid.Health = 0
- for i=1,#childs do
- if (childs[i].className == "Part") then
- colors[i] = childs[i].BrickColor
- childs[i].BrickColor = BrickColor.new(26)
- childs[i].CanCollide = true
- childs[i].Anchored = true
- end
- end
- wait(.25)
- for i=1,#childs do
- if (childs[i].className == "Part") then
- local b = Instance.new("BodyVelocity")
- b.velocity = Vector3.new(math.random() - .5, 0, math.random() - .5).unit * 80
- b.maxForce = Vector3.new(1e5,1e5,1e5)
- b.Parent = childs[i]
- end
- end
- for i=1,#childs do
- if (childs[i].className == "Part") then
- childs[i].Anchored = false
- end
- end
- end
- local staffSpin = WaitForChild(Tool, "staffspin")
- local spinSwing = nil
- local newBodyPosition = Instance.new("BodyPosition")
- newBodyPosition.P = 100000
- newBodyPosition.maxForce = Vector3.new(1, 1, 1)*newBodyPosition.P
- newBodyPosition.Parent = StormEye
- local spinForce = Instance.new("BodyAngularVelocity")
- spinForce.P = 1000000
- spinForce.angularvelocity = Vector3.new(0,20,0)
- spinForce.maxTorque = Vector3.new(spinForce.P,spinForce.P,spinForce.P)
- local stayUpright = Instance.new("BodyGyro")
- stayUpright.P = 1000000
- stayUpright.maxTorque = Vector3.new(1, 0, 1) * stayUpright.P
- stayUpright.cframe = CFrame.new()
- local damage = 20
- slash_damage = 18
- lunge_damage = 36
- function blow(hit, damageToTake)
- local hitParent = hit.Parent
- if not hitParent then return end
- local humanoid = hitParent:findFirstChild("Humanoid")
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
- if humanoid~=nil and humanoid ~= hum and hum ~= nil then
- -- final check, make sure sword is in-hand
- local right_arm = vCharacter:FindFirstChild("Right Arm")
- if (right_arm ~= nil) then
- local joint = right_arm:FindFirstChild("RightGrip")
- if (joint ~= nil and (joint.Part0 == Handle or joint.Part1 == Handle)) then
- hum.Health = hum.Health + (damage * .4)
- if humanoid.Health > damage then
- tagHumanoid(humanoid, vPlayer)
- humanoid:TakeDamage(damage)
- else
- DarkKill(humanoid.Parent, humanoid, vPlayer)
- end
- end
- end
- end
- end
- for i = 1, #skullParts do
- skullParts[i].Touched:connect(function(hitPart) blow(hitPart, 25) end)
- end
- local debounce = false
- local spinCount = 0
- local spinDebounce = false
- function onSpin()
- if debounce or spinDebounce then return end
- local Torso = Tool.Parent:FindFirstChild("Torso")
- if not Torso then return end
- spinDebounce = true
- spinCount = spinCount + 1
- if spinCount > 3 then
- onWhirlwind()
- spinCount = 0
- else
- delay(3, function() spinCount = spinCount - 1 end)
- spinForce.Parent = Torso
- stayUpright.Parent = Torso
- spinSwing:Play()
- wait(.5)
- spinForce.Parent = nil
- stayUpright.Parent = nil
- end
- spinDebounce = false
- end
- function onWhirlwind()
- if not Tool.Parent then return end
- local Torso = Tool.Parent:FindFirstChild("Torso")
- local Humanoid = Tool.Parent:FindFirstChild("Humanoid")
- if debounce or not Torso or not Humanoid then return end
- debounce = true
- spinForce.Parent = Torso
- stayUpright.Parent = Torso
- StormSound:Play()
- for i = 1, #skullParts do
- skullParts[i].Parent = StormEye
- skullMotors[i].Parent = skullParts[i]
- if math.random() > .5 then
- skullMotors[i].DesiredAngle = skullMotors[i].CurrentAngle + 5000
- else
- skullMotors[i].DesiredAngle = skullMotors[i].CurrentAngle - 5000
- end
- skullMotors[i].MaxVelocity = .05+math.random()*.15
- end
- StormEye.CFrame = CFrame.new(Torso.CFrame.p)
- --StormEye.Velocity = Torso.CFrame.lookVector * 25
- newBodyPosition.position = Torso.CFrame.p - Vector3.new(0, 3, 0)
- local timeWaited
- Humanoid.WalkSpeed = 8
- delay(0, function() while skullMotors[1].Parent do timeWaited = wait(.01) Humanoid.WalkSpeed = Humanoid.WalkSpeed + timeWaited * 7 newBodyPosition.position = Torso.CFrame.p - Vector3.new(0, 3, 0) end Humanoid.WalkSpeed = 16 end)
- StormEye.Parent = workspace
- for i = 1, 5 do wait(1) spinSwing:Play() end
- spinForce.Parent = nil
- stayUpright.Parent = nil
- for i = 1, #skullMotors do
- skullMotors[i].Parent = nil
- skullParts[i].Velocity = 40*(skullParts[i].CFrame.p - Torso.CFrame.p).unit
- end
- for i = 0, 30 do
- end
- StormEye.Parent = nil
- wait(3)
- for i = 1, #skullMotors do
- skullMotors[i].Parent = skullParts[i]
- end
- debounce = false
- end
- local leftSword = Handle:Clone()
- leftSword.CanCollide = false
- local leftSwordWeld = Instance.new("ManualWeld")
- leftSwordWeld.Part1 = leftSword
- leftSwordWeld.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, -0)
- leftSwordWeld.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- local NewAnimateScript = WaitForChild(Tool, "NewAnimate")
- local Character = nil
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- leftSwordWeld.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, -0)
- leftSwordWeld.C1 = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- leftSwordWeld.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, -0)
- leftSwordWeld.C1 = CFrame.new(0, 0, -1.5, 0, -1, -0, -1, 0, -0, 0, 0, -1)
- end
- local Mouse = nil
- function onKeyDown(key)
- if key == "z" or key == "Z" then
- if miniDebounce then
- onSpin()
- end
- end
- end
- function onEquipped(mouse)
- if mouse then
- Mouse = mouse
- Mouse.KeyDown:connect(onKeyDown)
- end
- Character = Tool.Parent
- if not Character then return end
- local Humanoid = Character:FindFirstChild("Humanoid")
- if not Humanoid then return end
- spinSwing = Humanoid:LoadAnimation(staffSpin)
- local oldAnimateScript = Character:FindFirstChild("Animate")
- if oldAnimateScript then oldAnimateScript.Disabled = true end
- NewAnimateScript.Parent = Character
- NewAnimateScript.Disabled = false
- UnsheathSound:Play()
- local LeftArm = Character:FindFirstChild("Left Arm")
- leftSwordWeld.Part0 = LeftArm
- leftSword.Parent = Character
- leftSwordWeld.Parent = leftSword
- end
- function onUnequipped()
- leftSwordWeld.Parent = nil
- leftSword.Parent = nil
- NewAnimateScript.Disabled = true
- NewAnimateScript.Parent = Tool
- local oldAnimateScript = Character:FindFirstChild("Animate")
- if oldAnimateScript then oldAnimateScript.Disabled = false end
- end
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- game.Debris:AddItem(creator_tag, 1)
- end
- function attack()
- damage = slash_damage
- SlashSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function lunge()
- if miniDebounce then return end
- miniDebounce = true
- LungeSound:Play()
- damage = lunge_damage
- local newAttack = Instance.new("StringValue")
- newAttack.Name = "toolanim"
- newAttack.Value = "Lunge"
- newAttack.Parent = Tool
- local force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
- force.Parent = Tool.Parent.Torso
- wait(.25)
- swordOut()
- wait(.25)
- force.Parent = nil
- wait(.5)
- swordUp()
- damage = slash_damage
- miniDebounce = false
- end
- local r = game:GetService("RunService")
- Tool.Enabled = true
- local last_attack = 0
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local humanoid = Character:FindFirstChild("Humanoid")
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- local t = r.Stepped:wait()
- if (t - last_attack < .2) then
- lunge()
- else
- attack()
- end
- last_attack = t
- Tool.Enabled = true
- end
- Handle.Touched:connect(function(hitPart) blow(hitPart, damage) end)
- leftSword.Touched:connect(function(hitPart) blow(hitPart, damage) end)
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- Tool.Unequipped:connect(onUnequipped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement