Advertisement
lafur

Untitled

Nov 3rd, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 Player = game:GetService("Players").timetodie23232223
  6. Character = Player.Character
  7. PlayerGui = Player.PlayerGui
  8. Backpack = Player.Backpack
  9. Torso = Character.Torso
  10. Head = Character.Head
  11. LeftArm = Character["Left Arm"]
  12. LeftLeg = Character["Left Leg"]
  13. RightArm = Character["Right Arm"]
  14. RightLeg = Character["Right Leg"]
  15. LS = Torso["Left Shoulder"]
  16. LH = Torso["Left Hip"]
  17. RS = Torso["Right Shoulder"]
  18. RH = Torso["Right Hip"]
  19. attack = false
  20. attackdebounce = false
  21. combo = 0
  22. mana = 400
  23. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  24. necko2=CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  25. hold=false
  26. MMouse=nil
  27. equipped=false
  28. attack=false
  29. holddash=false
  30. dashing=false
  31. act = {key = {}}
  32. walking = false
  33. normattack=false
  34. sitting=false
  35. --player
  36. player = nil
  37. --save shoulders
  38. RSH, LSH = nil, nil
  39. --welds
  40. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  41. --what anim
  42. anim = "none"
  43. bodpos=Instance.new("BodyPosition")
  44. bodpos.P=2000
  45. bodpos.D=100
  46. bodpos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  47. if Character:findFirstChild("AeroBlade",true) ~= nil then
  48. Character:findFirstChild("AeroBlade",true).Parent = nil
  49. end
  50. if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  51. Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  52. end
  53. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  54. local fp = Instance.new("Part")
  55. fp.formFactor = formfactor
  56. fp.Parent = parent
  57. fp.Reflectance = reflectance
  58. fp.Transparency = transparency
  59. fp.CanCollide = false
  60. fp.BrickColor = brickcolor
  61. fp.Name = name
  62. fp.Size = size
  63. fp.Position = Torso.Position
  64. fp.BottomSurface="Smooth"
  65. fp.TopSurface="Smooth"
  66. fp:BreakJoints()
  67. return fp
  68. end
  69. local modelzorz = Instance.new("Model")
  70. modelzorz.Name = "AeroBlade"
  71. modelzorz.Parent = Character
  72. local prt1 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part1",Vector3.new(1,1,1))
  73. local prt2 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part2",Vector3.new(1,1,1))
  74. local prt3 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part3",Vector3.new(1,1,1))
  75. local prt4 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part4",Vector3.new(1,1,1))
  76. local prt5 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part5",Vector3.new(1,1,1))
  77. local prt6 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part6",Vector3.new(1,1,1))
  78. local prt7 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part7",Vector3.new(1,1,1))
  79. local prt8 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part8",Vector3.new(1,1,1))
  80. local prt9 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part9",Vector3.new(1,1,1))
  81. local prt10 = part(1,modelzorz,0.5,0,BrickColor.new("Gold"),"Part10",Vector3.new(1,1,1))
  82. local prt11 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part11",Vector3.new(1,1,1))
  83. local prt12 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part12",Vector3.new(1,1,1))
  84. local prt13 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part13",Vector3.new(1,1,1))
  85. local prt14 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part14",Vector3.new(1,1,1))
  86. local prt15 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part15",Vector3.new(1,1,1))
  87. local prt16 = part(1,modelzorz,0,0,BrickColor.new("Gold"),"Part16",Vector3.new(1,1,1))
  88. local prt17 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part17",Vector3.new(1,1,1))
  89. local prt18 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part18",Vector3.new(1,1,1))
  90. local msh1 = Instance.new("CylinderMesh")
  91. msh1.Parent = prt1
  92. msh1.Scale = Vector3.new(0.5,1,0.5)
  93. local msh2 = Instance.new("CylinderMesh")
  94. msh2.Parent = prt2
  95. msh2.Scale = Vector3.new(0.4,2,0.4)
  96. local msh3 = Instance.new("CylinderMesh")
  97. msh3.Parent = prt3
  98. msh3.Scale = Vector3.new(0.41,0.1,0.41)
  99. local msh4 = Instance.new("CylinderMesh")
  100. msh4.Parent = prt4
  101. msh4.Scale = Vector3.new(0.41,0.1,0.41)
  102. local msh5 = Instance.new("CylinderMesh")
  103. msh5.Parent = prt5
  104. msh5.Scale = Vector3.new(0.5,0.5,0.5)
  105. local msh6 = Instance.new("SpecialMesh")
  106. msh6.Parent = prt6
  107. msh6.MeshType="Sphere"
  108. msh6.Scale = Vector3.new(0.49,0.8,0.49)
  109. local msh7 = Instance.new("CylinderMesh")
  110. msh7.Parent = prt7
  111. msh7.Scale = Vector3.new(0.5,0.5,0.5)
  112. local msh8 = Instance.new("BlockMesh")
  113. msh8.Parent = prt8
  114. msh8.Scale = Vector3.new(0.35,1,0.35)
  115. local msh9 = Instance.new("CylinderMesh")
  116. msh9.Parent = prt9
  117. msh9.Scale = Vector3.new(0.5,0.1,0.5)
  118. local msh10 = Instance.new("BlockMesh")
  119. msh10.Parent = prt10
  120. msh10.Scale = Vector3.new(0.4,2,0.1)
  121. local msh11 = Instance.new("BlockMesh")
  122. msh11.Parent = prt11
  123. msh11.Scale = Vector3.new(0.21,1,0.11)
  124. local msh12 = Instance.new("CylinderMesh")
  125. msh12.Parent = prt12
  126. msh12.Scale = Vector3.new(0.5,0.1,0.5)
  127. local msh13 = Instance.new("BlockMesh")
  128. msh13.Parent = prt13
  129. msh13.Scale = Vector3.new(0.5,2,0.5)
  130. local msh14 = Instance.new("CylinderMesh")
  131. msh14.Parent = prt14
  132. msh14.Scale = Vector3.new(0.49,0.1,0.49)
  133. local msh15 = Instance.new("CylinderMesh")
  134. msh15.Parent = prt15
  135. msh15.Scale = Vector3.new(0.48,1,0.48)
  136. local msh16 = Instance.new("CylinderMesh")
  137. msh16.Parent = prt16
  138. msh16.Scale = Vector3.new(0.49,0.1,0.49)
  139. local msh17 = Instance.new("BlockMesh")
  140. msh17.Parent = prt17
  141. msh17.Scale = Vector3.new(0.5,1,0.5)
  142. local msh18 = Instance.new("SpecialMesh")
  143. msh18.Parent = prt18
  144. msh18.MeshType="Wedge"
  145. msh18.Scale = Vector3.new(0.5,0.5,0.5)
  146. local wld1 = Instance.new("Weld")
  147. wld1.Parent = prt1
  148. wld1.Part0 = prt1
  149. wld1.Part1 = Torso
  150. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-1) * CFrame.new(3,-2,-0.7)
  151. local wld2 = Instance.new("Weld")
  152. wld2.Parent = prt2
  153. wld2.Part0 = prt2
  154. wld2.Part1 = prt1
  155. wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  156. local wld3 = Instance.new("Weld")
  157. wld3.Parent = prt3
  158. wld3.Part0 = prt3
  159. wld3.Part1 = prt2
  160. wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.8,0)
  161. local wld4 = Instance.new("Weld")
  162. wld4.Parent = prt4
  163. wld4.Part0 = prt4
  164. wld4.Part1 = prt2
  165. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.8,0)
  166. local wld5 = Instance.new("Weld")
  167. wld5.Parent = prt5
  168. wld5.Part0 = prt5
  169. wld5.Part1 = prt2
  170. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.2,0)
  171. local wld6 = Instance.new("Weld")
  172. wld6.Parent = prt6
  173. wld6.Part0 = prt6
  174. wld6.Part1 = prt5
  175. wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.2,0)
  176. local wld7 = Instance.new("Weld")
  177. wld7.Parent = prt7
  178. wld7.Part0 = prt7
  179. wld7.Part1 = prt2
  180. wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  181. local wld8 = Instance.new("Weld")
  182. wld8.Parent = prt8
  183. wld8.Part0 = prt8
  184. wld8.Part1 = prt7
  185. wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.5,0)
  186. local wld9 = Instance.new("Weld")
  187. wld9.Parent = prt9
  188. wld9.Part0 = prt9
  189. wld9.Part1 = prt8
  190. wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0)
  191. local wld10 = Instance.new("Weld")
  192. wld10.Parent = prt10
  193. wld10.Part0 = prt10
  194. wld10.Part1 = prt9
  195. wld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  196. local wld11 = Instance.new("Weld")
  197. wld11.Parent = prt11
  198. wld11.Part0 = prt11
  199. wld11.Part1 = prt10
  200. wld11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.1,-0.6,0)
  201. local wld12 = Instance.new("Weld")
  202. wld12.Parent = prt12
  203. wld12.Part0 = prt12
  204. wld12.Part1 = prt9
  205. wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.1,0)
  206. local wld13 = Instance.new("Weld")
  207. wld13.Parent = prt13
  208. wld13.Part0 = prt13
  209. wld13.Part1 = prt12
  210. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  211. local wld14 = Instance.new("Weld")
  212. wld14.Parent = prt14
  213. wld14.Part0 = prt14
  214. wld14.Part1 = prt13
  215. wld14.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  216. local wld15 = Instance.new("Weld")
  217. wld15.Parent = prt15
  218. wld15.Part0 = prt15
  219. wld15.Part1 = prt14
  220. wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.3,0)
  221. local wld16 = Instance.new("Weld")
  222. wld16.Parent = prt16
  223. wld16.Part0 = prt16
  224. wld16.Part1 = prt15
  225. wld16.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.3,0)
  226. local wld17 = Instance.new("Weld")
  227. wld17.Parent = prt17
  228. wld17.Part0 = prt17
  229. wld17.Part1 = prt16
  230. wld17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0)
  231. local wld18 = Instance.new("Weld")
  232. wld18.Parent = prt18
  233. wld18.Part0 = prt18
  234. wld18.Part1 = prt17
  235. wld18.C0 = CFrame.fromEulerAnglesXYZ(3.14,3.14,0) * CFrame.new(0,0.9,0)
  236. local fengui = Instance.new("GuiMain")
  237. fengui.Parent = Player.PlayerGui
  238. fengui.Name = "manaGUI"
  239. local fenframe = Instance.new("Frame")
  240. fenframe.Parent = fengui
  241. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  242. fenframe.BackgroundTransparency = 1
  243. fenframe.BorderColor3 = Color3.new(17,17,17)
  244. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  245. local fentext = Instance.new("TextLabel")
  246. fentext.Parent = fenframe
  247. fentext.Text = "Mana("..mana..")"
  248. fentext.BackgroundTransparency = 1
  249. fentext.SizeConstraint = "RelativeXY"
  250. fentext.TextXAlignment = "Center"
  251. fentext.TextYAlignment = "Center"
  252. fentext.Position = UDim2.new(0,80,1,200)
  253. local fentext2 = Instance.new("TextLabel")
  254. fentext2.Parent = fenframe
  255. fentext2.Text = " "
  256. fentext2.BackgroundTransparency = 0
  257. fentext2.BackgroundColor3 = Color3.new(0,0,0)
  258. fentext2.SizeConstraint = "RelativeXY"
  259. fentext2.TextXAlignment = "Center"
  260. fentext2.TextYAlignment = "Center"
  261. fentext2.Position = UDim2.new(0,10,1,170)
  262. fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  263. local fentext3 = Instance.new("TextLabel")
  264. fentext3.Parent = fenframe
  265. fentext3.Text = " "
  266. fentext3.BackgroundTransparency = 0
  267. fentext3.BackgroundColor3 = Color3.new(1,1,0)
  268. fentext3.SizeConstraint = "RelativeXY"
  269. fentext3.TextXAlignment = "Center"
  270. fentext3.TextYAlignment = "Center"
  271. fentext3.Position = UDim2.new(0,10,1,170)
  272. fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0)
  273. --2.9000001, 0}, {0.450000018, 0}
  274. local gairo = Instance.new("BodyGyro")
  275. gairo.Parent = nil
  276. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  277. gairo.P = 20e+003
  278. if (script.Parent.className ~= "HopperBin") then
  279. Tool = Instance.new("HopperBin")
  280. Tool.Parent = Backpack
  281. Tool.Name = "AeroBlade"
  282. script.Parent = Tool
  283. end
  284. Bin = script.Parent
  285. local gairo = Instance.new("BodyGyro")
  286. gairo.Parent = nil
  287. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  288. gairo.P = 20e+003
  289. function hideanim()
  290. equipped=false
  291. wld1.Parent = prt1
  292. wld1.Part0 = prt1
  293. wld1.Part1 = Torso
  294. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-1) * CFrame.new(3,-2,-0.7)
  295. wld1.C1=CFrame.fromEulerAnglesXYZ(0,0,0)
  296. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  297. gairo.Parent=nil
  298. wait()
  299. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  300. end
  301. function equipanim()
  302. equipped=true
  303. wld1.Parent = prt13
  304. wld1.Part0 = prt13
  305. wld1.Part1 = RightArm
  306. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,1,1)
  307. wld1.C1=CFrame.fromEulerAnglesXYZ(0.2,0,0)
  308. Stance()
  309. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  310. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  311. LWL.C0 = CFrame.new(-0.5-0.6,-1.5+0.3,-0.3) * CFrame.fromEulerAnglesXYZ(0.5,0,-0.7+0.2)
  312. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  313. --[[gairo.Parent=Head
  314. gairo.cframe=Head.CFrame
  315. for i=0,1,0.1 do
  316. wait()
  317. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57-0.3*i,3.14,-0.3*i) * CFrame.new(0,0,-0.5)
  318. --gairo.cframe=Torso.CFrame*CFrame.fromEulerAnglesXYZ(-0.05,-0.1,0)
  319. end]]
  320. end
  321. function Walking(speed)
  322. walking=true
  323. for i=0,1,speed do
  324. wait()
  325. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0.5-1*i,0,0)
  326. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  327. LWL.C0 = CFrame.new(-0.5-0.6,-1.5+0.3,-0.3) * CFrame.fromEulerAnglesXYZ(1*i,0,-0.7+0.2)
  328. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  329. end
  330. for i=0,1,speed do
  331. wait()
  332. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+1*i,0,0)
  333. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  334. LWL.C0 = CFrame.new(-0.5-0.6,-1.5+0.3,-0.3) * CFrame.fromEulerAnglesXYZ(0.5+0.5-1*i,0,-0.7+0.2)
  335. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  336. end
  337. if walking==false then
  338. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  339. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  340. LWL.C0 = CFrame.new(-0.5-0.6,-1.5+0.3,-0.3) * CFrame.fromEulerAnglesXYZ(0.5,0,-0.7+0.2)
  341. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  342. end
  343. end
  344. function Stance()
  345. coroutine.resume(coroutine.create(function()
  346. gairo.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  347. gairo.P = 10000000
  348. --gairo.D = 2000
  349. gairo.Parent = Torso
  350. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,1,-0.7)
  351. wait()
  352. while equipped==true and attack==false do
  353. wait()
  354. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  355. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  356. offset=offset/mag
  357. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,-0.2,0.7)
  358. --Torso.Neck.C1=necko2*CFrame.fromEulerAnglesXYZ(-offset/10,0,0)
  359. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  360. gairo.cframe = CFrame.new(Torso.Position,pos4) * CFrame.fromEulerAnglesXYZ(-0.4,-0.5,0) * CFrame.new(0,0,0) --CFrame.new(Torso.Position,MMouse.Hit.p) *
  361. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  362. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  363. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  364. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  365. --[[RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  366. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  367. LWL.C0 = CFrame.new(-0.5-0.6,-1.5+0.3,-0.3) * CFrame.fromEulerAnglesXYZ(0.5,0,-0.7+0.2)
  368. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0) ]]
  369. end
  370. --Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  371. gairo.Parent=nil
  372. end))
  373. end
  374. function Sit()
  375. attack=true
  376. Character.Humanoid.WalkSpeed=0
  377. gairo.Parent=nil
  378. for i=0,1,0.1 do
  379. wait()
  380. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,1,-0.7)
  381. wld1.C1=CFrame.fromEulerAnglesXYZ(0.2-0.2*i,0,0)
  382. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,-0.2+0.2*i,0.7-0.7*i)
  383. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5-1.7*i,0,0.4-0.4*i)
  384. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  385. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2*i,1-1*i,0)
  386. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3+0.3*i,0,0)
  387. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  388. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  389. LWL.C0 = CFrame.new(-0.5-0.6+0.6*i,-1.5+0.3-0.3*i,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,-0.5+0.5*i)
  390. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  391. end
  392. bodpos.position=Torso.Position-Vector3.new(0,3,0)
  393. bodpos.Parent=Torso
  394. gairo.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  395. gairo.P = 10000000
  396. --gairo.D = 2000
  397. gairo.Parent = Torso
  398. gairo.cframe=Torso.CFrame
  399. for i=0,1,0.1 do
  400. wait()
  401. gairo.cframe=Torso.CFrame*CFrame.fromEulerAnglesXYZ(0.07*i,0,0)
  402. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,1-0.5*i,-0.7+1.2*i)
  403. wld1.C1=CFrame.fromEulerAnglesXYZ(1.2*i,0,-0.5*i)
  404. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  405. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2-0.2*i,0,-0.3*i)
  406. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  407. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2+1.77*i,0,0.7*i)
  408. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  409. RWL.C0 = CFrame.new(0.5+0.1*i,-1.5+0.6*i,-0.7*i) * CFrame.fromEulerAnglesXYZ(1.2*i,0,0.5*i)
  410. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  411. LWL.C0 = CFrame.new(-0.5-0.1*i,-1.5+0.6*i,-0.7*i) * CFrame.fromEulerAnglesXYZ(1.2*i,0,-0.5*i)
  412. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  413. end
  414. while attack==true do
  415. wait()
  416. Character.Humanoid.Health = Character.Humanoid.Health + 0.1
  417. end
  418. end
  419. function UnSit()
  420. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,1,-0.7)
  421. wld1.C1=CFrame.fromEulerAnglesXYZ(0.2,0,0)
  422. bodpos.Parent=nil
  423. gairo.Parent=nil
  424. Character.Humanoid.WalkSpeed=16
  425. attack=false
  426. end
  427. function Slash()
  428. --ss(1)
  429. equipsound(1.3)
  430. wld13.Part0 = LeftArm
  431. wld13.Part1 = prt12
  432. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.8) * CFrame.new(-1,0,0)
  433. wld13.C1 = CFrame.fromEulerAnglesXYZ(0.7,0,0) * CFrame.new(0,1.2,-1)
  434. SlashEffect(prt6,0,-6,-1,0,3.14,0,BrickColor.new("Black"),1.5,1,2)
  435. for i=0,1,0.8 do
  436. wait()
  437. LW.C0 = CFrame.new(-1.5-0.5*i,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  438. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5*i)
  439. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  440. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  441. if wld13.Part0==LeftArm then
  442. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.8-0.2*i) * CFrame.new(-1,0,0)
  443. wld13.C1 = CFrame.fromEulerAnglesXYZ(0.7-0.2*i,0,0) * CFrame.new(0,1.2,-1)
  444. end
  445. end
  446. local ppart = part(1,workspace,0,1,BrickColor.new("Navy blue"),"DerpPart",Vector3.new(1,1,1))
  447. ppart.Anchored=true
  448. ppart.CFrame=Head.CFrame*CFrame.new(0,0,-15)
  449. SlashEffect(ppart,0,-6,-3,-1.57,math.random(-50,50),0,BrickColor.new("Black"),2,2,4)
  450. for i=0,1,0.8 do
  451. wait()
  452. LW.C0 = CFrame.new(-1.5-0.5+0.5*i,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  453. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0.5-0.5*i)
  454. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  455. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  456. --wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.6) * CFrame.new(-1,0,0)
  457. --wld13.C1 = CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0,2,-1)
  458. end
  459. wait(0.1)
  460. wld13.Part0 = prt13
  461. wld13.Part1 = prt12
  462. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  463. wld13.C1 = CFrame.fromEulerAnglesXYZ(0,0,0)
  464. wait(1)
  465. ppart.Parent=nil
  466. end
  467. function SlashTwo()
  468. coroutine.resume(coroutine.create(function()
  469. equipsound(1.3)
  470. wld13.Part0 = LeftArm
  471. wld13.Part1 = prt12
  472. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.8) * CFrame.new(-1,0,0)
  473. wld13.C1 = CFrame.fromEulerAnglesXYZ(0.7,0,0) * CFrame.new(0,1.2,-1)
  474. SlashEffect(prt6,0,-6,-1,0,3.14,0,BrickColor.new("Black"),1.5,1,2)
  475. for i=0,1,0.8 do
  476. wait()
  477. LW.C0 = CFrame.new(-1.5-0.5*i,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  478. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5*i)
  479. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  480. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  481. if wld13.Part0==LeftArm then
  482. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.8-0.2*i) * CFrame.new(-1,0,0)
  483. wld13.C1 = CFrame.fromEulerAnglesXYZ(0.7-0.2*i,0,0) * CFrame.new(0,1.2,-1)
  484. end
  485. end
  486. local ppart = part(1,workspace,0,1,BrickColor.new("Navy blue"),"DerpPart",Vector3.new(1,1,1))
  487. ppart.Anchored=true
  488. ppart.CFrame=Head.CFrame*CFrame.new(0,5,-30)
  489. SlashEffect(ppart,0,-8,-3,-1.57,-0.4,0,BrickColor.new("Black"),2.5,1,5)
  490. SlashEffect(ppart,0,-8,-3,-1.57,0.4,0,BrickColor.new("Black"),2.5,1,5)
  491. for i=0,1,0.8 do
  492. wait()
  493. LW.C0 = CFrame.new(-1.5-0.5+0.5*i,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  494. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0.5-0.5*i)
  495. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  496. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  497. --wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.6) * CFrame.new(-1,0,0)
  498. --wld13.C1 = CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0,2,-1)
  499. end
  500. wait(0.1)
  501. wld13.Part0 = prt13
  502. wld13.Part1 = prt12
  503. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  504. wld13.C1 = CFrame.fromEulerAnglesXYZ(0,0,0)
  505. wait(1)
  506. ppart.Parent=nil
  507. end))
  508. end
  509. function Punch()
  510. attack=true
  511. for i=0,1,0.15 do
  512. wait()
  513. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,-0.2+0.2*i,0.7-0.7*i)
  514. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5-2*i,0,0.4-0.8*i)
  515. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  516. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1-1*i,0)
  517. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  518. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  519. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  520. LWL.C0 = CFrame.new(-0.5-0.6+0.6*i,-1.5+0.3-0.3*i,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,-0.5+0.5*i)
  521. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  522. end
  523. ss(1.2)
  524. local vel = Instance.new("BodyGyro")
  525. vel.Parent = Head
  526. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  527. vel.P = 20e+003
  528. vel.cframe=Head.CFrame
  529. con1=LeftArm.Touched:connect(function(hit) Damagefunc2(hit,5,1) punched=true end)
  530. for i=0,1,0.15 do
  531. wait()
  532. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1.57*i)
  533. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+2.07*i,0,-0.4-1.17*i)
  534. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  535. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.3*i)
  536. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  537. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  538. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  539. LWL.C0 = CFrame.new(-0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  540. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  541. end
  542. con1:disconnect()
  543. for i=0,1,0.15 do
  544. wait()
  545. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1.57-1.57*i)
  546. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-0.07*i,0,-1.57+1.97*i)
  547. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  548. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1*i,0.3-0.3*i)
  549. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  550. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  551. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  552. LWL.C0 = CFrame.new(-0.5-0.6*i,-1.5+0.3*i,-0.3*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,-0.5*i)
  553. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  554. end
  555. wait()
  556. vel.Parent=nil
  557. attack=false
  558. coroutine.resume(coroutine.create(function()
  559. wait(0.2)
  560. punched=false
  561. end))
  562. end
  563. function Kick()
  564. attack=true
  565. for i=0,1,0.15 do
  566. wait()
  567. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,-0.2+0.2*i,0.7-0.7*i)
  568. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5-1.9*i,0,0.4-0.4*i)
  569. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  570. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1-1*i,0.3*i)
  571. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2+0.3*i,0,0)
  572. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  573. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  574. LWL.C0 = CFrame.new(-0.5-0.6+0.6*i,-1.5+0.3-0.3*i,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,-0.5+0.5*i)
  575. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  576. end
  577. ss(1)
  578. local vel = Instance.new("BodyGyro")
  579. vel.Parent = Head
  580. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  581. vel.P = 20e+003
  582. vel.cframe=Head.CFrame
  583. local vel2 = Instance.new("BodyVelocity")
  584. vel2.Parent = Torso
  585. vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  586. vel2.velocity = Head.CFrame.lookVector * 40
  587. con1=RightLeg.Touched:connect(function(hit) Damagefunc2(hit,10,1) kicked=true end)
  588. for i=0,1,0.15 do
  589. wait()
  590. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5*i,0,0)
  591. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.4-0.3*i,0,0)
  592. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  593. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.3*i,0,0.3)
  594. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  595. RWL.C0 = CFrame.new(0.5,-1.5+0.3*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(1*i,0,0)
  596. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  597. LWL.C0 = CFrame.new(-0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  598. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  599. end
  600. con1:disconnect()
  601. vel2.velocity = Head.CFrame.lookVector * -40
  602. for i=0,1,0.15 do
  603. wait()
  604. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,0)
  605. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.4-0.3+0.3*i,0,0)
  606. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  607. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.3+0.3*i,0,0.3)
  608. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  609. RWL.C0 = CFrame.new(0.5,-1.5+0.3-0.3*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1-1*i,0,0)
  610. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  611. LWL.C0 = CFrame.new(-0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  612. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  613. end
  614. vel2.Parent=nil
  615. for i=0,1,0.15 do
  616. wait()
  617. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,-0.2*i,0.7*i)
  618. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.4+1.9*i,0,0.4*i)
  619. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  620. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1*i,0.3)
  621. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3*i,0,0)
  622. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  623. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  624. LWL.C0 = CFrame.new(-0.5-0.6*i,-1.5+0.3*i,-0.3*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,-0.5*i)
  625. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  626. end
  627. wait()
  628. vel.Parent=nil
  629. attack=false
  630. coroutine.resume(coroutine.create(function()
  631. wait(0.2)
  632. kicked=false
  633. end))
  634. end
  635. function WinrarDash()
  636. coroutine.resume(coroutine.create(function()
  637. local LastPoint = Torso.CFrame
  638. for i=0,1,0.1 do
  639. wait()
  640. local Point = Torso.CFrame
  641. effect2("Black",0,LastPoint,Point)
  642. LastPoint = Point
  643. end
  644. end))
  645. attack=true
  646. local vel = Instance.new("BodyGyro")
  647. vel.Parent = Head
  648. vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  649. vel.P = 20e+003
  650. vel.cframe=Head.CFrame
  651. local vel2 = Instance.new("BodyVelocity")
  652. vel2.Parent = Torso
  653. vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  654. vel2.velocity = Head.CFrame.lookVector * -150 + (Vector3.new(0,1,0) * -37)
  655. wait(0.15)
  656. vel2.Parent=nil
  657. for i=1,8 do
  658. wait(math.random()/7)
  659. SlashTwo()
  660. end
  661. vel.Parent=nil
  662. attack=false
  663. end
  664. function DashForward()
  665. wait()
  666. --abscond(4)
  667. local vel = Instance.new("BodyVelocity")
  668. vel.Parent = Torso
  669. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  670. vel.velocity = Head.CFrame.lookVector * 250 + (Vector3.new(0,1,0) * 63)
  671. local LastPoint = Torso.CFrame
  672. coroutine.resume(coroutine.create(function()
  673. for i=0,1,0.1 do
  674. wait()
  675. if holddash==true then
  676. local Point = Torso.CFrame
  677. effect2("Black",0,LastPoint,Point)
  678. LastPoint = Point
  679. end
  680. end
  681. end))
  682. for i=0,1,0.3 do
  683. wait()
  684. vel.velocity = Head.CFrame.lookVector * 250 + (Vector3.new(0,1,0) * 63)
  685. --[[LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  686. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  687. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.5)
  688. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) ]]
  689. end
  690. vel.Parent=nil
  691. end
  692. function DashBackwards()
  693. wait()
  694. --abscond(2)
  695. local vel = Instance.new("BodyVelocity")
  696. vel.Parent = Torso
  697. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  698. vel.velocity = Head.CFrame.lookVector * -250 + (Vector3.new(0,1,0) * -63)
  699. print(vel.velocity)
  700. local LastPoint = Torso.CFrame
  701. coroutine.resume(coroutine.create(function()
  702. for i=0,1,0.1 do
  703. wait()
  704. if holddash==true then
  705. local Point = Torso.CFrame
  706. effect2("Black",0,LastPoint,Point)
  707. LastPoint = Point
  708. end
  709. end
  710. end))
  711. for i=0,1,0.3 do
  712. wait()
  713. vel.velocity = Head.CFrame.lookVector * -250 + (Vector3.new(0,1,0) * -63)
  714. --[[LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.3,0.3,-0.3)
  715. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  716. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.5)
  717. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) ]]
  718. end
  719. vel.Parent=nil
  720. end
  721. function CarnageDash()
  722. --attack=true
  723. wait()
  724. local vel = Instance.new("BodyVelocity")
  725. vel.Parent = Torso
  726. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  727. vel.velocity = Head.CFrame.lookVector * 150 + (Vector3.new(0,1,0) * 37)
  728. coroutine.resume(coroutine.create(function()
  729. while dashing==true do
  730. wait()
  731. Walking(0.15)
  732. end
  733. end))
  734. while dashing==true do
  735. wait(0.08)
  736. vel.velocity = Head.CFrame.lookVector * 150 + (Vector3.new(0,1,0) * 37)
  737. coroutine.resume(coroutine.create(function()
  738. --ss(1)
  739. equipsound(1.3)
  740. --for i=1,2 do
  741. wld13.Part0 = LeftArm
  742. wld13.Part1 = prt12
  743. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.8) * CFrame.new(-1,0,0)
  744. wld13.C1 = CFrame.fromEulerAnglesXYZ(0.7,0,0) * CFrame.new(0,1.2,-1)
  745. SlashEffect(prt6,0,-6,-1,0,3.14,0,BrickColor.new("Black"),1.5,1,2)
  746. for i=0,1,0.8 do
  747. wait()
  748. LW.C0 = CFrame.new(-1.5-0.5*i,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  749. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.5*i)
  750. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  751. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  752. if wld13.Part0==LeftArm then
  753. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.8-0.2*i) * CFrame.new(-1,0,0)
  754. wld13.C1 = CFrame.fromEulerAnglesXYZ(0.7-0.2*i,0,0) * CFrame.new(0,1.2,-1)
  755. end
  756. end
  757. local ppart = part(1,workspace,0,1,BrickColor.new("Navy blue"),"DerpPart",Vector3.new(1,1,1))
  758. ppart.Anchored=true
  759. ppart.CFrame=Head.CFrame*CFrame.new(0,0,-5)*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  760. coroutine.resume(coroutine.create(function(PART)
  761. wait(1)
  762. PART.Parent=nil
  763. end),ppart)
  764. SlashEffect(ppart,0,-6,-3,-1.57,math.random(-50,50),0,BrickColor.new("Black"),2,2,4)
  765. for i=0,1,0.8 do
  766. wait()
  767. LW.C0 = CFrame.new(-1.5-0.5+0.5*i,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5,0,0.4)
  768. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0.5-0.5*i)
  769. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  770. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.2,0,0)
  771. --wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,1.6) * CFrame.new(-1,0,0)
  772. --wld13.C1 = CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0,2,-1)
  773. --end
  774. end
  775. end))
  776. end
  777. vel.Parent=nil
  778. wld13.Part0 = prt13
  779. wld13.Part1 = prt12
  780. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  781. wld13.C1 = CFrame.fromEulerAnglesXYZ(0,0,0)
  782. --attack=false
  783. end
  784. function DownwardSlash()
  785. attack=true
  786. wait()
  787. local vel = Instance.new("BodyVelocity")
  788. vel.Parent = Torso
  789. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*2
  790. vel.velocity = Vector3.new(0,1,0) * 40
  791. gairo.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  792. gairo.P = 10000000
  793. --gairo.D = 2000
  794. gairo.Parent = Torso
  795. gairo.cframe=Torso.CFrame
  796. for i=0,1,0.1 do
  797. wait()
  798. --gairo.cframe=Torso.CFrame*CFrame.fromEulerAnglesXYZ(0,0,0.3*i)
  799. gairo.cframe=Torso.CFrame*CFrame.fromEulerAnglesXYZ(-0.1*i,0,0.2*i)
  800. end
  801. vel.velocity = Vector3.new(0,1,0) * 0
  802. for i=1,20 do
  803. wait(0.05)
  804. coroutine.resume(coroutine.create(function()
  805. Slash()
  806. end))
  807. end
  808. vel.Parent=nil
  809. gairo.Parent=nil
  810. attack=false
  811. end
  812. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  813. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  814. end
  815. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  816. local msh1 = Instance.new("BlockMesh")
  817. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  818. S=Instance.new("Part")
  819. S.Name="Effect"
  820. S.formFactor=0
  821. S.Size=Vector3.new(x1,y1,z1)
  822. S.BrickColor=color
  823. S.Reflectance = 0
  824. S.TopSurface=0
  825. S.BottomSurface=0
  826. S.Transparency=0
  827. S.Anchored=true
  828. S.CanCollide=false
  829. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  830. S.Parent=Character
  831. msh1.Parent = S
  832. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  833. end
  834. function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  835. local msh1 = Instance.new("BlockMesh")
  836. msh1.Scale = Vector3.new(x1,y1,z1)
  837. S=Instance.new("Part")
  838. S.Name="Effect"
  839. S.formFactor=0
  840. S.Size=Vector3.new(1,1,1)
  841. S.BrickColor=color
  842. S.Reflectance = 0
  843. S.TopSurface=0
  844. S.BottomSurface=0
  845. S.Transparency=0
  846. S.Anchored=true
  847. S.CanCollide=false
  848. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  849. S.Parent=Character
  850. msh1.Parent = S
  851. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  852. end
  853. function MOREMAGIX(part,cframe,x,y,z,color)
  854. p2=Instance.new("Part")
  855. p2.Name="Blast"
  856. p2.TopSurface=0
  857. p2.BottomSurface=0
  858. p2.CanCollide=false
  859. p2.Anchored=true
  860. p2.BrickColor=color
  861. p2.Size=Vector3.new(x,y,z)
  862. p2.formFactor="Symmetric"
  863. p2.CFrame=part.CFrame*CFrame.new(0,cframe,0)
  864. p2.Parent=workspace
  865. m=Instance.new("BlockMesh")
  866. m.Parent=p2
  867. m.Name="BlastMesh"
  868. coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09) part.Transparency=loll/20 part.CFrame=part.CFrame*CFrame.new(dir)*CFrame.fromEulerAnglesXYZ(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2,Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10))
  869. end
  870. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  871. local msh1 = Instance.new("SpecialMesh")
  872. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  873. msh1.MeshType = "Sphere"
  874. S=Instance.new("Part")
  875. S.Name="Effect"
  876. S.formFactor=0
  877. S.Size=Vector3.new(x1,y1,z1)
  878. S.BrickColor=color
  879. if Style == "WingBlade" and element == "Dark" then
  880. S.BrickColor=BrickColor.new("Black")
  881. end
  882. S.Reflectance = 0
  883. S.TopSurface=0
  884. S.BottomSurface=0
  885. S.Transparency=0
  886. S.Anchored=true
  887. S.CanCollide=false
  888. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  889. S.Parent=Character
  890. msh1.Parent = S
  891. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  892. end
  893. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  894. local msh1 = Instance.new("SpecialMesh")
  895. msh1.Scale = Vector3.new(x1,y1,z1)
  896. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  897. S=Instance.new("Part")
  898. S.Name="Effect"
  899. S.formFactor=0
  900. S.Size=Vector3.new(1,1,1)
  901. S.BrickColor=color
  902. S.Reflectance = 0
  903. S.TopSurface=0
  904. S.BottomSurface=0
  905. S.Transparency=0
  906. S.Anchored=true
  907. S.CanCollide=false
  908. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  909. S.Parent=Character
  910. msh1.Parent = S
  911. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  912. end
  913. function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  914. local msh1 = Instance.new("SpecialMesh")
  915. msh1.Scale = Vector3.new(x1,y1,z1)
  916. msh1.MeshId = "http://www.roblox.com/asset/?id=1323306"
  917. S=Instance.new("Part")
  918. S.Name="Effect"
  919. S.formFactor=0
  920. S.Size=Vector3.new(1,1,1)
  921. S.BrickColor=color
  922. S.Reflectance = 0
  923. S.TopSurface=0
  924. S.BottomSurface=0
  925. S.Transparency=0
  926. S.Anchored=true
  927. S.CanCollide=false
  928. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  929. S.Parent=Character
  930. msh1.Parent = S
  931. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  932. end
  933. LastPoint = Torso
  934. function effect(Color,Ref,LP,P1,returnn)
  935. local effectsmsh = Instance.new("CylinderMesh")
  936. effectsmsh.Scale = Vector3.new(1,1,1)
  937. effectsmsh.Name = "Mesh"
  938. local effectsg = Instance.new("Part")
  939. effectsg.formFactor = 3
  940. effectsg.CanCollide = false
  941. effectsg.Name = "Eff"
  942. effectsg.Locked = true
  943. effectsg.Anchored = true
  944. effectsg.Transparency=0.7
  945. effectsg.Size = Vector3.new(0.5,1,0.5)
  946. effectsg.Parent = workspace
  947. effectsmsh.Parent = effectsg
  948. effectsg.BrickColor = BrickColor.new(Color)
  949. effectsg.Reflectance = Ref
  950. local point1 = P1
  951. local mg = (LP.p - point1.p).magnitude
  952. effectsg.Size = Vector3.new(0.5,mg,0.5)
  953. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  954. if returnn then return effectsg end
  955. coroutine.resume(coroutine.create(function()
  956. con1=effectsg.Touched:connect(function(hit) Damagefunc2(hit,5,1) end)
  957. local c = game.Workspace:GetChildren();
  958. for i = 1, #c do
  959. local hum = c[i]:findFirstChild("Humanoid")
  960. if hum ~= nil and hum.Health ~= 0 then
  961. local head = c[i]:findFirstChild("Head");
  962. if head ~= nil then
  963. local targ = head.Position - effectsg.Position;
  964. local mag = targ.magnitude;
  965. if mag <= 6 then
  966. Damagefunc1(head,5,1)
  967. end
  968. end
  969. end
  970. end
  971. if not returnn then
  972. for i = 0 , 1 , 0.2 do
  973. wait()
  974. local dir = effectsg.CFrame.lookVector+Vector3.new(0,0,0)
  975. local hit2,pos = rayCast(effectsg.Position,effectsg.CFrame.lookVector,10,Character)
  976. if hit2 ~= nil then
  977. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  978. hum = hit2.Parent.Humanoid
  979. Damagefunc1(hit2,5,5)
  980. end
  981. end
  982. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  983. end
  984. wait()
  985. effectsg.Parent = nil
  986. end
  987. end))
  988. end
  989. function effect2(Color,Ref,LP,P1,returnn)
  990. local effectsmsh = Instance.new("BlockMesh")
  991. effectsmsh.Scale = Vector3.new(1,1,1)
  992. effectsmsh.Name = "Mesh"
  993. local effectsg = Instance.new("Part")
  994. effectsg.formFactor = 3
  995. effectsg.CanCollide = false
  996. effectsg.Name = "Eff"
  997. effectsg.Locked = true
  998. effectsg.Anchored = true
  999. effectsg.Transparency=0.4
  1000. effectsg.Size = Vector3.new(1,1,1)
  1001. effectsg.Parent = workspace
  1002. effectsmsh.Parent = effectsg
  1003. effectsg.BrickColor = BrickColor.new(Color)
  1004. effectsg.Reflectance = Ref
  1005. local point1 = P1
  1006. local mg = (LP.p - point1.p).magnitude
  1007. effectsg.Size = Vector3.new(5,mg,5)
  1008. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1009. if returnn then return effectsg end
  1010. coroutine.resume(coroutine.create(function()
  1011. con1=effectsg.Touched:connect(function(hit) Damagefunc2(hit,5,1) end)
  1012. local c = game.Workspace:GetChildren();
  1013. for i = 1, #c do
  1014. local hum = c[i]:findFirstChild("Humanoid")
  1015. if hum ~= nil and hum.Health ~= 0 then
  1016. local head = c[i]:findFirstChild("Head");
  1017. if head ~= nil then
  1018. local targ = head.Position - effectsg.Position;
  1019. local mag = targ.magnitude;
  1020. if mag <= 6 then
  1021. Damagefunc1(head,5,1)
  1022. end
  1023. end
  1024. end
  1025. end
  1026. if not returnn then
  1027. for i = 0 , 1 , 0.2 do
  1028. wait()
  1029. effectsg.Transparency=effectsg.Transparency+0.1
  1030. end
  1031. wait()
  1032. effectsg.Parent = nil
  1033. end
  1034. end))
  1035. end
  1036. function SlashEffect(part,x1,y1,z1,x2,y2,z2,color,size,power,repeats)
  1037. p2=Instance.new("Part")
  1038. p2.Name="Blast"
  1039. p2.TopSurface=0
  1040. p2.BottomSurface=0
  1041. p2.CanCollide=false
  1042. p2.Anchored=true
  1043. p2.BrickColor=color
  1044. p2.Size=Vector3.new(2,2,2)
  1045. p2.formFactor="Symmetric"
  1046. p2.CFrame=part.CFrame*CFrame.fromEulerAnglesXYZ(x2,y2,z2)*CFrame.new(x1,y1,z1)
  1047. p2.Parent=workspace
  1048. p2.Transparency=1
  1049. m=Instance.new("BlockMesh")
  1050. m.Parent=p2
  1051. m.Name="BlastMesh"
  1052. local LastPoint = p2.CFrame
  1053. coroutine.resume(coroutine.create(function(part,dir)
  1054. for loll=1, repeats do
  1055. part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09)
  1056. part.CFrame=part.CFrame*CFrame.new(0,2.5*size,0)*CFrame.fromEulerAnglesXYZ(0.6*power,0,0)
  1057. local Point = part.CFrame
  1058. effect("Gold",0.5,LastPoint,Point)
  1059. LastPoint = Point
  1060. wait(0)
  1061. end
  1062. part.Parent=nil
  1063. end),p2,0)
  1064. end
  1065. --SlashEffect(workspace.Fenrier.Torso,0,-6,-3,-1.57,math.random(-1,1)+math.random(),0,BrickColor.new("Black"),1.5,1.5)
  1066. function ss(pitch)
  1067. local SlashSound = Instance.new("Sound")
  1068. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  1069. --SlashSound.SoundId = "http://roblox.com/asset/?id=10209645"
  1070. SlashSound.Parent = workspace
  1071. SlashSound.Volume = .5
  1072. SlashSound.Pitch = pitch
  1073. SlashSound.PlayOnRemove = true
  1074. coroutine.resume(coroutine.create(function()
  1075. wait(0)
  1076. SlashSound.Parent = nil
  1077. end))
  1078. end
  1079. function equipsound(pitch)
  1080. local SlashSound = Instance.new("Sound")
  1081. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  1082. SlashSound.Parent = workspace
  1083. SlashSound.Volume = .3
  1084. SlashSound.Pitch = pitch
  1085. SlashSound.PlayOnRemove = true
  1086. coroutine.resume(coroutine.create(function()
  1087. wait(0)
  1088. SlashSound.Parent = nil
  1089. end))
  1090. end
  1091. function abscond(pitch)
  1092. local SlashSound = Instance.new("Sound")
  1093. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2767090"
  1094. SlashSound.Parent = workspace
  1095. SlashSound.Volume = 1
  1096. SlashSound.Pitch = pitch
  1097. SlashSound.PlayOnRemove = true
  1098. coroutine.resume(coroutine.create(function()
  1099. wait(0)
  1100. SlashSound.Parent = nil
  1101. end))
  1102. end
  1103. function magicsound(pitch)
  1104. local SlashSound = Instance.new("Sound")
  1105. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  1106. SlashSound.Parent = workspace
  1107. SlashSound.Volume = .5
  1108. SlashSound.Pitch = pitch
  1109. SlashSound.PlayOnRemove = true
  1110. coroutine.resume(coroutine.create(function()
  1111. wait(0)
  1112. SlashSound.Parent = nil
  1113. end))
  1114. end
  1115. function critsound(pitch)
  1116. local SlashSound = Instance.new("Sound")
  1117. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  1118. SlashSound.Parent = workspace
  1119. SlashSound.Volume = .7
  1120. SlashSound.Pitch = pitch
  1121. SlashSound.PlayOnRemove = true
  1122. coroutine.resume(coroutine.create(function()
  1123. wait(0)
  1124. SlashSound.Parent = nil
  1125. end))
  1126. end
  1127. function spikesound(pitch)
  1128. local SlashSound = Instance.new("Sound")
  1129. SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793"
  1130. SlashSound.Parent = workspace
  1131. SlashSound.Volume = .7
  1132. SlashSound.Pitch = pitch
  1133. SlashSound.PlayOnRemove = true
  1134. coroutine.resume(coroutine.create(function()
  1135. wait(0)
  1136. SlashSound.Parent = nil
  1137. end))
  1138. end
  1139. Damagefunc1=function(hit,Damage,Knockback)
  1140. if attackdebounce == false then
  1141. attackdebounce = true
  1142. coroutine.resume(coroutine.create(function()
  1143. wait(0.1)
  1144. attackdebounce = false
  1145. end))
  1146. if hit.Parent==nil then
  1147. return
  1148. end
  1149. CPlayer=Bin
  1150. h=hit.Parent:FindFirstChild("Humanoid")
  1151. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1152. if mana < 400 then
  1153. mana = mana + math.random(10,20)
  1154. end
  1155. if mana > 400 then
  1156. mana = 400
  1157. end
  1158. Damage=Damage
  1159. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1160. return
  1161. end]]
  1162. c=Instance.new("ObjectValue")
  1163. c.Name="creator"
  1164. c.Value=game.Players.LocalPlayer
  1165. c.Parent=h
  1166. game:GetService("Debris"):AddItem(c,.5)
  1167. -- print(c.Value)
  1168. if math.random(0,99)+math.random()<=5 then
  1169. CRIT=true
  1170. Damage=Damage*1.5
  1171. --[[ Knockback=Knockback*2
  1172. r=Instance.new("BodyAngularVelocity")
  1173. r.P=3000
  1174. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1175. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1176. r.Parent=hit.Parent.Torso]]
  1177. critsound(2)
  1178.  
  1179. end
  1180. Damage=Damage+math.random(0,10)
  1181. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1182. h.Health=h.Health-Damage
  1183. showDamage(hit.Parent,Damage,.5)
  1184. vp=Instance.new("BodyVelocity")
  1185. vp.P=500
  1186. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1187. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1188. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1189. if Knockback>0 then
  1190. vp.Parent=hit.Parent.Torso
  1191. end
  1192. game:GetService("Debris"):AddItem(vp,.25)
  1193. --[[ r=Instance.new("BodyAngularVelocity")
  1194. r.P=3000
  1195. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1196. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1197. r.Parent=hit.Parent.Torso]]
  1198. game:GetService("Debris"):AddItem(r,.5)
  1199. c=Instance.new("ObjectValue")
  1200. c.Name="creator"
  1201. c.Value=Player
  1202. c.Parent=h
  1203. game:GetService("Debris"):AddItem(c,.5)
  1204. CRIT=false
  1205. hitDeb=true
  1206. AttackPos=6
  1207. end
  1208. end
  1209. end
  1210. Damagefunc1=function(hit,Damage,Knockback)
  1211. if hit.Parent==nil then
  1212. return
  1213. end
  1214. -- CPlayer=Bin
  1215. h=hit.Parent:FindFirstChild("Humanoid")
  1216. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1217. if attackdebounce == false then
  1218. attackdebounce = true
  1219. coroutine.resume(coroutine.create(function()
  1220. wait(0.1)
  1221. attackdebounce = false
  1222. end))
  1223. Damage=Damage
  1224. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1225. return
  1226. end]]
  1227. -- print("NOPE.AVI")
  1228. if math.random(0,99)+math.random()<=5 then
  1229. CRIT=true
  1230. Damage=Damage*1.5
  1231. --[[ Knockback=Knockback*2
  1232. r=Instance.new("BodyAngularVelocity")
  1233. r.P=3000
  1234. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1235. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1236. r.Parent=hit.Parent.Torso]]
  1237.  
  1238. end
  1239. Damage=Damage+math.random(0,10)
  1240. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1241. h:TakeDamage(Damage)
  1242. showDamage(hit.Parent,Damage,.5)
  1243. vp=Instance.new("BodyVelocity")
  1244. vp.P=500
  1245. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1246. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1247. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1248. if Knockback>0 then
  1249. vp.Parent=hit.Parent.Torso
  1250. end
  1251. game:GetService("Debris"):AddItem(vp,.25)
  1252. --[[ r=Instance.new("BodyAngularVelocity")
  1253. r.P=3000
  1254. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1255. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1256. r.Parent=hit.Parent.Torso
  1257. game:GetService("Debris"):AddItem(r,.5)]]
  1258. CRIT=false
  1259. hitDeb=true
  1260. AttackPos=6
  1261. end
  1262. end
  1263. end
  1264. Damagefunc2=function(hit,Damage,Knockback)
  1265. if hit.Parent==nil then
  1266. return
  1267. end
  1268. -- CPlayer=Bin
  1269. h=hit.Parent:FindFirstChild("Humanoid")
  1270. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1271. if attackdebounce == false then
  1272. attackdebounce = true
  1273. coroutine.resume(coroutine.create(function()
  1274. wait(0.1)
  1275. attackdebounce = false
  1276. end))
  1277. Damage=Damage
  1278. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1279. return
  1280. end]]
  1281. -- print("NOPE.AVI")
  1282. if math.random(0,99)+math.random()<=5 then
  1283. CRIT=true
  1284. Damage=Damage*1.5
  1285. --[[ Knockback=Knockback*2
  1286. r=Instance.new("BodyAngularVelocity")
  1287. r.P=3000
  1288. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1289. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1290. r.Parent=hit.Parent.Torso]]
  1291.  
  1292. end
  1293. Damage=Damage+math.random(0,10)
  1294. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1295. h:TakeDamage(Damage)
  1296. showDamage(hit.Parent,Damage,.5)
  1297. vp=Instance.new("BodyVelocity")
  1298. vp.P=500
  1299. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1300. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1301. vp.velocity=Torso.CFrame.lookVector*Knockback
  1302. if Knockback>0 then
  1303. vp.Parent=hit.Parent.Torso
  1304. end
  1305. game:GetService("Debris"):AddItem(vp,2)
  1306. --[[ r=Instance.new("BodyAngularVelocity")
  1307. r.P=3000
  1308. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1309. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1310. r.Parent=hit.Parent.Torso
  1311. game:GetService("Debris"):AddItem(r,.5)]]
  1312. CRIT=false
  1313. hitDeb=true
  1314. AttackPos=6
  1315. end
  1316. end
  1317. end
  1318. showDamage=function(Char,Dealt,du)
  1319. m=Instance.new("Model")
  1320. m.Name=tostring(Dealt)
  1321. h=Instance.new("Humanoid")
  1322. h.Health=0
  1323. h.MaxHealth=0
  1324. h.Parent=m
  1325. c=Instance.new("Part")
  1326. c.Transparency=0
  1327. c.BrickColor=BrickColor:Red()
  1328. if CRIT==true then
  1329. c.BrickColor=BrickColor.new("Gold")
  1330. end
  1331. c.Name="Head"
  1332. c.TopSurface=0
  1333. c.BottomSurface=0
  1334. c.formFactor="Plate"
  1335. c.Size=Vector3.new(1,.4,1)
  1336. ms=Instance.new("CylinderMesh")
  1337. ms.Scale=Vector3.new(.8,.8,.8)
  1338. if CRIT==true then
  1339. ms.Scale=Vector3.new(1.25,1.5,1.25)
  1340. end
  1341. ms.Parent=c
  1342. c.Reflectance=0
  1343. Instance.new("BodyGyro").Parent=c
  1344. c.Parent=m
  1345. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1346. f=Instance.new("BodyPosition")
  1347. f.P=2000
  1348. f.D=100
  1349. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1350. f.position=c.Position+Vector3.new(0,3,0)
  1351. f.Parent=c
  1352. game:GetService("Debris"):AddItem(m,.5+du)
  1353. c.CanCollide=false
  1354. m.Parent=workspace
  1355. c.CanCollide=false
  1356. end
  1357. hold = false
  1358. function ob1d(mouse)
  1359. if attack == true then return end
  1360. hold = true
  1361. Slash()
  1362. --[[if combo == 0 then
  1363. combo = 1
  1364. onehit()
  1365. coroutine.resume(coroutine.create(function()
  1366. wait(0.5)
  1367. if attack == false then
  1368. combo = 0
  1369. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1370. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1371. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1372. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1373. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1374. end
  1375. end))
  1376. elseif combo == 1 then
  1377. combo = 2
  1378. twohit()
  1379. coroutine.resume(coroutine.create(function()
  1380. wait(0.5)
  1381. if attack == false then
  1382. combo = 0
  1383. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1384. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1385. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1386. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1387. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1388. end
  1389. end))
  1390. elseif combo == 2 then
  1391. combo = 3
  1392. threehit()
  1393. wait(0.5)
  1394. combo = 0
  1395. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1396. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1397. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1398. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1399. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1400. end ]]
  1401. end
  1402. function ob1u(mouse)
  1403. hold = false
  1404. end
  1405. buttonhold = false
  1406. function Key(key,mouse)
  1407. if key=="k" then
  1408. if sitting==false then
  1409. sitting=true
  1410. normattack=true
  1411. Sit()
  1412. elseif sitting==true then
  1413. sitting=false
  1414. UnSit()
  1415. normattack=false
  1416. end
  1417. end
  1418. pcall(function() act.key[key:lower()] = true end)
  1419. local kk = key:lower()
  1420. coroutine.resume(coroutine.create(function()
  1421. if kk == "w" or kk == "a" or kk == "s" or kk == "d" then
  1422. while act.key["w"] == true or act.key["a"] == true or act.key["s"] == true or act.key["d"] == true do
  1423. wait()
  1424. end
  1425. walking = false
  1426. end
  1427. end))
  1428. if kk == "w" or kk == "a" or kk == "s" or kk == "d" then
  1429. if walking == true then return end
  1430. if normattack==true then return end
  1431. while act.key["w"] == true or act.key["a"] == true or act.key["s"] == true or act.key["d"] == true do
  1432. Walking(0.1)
  1433. wait()
  1434. end
  1435. walking = false
  1436. Stance()
  1437. end
  1438. if attack == true then return end
  1439. if key == "y" then
  1440. holddash=true
  1441. DashForward()
  1442. end
  1443. if key == "h" then
  1444. holddash=true
  1445. DashBackwards()
  1446. end
  1447. if key=="g" then
  1448. dashing=true
  1449. CarnageDash()
  1450. end
  1451. if key=="q" then
  1452. DownwardSlash()
  1453. end
  1454. if punched==true then
  1455. if key=="c" then
  1456. normattack=true
  1457. WinrarDash()
  1458. normattack=false
  1459. end
  1460. elseif kicked==true then
  1461. if key=="z" then
  1462. normattack=true
  1463. normattack=false
  1464. end
  1465. else
  1466. if key=="z" then
  1467. normattack=true
  1468. Punch()
  1469. normattack=false
  1470. end
  1471. if key=="x" then
  1472. normattack=true
  1473. Kick()
  1474. normattack=false
  1475. end
  1476. end
  1477. --[[if key=="c" then
  1478. normattack=true
  1479. WinrarDash()
  1480. normattack=false
  1481. end]]
  1482. RWL.C0 = CFrame.new(0.5,-1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1483. RWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1484. LWL.C0 = CFrame.new(-0.5-0.6,-1.5+0.3,-0.3) * CFrame.fromEulerAnglesXYZ(0.5,0,-0.7+0.2)
  1485. LWL.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1486. Stance()
  1487. end
  1488. function Key2(key,mouse)
  1489. pcall(function() act.key[key:lower()] = false end)
  1490. if key=="f" then
  1491. holddash=false
  1492. end
  1493. if key=="g" then
  1494. dashing=false
  1495. end
  1496. end
  1497. function s(mouse)
  1498. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1499. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1500. mouse.KeyDown:connect(function(key) Key(key,mouse) end)
  1501. mouse.KeyUp:connect(function(key) Key2(key,mouse) end)
  1502. --mouse.KeyDown:connect(key,mouse)
  1503. --mouse.KeyUp:connect(key2,mouse)
  1504. MMouse=mouse
  1505. player = Player
  1506. ch = Character
  1507. RSH = ch.Torso["Right Shoulder"]
  1508. LSH = ch.Torso["Left Shoulder"]
  1509. --
  1510. RW.Part0 = ch.Torso
  1511. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1512. RW.C1 = CFrame.new(0, 0.5, 0)
  1513. RW.Part1 = ch["Right Arm"]
  1514. RW.Parent = ch.Torso
  1515. --_G.R = RW
  1516. --
  1517. LW.Part0 = ch.Torso
  1518. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1519. LW.C1 = CFrame.new(0, 0.5, 0)
  1520. LW.Part1 = ch["Left Arm"]
  1521. LW.Parent = ch.Torso
  1522. --_G.L = LW
  1523. --
  1524. RHP = ch.Torso["Right Hip"]
  1525. LHP = ch.Torso["Left Hip"]
  1526. --
  1527. RWL.Part0 = ch.Torso
  1528. RWL.C0 = CFrame.new(0, -1.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1529. RWL.C1 = CFrame.new(-0.5, 0.5, 0)
  1530. RWL.Part1 = ch["Right Leg"]
  1531. RWL.Parent = ch.Torso
  1532. --_G.R = RW
  1533. --
  1534. LWL.Part0 = ch.Torso
  1535. LWL.C0 = CFrame.new(0, -1.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1536. LWL.C1 = CFrame.new(0.5, 0.5, 0)
  1537. LWL.Part1 = ch["Left Leg"]
  1538. LWL.Parent = ch.Torso
  1539. --_G.L = LW
  1540. --
  1541. equipanim()
  1542. end
  1543. function ds(mouse)
  1544. hideanim()
  1545. RW.Parent = nil
  1546. LW.Parent = nil
  1547. RWL.Parent = nil
  1548. LWL.Parent = nil
  1549. RSH.Parent = player.Character.Torso
  1550. LSH.Parent = player.Character.Torso
  1551. RHP.Parent = player.Character.Torso
  1552. LHP.Parent = player.Character.Torso
  1553. end
  1554. Bin.Selected:connect(s)
  1555. Bin.Deselected:connect(ds)
  1556. --[[function onRunning(speed)
  1557. if attack == true then return end
  1558. if speed>0 then
  1559. walking = true
  1560. for i = 0,1,0.1 do
  1561. wait()
  1562. if attack == false then
  1563. --Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1564. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1565. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1566. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1567. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1568. end
  1569. end
  1570. else
  1571. walking = false
  1572. for i = 0,1,0.1 do
  1573. wait()
  1574. if attack == false then
  1575. --Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1576. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1577. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1578. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1579. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1580. end
  1581. end
  1582. end
  1583. end
  1584. Character.Humanoid.Running:connect(onRunning) ]]
  1585. local BladeHealth=Character.Humanoid.MaxHealth/2
  1586. coroutine.resume(coroutine.create(function()
  1587. for i=0,1,0.1 do
  1588. wait()
  1589. Character.Humanoid.Maxhealth=BladeHealth
  1590. end
  1591. end))
  1592. while true do
  1593. wait(0)
  1594. fentext3.Size = UDim2.new(mana*0.007,0,0.200000006,0)
  1595. fentext.Text = "Mana("..mana..")"
  1596. fentext3.BackgroundColor3 = Color3.new(1,1,1)
  1597. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement