Advertisement
lafur

Untitled

Nov 7th, 2018
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.85 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end ----------------
  6. --Donald McGillavry--
  7. ----------------
  8. --By --
  9. --CKbackup-
  10. -----------
  11.  
  12. player = game.Players.LocalPlayer
  13. chara = player.Character
  14. debby = game.Debris
  15. Mouse = player:GetMouse()
  16. chara.Humanoid.WalkSpeed = 24
  17. atkd = false
  18. atkdd = false
  19. targetted = nil
  20. iaidoatk = false
  21. berserkmode = false
  22.  
  23. --Outfit--
  24. New = function(Object, Parent, Name, Data)
  25. local Object = Instance.new(Object)
  26. for Index, Value in pairs(Data or {}) do
  27. Object[Index] = Value
  28. end
  29. Object.Parent = Parent
  30. Object.Name = Name
  31. return Object
  32. end
  33.  
  34. Swordu = New("Model",chara,"Swordu",{})
  35. Handle = New("Part",Swordu,"Handle",{BrickColor = BrickColor.new("Storm blue"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.99999994, 0.399999976),CFrame = CFrame.new(34.5000267, 1.20001173, 22.5999928, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.2, 0.345098, 0.509804),})
  36. Mesh = New("CylinderMesh",Handle,"Mesh",{Scale = Vector3.new(1.20000005, 1, 1.20000005),})
  37. KWeld = New("ManualWeld",Handle,"KWeld",{Part0 = Handle,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -0.999996185, -7.15255737e-07, -1, 0, 0, 0, 0, -1, 0, -1, 0),})
  38. Part = New("Part",Swordu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.200000003, 0.799999714, 0.200000003),CFrame = CFrame.new(34.5000267, 5.50000811, 22.4999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  39. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
  40. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 4.29999638, -0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  41. Part = New("Part",Swordu,"Part",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(34.5000267, 1.80001104, 22.5999928, 0, 0, -1, 0, -1, 0, -1, 0, 0),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
  42. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(6, 1, 0.699999988),MeshType = Enum.MeshType.Torso,})
  43. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, -1, 0, -1, 0, 0),C1 = CFrame.new(0, 0.599999309, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  44. Part = New("Part",Swordu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.200000003, 0.799999714, 0.200000003),CFrame = CFrame.new(34.5000267, 5.50001001, 22.6999931, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  45. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
  46. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 4.29999828, 0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  47. Part = New("Part",Swordu,"Part",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(34.5000229, 1.8000114, 22.5999928, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
  48. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(2, 1.5, 2),})
  49. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-3.81469727e-06, 0.599999666, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  50. Part = New("Part",Swordu,"Part",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(34.5000229, 0.600010991, 22.5999947, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
  51. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1.5, 1.5),})
  52. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-3.81469727e-06, -0.600000739, 1.90734863e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  53. Part = New("Part",Swordu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.200000003, 3.19999981, 0.399999976),CFrame = CFrame.new(34.5000267, 3.50001144, 22.5999928, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  54. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 1),})
  55. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 2.29999971, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  56. Hitbox = New("Part",Swordu,"Hitbox",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 4, 0.399999976),CFrame = CFrame.new(34.5000267, 3.90001106, 22.5999947, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,})
  57. Mesh = New("BlockMesh",Hitbox,"Mesh",{Scale = Vector3.new(0.5, 1, 1),})
  58. Weld = New("ManualWeld",Hitbox,"Weld",{Part0 = Hitbox,Part1 = Handle,C1 = CFrame.new(0, 2.69999933, 1.90734863e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  59.  
  60.  
  61. RightArm = New("Model",chara,"RightArm",{})
  62. MainPart = New("Part",RightArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  63. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  64. Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(0.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
  65. Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  66. Weld = New("ManualWeld",Emit2Part,"Weld",{Part0 = Emit2Part,Part1 = MainPart,C1 = CFrame.new(0, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  67. LeftArm = New("Model",chara,"LeftArm",{})
  68. MainPart = New("Part",LeftArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.50000024, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  69. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C1 = CFrame.new(-2.38418579e-007, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  70. EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-2.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
  71. Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  72. Weld = New("ManualWeld",EmitPart,"Weld",{Part0 = EmitPart,Part1 = MainPart,C1 = CFrame.new(2.38418579e-007, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  73.  
  74. lach = LeftArm:GetChildren()
  75. rach = RightArm:GetChildren()
  76. ch = chara:GetChildren()
  77.  
  78. ScreenGui = New("ScreenGui",player.PlayerGui,"ScreenGui",{})
  79. Frame = New("Frame",ScreenGui,"Frame",{BackgroundColor3 = Color3.new(0,.6,0),BorderColor3 = Color3.new(.2,.6,0),BorderSizePixel = 3,Position = UDim2.new(0,700,0,100),Size = UDim2.new(0,200,0,400),Draggable = true})
  80. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,0),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "Donald McGillavry",TextColor3 = Color3.new(1,1,1)})
  81. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,20),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "M - Mute/Unmute Music",TextColor3 = Color3.new(1,1,1)})
  82. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,40),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "Z - Punch",TextColor3 = Color3.new(1,1,1)})
  83. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,60),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "X - Kick",TextColor3 = Color3.new(1,1,1)})
  84. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,80),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "C - Slash",TextColor3 = Color3.new(1,1,1)})
  85. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,100),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "Q - Select Target",TextColor3 = Color3.new(1,1,1)})
  86. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,120),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "E - Block",TextColor3 = Color3.new(1,1,1)})
  87. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,140),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "SAX - Ballista Revolver",TextColor3 = Color3.new(1,1,1)})
  88. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,160),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "SSX - Flip Kick",TextColor3 = Color3.new(1,1,1)})
  89. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,180),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "AWC - From Above",TextColor3 = Color3.new(1,1,1)})
  90. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,200),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "ADDC - Knight Slash",TextColor3 = Color3.new(1,1,1)})
  91. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,220),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "DSDC - Knight Stabs",TextColor3 = Color3.new(1,1,1)})
  92. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,240),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "SSADC - Knight Rush",TextColor3 = Color3.new(1,1,1)})
  93. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,260),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "DSADDQ - Berserk",TextColor3 = Color3.new(1,1,1)})
  94. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,280),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "ADQ - End Him Rightly",TextColor3 = Color3.new(1,1,1)})
  95. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,300),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "ASDQ - Launch Explosives",TextColor3 = Color3.new(1,1,1)})
  96. TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,320),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "",TextColor3 = Color3.new(1,1,1)})
  97. OpenButton = New("TextButton",ScreenGui,"OpenButton",{BackgroundColor3 = Color3.new(0,.6,0),BorderColor3 = Color3.new(.2,.6,0),BorderSizePixel = 3,Position = UDim2.new(0,700,0,500),Size = UDim2.new(0,50,0,20),FontSize = "Size14",Font = "Fantasy",Text = "Close",TextColor3 = Color3.new(1,1,1)})
  98.  
  99. HandleT = New("Part",chara,"HandleT",{FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(2, 0.800000012, 1),CFrame = CFrame.new(36, 17.5985985, 26.6999989, -1, 0, -0, -0, 1, -0, -0, 0, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  100. Mesh = New("SpecialMesh",HandleT,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=1043443",TextureId = "http://www.roblox.com/asset/?id=1043438",MeshType = Enum.MeshType.FileMesh,})
  101. WeldT = New("ManualWeld",HandleT,"WeldT",{Part0 = HandleT,Part1 = chara.Head,C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 1, 0, -0, -0, -1),C1 = CFrame.new(0, 0.900007248, 0, -1, -0, -0, 0, 1, 0, -0, -0, -1),})
  102. Shirta = New("Shirt",chara,"Shirta",{ShirtTemplate = "http://www.roblox.com/asset/?id=1895708"})
  103.  
  104. function addCols()
  105. ch = chara:GetChildren()
  106. for i = 1, #ch do
  107. if ch[i].Name == "Left Arm" or ch[i].Name == "Right Arm" or ch[i].Name == "Head" or ch[i].Name == "Torso" then
  108. ch[i].BrickColor = BrickColor.new("Bright yellow")
  109. if ch[i].Name == "Head" then
  110. ch[i].face.Texture = "http://www.roblox.com/asset/?id=18569805"
  111. elseif ch[i].Name == "Torso" then
  112. ch[i].roblox.Texture = ""
  113. end
  114. elseif ch[i].Name == "Left Leg" or ch[i].Name == "Right Leg" then
  115. ch[i].BrickColor = BrickColor.new("Black")
  116. elseif ch[i].ClassName == "Accessory" or ch[i].ClassName == "Hat" or ch[i].Name == "Shirt" or ch[i].Name == "Pants" or ch[i].Name == "Shirt Graphic" then
  117. ch[i]:Destroy()
  118. elseif ch[i].ClassName == "CharacterMesh" and chara:FindFirstChild("Chest")==nil then
  119. ch[i]:Destroy()
  120. end
  121. end
  122. end
  123.  
  124. OpenButton.MouseButton1Click:connect(function()
  125. if Frame.Visible == true then
  126. Frame.Visible = false
  127. OpenButton.Text = "Open"
  128. elseif Frame.Visible == false then
  129. Frame.Visible = true
  130. OpenButton.Text = "Close"
  131. end
  132. end)
  133.  
  134. crosshair = Instance.new("BillboardGui",chara)
  135. crosshair.Size = UDim2.new(10,0,10,0)
  136. crosshair.Enabled = false
  137. imgl = Instance.new("ImageLabel",crosshair)
  138. imgl.Position = UDim2.new(0,0,0,0)
  139. imgl.Size = UDim2.new(1,0,1,0)
  140. imgl.Image = "rbxassetid://233522684"
  141. imgl.BackgroundTransparency = 1
  142. imgl.ImageColor3 = Color3.new(1,1,0)
  143.  
  144. --Sounds--
  145. function LoadSnd(id,loop,vol,pit)
  146. local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  147. return snd
  148. end
  149. Music = LoadSnd(166597964,true,2,1)
  150. StartUpSnd = LoadSnd(153092315,false,1,.8)
  151. SwingSnd = LoadSnd(158037267,false,1,1)
  152. Swing2Snd = LoadSnd(12222208,false,1,1)
  153. HitSnd = LoadSnd(153092274,false,1,1)
  154. HitPunchSnd = LoadSnd(153092227,false,1,1)
  155. DodgeSnd = LoadSnd(232210079,false,1,1)
  156. ExpSnd = LoadSnd(142070127,false,1,1)
  157. FlySnd = LoadSnd(169445602,false,1,1)
  158. BExpSnd = LoadSnd(258057783,false,5,1)
  159. ClawDashSnd = LoadSnd(62339698,false,1,.5)
  160. deathmus = LoadSnd(395580552,true,5,1)
  161. deathex = LoadSnd(258057783,false,5,1)
  162. --Grunt1Snd = LoadSnd(159882486,false,1,1.1)
  163. --Grunt2Snd = LoadSnd(159882466,false,1,1.1)
  164. --Grunt3Snd = LoadSnd(159972643,false,1,1.1)
  165. --Grunt4Snd = LoadSnd(159882584,false,1,1.1)
  166. --YouIdiotSnd = LoadSnd(160212768,false,1,1.1)
  167. --DieSnd = LoadSnd(159882598,false,1,1.1)
  168. --Laugh1Snd = LoadSnd(160212549,false,1,1.1)
  169. --Laugh2Snd = LoadSnd(159882561,false,1,1.1)
  170. --Laugh3Snd = LoadSnd(160212812,false,1,1.1)
  171. ChargeSnd = LoadSnd(137463716,false,1,1)
  172. LasSnd = LoadSnd(162246701,false,1,1)
  173. LasLoopSnd = LoadSnd(162246683,true,1,1)
  174. RStompSnd = LoadSnd(2760979,false,1,1)
  175. GunFlameSnd = LoadSnd(32656754,false,1,1)
  176. OrbSnd = LoadSnd(233091161,false,1,1)
  177. ElectricSnd = LoadSnd(231917975,false,1,1)
  178. LightsOutSnd = LoadSnd(231917794,false,1,1)
  179. SkyBeamSnd = LoadSnd(260433522,false,1,1)
  180. TargetSnd = LoadSnd(613361563,false,1,1)
  181. SV1Snd = LoadSnd(28144425,false,1,.265)
  182. SV2Snd = LoadSnd(2697431,false,1,.3)
  183. SVHitSnd = LoadSnd(62339698,false,1,.3)
  184. IceBreakSnd = LoadSnd(357568316,false,1,1)
  185. FreezeSnd = LoadSnd(203936153,false,1,1)
  186. IceBreak2Snd = LoadSnd(87015121,false,1,1)
  187. BlockedSnd = LoadSnd(357622136,false,1,1)
  188. Music:Play()
  189.  
  190. --Play Sound in Part--
  191. function PlaySnd(snd,part)
  192. local sound = snd:Clone()
  193. sound.PlayOnRemove = true
  194. sound.Parent = part
  195. sound:Destroy()
  196. end
  197.  
  198. --Target Select--
  199. function TargetSelect(person)
  200. local dd=coroutine.wrap(function()
  201. if targetted ~= person then
  202. targetted = person
  203. for i = 0,30,10 do
  204. wait(.05)
  205. crosshair.Size = UDim2.new(40-i,0,40-i,0)
  206. end
  207. end
  208. end)
  209. dd()
  210. end
  211.  
  212. --Damage Function--
  213. function dealdmg(dude,damage,env,toim)
  214. hurt = coroutine.wrap(function(dude2,damage2,env2,toim2)
  215. if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
  216. TargetSelect(dude)
  217. dude.Humanoid.MaxHealth = 100
  218. finaldmg = damage + math.random(-env,env)
  219. if berserkmode == true then
  220. finaldmg = finaldmg * 1.5
  221. end
  222. dude.Humanoid.Health = dude.Humanoid.Health - finaldmg
  223. local vall = Instance.new("ObjectValue",dude)
  224. vall.Name = "IsHit"
  225. debby:AddItem(vall,toim)
  226. local naeeym2 = Instance.new("BillboardGui",dude)
  227. naeeym2.Size = UDim2.new(0,100,0,40)
  228. naeeym2.StudsOffset = Vector3.new(0,3,0)
  229. naeeym2.Adornee = dude.Head
  230. naeeym2.Name = "TalkingBillBoard"
  231. local tecks2 = Instance.new("TextLabel",naeeym2)
  232. tecks2.BackgroundTransparency = 1
  233. tecks2.BorderSizePixel = 0
  234. tecks2.Text = "-"..finaldmg
  235. tecks2.Font = "SciFi"
  236. tecks2.FontSize = "Size24"
  237. tecks2.TextStrokeTransparency = 0
  238. tecks2.TextColor3 = Color3.new(1,0.6,0)
  239. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  240. tecks2.Size = UDim2.new(1,0,0.5,0)
  241. if berserkmode == true then
  242. tecks2.TextColor3 = Color3.new(1,0,0)
  243. tecks2.TextStrokeColor3 = Color3.new(1,1,0)
  244. end
  245. for i = 1, 5 do
  246. wait(.1)
  247. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  248. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  249. tecks2.TextTransparency = tecks2.TextTransparency + .2
  250. end
  251. naeeym2:Destroy()
  252. end
  253. end)
  254. hurt(dude,damage,env,toim)
  255. end
  256.  
  257. --Explode Hitbox--
  258. function ExHitbox(rad,pos,damage,env,toim)
  259. local E = Instance.new("Explosion")
  260. E.Position = pos
  261. E.Parent = game.Workspace
  262. E.BlastRadius = rad
  263. E.BlastPressure = 0
  264. E.Visible = false
  265. E.Hit:connect(function(hit)
  266. if hit.Parent:FindFirstChild("Humanoid")~=nil then
  267. dealdmg(hit.Parent,damage,env,toim)
  268. end
  269. end)
  270. end
  271.  
  272. --Chat Function--
  273. function chatfunc(text)
  274. local chat = coroutine.wrap(function()
  275. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  276. chara:FindFirstChild("TalkingBillBoard"):destroy()
  277. end
  278. local naeeym2 = Instance.new("BillboardGui",chara)
  279. naeeym2.Size = UDim2.new(0,100,0,40)
  280. naeeym2.StudsOffset = Vector3.new(0,3,0)
  281. naeeym2.Adornee = chara.Head
  282. naeeym2.Name = "TalkingBillBoard"
  283. local tecks2 = Instance.new("TextLabel",naeeym2)
  284. tecks2.BackgroundTransparency = 1
  285. tecks2.BorderSizePixel = 0
  286. tecks2.Text = ""
  287. tecks2.Font = "Fantasy"
  288. tecks2.FontSize = "Size24"
  289. tecks2.TextStrokeTransparency = 0
  290. tecks2.TextColor3 = Color3.new(1,1,1)
  291. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  292. tecks2.Size = UDim2.new(1,0,0.5,0)
  293. if berserkmode == true then
  294. tecks2.TextColor3 = Color3.new(1,0,0)
  295. tecks2.TextStrokeColor3 = Color3.new(1,1,0)
  296. end
  297. for i = 1,string.len(text),1 do
  298. tecks2.Text = string.sub(text,1,i)
  299. wait(0.01)
  300. end
  301. wait(1)
  302. for i = 1, 5 do
  303. wait(.01)
  304. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  305. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  306. tecks2.TextTransparency = tecks2.TextTransparency + .2
  307. end
  308. naeeym2:Destroy()
  309. end)
  310. chat()
  311. end
  312.  
  313. function onChatted(msg)
  314. chatfunc(msg)
  315. end
  316. player.Chatted:connect(onChatted)
  317.  
  318. --Punch Hit Effect--
  319. function PunchEff(pos)
  320. local p = Instance.new("Part",game.Workspace)
  321. p.Size = Vector3.new(0,0,0)
  322. p.BrickColor = BrickColor.new("White")
  323. p.Material = "Neon"
  324. p.Anchored = true
  325. p.CanCollide = false
  326. p.CFrame = pos
  327. local pm = Instance.new("SpecialMesh",p)
  328. pm.MeshType = "Sphere"
  329. local disp = coroutine.wrap(function()
  330. for i = 1, 4 do
  331. wait(.01)
  332. p.Transparency = p.Transparency + .2
  333. pm.Scale = pm.Scale + Vector3.new(2,2,2)
  334. end
  335. wait(.01)
  336. p:Destroy()
  337. end)
  338. disp()
  339. end
  340.  
  341. --Blade Hit Effect--
  342. function SlashEff(pos)
  343. local p = Instance.new("Part",game.Workspace)
  344. p.Size = Vector3.new(0,0,0)
  345. p.BrickColor = BrickColor.new("White")
  346. p.Material = "Neon"
  347. p.Anchored = true
  348. p.CanCollide = false
  349. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  350. local pm = Instance.new("SpecialMesh",p)
  351. pm.MeshType = "Sphere"
  352. pm.Scale = Vector3.new(2.5,0,2.5)
  353. local disp = coroutine.wrap(function()
  354. for i = 1, 4 do
  355. wait(.01)
  356. p.Transparency = p.Transparency + .2
  357. pm.Scale = pm.Scale + Vector3.new(0,30,0)
  358. end
  359. wait(.01)
  360. p:Destroy()
  361. end)
  362. disp()
  363. end
  364.  
  365. --Super Pause--
  366. function SuperPause()
  367. StartUpSnd:Play()
  368. local p = Instance.new("Part",game.Workspace)
  369. p.Size = Vector3.new(0,0,0)
  370. p.BrickColor = BrickColor.new("White")
  371. p.Material = "Neon"
  372. p.Anchored = true
  373. p.CanCollide = false
  374. p.CFrame = chara.Torso.CFrame
  375. local pm = Instance.new("SpecialMesh",p)
  376. pm.MeshType = "Sphere"
  377. local disp = coroutine.wrap(function()
  378. for i = 1, 4 do
  379. wait(.01)
  380. p.Transparency = p.Transparency + .2
  381. pm.Scale = pm.Scale + Vector3.new(20,20,20)
  382. end
  383. wait(.01)
  384. p:Destroy()
  385. end)
  386. disp()
  387. end
  388.  
  389. --Punch Touch--
  390. dela = .5
  391. punchactive = false
  392. function punchhit(hit)
  393. if punchactive == true then
  394. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  395. dealdmg(hit.Parent,15,2,dela)
  396. PlaySnd(HitPunchSnd,hit.Parent.Head)
  397. PunchEff(Emit2Part.CFrame)
  398. end
  399. end
  400. end
  401. Emit2Part.Touched:connect(punchhit)
  402. EmitPart.Touched:connect(punchhit)
  403.  
  404. --Kick Touch--
  405. kickactive = false
  406. dkickactive = false
  407. skickactive = false
  408. didskick = false
  409. lkickactive = false
  410. function kickhit(hit)
  411. if kickactive == true then
  412. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  413. dealdmg(hit.Parent,15,2,dela)
  414. PlaySnd(HitPunchSnd,hit.Parent.Head)
  415. PunchEff(hit.CFrame)
  416. if dkickactive == true then
  417. hit.Parent.Humanoid.PlatformStand = true
  418. hit.Parent.Head.CFrame = chara["Right Leg"].CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  419. wait(3)
  420. hit.Parent.Humanoid.PlatformStand = false
  421. end
  422. if skickactive == true then
  423. local bodpf = Instance.new("BodyPosition",hit.Parent.Head)
  424. bodpf.MaxForce = Vector3.new(10000,10000,10000)
  425. bodpf.Position = chara.HumanoidRootPart.Position + Vector3.new(0,30,0) + (chara.HumanoidRootPart.CFrame.lookVector*3)
  426. debby:AddItem(bodpf,3.5)
  427. didskick = true
  428. end
  429. if lkickactive == true then
  430. if hit.Parent.Head:FindFirstChild("BodyPosition") ~= nil then
  431. hit.Parent.Head:FindFirstChild("BodyPosition"):Destroy()
  432. end
  433. local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
  434. bfos.P = 20000
  435. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  436. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 20 + Vector3.new(0,30,0)
  437. debby:AddItem(bfos,.3)
  438. end
  439. end
  440. end
  441. end
  442. chara["Left Leg"].Touched:connect(kickhit)
  443. chara["Right Leg"].Touched:connect(kickhit)
  444.  
  445. --Blade Touch--
  446. dela = .5
  447. bladeactive = false
  448. function bladehit(hit)
  449. if blockval == true then
  450. PlaySnd(BlockedSnd,chara)
  451. end
  452. if bladeactive == true then
  453. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  454. dealdmg(hit.Parent,20,2,dela)
  455. PlaySnd(HitSnd,hit.Parent.Head)
  456. SlashEff(hit.CFrame)
  457. if iaidoatk == true then
  458. local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
  459. bfos.P = 20000
  460. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  461. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 10
  462. wait(1)
  463. for i = 1, 30 do
  464. wait(.0001)
  465. dealdmg(hit.Parent,2,1,0)
  466. PlaySnd(HitSnd,hit.Parent.Head)
  467. SlashEff(hit.CFrame)
  468. end
  469. bfos:Destroy()
  470. end
  471. end
  472. end
  473. end
  474. Hitbox.Touched:connect(bladehit)
  475.  
  476. --Material Return--
  477. gprop = {}
  478. function materialhit(hit)
  479. if hit.Parent ~= chara and hit.Parent.Parent ~= chara and hit.Name ~= "Trace" and hit.Parent:FindFirstChild("Humanoid") == nil then
  480. gprop = {hit.BrickColor,hit.Material}
  481. end
  482. end
  483. chara["Left Leg"].Touched:connect(materialhit)
  484. chara["Right Leg"].Touched:connect(materialhit)
  485.  
  486. --Clerp Animations--
  487. TC = chara.HumanoidRootPart.RootJoint
  488. HC = chara.Torso.Neck
  489. RAC = chara.Torso["Right Shoulder"]
  490. LAC = chara.Torso["Left Shoulder"]
  491. RLC = chara.Torso["Right Hip"]
  492. LLC = chara.Torso["Left Hip"]
  493. TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  494. HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  495. RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  496. LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  497. RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  498. LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  499. RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  500. LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  501. RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  502. LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  503. RW = Instance.new("Weld",HC.Parent)
  504. RW.Part1 = HC.Parent
  505. RW.Part0 = chara["Right Arm"]
  506. RW.C0 = RWF
  507. LW = Instance.new("Weld",HC.Parent)
  508. LW.Part1 = HC.Parent
  509. LW.Part0 = chara["Left Arm"]
  510. LW.C0 = LWF
  511. RLW = nil
  512. LLW = nil
  513.  
  514. function Sheath(stype)
  515. KWeld:Destroy()
  516. if stype == 1 then --Unsheathed
  517. KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, -1, -4.76837158e-007, 1, 0, 0, 0, 0, -1, 0, 1, 0),})
  518. elseif stype == 2 then --Unsheathed, Pointing
  519. KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, -0.500001907, -0.0999999046, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  520. elseif stype == 3 then --Unsheathed, Down
  521. KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, -1, 4.76837158e-007, -1, 0, 0, 0, 0, -1, 0, -1, 0),})
  522. end
  523. end
  524.  
  525. function AddLegWelds()
  526. RLW = Instance.new("Weld",chara["Right Leg"])
  527. RLW.Part1 = HC.Parent
  528. RLW.Part0 = chara["Right Leg"]
  529. RLW.C0 = RLWF
  530. LLW = Instance.new("Weld",chara["Left Leg"])
  531. LLW.Part1 = HC.Parent
  532. LLW.Part0 = chara["Left Leg"]
  533. LLW.C0 = LLWF
  534. end
  535.  
  536. function DestroyLegWelds()
  537. RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
  538. LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
  539. RLW:Destroy()
  540. LLW:Destroy()
  541. end
  542.  
  543. function clerp(a,b,c)
  544. return a:lerp(b,c)
  545. end
  546.  
  547. --TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  548. --HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50))
  549. --RW.C0 = (RWF + Vector3.new(1,2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  550. --LW.C0 = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2))
  551.  
  552. TC.C0 = TCF
  553. HC.C0 = HCF
  554. RW.C0 = RWF
  555. LW.C0 = LWF
  556.  
  557. --Idle Clerp--
  558. ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50))
  559. IHCF = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50))
  560. IRWF = RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(10),math.rad(-2))
  561. ILWF = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2))
  562.  
  563. TC.C0 = ITCF
  564. HC.C0 = IHCF
  565. RW.C0 = IRWF
  566. LW.C0 = ILWF
  567.  
  568.  
  569. --Punch--
  570. function Punch()
  571. del = true
  572. atkd = true
  573. chara.Humanoid.WalkSpeed = 0
  574. punchactive = true
  575. wait(.01)
  576. for i = 0,.75,.25 do
  577. wait(.01)
  578. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  579. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  580. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  581. end
  582. for i = 0,.6,.2 do
  583. wait(.01)
  584. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  585. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  586. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  587. end
  588. chara.Humanoid.WalkSpeed = 32
  589. punchactive = false
  590. del = false
  591. atkdd = true
  592. end
  593.  
  594. --Kick Atk--
  595. function KickAtk()
  596. del = true
  597. atkd = true
  598. chara.Humanoid.WalkSpeed = 0
  599. kickactive = true
  600. AddLegWelds()
  601. for i = 0,.75,.25 do
  602. wait(.05)
  603. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,math.rad(-85)),.4+i)
  604. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(85)),.4+i)
  605. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.3,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)),.4+i)
  606. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.2,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i)
  607. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.4+i)
  608. RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(-1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.4+i)
  609. end
  610. for i = 0,.75,.25 do
  611. wait(.05)
  612. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,math.rad(-85)),.6-i)
  613. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(85)),.6-i)
  614. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.3,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)),.6-i)
  615. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.2,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i)
  616. LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.6-i)
  617. RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(-1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.6-i)
  618. end
  619. DestroyLegWelds()
  620. kickactive = false
  621. chara.Humanoid.WalkSpeed = 24
  622. del = false
  623. atkdd = true
  624. end
  625.  
  626. --Slash Attack--
  627. function SlashAtk()
  628. del = true
  629. atkd = true
  630. chara.Humanoid.WalkSpeed = 0
  631. bladeactive = true
  632. SwingSnd:Play()
  633. wait(.01)
  634. for i = 0,.75,.25 do
  635. wait(.01)
  636. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-180)),TCF,.4+i)
  637. HC.C0 = clerp(IHCF,HCF,.4+i)
  638. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  639. end
  640. wait(.1)
  641. bladeactive = false
  642. for i = 0,.6,.2 do
  643. wait(.01)
  644. TC.C0 = clerp(ITCF,TCF,.6-i)
  645. HC.C0 = clerp(IHCF,HCF,.6-i)
  646. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  647. end
  648. Sheath(1)
  649. del = false
  650. chara.Humanoid.WalkSpeed = 24
  651. atkdd = true
  652. end
  653.  
  654. --Bandit Revolver--
  655. function BanditRevolver()
  656. del = true
  657. atkd = true
  658. chara.Humanoid.WalkSpeed = 0
  659. kickactive = true
  660. dkickactive = true
  661. chatfunc("Ballista Revolver!")
  662. AddLegWelds()
  663. local bfos = Instance.new("BodyVelocity",chara.Torso)
  664. bfos.P = 10000
  665. bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P)
  666. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 40
  667. for i = 0,.6,.2 do
  668. wait(.01)
  669. TC.C0 = clerp(ITCF,(TCF + Vector3.new(0,1,0)),.4+i)
  670. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),.4+i)
  671. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i)
  672. LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i)
  673. RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
  674. end
  675. for i = 1,4 do
  676. SwingSnd:Play()
  677. for i = 0,1,.25 do
  678. wait(.0001)
  679. TC.C0 = clerp((TCF + Vector3.new(0,1,0)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),i)
  680. end
  681. for i = 0,1,.25 do
  682. wait(.0001)
  683. TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(360)),i)
  684. end
  685. end
  686. SwingSnd:Play()
  687. for i = 0,1,.25 do
  688. wait(.0001)
  689. TC.C0 = clerp((TCF + Vector3.new(0,1,0)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),i)
  690. end
  691. for i = 0,1,.25 do
  692. wait(.0001)
  693. TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(360)),i)
  694. end
  695. for i = 0,1,.25 do
  696. wait(.01)
  697. TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(270)),ITCF,i)
  698. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),IHCF,i)
  699. RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),IRWF,i)
  700. LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),ILWF,i)
  701. RLW.C0 = clerp((RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,i)
  702. end
  703. DestroyLegWelds()
  704. dkickactive = false
  705. kickactive = false
  706. chara.Humanoid.WalkSpeed = 24
  707. bfos:Destroy()
  708. del = false
  709. atkdd = true
  710. end
  711.  
  712. --Freezer Kick--
  713. function FlipKickEffect(pos)
  714. local p = Instance.new("Part",game.Workspace)
  715. p.Size = Vector3.new(0,0,0)
  716. p.BrickColor = BrickColor.new("Dark stone grey")
  717. p.Material = "SmoothPlastic"
  718. p.Anchored = true
  719. p.CanCollide = false
  720. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  721. local pm = Instance.new("BlockMesh",p)
  722. local disp = coroutine.wrap(function()
  723. for i = 1, 4 do
  724. wait(.01)
  725. p.Transparency = p.Transparency + .2
  726. pm.Scale = pm.Scale + Vector3.new(2,2,2)
  727. end
  728. wait(.01)
  729. p:Destroy()
  730. end)
  731. disp()
  732. end
  733. function FlipKick()
  734. del = true
  735. atkd = true
  736. chatfunc("Flip Kick!")
  737. AddLegWelds()
  738. kickactive = true
  739. lkickactive = true
  740. local bfos = Instance.new("BodyVelocity",chara.Torso)
  741. bfos.P = 10000
  742. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  743. bfos.Velocity = Vector3.new(0,20,0) + chara.HumanoidRootPart.CFrame.lookVector * 20
  744. SwingSnd:Play()
  745. for i = 0,.6,.2 do
  746. wait(.001)
  747. TC.C0 = clerp(ITCF,(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),.4+i)
  748. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i)
  749. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i)
  750. LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i)
  751. RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
  752. FlipKickEffect(chara["Left Leg"].CFrame - chara["Left Leg"].CFrame.upVector*1.5)
  753. end
  754. for i = 0,1,.25 do
  755. wait(.001)
  756. TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),ITCF * CFrame.fromEulerAnglesXYZ(math.rad(-360),0,0),.4+i)
  757. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),IHCF,.4+i)
  758. RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),IRWF,.4+i)
  759. LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),ILWF,.4+i)
  760. RLW.C0 = clerp((RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,.4+i)
  761. FlipKickEffect(chara["Left Leg"].CFrame - chara["Left Leg"].CFrame.upVector*1.5)
  762. end
  763. DestroyLegWelds()
  764. bfos:Destroy()
  765. kickactive = false
  766. lkickactive = false
  767. del = false
  768. atkdd = true
  769. end
  770.  
  771. --End Him Rightly--
  772. function EndRightly()
  773. del = true
  774. atkd = true
  775. chatfunc("End You Rightly!")
  776. for i = 0,.75,.25 do
  777. wait(.01)
  778. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  779. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  780. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  781. end
  782. SwingSnd:Play()
  783. local missile = Instance.new("Part",game.Workspace)
  784. missile.Material = "Neon"
  785. missile.Size = Vector3.new(0,0,0)
  786. missile.BrickColor = BrickColor.new("Gold")
  787. missile.Name = "Blast"
  788. missile.TopSurface = 0
  789. missile.BottomSurface = 0
  790. missile.Position = chara["Right Arm"].Position
  791. missile.CFrame = chara["Right Arm"].CFrame
  792. missile.Velocity = ((targetted.Head.Position - Vector3.new(0,2,0)) - chara.HumanoidRootPart.Position).unit*70
  793. local mesh1 = Instance.new("SpecialMesh",missile)
  794. mesh1.MeshType = "Head"
  795. mesh1.Scale = Vector3.new(1.5,1.5,1.5)
  796. local force = Instance.new("BodyForce")
  797. force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0)
  798. force.Parent = missile
  799. if berserkmode == true then
  800. local p1mit = Instance.new("ParticleEmitter",missile)
  801. p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds"
  802. p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Deep orange").Color),ColorSequenceKeypoint.new(1,BrickColor.new("New Yeller").Color)})
  803. p1mit.LightEmission = 1
  804. p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  805. p1mit.Lifetime = NumberRange.new(1)
  806. p1mit.Rate = 10000
  807. p1mit.Rotation = NumberRange.new(0,359)
  808. p1mit.RotSpeed = NumberRange.new(100)
  809. p1mit.Speed = NumberRange.new(0)
  810. end
  811. -- local bfo = Instance.new("BodyVelocity",missile)
  812. -- bfo.P = 100000
  813. -- bfo.MaxForce = Vector3.new(bfo.P,bfo.P,bfo.P)
  814. -- bfo.Velocity = (chara.HumanoidRootPart.CFrame.lookVector*100)+(chara.HumanoidRootPart.CFrame.rightVector*i)
  815. -- debby:AddItem(bfo,1)
  816. missile.Touched:connect(function(hit)
  817. if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and force ~= nil) then
  818. force:Destroy()
  819. force = nil
  820. ExHitbox(3,missile.Position,12,1,.5)
  821. PlaySnd(HitPunchSnd,hit)
  822. wait(2)
  823. missile:Destroy()
  824. end
  825. end)
  826. debby:AddItem(missile,10)
  827. wait(.5)
  828. for i = 0,.6,.2 do
  829. wait(.01)
  830. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  831. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  832. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  833. end
  834. del = false
  835. atkdd = true
  836. end
  837.  
  838. --Decapitator--
  839. function Decapitator()
  840. del = true
  841. atkd = true
  842. chatfunc("Sky Slash!")
  843. chara.Humanoid.WalkSpeed = 0
  844. bladeactive = true
  845. Sheath(2)
  846. for i = 0,.6,.2 do
  847. wait(.0001)
  848. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0),.4+i)
  849. HC.C0 = clerp(IHCF,HCF,.4+i)
  850. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  851. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-50),0,math.rad(90)),.6-i)
  852. end
  853. local bf = Instance.new("BodyVelocity",chara.Torso)
  854. bf.P = 10000
  855. bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
  856. bf.Velocity = Vector3.new(0,20,0) + chara.HumanoidRootPart.CFrame.lookVector*50
  857. SwingSnd:Play()
  858. for i = 0,1,.25 do
  859. wait(.0001)
  860. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0),TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(180)),i)
  861. HC.C0 = HCF
  862. RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  863. end
  864. for i = 0,1,.25 do
  865. wait(.0001)
  866. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(180)),TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(360)),i)
  867. HC.C0 = HCF
  868. RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  869. end
  870. bf:Destroy()
  871. Sheath(1)
  872. for i = 0,.6,.2 do
  873. wait(.0001)
  874. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0),.6-i)
  875. HC.C0 = clerp(IHCF,HCF,.6-i)
  876. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  877. LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-50),0,math.rad(90)),.6-i)
  878. end
  879. bladeactive = false
  880. atkdd = true
  881. chara.Humanoid.WalkSpeed = 24
  882. del = false
  883. end
  884.  
  885. --Slashes--
  886. function IaidoFrost()
  887. del = true
  888. atkd = true
  889. chara.Humanoid.WalkSpeed = 8
  890. SuperPause()
  891. chatfunc("My secret knight technique..")
  892. for i = 0,.75,.25 do
  893. wait(.01)
  894. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-180)),TCF,.4+i)
  895. HC.C0 = clerp(IHCF,HCF,.4+i)
  896. end
  897. wait(.5)
  898. bladeactive = true
  899. iaidoatk = true
  900. Sheath(2)
  901. Swing2Snd:Play()
  902. wait(.01)
  903. for i = 0,.75,.25 do
  904. wait(.01)
  905. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-180)),TCF,.4+i)
  906. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  907. end
  908. wait(1)
  909. bladeactive = false
  910. iaidoatk = false
  911. for i = 0,.6,.2 do
  912. wait(.01)
  913. TC.C0 = clerp(ITCF,TCF,.6-i)
  914. HC.C0 = clerp(IHCF,HCF,.6-i)
  915. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  916. end
  917. Sheath(1)
  918. del = false
  919. chara.Humanoid.WalkSpeed = 24
  920. atkdd = true
  921. end
  922.  
  923. --Stabs--
  924. function KnightStabs()
  925. del = true
  926. atkd = true
  927. chara.Humanoid.WalkSpeed = 8
  928. chatfunc("Knight Stabs!")
  929. for i = 0,.75,.25 do
  930. wait(.01)
  931. TC.C0 = clerp(ITCF,TCF,.4+i)
  932. HC.C0 = clerp(IHCF,HCF,.4+i)
  933. end
  934. bladeactive = true
  935. dela = 0
  936. Sheath(2)
  937. wait(.01)
  938. for i = 0,.75,.25 do
  939. wait(.01)
  940. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  941. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  942. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  943. end
  944. for i = 1, 10 do
  945. wait(.001)
  946. PlaySnd(SwingSnd,chara)
  947. RW.C0 = ((RWF + Vector3.new(math.random(-.2,.8),1.4,math.random(-.8,.8)))) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  948. end
  949. RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  950. for i = 0,.6,.2 do
  951. wait(.01)
  952. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  953. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  954. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  955. end
  956. Sheath(1)
  957. chara.Humanoid.WalkSpeed = 24
  958. bladeactive = false
  959. dela = .5
  960. del = false
  961. atkdd = true
  962. end
  963.  
  964. --Rush--
  965. function KnightRush()
  966. del = true
  967. atkd = true
  968. chara.Humanoid.WalkSpeed = 8
  969. SuperPause()
  970. chatfunc("Knight Rush!")
  971. for i = 0,.75,.25 do
  972. wait(.01)
  973. TC.C0 = clerp(ITCF,TCF,.4+i)
  974. HC.C0 = clerp(IHCF,HCF,.4+i)
  975. end
  976. wait(1)
  977. bladeactive = true
  978. dela = 0
  979. Sheath(2)
  980. wait(.01)
  981. for i = 0,.75,.25 do
  982. wait(.01)
  983. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  984. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  985. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  986. end
  987. for i = 1, 40 do
  988. wait(.001)
  989. PlaySnd(SwingSnd,chara)
  990. RW.C0 = ((RWF + Vector3.new(math.random(-.2,.8),1.4,math.random(-.8,.8)))) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  991. end
  992. RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  993. wait(1)
  994. for i = 0,.6,.2 do
  995. wait(.01)
  996. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  997. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  998. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  999. end
  1000. Sheath(1)
  1001. chara.Humanoid.WalkSpeed = 24
  1002. bladeactive = false
  1003. dela = .5
  1004. del = false
  1005. atkdd = true
  1006. end
  1007.  
  1008. --Berserk--
  1009. function Berserk()
  1010. del = false
  1011. atkd = false
  1012. chara.Humanoid.WalkSpeed = 0
  1013. chatfunc("Berserk UP!")
  1014. berserkmode = true
  1015. local jtrace = Instance.new("Part",game.Workspace)
  1016. jtrace.Size = Vector3.new(0,0,0)
  1017. jtrace.Position = chara.HumanoidRootPart.Position
  1018. jtrace.CFrame = chara.HumanoidRootPart.CFrame - Vector3.new(0,2,0)
  1019. jtrace.Anchored = true
  1020. StartUpSnd:Play()
  1021. local tmesh = Instance.new("SpecialMesh",jtrace)
  1022. tmesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1023. tmesh.Scale = Vector3.new(1,1,1)
  1024. tmesh.Offset = Vector3.new(0,0,-.125)
  1025. local p3mit = Instance.new("ParticleEmitter",chara.Torso)
  1026. p3mit.Rate = 1000
  1027. p3mit.Lifetime = NumberRange.new(1)
  1028. p3mit.EmissionDirection = "Front"
  1029. p3mit.RotSpeed = NumberRange.new(0)
  1030. p3mit.Speed = NumberRange.new(0)
  1031. p3mit.Rotation = NumberRange.new(0)
  1032. p3mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(1,Color3.new(1,0,0))})
  1033. p3mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,10)})
  1034. p3mit.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.95),NumberSequenceKeypoint.new(1,1)})
  1035. p3mit.Texture = "http://www.roblox.com/asset/?id=144580273"
  1036. p3mit.LockedToPart = true
  1037. p3mit.Acceleration = Vector3.new(0,0,0)
  1038. local p1mit = Instance.new("ParticleEmitter",Hitbox)
  1039. p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds"
  1040. p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Deep orange").Color),ColorSequenceKeypoint.new(1,BrickColor.new("New Yeller").Color)})
  1041. p1mit.LightEmission = 1
  1042. p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  1043. p1mit.Lifetime = NumberRange.new(1)
  1044. p1mit.Rate = 10000
  1045. p1mit.Rotation = NumberRange.new(0,359)
  1046. p1mit.RotSpeed = NumberRange.new(100)
  1047. p1mit.Speed = NumberRange.new(0)
  1048. for i = 0,.6,.2 do
  1049. wait(.01)
  1050. TC.C0 = clerp(ITCF,TCF,.4+i)
  1051. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),.4+i)
  1052. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i)
  1053. LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i)
  1054. end
  1055. for i = 1, 10 do
  1056. wait(.01)
  1057. jtrace.Transparency = jtrace.Transparency + .1
  1058. tmesh.Scale = tmesh.Scale + Vector3.new(2,.05,2)
  1059. end
  1060. for i = 0,.6,.2 do
  1061. wait(.01)
  1062. TC.C0 = clerp(ITCF,TCF,.6-i)
  1063. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),.6-i)
  1064. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.6-i)
  1065. LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.6-i)
  1066. end
  1067. jtrace:Destroy()
  1068. local delll = coroutine.wrap(function()
  1069. local delval = 10
  1070. local naeeym2 = Instance.new("BillboardGui",chara)
  1071. naeeym2.Size = UDim2.new(0,100,0,40)
  1072. naeeym2.StudsOffset = Vector3.new(0,5,0)
  1073. naeeym2.Adornee = chara.Head
  1074. naeeym2.Name = "Counter"
  1075. local tecks2 = Instance.new("TextLabel",naeeym2)
  1076. tecks2.BackgroundTransparency = 1
  1077. tecks2.BorderSizePixel = 0
  1078. tecks2.Text = ""
  1079. tecks2.Font = "Fantasy"
  1080. tecks2.FontSize = "Size24"
  1081. tecks2.TextStrokeTransparency = 0
  1082. tecks2.Size = UDim2.new(1,0,0.5,0)
  1083. tecks2.TextColor3 = Color3.new(1,0,0)
  1084. tecks2.TextStrokeColor3 = Color3.new(1,1,0)
  1085. for i = 1, delval*100 do
  1086. delval = delval - .01
  1087. tecks2.Text = "<"..delval..">"
  1088. wait(.01)
  1089. end
  1090. berserkmode = false
  1091. p3mit:Destroy()
  1092. p1mit:Destroy()
  1093. for i = 1, 5 do
  1094. wait(.01)
  1095. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  1096. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  1097. tecks2.TextTransparency = tecks2.TextTransparency + .2
  1098. end
  1099. end)
  1100. delll()
  1101. chara.Humanoid.WalkSpeed = 24
  1102. del = false
  1103. atkdd = true
  1104. end
  1105.  
  1106. --End Him Rightly--
  1107. function Explosive()
  1108. del = true
  1109. atkd = true
  1110. chatfunc("Take this!")
  1111. for i = 0,.75,.25 do
  1112. wait(.01)
  1113. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  1114. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  1115. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  1116. end
  1117. SwingSnd:Play()
  1118. local missile = Instance.new("Part",game.Workspace)
  1119. missile.Material = "Neon"
  1120. missile.Size = Vector3.new(1,1,1)
  1121. missile.BrickColor = BrickColor.new("Black")
  1122. missile.Name = "Blast"
  1123. missile.Shape = 0
  1124. missile.TopSurface = 0
  1125. missile.BottomSurface = 0
  1126. missile.Position = chara["Right Arm"].Position
  1127. missile.CFrame = chara["Right Arm"].CFrame
  1128. missile.Velocity = (Mouse.Hit.p - chara.HumanoidRootPart.Position).unit*70
  1129. local mesh1 = Instance.new("SpecialMesh",missile)
  1130. mesh1.MeshId = "rbxasset://fonts/timebomb.mesh"
  1131. mesh1.Scale = Vector3.new(.5,.5,.5)
  1132. local force = Instance.new("BodyForce")
  1133. force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0)
  1134. force.Parent = missile
  1135. debby:AddItem(force,.1)
  1136. -- local bfo = Instance.new("BodyVelocity",missile)
  1137. -- bfo.P = 100000
  1138. -- bfo.MaxForce = Vector3.new(bfo.P,bfo.P,bfo.P)
  1139. -- bfo.Velocity = (chara.HumanoidRootPart.CFrame.lookVector*100)+(chara.HumanoidRootPart.CFrame.rightVector*i)
  1140. -- debby:AddItem(bfo,1)
  1141. local deto = coroutine.wrap(function()
  1142. wait(.5)
  1143. for i = 1, 3 do
  1144. PlaySnd(TargetSnd,missile)
  1145. missile.BrickColor = BrickColor.new("Bright red")
  1146. wait(.1)
  1147. missile.BrickColor = BrickColor.new("Black")
  1148. end
  1149. wait(.1)
  1150. mesh1.MeshId = ""
  1151. mesh1.MeshType = "Sphere"
  1152. mesh1.Scale = Vector3.new(1,1,1)
  1153. missile.Anchored = true
  1154. missile.BrickColor = BrickColor.new("Bright yellow")
  1155. missile.Material = "Neon"
  1156. ExpSnd:Play()
  1157. ExHitbox(10,missile.Position,25,3,.5)
  1158. for i = 1, 9 do
  1159. mesh1.Scale = mesh1.Scale + Vector3.new(3,3,3)
  1160. missile.Transparency = missile.Transparency + .1
  1161. wait(.01)
  1162. end
  1163. missile:Destroy()
  1164. end)
  1165. deto()
  1166. wait(.5)
  1167. for i = 0,.6,.2 do
  1168. wait(.01)
  1169. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  1170. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  1171. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  1172. end
  1173. del = false
  1174. atkdd = true
  1175. end
  1176.  
  1177. --Lock On--
  1178. function LockOn()
  1179. if Mouse.Target.Parent ~= chara and Mouse.Target.Parent.Parent ~= chara and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1180. TargetSelect(Mouse.Target.Parent)
  1181. TargetSnd:Play()
  1182. wait(.05)
  1183. TargetSnd:Play()
  1184. else end
  1185. end
  1186.  
  1187. --Block--
  1188. blockval = false
  1189. healthlock = 0
  1190. effeff = nil
  1191. function ToggleBlock()
  1192. if blockval == false then
  1193. del = true
  1194. blockval = true
  1195. SwingSnd:Play()
  1196. healthlock = chara.Humanoid.Health
  1197. effeff = Instance.new("ForceField",chara)
  1198. effeff.Name = "FawsFeeld"
  1199. effeff.Visible = false
  1200. for i = 0,.75,.25 do
  1201. wait(.0001)
  1202. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
  1203. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  1204. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
  1205. end
  1206. elseif blockval == true then
  1207. SwingSnd:Play()
  1208. effeff:Destroy()
  1209. blockval = false
  1210. for i = 0,.6,.2 do
  1211. wait(.0001)
  1212. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
  1213. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  1214. RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
  1215. end
  1216. del = false
  1217. atkdd = true
  1218. end
  1219. end
  1220.  
  1221. --Mouse Functions--
  1222. orbpushactive = false
  1223. del = false
  1224. input = ""
  1225. letterd = 0
  1226. ltoim = 0
  1227. function onKeyDown(key)
  1228. if key == "e" then
  1229. ToggleBlock()
  1230. elseif del == false then
  1231. if key == "q" then
  1232. if input == "ad" and targetted ~= nil then
  1233. EndRightly()
  1234. elseif input == "dsadd" and berserkmode == false then
  1235. Berserk()
  1236. elseif input == "asd" then
  1237. Explosive()
  1238. else LockOn() end
  1239. input = ""
  1240. letterd = 0
  1241. ltoim = 0
  1242. elseif key == "z" then
  1243. Punch()
  1244. input = ""
  1245. letterd = 0
  1246. ltoim = 0
  1247. elseif key == "x" then
  1248. if input == "sa" then
  1249. BanditRevolver()
  1250. elseif input == "ss" then
  1251. FlipKick()
  1252. else KickAtk() end
  1253. input = ""
  1254. letterd = 0
  1255. ltoim = 0
  1256. elseif key == "c" then
  1257. if input == "add" then
  1258. IaidoFrost()
  1259. elseif input == "ssad" then
  1260. KnightRush()
  1261. elseif input == "aw" then
  1262. Decapitator()
  1263. elseif input == "dsd" then
  1264. KnightStabs()
  1265. else SlashAtk() end
  1266. input = ""
  1267. letterd = 0
  1268. ltoim = 0
  1269. elseif (key == "w" or key == "a" or key == "s" or key == "d") then
  1270. input=input..key
  1271. print(input)
  1272. letterd = letterd + 1
  1273. ltoim = ltoim + 10
  1274. if letterd > 5 then
  1275. input = ""
  1276. letterd = 0
  1277. ltoim = 0
  1278. end
  1279. elseif key == "m" then
  1280. if Music.IsPlaying == true then
  1281. Music:Stop()
  1282. elseif Music.IsPlaying == false then
  1283. Music:Play()
  1284. end
  1285. end
  1286. end
  1287. end
  1288. combo = 0
  1289.  
  1290. --Mouse Activation--
  1291. if Mouse then
  1292. Mouse.KeyDown:connect(onKeyDown)
  1293. end
  1294.  
  1295. --Loop Function--
  1296. walking = false
  1297. toim = 0
  1298. while true do
  1299. wait()
  1300. addCols()
  1301. toim = toim + .1
  1302. ltoim = ltoim - 1
  1303. if ltoim < 1 then
  1304. input = ""
  1305. end
  1306. if blockval == true then
  1307. chara.Humanoid.Health = healthlock
  1308. end
  1309. if atkd == true then
  1310. TC.C0 = TCF
  1311. HC.C0 = HCF
  1312. RW.C0 = RWF
  1313. LW.C0 = LWF
  1314. atkd = false
  1315. end
  1316. if atkdd == true then
  1317. TC.C0 = ITCF
  1318. HC.C0 = IHCF
  1319. RW.C0 = IRWF
  1320. LW.C0 = ILWF
  1321. atkdd = false
  1322. end
  1323. torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1324. if torvel < 1 and walking == true and del == false and atkd == false then
  1325. for i = 0,1,.5 do
  1326. wait(.001)
  1327. if del == false then
  1328. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),ITCF,i)
  1329. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,0),IHCF,i)
  1330. RW.C0 = IRWF
  1331. LW.C0 = clerp((LWF + Vector3.new(0,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),ILWF,i)
  1332. end
  1333. end
  1334. walking = false
  1335. elseif torvel > 1 and walking == false and del == false and atkd == false then
  1336. for i = 0,1,.5 do
  1337. wait(.001)
  1338. if del == false then
  1339. TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i)
  1340. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,0),i)
  1341. RW.C0 = IRWF
  1342. LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),i)
  1343. end
  1344. end
  1345. walking = true
  1346. else
  1347. end
  1348. imgl.Rotation = imgl.Rotation + 3
  1349. if targetted ~= nil then
  1350. crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
  1351. crosshair.Enabled = true
  1352. elseif targetted == nil then
  1353. crosshair.Adornee = nil
  1354. crosshair.Enabled = false
  1355. end
  1356. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement