SHOW:
|
|
- or go back to the newest paste.
1 | - | me = game:GetService("Players").SergeantSmokey VC = Vector3.new CF = CFrame.new hop = Instance.new("HopperBin",me.Backpack) hop.Name = "Knight" |
1 | + | me = game:GetService("Players").WinslowMau VC = Vector3.new CF = CFrame.new hop = Instance.new("HopperBin",me.Backpack) hop.Name = "Knight" |
2 | Model = Instance.new("Model",me.Character) Model.Name = "PartsPack" sword1equiped = false numchangerformodes = 1 overalldamage = 5 | |
3 | armsMD = {me.Character.Torso:FindFirstChild("Right Shoulder"),me.Character.Torso:FindFirstChild("Left Shoulder")} MainGui = nil damageallowed = false | |
4 | arms = {me.Character:FindFirstChild("Right Arm"),me.Character:FindFirstChild("Left Arm")} mode1 = false mode2 = true mode3 = false | |
5 | TableForModes = {"2H Sword","DualBlades","Sword and Shield"} local debounceunequip = true debounceequip = true modestabiliazer = true | |
6 | debounceforsworddamage = true debounceforsworddamage2 = true | |
7 | local d22 = me.Character:GetChildren() for i = 1,#d22 do if d22[i].className == "CharacterMesh" then d22[i]:Destroy() end end if me.Character.Head:FindFirstChild("face") ~= nil then me.Character.Head:FindFirstChild("face"):Destroy() else end | |
8 | local b22 = me.Character:GetChildren() for i = 1,#b22 do if b22[i].className == "Hat" then b22[i]:Destroy() end end | |
9 | local c22 = me.Character:GetChildren() for i = 1,#c22 do if c22[i].className == "Part" then c22[i].BrickColor = BrickColor.new("Really black") end end | |
10 | local f22 = me.Character:GetChildren() for i = 1,#f22 do if f22[i].className == "Shirt" then f22[i]:Destroy() end end | |
11 | local v22 = me.Character:GetChildren() for i = 1,#v22 do if v22[i].className == "Pants" then v22[i]:Destroy() end end me.Character.Head.BrickColor = BrickColor.new("Really red") | |
12 | ||
13 | function slash() damageallowed = true overalldamage = 25 | |
14 | if mode1 == true then holdarmright.Part1 = nil armsMD[1].Part1 = arms[1] local storarms = armsMD[1].C0 armsMD[1].C0 = armsMD[1].C0*CFrame.new(.3,0,.3) | |
15 | for i = 0,5,.2 do armsMD[1].DesiredAngle = 0 armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = armsMD[1].C0*CFrame.Angles(0,0,math.rad(i*-1)) wait() end | |
16 | for i = 5,2,-.2 do armsMD[1].DesiredAngle = 0 armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = armsMD[1].C0*CFrame.Angles(0,0,math.rad(i)) wait() end | |
17 | armsMD[1].C0 = storarms armsMD[1].Part1 = nil holdarmright.Part1 = arms[1] damageallowed = false overalldamage = 25 | |
18 | else if mode2 == true then | |
19 | holdarmright2.Part1 = nil armsMD[1].Part1 = arms[1] holdarmleft2.Part1 = nil armsMD[2].Part1 = arms[2] | |
20 | for i = 1,0,-.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) | |
21 | armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(-.2,6.3,i*-1) wait() end | |
22 | for i = 0,1,.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) | |
23 | armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(-.2,6.3,i*-1) wait() end | |
24 | armsMD[1].Part1 = nil holdarmright2.Part1 = arms[1] armsMD[2].Part1 = nil holdarmleft2.Part1 = arms[2] | |
25 | else if mode3 == true then holdarmright3.Part1 = nil armsMD[1].Part1 = arms[1] damageallowed = false | |
26 | for i = 1,0,-.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) wait() end | |
27 | for i = 0,1,.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) wait() end | |
28 | armsMD[1].Part1 = nil holdarmright3.Part1 = arms[1] end end end damageallowed = false | |
29 | end | |
30 | ||
31 | function armor() | |
32 | local hat = Instance.new("Hat",me.Character) hat.Name = "Knight Helm" hat.AttachmentPos = VC(0,.3,.1) | |
33 | local han = Instance.new("Part") han.Anchored = false han.CanCollide = false han.Name = "Handle" han.Size = VC(1,1,1) han.Position = VC(me.Character.Head.Position) han.Parent = hat | |
34 | local msh = Instance.new("SpecialMesh",han) msh.MeshType = "FileMesh" msh.MeshId = "http://www.roblox.com/asset/?id=33364735" msh.Scale = VC(1,1,1) msh.VertexColor = VC(0,0,0) | |
35 | msh.TextureId = "http://www.roblox.com/asset/?id=33364709" | |
36 | local charm = Instance.new("CharacterMesh",me.Character) charm.BodyPart = "Torso" charm.MeshId = 68241695 charm.OverlayTextureId = 42265273 | |
37 | local charm = Instance.new("CharacterMesh",me.Character) charm.BodyPart = "RightLeg" charm.MeshId = 74653410 charm.OverlayTextureId = 42265273 | |
38 | local charm = Instance.new("CharacterMesh",me.Character) charm.BodyPart = "LeftLeg" charm.MeshId = 74653371 charm.OverlayTextureId = 42265273 | |
39 | local charm = Instance.new("CharacterMesh",me.Character) charm.BodyPart = "RightArm" charm.MeshId = 68241658 charm.OverlayTextureId = 42265273 | |
40 | local charm = Instance.new("CharacterMesh",me.Character) charm.BodyPart = "LeftArm" charm.MeshId = 68241543 charm.OverlayTextureId = 42265273 | |
41 | local sword = Instance.new("Part",Model) sword.FormFactor = "Custom" sword.Size = VC(.5,3.5,.5) sword.CanCollide = false sword.CFrame = me.Character.Torso.CFrame swordweld = Instance.new("Weld",me.Character.Torso) swordweld.Part0 = swordweld.Parent swordweld.Part1 = sword | |
42 | sword.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil and debounceforsworddamage == true and damageallowed == true then hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - overalldamage wait(.2) debounceforsworddamage = true else return end end) | |
43 | swordweld.C0 = CFrame.new(.3,.6,.6)*CFrame.Angles(math.pi/2,math.rad(-35),0) mesh2sword = Instance.new("SpecialMesh",sword) mesh2sword.MeshType = "FileMesh" mesh2sword.MeshId = "http://www.roblox.com/asset/?id=49754655" mesh2sword.TextureId = "http://www.roblox.com/asset/?id=77571269" mesh2sword.Scale = VC(2,2,2) | |
44 | local sword2 = Instance.new("Part",Model) sword2.FormFactor = "Custom" sword2.Size = VC(.5,3.5,.5) sword2.CanCollide = false sword2.CFrame = me.Character.Torso.CFrame swordweld2 = Instance.new("Weld",me.Character.Torso) swordweld2.Part0 = swordweld2.Parent swordweld2.Part1 = sword2 | |
45 | sword2.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil and debounceforsworddamage2 == true and damageallowed == true then hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - overalldamage wait(.2) debounceforsworddamage2 = true else return end end) | |
46 | swordweld2.C0 = CFrame.new(-.3,.6,.6)*CFrame.Angles(math.pi/2,math.rad(35),0) mesh2sword2 = Instance.new("SpecialMesh",sword2) mesh2sword2.MeshType = "FileMesh" mesh2sword2.MeshId = "http://www.roblox.com/asset/?id=49754655" mesh2sword2.TextureId = "http://www.roblox.com/asset/?id=77571269" mesh2sword2.Scale = VC(2,2,2) | |
47 | local shield = Instance.new("Part",Model) shield.FormFactor = "Custom" shield.Size = VC(.5,3.5,.5) shield.CanCollide = false shield.CFrame = me.Character.Torso.CFrame shieldweld = Instance.new("Weld",me.Character.Torso) shieldweld.Part0 = shieldweld.Parent shieldweld.Part1 = shield | |
48 | shieldweld.C0 = CFrame.new(0,0,.8)*CFrame.Angles(math.pi/2,0,math.pi/1) shieldmesh2 = Instance.new("SpecialMesh",shield) shieldmesh2.MeshType = "FileMesh" shieldmesh2.MeshId = "http://www.roblox.com/asset/?id=49757732" shieldmesh2.TextureId = "http://www.roblox.com/asset/?id=77571269" shieldmesh2.Scale = VC(1.2,1.1,1.2) | |
49 | end | |
50 | ||
51 | function changemode() if modestabiliazer ~= true then return else modestabiliazer = false if MainGui ~= nil then MainGui:Destroy() else end numchangerformodes = numchangerformodes + 1 if numchangerformodes == 4 then numchangerformodes = 1 else end | |
52 | MainGui = Instance.new("ScreenGui",me.PlayerGui) local TL = Instance.new("TextLabel",MainGui) TL.Position = UDim2.new(0,630,0,20) TL.Text = TableForModes[numchangerformodes] TL.Size = UDim2.new(0,150,0,50) TL.BackgroundColor3 = BrickColor.new("Really black").Color | |
53 | TL.TextColor3 = BrickColor.new("White").Color TL.Font = "ArialBold" TL.FontSize = "Size18" | |
54 | if numchangerformodes == 1 then unequip() mode1 = true mode2 = false mode3 = false equip() else if numchangerformodes == 2 then unequip() mode1 = false mode2 = true mode3 = false equip() else if numchangerformodes == 3 then unequip() mode1 = false mode2 = false mode3 = true equip() end end end if MainGui ~= nil then MainGui:Destroy() end modestabiliazer = true | |
55 | end | |
56 | end | |
57 | ||
58 | function equip() if mode1 == true then if debounceequip ~= true or debounceunequip == false then return else debounceequip = false | |
59 | for i = 0,3.8,.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) wait() end swordweld.Part0 = me.Character:FindFirstChild("Right Arm") swordweld.C0 = CF(.1,-1.2,-2)*CFrame.Angles(math.rad(180),0,math.pi/2) | |
60 | for i = 3.8,0,-.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) wait() end | |
61 | for i = 0,1,.1 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1-i, 1, -.2, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(i-.3,6.3,i) | |
62 | armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1+i-.2, 0.8, -.2, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(i-.6,5.9,i*-1) wait() end armsMD[1].Part1 = nil holdarmright = Instance.new("Weld",me.Character.Torso) holdarmright.Part0 = holdarmright.Parent holdarmright.Part1 = arms[1] holdarmright.C0 = CFrame.new(.55,.3,-.4)*CFrame.Angles(.9,-.55,-.40) | |
63 | armsMD[2].Part1 = nil holdarmleft = Instance.new("Weld",me.Character.Torso) holdarmleft.Part0 = holdarmleft.Parent holdarmleft.Part1 = arms[2] holdarmleft.C0 = CF(-.8,.2,-.6)*CFrame.Angles(1.2,-.5,.8) | |
64 | for i = 2,3,.1 do mesh2sword.Scale = VC(i,i,i) swordweld.C0 = swordweld.C0*CFrame.new(0,.03,.085) wait() end debounceequip = true end else | |
65 | if mode2 == true then if debounceequip ~= true or debounceunequip == false then return else end debounceequip = false | |
66 | for i = 0,3.8,.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) | |
67 | armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(-.2,6.3,i*-1) | |
68 | wait() end swordweld.Part0 = me.Character:FindFirstChild("Right Arm") swordweld.C0 = CF(.1,-1.2,-2)*CFrame.Angles(math.rad(180),0,math.pi/2) | |
69 | swordweld2.Part0 = me.Character:FindFirstChild("Left Arm") swordweld2.C0 = CF(-.1,-1.2,-2)*CFrame.Angles(math.rad(180),0,math.pi/2) | |
70 | for i = 3.8,1,-.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) | |
71 | armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(-.2,6.3,i*-1) wait() end | |
72 | armsMD[1].Part1 = nil holdarmright2 = Instance.new("Weld",me.Character.Torso) holdarmright2.Part0 = holdarmright2.Parent holdarmright2.Part1 = arms[1] holdarmright2.C0 = CFrame.new(1.5,.5,-.3)*CFrame.Angles(1.1,.2,0) | |
73 | armsMD[2].Part1 = nil holdarmleft2 = Instance.new("Weld",me.Character.Torso) holdarmleft2.Part0 = holdarmleft2.Parent holdarmleft2.Part1 = arms[2] holdarmleft2.C0 = CF(-1.5,.5,-.3)*CFrame.Angles(1.1,-.2,0) debounceequip = true | |
74 | else if mode3 == true then if debounceequip ~= true or debounceunequip == false then return else end debounceequip = false | |
75 | for i = 0,3.8,.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) wait() end swordweld.Part0 = me.Character:FindFirstChild("Right Arm") swordweld.C0 = CF(.1,-1.2,-2)*CFrame.Angles(math.rad(180),0,math.pi/2) | |
76 | for i = 3.8,1,-.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) wait() end armsMD[1].Part1 = nil holdarmright3 = Instance.new("Weld",me.Character.Torso) holdarmright3.Part0 = holdarmright3.Parent holdarmright3.Part1 = arms[1] holdarmright3.C0 = CFrame.new(1.5,.5,-.3)*CFrame.Angles(1.1,.2,0) debounceequip = true | |
77 | for i = 0,1,.2 do armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(0,6.3,i*-1) wait() end | |
78 | local orb = Instance.new("Part",Model) orb.Size = Vector3.new(1,1,1) orb.Shape = "Ball" orb.CFrame = CFrame.new(arms[1].CFrame.x,arms[1].CFrame.y,arms[1].CFrame.z) orb.CanCollide = true orb.Reflectance = 1 | |
79 | local wld = Instance.new("Weld",arms[2]) wld.Part0 = wld.Parent wld.Part1 = orb wld.C0 = CFrame.new(-.1,-1.1,-.1) wait(.2) local f = Instance.new("Fire",orb) f.Color = BrickColor.new("Really black").Color f.SecondaryColor = BrickColor.new("Really black").Color f.Size = 3 f.Heat = 15 for i = 1,5 do f:clone().Parent = orb end | |
80 | for i = 1,5,.2 do shieldweld.C0 = CFrame.new(0,i,.8)*CFrame.Angles(math.pi/2,0,math.pi/1) wait() end for i = 0,90,10 do shieldweld.C0 = CFrame.new(0,5,.8)*CFrame.Angles(math.pi/2,0,math.rad(180+i)) wait() end | |
81 | for i = 0,2,.1 do shieldweld.C0 = CFrame.new(0-i-.3,5-i-i,.8-i)*CFrame.Angles(math.pi/2,0,math.rad(270)) wait() end orb:Destroy() shieldweld.Part0 = nil shieldweld.Part0 = arms[2] shieldweld.C0 = CFrame.new(-.5,0,0)*CFrame.Angles(0,0,math.pi/-2) | |
82 | for i = 0,10,1 do armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = armsMD[2].C0*CFrame.Angles(math.rad(i),0,math.rad(-2))*CFrame.new(0,-.05,0) wait() end armsMD[2].Part1 = nil holdarmleft3 = Instance.new("Weld",me.Character.Torso) holdarmleft3.Part0 = holdarmleft3.Parent holdarmleft3.Part1 = arms[2] holdarmleft3.C0 = CFrame.new(-.6,.2,-.8)*CFrame.Angles(1.3,0,1.4) debounceunequip = true end | |
83 | end end | |
84 | end | |
85 | ||
86 | function unequip() damageallowed = false if mode1 == true then if debounceunequip ~= true or debounceequip == false then return nil else debounceunequip = false | |
87 | for i = 3,2,-.1 do mesh2sword.Scale = VC(i,i,i) swordweld.C0 = swordweld.C0*CFrame.new(0,-.03,-.085) wait() end armsMD[1].Part1 = arms[1] armsMD[2].Part1 = arms[2] holdarmright:Destroy() holdarmleft:Destroy() | |
88 | for i = 1,0,-.1 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1-i, 1, -.2, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(i-.3,6.3,i) | |
89 | armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1+i, 0.8, -.2, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(i+.3,6.3,i) wait() end armsMD[2].C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(0,6.3,0) | |
90 | for i = 0,3.8,.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) wait() end | |
91 | swordweld.Part0 = me.Character.Torso swordweld.C0 = CFrame.new(.3,.6,.6)*CFrame.Angles(math.pi/2,math.rad(-35),0) | |
92 | for i = 3.8,1,-.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(0,6.3,i) wait() end armsMD[1].C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)*CFrame.Angles(0,6.3,0) debounceunequip = true end | |
93 | else if mode2 == true then if debounceunequip ~= true or debounceequip == false then return nil else debounceunequip = false | |
94 | armsMD[1].Part1 = arms[1] armsMD[2].Part1 = arms[2] holdarmright2:Destroy() holdarmleft2:Destroy() | |
95 | for i = 1,3.8,.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) | |
96 | armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(-.2,6.3,i*-1) wait() end | |
97 | swordweld.Part0 = me.Character.Torso swordweld.C0 = CFrame.new(.3,.6,.6)*CFrame.Angles(math.pi/2,math.rad(-35),0) swordweld2.Part0 = me.Character.Torso swordweld2.C0 = CFrame.new(-.3,.6,.6)*CFrame.Angles(math.pi/2,math.rad(35),0) | |
98 | for i = 3.8,0,-.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(0,6.3,i) | |
99 | armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(0,6.3,i*-1) wait() end armsMD[2].C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(0,6.3,0) debounceunequip = true end | |
100 | else if mode3 == true then if debounceunequip ~= true or debounceequip == false then return else end debounceunequip = false | |
101 | armsMD[1].Part1 = arms[1] armsMD[2].Part1 = arms[2] holdarmright3:Destroy() holdarmleft3:Destroy() | |
102 | for i = 1.2,0,-.1 do shieldmesh2.Scale = VC(i,i,i) wait() end | |
103 | for i = 10,0,-1 do armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = armsMD[2].C0*CFrame.Angles(math.rad(i*-1),0,math.rad(-2))*CFrame.new(0,.05,0) wait() end | |
104 | for i = 4,0,-.3 do armsMD[2].C0 = armsMD[2].C0*CFrame.Angles(0,0,math.rad(i)) wait() end armsMD[2].C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(0,6.3,0) | |
105 | for i = 1,3.8,.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(-.2,6.3,i) wait() end swordweld.Part0 = me.Character.Torso swordweld.C0 = CFrame.new(.3,.6,.6)*CFrame.Angles(math.pi/2,math.rad(-35),0) | |
106 | for i = 3.8,0,-.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(0,6.3,i) wait() end armsMD[2].C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(0,6.3,0) | |
107 | shieldweld.Part0 = shieldweld.Parent shieldweld.C0 = CFrame.new(0,0,.8)*CFrame.Angles(math.pi/2,0,math.pi/1) wait() shieldmesh2.Scale = VC(1.2,1.1,1.2) debounceunequip = true end | |
108 | end end | |
109 | end | |
110 | ||
111 | function firstmove() damageallowed = true | |
112 | if mode2 == true then overalldamage = 10 holdarmright2.Part1 = nil armsMD[1].Part1 = arms[1] holdarmleft2.Part1 = nil armsMD[2].Part1 = arms[2] | |
113 | local bp = Instance.new("BodyPosition",me.Character.Torso) bp.maxForce = VC(math.huge,math.huge,math.huge) bp.position = (me.Character.Torso.CFrame*CFrame.new(0,.3,-30)).p | |
114 | fire = Instance.new("Fire") fire.Size = 3 fire.Heat = 25 fire.Color = BrickColor.new("Teal").Color fire.SecondaryColor = BrickColor.new("Teal").Color for i = 1,5 do fire:clone().Parent = mesh2sword.Parent end for i = 1,5 do fire:clone().Parent = mesh2sword2.Parent end | |
115 | for i = 1,0,-.1 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(i*-1,6.3,i) | |
116 | armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(i*-1,6.3,i*-1) wait() end | |
117 | for i = 0,1,.2 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(0,6.3,i) | |
118 | armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(0,6.3,i*-1) wait() end for i,v in pairs(mesh2sword.Parent:GetChildren()) do if v:IsA("Fire") then v:Destroy() else end end for i,v in pairs(mesh2sword2.Parent:GetChildren()) do if v:IsA("Fire") then v:Destroy() else end end wait(.1) | |
119 | bp:Destroy() armsMD[1].Part1 = nil holdarmright2.Part1 = arms[1] armsMD[2].Part1 = nil holdarmleft2.Part1 = arms[2] overalldamage = 5 damageallowed = false | |
120 | end | |
121 | end | |
122 | ||
123 | function secondmove() damageallowed = true | |
124 | if mode2 == true then me.Character.Humanoid.WalkSpeed = 0 local changingnumnum = 0 local changingnumnum2 = 0 local changingnumnum3 = 0 local p = Instance.new("Part",game.Workspace) p.Anchored = true p.CanCollide = false p.CFrame = me.Character.Torso.CFrame*CFrame.new(0,-2,0) local msh = Instance.new("SpecialMesh",p) msh.MeshType = "FileMesh" msh.MeshId = "http://www.roblox.com/asset/?id=20329976" msh.Scale = Vector3.new(5,3,5) msh.TextureId = "http://www.roblox.com/asset/?id=20329965" msh.VertexColor = Vector3.new(0,0,0) | |
125 | holdarmright2.Part1 = nil armsMD[1].Part1 = arms[1] holdarmleft2.Part1 = nil armsMD[2].Part1 = arms[2] | |
126 | for i = 0,1,.1 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(i*-1,6.3,0) | |
127 | armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(i*-1,6.3,0) wait() end | |
128 | ||
129 | ||
130 | for i = 180,90,-10 do changingnumnum = changingnumnum + .18 changingnumnum2 = changingnumnum2 - .18 changingnumnum3 = changingnumnum3 + .01 swordweld.C0 = CF(-.1+changingnumnum3,-1.2+changingnumnum2,-2+changingnumnum)*CFrame.Angles(math.rad(i),0,math.pi/2) wait() | |
131 | swordweld2.C0 = CF(-.1+changingnumnum3,-1.2+changingnumnum2,-2+changingnumnum)*CFrame.Angles(math.rad(i),0,math.pi/2) wait() end | |
132 | ||
133 | for i = 1,200,2 do me.Character.Torso.CFrame = me.Character.Torso.CFrame*CFrame.Angles(0,1,0) wait() end wait(.1) p:Destroy() | |
134 | ||
135 | for i = 90,180,10 do changingnumnum = changingnumnum - .1 changingnumnum2 = changingnumnum2 + .1 changingnumnum3 = changingnumnum3 - .01 swordweld.C0 = CF(-.1+changingnumnum3,-1.2+changingnumnum2,-2+changingnumnum)*CFrame.Angles(math.rad(i),0,math.pi/2) | |
136 | swordweld2.C0 = CF(-.1+changingnumnum3,-1.2+changingnumnum2,-2+changingnumnum)*CFrame.Angles(math.rad(i),0,math.pi/2)wait() end | |
137 | swordweld.C0 = CF(.1,-1.2,-2)*CFrame.Angles(math.rad(180),0,math.pi/2) swordweld2.C0 = CF(-.1,-1.2,-2)*CFrame.Angles(math.rad(180),0,math.pi/2) for i = 1,0,-.1 do armsMD[1].CurrentAngle = 0 armsMD[1].MaxVelocity = 0 armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(i*-1,6.3,0) | |
138 | armsMD[2].CurrentAngle = 0 armsMD[2].MaxVelocity = 0 armsMD[2].C0 = CF(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(i*-1,6.3,0) wait() end armsMD[1].C0 = CF(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)*CFrame.Angles(0,6.3,0) armsMD[2].C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)*CFrame.Angles(0,6.3,0) | |
139 | armsMD[1].Part1 = nil holdarmright2.Part1 = arms[1] armsMD[2].Part1 = nil holdarmleft2.Part1 = arms[2] damageallowed = false me.Character.Humanoid.WalkSpeed = 16 | |
140 | end | |
141 | end | |
142 | ||
143 | function sel(mouse) | |
144 | equip() | |
145 | mouse.Button1Down:connect(slash) | |
146 | mouse.keyDown:connect(function(key) if key == "z" then equip() end end) | |
147 | mouse.keyDown:connect(function(key) if key == "x" then changemode() end end) | |
148 | mouse.keyDown:connect(function(key) if key == "q" then firstmove() end end) | |
149 | mouse.keyDown:connect(function(key) if key == "e" then secondmove() end end) | |
150 | end | |
151 | ||
152 | function deSel() | |
153 | unequip() | |
154 | end | |
155 | ||
156 | hop.Deselected:connect(deSel) | |
157 | hop.Selected:connect(sel) | |
158 | armor() |