Advertisement
hecknes

Sword

Oct 15th, 2019
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.00 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. local name = "hecknes1800"
  88. local me = owner
  89. local char = me.Character
  90. selected = false
  91. attacking = false
  92. attack = false
  93. dela = 0.4
  94. normdmg = 9
  95. avgdmg = normdmg
  96. normal = 14
  97. speed = 14
  98. normchance = 9333333333333
  99. criticalchance = normchance
  100. splashdist = 14333333333333333333333333333333333333333333333333
  101. plat = 1
  102. healcols = {"Bright blue", "Light blue", "Medium blue", "White"}
  103. if char:findFirstChild("Sword",true) ~= nil then
  104. char:findFirstChild("Sword",true).Parent = nil
  105. end
  106. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  107. part.Parent = parent
  108. part.formFactor = form
  109. part.CanCollide = collide
  110. part.Transparency = tran
  111. part.Reflectance = ref
  112. part.Size = Vector3.new(x,y,z)
  113. part.BrickColor = BrickColor.new(color)
  114. part.TopSurface = 0
  115. part.BottomSurface = 0
  116. part.Anchored = anchor
  117. part.Locked = true
  118. part:BreakJoints()
  119. end
  120. function weld(w, p, p1, a, b, c, x, y, z)
  121. w.Parent = p
  122. w.Part0 = p
  123. w.Part1 = p1
  124. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  125. end
  126. function mesh(mesh, parent, x, y, z, type)
  127. mesh.Parent = parent
  128. mesh.Scale = Vector3.new(x, y, z)
  129. mesh.MeshType = type
  130. end
  131. function getcharparts(path)
  132. local objs = {}
  133. for _,v in pairs(path:children()) do
  134. if v:IsA("Model") and v.Name ~= name then
  135. for _,k in pairs(v:children()) do
  136. if k.Name == "Torso" then
  137. table.insert(objs,k)
  138. end
  139. end
  140. end
  141. end
  142. return objs
  143. end
  144. sword = Instance.new("Model",me.Character)
  145. sword.Name = "Sword"
  146. --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
  147. rarm = char:findFirstChild("Right Arm")
  148. larm = char:findFirstChild("Left Arm")
  149. torso = char:findFirstChild("Torso")
  150. hum = char:findFirstChild("Humanoid")
  151. main = Instance.new("Part")
  152. prop(main, sword, false, 0, 0, 0.38, 2.2, 0.38, "White", false, "Custom")
  153. mme = Instance.new("SpecialMesh")
  154. mesh(mme,main,1,1,1,"Head")
  155. part1 = Instance.new("Part")
  156. prop(part1, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  157. p1m = Instance.new("BlockMesh",part1)
  158. w1 = Instance.new("Weld")
  159. weld(w1, main, part1, 0, 0, 0, 0, 0.9, 0)
  160. part2 = Instance.new("Part")
  161. prop(part2, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  162. p2m = Instance.new("BlockMesh",part2)
  163. w2 = Instance.new("Weld")
  164. weld(w2, main, part2, 0, 0, 0.8, 0.5, 0.85, 0)
  165. part3 = Instance.new("Part")
  166. prop(part3, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  167. p3m = Instance.new("BlockMesh",part3)
  168. w3 = Instance.new("Weld")
  169. weld(w3, main, part3, 0, 0, -0.8, -0.5, 0.85, 0)
  170. part4 = Instance.new("Part")
  171. prop(part4, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  172. p4m = Instance.new("BlockMesh",part4)
  173. w4 = Instance.new("Weld")
  174. weld(w4, main, part4, 0, 0, -1.25, 0.8, 1, 0)
  175. part5 = Instance.new("Part")
  176. prop(part5, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  177. p5m = Instance.new("BlockMesh",part5)
  178. w5 = Instance.new("Weld")
  179. weld(w5, main, part5, 0, 0, 1.25, -0.8, 1, 0)
  180. part6 = Instance.new("Part")
  181. prop(part6, sword, false, 0, 0, 0.45, 0.6, 0.45, "Light blue", false, "Custom")
  182. p6m = Instance.new("SpecialMesh")
  183. mesh(p6m,part6,1.3,1.2,1.3,"Sphere")
  184. w6 = Instance.new("Weld")
  185. weld(w6, main, part6, 0, 0, 0, 0, -0.9, 0)
  186. blade1 = Instance.new("Part")
  187. prop(blade1, sword, false, 0, 0.2, 0.85, 2, 0.1, "Light blue", false, "Custom")
  188. b1m = Instance.new("SpecialMesh")
  189. mesh(b1m,blade1,1,1,1,"Torso")
  190. bw1 = Instance.new("Weld")
  191. weld(bw1, main, blade1, 0, 0, 0, 0, 2, 0)
  192. uns = Instance.new("Sound",blade1)
  193. uns.Volume = 1
  194. uns.Pitch = 1
  195. uns.SoundId = "rbxasset://sounds\\unsheath.wav"
  196. slash = Instance.new("Sound",blade1)
  197. slash.Volume = 1
  198. slash.Pitch = 1
  199. slash.SoundId = "rbxasset://sounds\\swordslash.wav"
  200. shea = Instance.new("Sound",blade1)
  201. shea.Volume = 1
  202. shea.Pitch = -0.9
  203. shea.SoundId = "rbxasset://sounds\\unsheath.wav"
  204. spi = Instance.new("Sound",blade1)
  205. spi.Volume = 1
  206. spi.Pitch = 1
  207. spi.SoundId = "http://www.roblox.com/asset/?id=28144268"
  208. charge = Instance.new("Sound",blade1)
  209. charge.Volume = 1
  210. charge.Pitch = 0.5
  211. charge.SoundId = "http://www.roblox.com/asset/?id=2692844"
  212. boom = Instance.new("Sound",blade1)
  213. boom.Volume = 1
  214. boom.Pitch = 2.2
  215. boom.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  216. blade2 = Instance.new("Part")
  217. prop(blade2, sword, false, 0, 0.2, 1.2, 1.2, 0.1, "Light blue", false, "Custom")
  218. b2m = Instance.new("BlockMesh",blade2)
  219. bw2 = Instance.new("Weld")
  220. weld(bw2, main, blade2, 0, 0, math.pi/4, 0, 3, 0)
  221. blade3 = Instance.new("Part")
  222. prop(blade3, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  223. b3m = Instance.new("SpecialMesh")
  224. mesh(b3m,blade3,1,1,1,"Wedge")
  225. bw3 = Instance.new("Weld")
  226. weld(bw3, main, blade3, math.pi, math.pi/2, 0, 0.3, 5.2, 0)
  227. blade4 = Instance.new("Part")
  228. prop(blade4, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  229. b4m = Instance.new("SpecialMesh")
  230. mesh(b4m,blade4,1,1,1,"Wedge")
  231. bw4 = Instance.new("Weld")
  232. weld(bw4, main, blade4, math.pi, -math.pi/2, 0, -0.3, 5.2, 0)
  233. blade5 = Instance.new("Part")
  234. prop(blade5, sword, false, 0, 0.2, 0.6, 0.6, 0.1, "Light blue", false, "Custom")
  235. b5m = Instance.new("BlockMesh",blade5)
  236. bw5 = Instance.new("Weld")
  237. weld(bw5, main, blade5, 0, 0, math.pi/4, 0, 6.6, 0)
  238. part7 = Instance.new("Part")
  239. prop(part7, sword, false, 0.2, 0.2, 0.7, 1.6, 0.22, "Medium blue", false, "Custom")
  240. p7m = Instance.new("SpecialMesh")
  241. mesh(p7m,part7,1.3,1.2,1.3,"Sphere")
  242. w7 = Instance.new("Weld")
  243. weld(w7, main, part7, 0, 0, 0, 0, 3, 0)
  244. tup1 = Instance.new("Part")
  245. prop(tup1, sword, false, 0, 0.4, 1.2, 0.7, 0.4, "Bright blue", false, "Custom")
  246. tw1 = Instance.new("Weld")
  247. weld(tw1, torso, tup1, -0.3+(math.pi/2), -0.3, 0.2+(math.pi/2), 1.1, 1.2, 0)
  248. holdpart = Instance.new("Part")
  249. prop(holdpart, char, false, 1, 0, 0.5, 0.5, 0.5, "White", false, "Custom")
  250. hu = Instance.new("Weld")
  251. weld(hu, rarm, holdpart, 0, 0, 0, 0, 1, 0)
  252. holdweld = Instance.new("Weld")
  253. weld(holdweld, main, tup1, 0, 0, 0, 0, 1.5, 0)
  254. weaponweld = Instance.new("Weld")
  255. weld(weaponweld, holdpart, nil, -(math.pi/2), 0, (math.pi/2), 0, 0, 0)
  256. --Arm connections----------Arm connections----------Arm connections----------Arm connections--------
  257. rb = Instance.new("Part")
  258. prop(rb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  259. rh = Instance.new("Weld")
  260. weld(rh, rb, torso, 0, 0, 0, 1.5, 0.5, 0)
  261. lb = Instance.new("Part")
  262. prop(lb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  263. lh = Instance.new("Weld")
  264. weld(lh, lb, torso, 0, 0, 0, -1.5, 0.5, 0)
  265. rw = Instance.new("Weld")
  266. weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
  267. lw = Instance.new("Weld")
  268. weld(lw, lb, nil, 0, 0, 0, 0, 0.5 ,0)
  269. neck = torso.Neck
  270. neor = neck.C1
  271. rightfight = CFrame.fromEulerAnglesXYZ(0.85,0.7,0) * CFrame.new(-0.23,-0.25,-0.1)
  272. leftfight = CFrame.fromEulerAnglesXYZ(0.3,0,0.4) * CFrame.new(0.2,-0.4,0.1)
  273. function selectmotion()
  274. weaponweld.C0 = CFrame.new(0,0,0)
  275. rw.C0 = CFrame.new(0,0,0)
  276. lw.C0 = CFrame.new(0,0,0)
  277. rw.Part1 = rarm
  278. lw.Part1 = larm
  279. for i=1, 15 do
  280. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  281. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(-0.01,-0.05,-0.04)
  282. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.04,0.08,0.01) * CFrame.new(0,0,0)
  283. wait()
  284. end
  285. weaponweld.Part1 = main
  286. holdweld.Part1 = nil
  287. wait(0.14)
  288. uns:play()
  289. for i=1, 4 do
  290. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03) * CFrame.new(0,0,0)
  291. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.12,-0.03,0.26)
  292. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.04,0.03) * CFrame.new(0,0,0)
  293. wait()
  294. end
  295. for i=1, 10 do
  296. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0.15) * CFrame.new(0,0,0)
  297. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.15,-0.22,0.1) * CFrame.new(0.05,0.1,0.05)
  298. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0.07,0)
  299. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.06,0.03) * CFrame.new(0,0,0)
  300. wait()
  301. end
  302. wait(0.1)
  303. for i=1, 6 do
  304. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,-0.04,-0.09) * CFrame.new(0,0,0)
  305. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.18,-0.14) * CFrame.new(-0.08,0.05,0.05)
  306. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0) * CFrame.new(0,0,0)
  307. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0,0,-0.12) * CFrame.new(0,-0.04,0)
  308. wait()
  309. end
  310. rw.C0 = rightfight
  311. lw.C0 = leftfight
  312. neck.C1 = neor
  313. weaponweld.C0 = CFrame.new(0,0,0)
  314. selected = true
  315. end
  316. function deselmotion()
  317. for i=1, 12 do
  318. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  319. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(0.02,-0.05,-0.04)
  320. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.05) * CFrame.new(-0.02,0.03,0)
  321. wait()
  322. end
  323. shea:play()
  324. weaponweld.Part1 = nil
  325. holdweld.Part1 = tup1
  326. wait(0.1)
  327. for i=1, 8 do
  328. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.09) * CFrame.new(0,0,0)
  329. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,-0.12) * CFrame.new(-0.07,0.11,0)
  330. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0.04) * CFrame.new(0,0,0)
  331. wait()
  332. end
  333. rw.Part1 = nil
  334. lw.Part1 = nil
  335. rw.C0 = CFrame.new(0,0,0)
  336. lw.C0 = CFrame.new(0,0,0)
  337. neck.C1 = neor
  338. weaponweld.C0 = CFrame.new(0,0,0)
  339. selected = false
  340. end
  341. ----Effects--------------------------Effects--------------------------Effects--------------------------Effects----------------------
  342. function fade(brick,mesh,scale,tran,speed)
  343. coroutine.resume(coroutine.create(function()
  344. for i=tran,1,speed do
  345. wait()
  346. brick.Transparency = i
  347. mesh.Scale = mesh.Scale - Vector3.new(scale,scale,scale)
  348. end
  349. brick:remove()
  350. end))
  351. end
  352. function block(part,avg,cols)
  353. for i=1, math.random(1,3) do
  354. local s = (avg*1.4)*100
  355. local s2 = (avg/5)*100
  356. local size = math.random(s2,s)/100
  357. local p = Instance.new("Part",me.Character)
  358. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  359. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  360. coroutine.resume(coroutine.create(function()
  361. for i=p.Transparency, 1, 0.2 do
  362. wait(0.15)
  363. p.Transparency = i
  364. local cf = p.CFrame
  365. p.Size = Vector3.new(size,size,size)
  366. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  367. size = size - 0.2
  368. end
  369. p:remove()
  370. end))
  371. end
  372. end
  373. function blocks(part,avg,cols)
  374. for i=1, math.random(1,3) do
  375. local s = (avg*1.4)*100
  376. local s2 = (avg/5)*100
  377. local size = math.random(s2,s)/100
  378. local p = Instance.new("Part",me.Character)
  379. local pos = p.CFrame
  380. local pos2 = pos * CFrame.new(0,12,-15)
  381. local pos3 = pos2 * CFrame.new(0,-12,-12)
  382. local bv = Instance.new("BodyPosition",p)
  383. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  384. bv.position = pos2.p
  385. local bg = Instance.new("BodyGyro",p)
  386. bg.cframe = CFrame.new(pos.p,pos3.p)
  387. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  388. bg.P = 30000
  389. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  390. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  391. coroutine.resume(coroutine.create(function()
  392. for i=p.Transparency, 1, 0.2 do
  393. wait(0.15)
  394. p.Transparency = i
  395. local cf = p.CFrame
  396. p.Size = Vector3.new(size,size,size)
  397. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  398. size = size - 0.2
  399. end
  400. p:remove()
  401. end))
  402. end
  403. end
  404. function blading(part,color)
  405. local p = Instance.new("Part",me.Character)
  406. prop(p,me.Character,false,0.4,0,0.2,1.4,3.8,color,true,"Custom")
  407. p.CFrame = part.CFrame
  408. coroutine.resume(coroutine.create(function()
  409. for i=p.Transparency, 1, 0.04 do
  410. wait()
  411. p.Transparency = i
  412. end
  413. p:remove()
  414. end))
  415. end
  416. function spikes(part,color)
  417. local p = Instance.new("Part",me.Character)
  418. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  419. p.CFrame = part.CFrame * CFrame.new(0,-3,0)
  420. local mww = Instance.new("SpecialMesh")
  421. mesh(mww,p,6,5,6,"FileMesh")
  422. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  423. fade(p,mww,0.55,p.Transparency,0.08)
  424. end
  425. function spikes2(part,color)
  426. local p = Instance.new("Part",me.Character)
  427. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  428. p.CFrame = part.CFrame * CFrame.new(0,0,6) * CFrame.Angles(math.pi/2,0,0)
  429. local mww = Instance.new("SpecialMesh")
  430. mesh(mww,p,8,7,8,"FileMesh")
  431. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  432. fade(p,mww,0.55,p.Transparency,0.06)
  433. end
  434. function bal(part,color,dist)
  435. local p = Instance.new("Part",me.Character)
  436. prop(p,me.Character,false,0.4,0,1,1,1,color,true,"Custom")
  437. p.CFrame = part.CFrame
  438. local mww = Instance.new("SpecialMesh")
  439. mesh(mww,p,dist,dist,dist,"Sphere")
  440. fade(p,mww,3,p.Transparency,0.06)
  441. end
  442. --Kill function----------------------Kill function----------------------Kill function--------------------
  443. function blast(dmg,part,crit)
  444. local randomposx = math.random(-30,30)
  445. local randomposy = math.random(-50,-10)
  446. local bil = Instance.new("BillboardGui",part)
  447. bil.Adornee = bil.Parent
  448. bil.Size = UDim2.new(0,110,0,70)
  449. local img = Instance.new("ImageLabel",bil)
  450. img.Size = UDim2.new(1,0,1,0)
  451. img.Image = "http://www.roblox.com/asset/?id=42621332"
  452. img.Position = UDim2.new(0,randomposx,0,randomposy)
  453. img.BackgroundTransparency = 1
  454. local txt = Instance.new("TextLabel",img)
  455. txt.Size = UDim2.new(1,0,1,0)
  456. txt.BackgroundTransparency = 1
  457. txt.Text = dmg
  458. txt.TextColor3 = Color3.new(0,0,0)
  459. txt.FontSize = "Size18"
  460. if crit then
  461. img.Image = "http://www.roblox.com/asset/?id=42621315"
  462. txt.FontSize = "Size24"
  463. txt.TextColor3 = Color3.new(0.6,0,0)
  464. end
  465. coroutine.resume(coroutine.create(function()
  466. wait(0.2)
  467. for i=1, math.random(30,50) do
  468. img.Position = UDim2.new(0,randomposx,0,randomposy)
  469. randomposy = randomposy - 4
  470. wait()
  471. end
  472. bil:remove()
  473. end))
  474. end
  475. deb = true
  476. function kill(hit,mod)
  477. if deb and attack and hit.Parent.Name ~= name then
  478. local ch = hit.Parent
  479. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  480. deb = false
  481. local dm = math.random(0,avgdmg*2)
  482. local cri = false
  483. local cripro = math.random(1,criticalchance)
  484. if cripro == 1 then
  485. cri = true
  486. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  487. end
  488. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  489. blast(dm,ch.Head,cri)
  490. if cri then
  491. coroutine.resume(coroutine.create(function()
  492. local lol = math.random(1,plat)
  493. if lol == 1 then
  494. ch["Humanoid"].PlatformStand = true
  495. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  496. wait(0.9)
  497. ch["Humanoid"].PlatformStand = false
  498. if mod == true then
  499. ch.Torso.RotVelocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  500. ch.Torso.Velocity = Vector3.new(math.random(-30,30),math.random(15,70),math.random(-30,30))
  501. end
  502. end
  503. end))
  504. end
  505. wait(dela)
  506. deb = true
  507. end
  508. end
  509. end
  510. function ris(hit,mod)
  511. if deb and attack and hit.Parent.Name ~= name then
  512. local ch = hit.Parent
  513. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  514. deb = false
  515. local dm = math.random(0,avgdmg*2)
  516. local cri = false
  517. local cripro = math.random(1,criticalchance)
  518. if cripro == 1 then
  519. cri = true
  520. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  521. end
  522. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  523. blast(dm,ch.Head,cri)
  524. if cri then
  525. coroutine.resume(coroutine.create(function()
  526. local lol = math.random(1,plat)
  527. if lol == 1 then
  528. ch["Humanoid"].PlatformStand = true
  529. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  530. wait(0.9)
  531. ch["Humanoid"].PlatformStand = false
  532. if mod == true then
  533. ch.Torso.RotVelocity = Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  534. ch.Torso.Velocity = Vector3.new(math.random(-100,100),math.random(105,170),math.random(-100,100))
  535. end
  536. end
  537. end))
  538. end
  539. wait(dela)
  540. deb = true
  541. end
  542. end
  543. end
  544. blade3.Touched:connect(kill)
  545. blade4.Touched:connect(kill)
  546. blade2.Touched:connect(kill)
  547. blade1.Touched:connect(kill)
  548. blade5.Touched:connect(kill)
  549. blade5.Touched:connect(ris)
  550. ----Attacks----------------------Attacks----------------------Attacks----------------------Attacks------------------
  551. -- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  552. -- blading(blade2,"Bright red")
  553. function att()
  554. attacking = true
  555. for i=1,8 do
  556. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  557. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  558. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  559. wait()
  560. end
  561. slash:play()
  562. wait(0.13)
  563. attack = true
  564. for i=1,6 do
  565. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  566. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  567. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  568. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  569. wait()
  570. end
  571. attack = false
  572. wait(0.08)
  573. for i=1,3 do
  574. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  575. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  576. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  577. wait()
  578. end
  579. rw.C0 = rightfight
  580. lw.C0 = leftfight
  581. neck.C1 = neor
  582. weaponweld.C0 = CFrame.new(0,0,0)
  583. attacking = false
  584. end
  585. function stab()
  586. attacking = true
  587. for i=1,8 do
  588. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  589. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  590. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  591. wait()
  592. end
  593. slash:play()
  594. avgdmg = 15
  595. criticalchance = 95
  596. wait(0.13)
  597. attack = true
  598. for i=1,6 do
  599. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,-0.44,-0.8) * CFrame.new(0,0,0)
  600. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  601. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  602. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  603. bal(blade5,"Tr. Blue",25)
  604. wait()
  605. end
  606. attack = false
  607. wait(0.08)
  608. for i=1,3 do
  609. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  610. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  611. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  612. blocks(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  613. bal(blade5,"Tr. Blue",25)
  614. wait()
  615. end
  616. rw.C0 = rightfight
  617. lw.C0 = leftfight
  618. neck.C1 = neor
  619. weaponweld.C0 = CFrame.new(0,0,0)
  620. attacking = false
  621. end
  622. function attas()
  623. attacking = true
  624. local pos = torso.CFrame
  625. local pos2 = pos * CFrame.new(0,12,-15)
  626. local pos3 = pos2 * CFrame.new(0,-12,-12)
  627. for i=1,6 do
  628. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  629. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  630. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  631. spikes(torso,"Light blue")
  632. spikes2(torso,"Bright blue")
  633. bal(torso,"Tr. Blue",25)
  634. wait()
  635. end
  636. slash:play()
  637. avgdmg = 15
  638. criticalchance = 65
  639. wait(0.13)
  640. attack = true
  641. local bv = Instance.new("BodyPosition",torso)
  642. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  643. bv.position = pos2.p
  644. local bg = Instance.new("BodyGyro",torso)
  645. bg.cframe = CFrame.new(pos.p,pos3.p)
  646. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  647. bg.P = 30000
  648. for i=1,6 do
  649. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.54,0.08,0) * CFrame.new(0,0,0)
  650. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,0) * CFrame.new(0,0,0)
  651. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.24,0,0)
  652. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  653. wait()
  654. end
  655. attack = false
  656. wait(0.08)
  657. for i=1,3 do
  658. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  659. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  660. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  661. wait()
  662. end
  663. rw.C0 = rightfight
  664. lw.C0 = leftfight
  665. bv:remove()
  666. bg:remove()
  667. neck.C1 = neor
  668. weaponweld.C0 = CFrame.new(0,0,0)
  669. attacking = false
  670. end
  671. function spin()
  672. attacking = true
  673. hum.WalkSpeed = 0
  674. for i=1,7 do
  675. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  676. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  677. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  678. wait()
  679. end
  680. spi:play()
  681. wait(0.3)
  682. spi:play()
  683. dela = 0.1
  684. avgdmg = 6
  685. criticalchance = 12
  686. local bv = Instance.new("BodyVelocity",torso)
  687. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  688. bv.velocity = torso.CFrame.lookVector * 22
  689. local bav = Instance.new("BodyAngularVelocity",torso)
  690. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  691. bav.angularvelocity = Vector3.new(0,36,0)
  692. bav.P = 15000
  693. attack = true
  694. for i=1, 30 do
  695. wait()
  696. spikes(torso,"Medium blue")
  697. end
  698. bv:remove()
  699. bav:remove()
  700. hum.WalkSpeed = normal
  701. attack = false
  702. avgdmg = normdmg
  703. for i=1,5 do
  704. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  705. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  706. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  707. wait()
  708. end
  709. dela = 0.4
  710. rw.C0 = rightfight
  711. lw.C0 = leftfight
  712. neck.C1 = neor
  713. weaponweld.C0 = CFrame.new(0,0,0)
  714. attacking = false
  715. criticalchance = normchance
  716. end
  717. function spins()
  718. attacking = true
  719. hum.WalkSpeed = 0
  720. for i=1,7 do
  721. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  722. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  723. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  724. bal(torso,"Tr. Blue",25)
  725. wait()
  726. end
  727. spi:play()
  728. wait(0.3)
  729. spi:play()
  730. dela = 0.1
  731. avgdmg = 6
  732. criticalchance = 12
  733. local bv = Instance.new("BodyVelocity",torso)
  734. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  735. bv.velocity = torso.CFrame.lookVector * 22
  736. local bav = Instance.new("BodyAngularVelocity",torso)
  737. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  738. bav.angularvelocity = Vector3.new(0,36,0)
  739. bav.P = 15000
  740. attack = true
  741. for i=1, 30 do
  742. wait()
  743. spikes(torso,"Medium blue")
  744. end
  745. bv:remove()
  746. bav:remove()
  747. hum.WalkSpeed = normal
  748. attack = false
  749. avgdmg = normdmg
  750. for i=1,5 do
  751. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  752. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  753. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  754. wait()
  755. end
  756. dela = 0.4
  757. rw.C0 = rightfight
  758. lw.C0 = leftfight
  759. neck.C1 = neor
  760. weaponweld.C0 = CFrame.new(0,0,0)
  761. attacking = false
  762. criticalchance = normchance
  763. end
  764. function rise()
  765. attacking = true
  766. local pos = torso.CFrame
  767. local pos2 = pos * CFrame.new(0,5,-15)
  768. local pos3 = pos2 * CFrame.new(0,-3,-12)
  769. hum.WalkSpeed = 0
  770. for i=1,7 do
  771. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  772. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  773. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  774. bal(torso,"Tr. Blue",25)
  775. wait()
  776. end
  777. spi:play()
  778. wait(0.3)
  779. spi:play()
  780. dela = 0.1
  781. avgdmg = 6
  782. criticalchance = 12
  783. local bv = Instance.new("BodyPosition",torso)
  784. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  785. bv.position = pos2.p
  786. local bg = Instance.new("BodyGyro",torso)
  787. bg.cframe = CFrame.new(pos.p,pos3.p)
  788. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  789. bg.P = 30000
  790. attack = true
  791. for i=1, 30 do
  792. wait()
  793. spikes2(torso,"Medium blue")
  794. end
  795. bv:remove()
  796. bg:remove()
  797. hum.WalkSpeed = normal
  798. attack = false
  799. avgdmg = normdmg
  800. for i=1,5 do
  801. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  802. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  803. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  804. wait()
  805. end
  806. dela = 0.4
  807. rw.C0 = rightfight
  808. lw.C0 = leftfight
  809. neck.C1 = neor
  810. weaponweld.C0 = CFrame.new(0,0,0)
  811. attacking = false
  812. criticalchance = normchance
  813. end
  814. function sprint()
  815. attacking = true
  816. hum.WalkSpeed = 0
  817. local pos = torso.CFrame
  818. local pos2 = pos * CFrame.new(0,12,-15)
  819. local pos3 = pos2 * CFrame.new(0,-12,-12)
  820. for i=1,6 do
  821. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  822. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  823. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  824. wait()
  825. end
  826. avgdmg = 14
  827. local bv = Instance.new("BodyPosition",torso)
  828. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  829. bv.position = pos2.p
  830. local bg = Instance.new("BodyGyro",torso)
  831. bg.cframe = CFrame.new(pos.p,pos3.p)
  832. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  833. bg.P = 30000
  834. for i=1, 7 do
  835. wait()
  836. spikes2(torso,"Medium blue")
  837. end
  838. wait(0.1)
  839. coroutine.resume(coroutine.create(function()
  840. for i=1, 17 do
  841. wait()
  842. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  843. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  844. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  845. end
  846. end))
  847. coroutine.resume(coroutine.create(function()
  848. for i=0.4, 5.3,0.07 do
  849. wait(0.04)
  850. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  851. end
  852. end))
  853. charge:play()
  854. coroutine.resume(coroutine.create(function()
  855. wait(2.5)
  856. for i=1, 11 do
  857. wait()
  858. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  859. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  860. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  861. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  862. end
  863. end))
  864. criticalchance = 1
  865. plat = 1
  866. dela = 0
  867. wait(3.8)
  868. boom:play()
  869. attack = true
  870. coroutine.resume(coroutine.create(function()
  871. for i=1, 5 do
  872. wait()
  873. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  874. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  875. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  876. end
  877. end))
  878. bv.position = pos3.p
  879. for i=1, 7 do
  880. wait()
  881. spikes2(torso,"Medium blue")
  882. end
  883. coroutine.resume(coroutine.create(function()
  884. for i=1, 12 do
  885. wait()
  886. bal(blade5,"Medium blue",splashdist*2)
  887. end
  888. end))
  889. local parts = getcharparts(workspace)
  890. for _,v in pairs(parts) do
  891. if (v.Position - blade5.Position).magnitude < 14 then
  892. kill(v,true)
  893. end
  894. end
  895. wait(0.3)
  896. attack = false
  897. bv:remove()
  898. bg:remove()
  899. hum.WalkSpeed = normal
  900. avgdmg = normdmg
  901. rw.C0 = rightfight
  902. lw.C0 = leftfight
  903. neck.C1 = neor
  904. weaponweld.C0 = CFrame.new(0,0,0)
  905. attacking = false
  906. criticalchance = normchance
  907. plat = 2
  908. end
  909. function sprint2()
  910. attacking = true
  911. hum.WalkSpeed = 0
  912. local pos = torso.CFrame
  913. local pos2 = pos * CFrame.new(0,15,-15)
  914. local pos3 = pos2 * CFrame.new(0,-13,-12)
  915. for i=1,6 do
  916. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  917. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  918. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  919. wait()
  920. end
  921. avgdmg = 14
  922. local bv = Instance.new("BodyPosition",torso)
  923. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  924. bv.position = pos2.p
  925. local bg = Instance.new("BodyGyro",torso)
  926. bg.cframe = CFrame.new(pos.p,pos3.p)
  927. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  928. bg.P = 30000
  929. for i=1, 4 do
  930. wait()
  931. spikes2(torso,"Medium blue")
  932. spikes2(torso,"Light blue")
  933. spikes2(torso,"Bright blue")
  934. end
  935. wait(0.1)
  936. coroutine.resume(coroutine.create(function()
  937. for i=1, 34 do
  938. wait()
  939. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  940. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  941. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  942. end
  943. end))
  944. coroutine.resume(coroutine.create(function()
  945. for i=0.4, 5.3,0.07 do
  946. wait(0.04)
  947. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  948. end
  949. end))
  950. charge:play()
  951. coroutine.resume(coroutine.create(function()
  952. wait(2.5)
  953. for i=1, 11 do
  954. wait()
  955. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  956. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  957. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  958. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  959. end
  960. end))
  961. criticalchance = 1
  962. plat = 1
  963. dela = 0
  964. wait(3.8)
  965. boom:play()
  966. attack = true
  967. coroutine.resume(coroutine.create(function()
  968. for i=1, 5 do
  969. wait()
  970. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  971. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  972. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  973. end
  974. end))
  975. bv.position = pos3.p
  976. for i=1, 7 do
  977. wait()
  978. spikes2(torso,"Medium blue")
  979. end
  980. coroutine.resume(coroutine.create(function()
  981. for i=1, 12 do
  982. wait()
  983. bal(blade5,"Medium blue",splashdist*2)
  984. end
  985. end))
  986. local parts = getcharparts(workspace)
  987. for _,v in pairs(parts) do
  988. if (v.Position - blade5.Position).magnitude < 14 then
  989. kill(v,true)
  990. end
  991. end
  992. wait(0.3)
  993. attack = false
  994. bv:remove()
  995. bg:remove()
  996. hum.WalkSpeed = normal
  997. avgdmg = normdmg
  998. rw.C0 = rightfight
  999. lw.C0 = leftfight
  1000. neck.C1 = neor
  1001. weaponweld.C0 = CFrame.new(0,0,0)
  1002. attacking = false
  1003. criticalchance = normchance
  1004. plat = 2
  1005. end
  1006. function combo()
  1007. att()
  1008. attas()
  1009. sprint()
  1010. spin()
  1011. end
  1012. function run()
  1013. spin()
  1014. spin()
  1015. spin()
  1016. end
  1017. function rush()
  1018. attacking = true
  1019. for i=1,8 do
  1020. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  1021. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  1022. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  1023. wait(0.1)
  1024. end
  1025. slash:play()
  1026. wait(0.13)
  1027. attack = true
  1028. local bv = Instance.new("BodyVelocity",torso)
  1029. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1030. bv.velocity = torso.CFrame.lookVector * 220
  1031. local bav = Instance.new("BodyAngularVelocity",torso)
  1032. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1033. bav.angularvelocity = Vector3.new(0,36,0)
  1034. bav.P = 15000
  1035. for i=1,6 do
  1036. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  1037. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  1038. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  1039. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1040. wait()
  1041. end
  1042. attack = false
  1043. wait(0.08)
  1044. for i=1,3 do
  1045. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  1046. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  1047. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  1048. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1049. wait()
  1050. end
  1051. rw.C0 = rightfight
  1052. lw.C0 = leftfight
  1053. bv:remove()
  1054. bav:remove()
  1055. neck.C1 = neor
  1056. weaponweld.C0 = CFrame.new(0,0,0)
  1057. attacking = false
  1058. end
  1059. function masta()
  1060. attacking = true
  1061. for i=1,8 do
  1062. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  1063. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  1064. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  1065. bal(torso,"Tr. Blue",25)
  1066. spikes2(torso,"Medium blue")
  1067. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1068. wait(0.1)
  1069. end
  1070. slash:play()
  1071. avgdmg = 37
  1072. criticalchance = 125
  1073. wait(0.13)
  1074. attack = true
  1075. local bv = Instance.new("BodyVelocity",torso)
  1076. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1077. bv.velocity = torso.CFrame.lookVector * 220
  1078. local bav = Instance.new("BodyAngularVelocity",torso)
  1079. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1080. bav.angularvelocity = Vector3.new(0,36,0)
  1081. bav.P = 15000
  1082. for i=1,6 do
  1083. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  1084. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  1085. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  1086. bal(torso,"Tr. Blue",25)
  1087. spikes2(torso,"Medium blue")
  1088. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1089. wait()
  1090. end
  1091. attack = false
  1092. wait(0.08)
  1093. for i=1,3 do
  1094. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  1095. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  1096. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  1097. bal(torso,"Tr. Blue",25)
  1098. spikes2(torso,"Medium blue")
  1099. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1100. wait()
  1101. end
  1102. rw.C0 = rightfight
  1103. lw.C0 = leftfight
  1104. bv:remove()
  1105. bav:remove()
  1106. neck.C1 = neor
  1107. weaponweld.C0 = CFrame.new(0,0,0)
  1108. attacking = false
  1109. end
  1110. if script.Parent.className ~= "HopperBin" then
  1111. local h = Instance.new("HopperBin",me.Backpack)
  1112. h.Name = "SoulSword"
  1113. script.Parent = h
  1114. end
  1115. local bin = script.Parent
  1116. function sel(mouse)
  1117. neck.C1 = neor
  1118. if (selected == false) then
  1119. selectmotion()
  1120. end
  1121. mouse.Button1Down:connect(function()
  1122. if (attacking == false) then
  1123. att()
  1124. end
  1125. end)
  1126. mouse.KeyDown:connect(function(kuu)
  1127. local kai = kuu:lower()
  1128. if attacking == false then
  1129. if (kai == "q") then
  1130. spin()
  1131. elseif (kai == "e") then
  1132. att()
  1133. elseif (kai == "r") then
  1134. sprint()
  1135. elseif (kai == "l") then
  1136. stab()
  1137. elseif (kai == "t") then
  1138. attas()
  1139. elseif (kai == "z") then
  1140. masta()
  1141. elseif (kai == "y") then
  1142. spins()
  1143. elseif (kai == "g") then
  1144. combo()
  1145. elseif (kai == "p") then
  1146. rise()
  1147. elseif (kai == "j") then
  1148. sprint2()
  1149. elseif (kai == "h") then
  1150. run()
  1151. elseif (kai == "f") then
  1152. rush()
  1153. end
  1154. end
  1155. end)
  1156. while selected do
  1157. wait(0.8)
  1158. local k = math.random(1,5)
  1159. if k == 1 then
  1160. if hum.Health < 50 then
  1161. for i=1, math.random(4,24) do
  1162. wait(0.1)
  1163. local col = healcols[math.random(1,#healcols)]
  1164. local sa = math.random(30,90)/100
  1165. local p = Instance.new("Part")
  1166. prop(p,me.Character,false,0.1,0.05,1,1,1,col,false,"Symmetric")
  1167. p.CFrame = CFrame.new(torso.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100) * CFrame.new(0,0,math.random(4,12))
  1168. local mes = Instance.new("SpecialMesh")
  1169. mesh(mes,p,sa,sa,sa,"Sphere")
  1170. local bg = Instance.new("BodyPosition",p)
  1171. bg.maxForce = Vector3.new(1000000,1000000,1000000)
  1172. bg.P = 100000
  1173. bg.position = torso.Position
  1174. coroutine.resume(coroutine.create(function()
  1175. repeat
  1176. bg.position = torso.Position
  1177. wait()
  1178. until (p.Position - torso.Position).magnitude < 1.8
  1179. hum.Health = hum.Health + 1.2
  1180. p:remove()
  1181. end))
  1182. end
  1183. end
  1184. end
  1185. end
  1186. end
  1187. function desel()
  1188. neck.C1 = neor
  1189. if selected then
  1190. deselmotion()
  1191. end
  1192. end
  1193. bin.Selected:connect(sel)
  1194. bin.Deselected:connect(desel)
  1195. --LEGO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement