Advertisement
aidanthescriptor101

light sabor

Jan 13th, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.63 KB | None | 0 0
  1. Players = game:GetService("Players")
  2. Player = Players.GINGIEHD
  3. Bp = Player.Backpack
  4. Pg = Player.PlayerGui
  5. Char = Player.Character
  6. Head = Char.Head
  7. Torso = Char.Torso
  8. Hum = Char.Humanoid
  9. Humanoid = Hum
  10. Neck = Torso["Neck"]
  11. LS = Torso["Left Shoulder"]
  12. RS = Torso["Right Shoulder"]
  13. Ra = Char["Right Arm"]
  14. La = Char["Left Arm"]
  15. mouse = nil
  16. Mouse = nil
  17.  
  18. bets =
  19. {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," "}
  20. inew = Instance.new
  21. it = Instance.new
  22. bc = BrickColor.new
  23. vn = Vector3.new
  24. cn = CFrame.new
  25. ca = CFrame.Angles
  26. mpi = math.pi
  27. v3 = vn
  28. mr = math.rad
  29. br = BrickColor.new
  30. cf = CFrame.new
  31. ca = CFrame.Angles
  32. Colors = {"Really Red"}
  33. BladeColor = tostring(BrickColor.Random()) --Colors[math.random(1,#Colors)]
  34. TrailColor = BladeColor
  35. HopperName = "light saber"
  36. Rage = 100000
  37. MaxRage = Rage
  38. SwordType = "Single"
  39. LeftDebounce = {}
  40. RightDebounce = {}
  41. OtherDebounce = {}
  42. Anim = {key = {}}
  43. for i=1,#bets do table.insert(Anim.key,bets) end
  44. Anim.Move = "None"
  45. Anim.Click = false
  46. Anim.Button = false
  47. Anim.CanBerserk = 0
  48. Anim.ComboBreak = false
  49. Anim.Equipped = false
  50. keydown = false
  51. Speed = 2
  52. RageIncome = 500
  53. Left = false
  54. Right = false
  55. Anim.Act = false
  56. RealSpeed = 35
  57. DebounceSpeed = 0.85/Speed
  58. RageCost = {
  59. ["Berserk"] = 200;
  60. ["RotorBlade"] = 30;
  61. ["Blocking"] = 0.1;
  62. ["Boomerang"] = 30;
  63. ["RageRegening"] = -0.7;
  64. ["BoulderForce"] = 45;
  65. ["ForceWave"] = 65;
  66. ["ForceWave"] = 32;
  67. ["Teleport"] = 25;
  68. ["DualSpin"] = 4;
  69. }
  70. MagnitudeHit = {
  71. ["ForceWave"] = 500;
  72. }
  73. Damage = {
  74. ["RotorBlade"] = 8;
  75. ["BoulderForce"] = 100;
  76. ["Boomerang"] = 100;
  77. ["ForceWave"] = 100;
  78. ["DualSpin"] = 5;
  79. }
  80. Props = {}
  81. Props.MaxTeleDistance = 500
  82. Props.Buff = 1
  83. BlastMesh = Instance.new("FileMesh")
  84. BlastMesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  85. RingMesh = Instance.new("FileMesh")
  86. RingMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  87. RockMesh = Instance.new("FileMesh")
  88. RockMesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  89. RockMesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
  90. DiamondMesh = Instance.new("FileMesh")
  91. DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  92. RingMesh = Instance.new("FileMesh")
  93. RingMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  94. RockMesh = Instance.new("FileMesh")
  95. RockMesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  96. RockMesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
  97. DiamondMesh = Instance.new("FileMesh")
  98. DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  99. RockMesh = Instance.new("FileMesh")
  100. RockMesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  101. RockMesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
  102. DiamondMesh = Instance.new("FileMesh")
  103. DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  104. DiamondMesh = Instance.new("FileMesh")
  105. DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  106.  
  107. function rayCast(Pos, Dir, Max, Ignore)
  108. return Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  109. end
  110. function MinusRage(raggge)
  111. Rage = Rage - raggge
  112. if Rage < 0 then Rage = 0 end
  113. end
  114.  
  115. function r(zParent,zName)
  116. if zParent:findFirstChild(zName) ~= nil then
  117. zParent[zName]:Remove()
  118. else
  119. end
  120. end
  121. function rclass(zParent,zClass)
  122. local ch = zParent:GetChildren()
  123. for i=1,#ch do
  124. if (ch.className == zClass) then
  125. ch:Remove()
  126. else
  127. end
  128. end
  129. end
  130.  
  131. function fWeld(zName,zParent,zPart0,zPart1,zCoco,a,b,c,d,e,f)
  132. local funcw = Instance.new("Weld")
  133. funcw.Name = zName
  134. funcw.Parent = zParent
  135. funcw.Part0 = zPart0
  136. funcw.Part1 = zPart1
  137. if (zCoco == true) then
  138. funcw.C0 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f)
  139. else
  140. funcw.C1 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f)
  141. end
  142. return funcw
  143. end
  144. function Dash(ob,se,mes,of)
  145. local off = nil
  146. if of == nil then off = 0 else off = of end
  147. pcall(function()
  148. coroutine.resume(coroutine.create(function()
  149. local dashin = true
  150. local oldpos = (ob.CFrame *CFrame.new(0,off,0)).p
  151. coroutine.resume(coroutine.create(function()
  152. wait(se) dashin = false end))
  153. for i=1,9999 do
  154. if dashin == false then break end
  155. local newpos = (ob.CFrame *CFrame.new(0,off,0)).p --+ Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  156. local np = Instance.new("Part")
  157. np.BrickColor = BrickColor.new(TrailColor) np.CanCollide = false
  158. np.BottomSurface = 0 np.TopSurface = 0 np.Anchored = true np.Transparency = 0.4
  159. np.formFactor = "Custom" np.Parent = ob local mag = math.abs((newpos - oldpos).magnitude)
  160. local mp = nil
  161. if mes ~= nil then
  162. np.Size = Vector3.new(2,mag,2) mp = Instance.new("FileMesh",np) mp.MeshId = mes else
  163. np.Size = Vector3.new(0.4,0.4,mag) mp = Instance.new("BlockMesh",np) end
  164. np.CFrame = CFrame.new(newpos,oldpos)
  165. np.CFrame = np.CFrame + np.CFrame.lookVector* (mag/2)
  166. if mes == BlastMesh.MeshId then np.CFrame = np.CFrame *ca(mr(-90),0,0) else np.CFrame = np.CFrame *ca(0,0,mr(-45)) end
  167. oldpos = newpos
  168. coroutine.resume(coroutine.create(function()
  169. for i=1,0,-0.1 do
  170. np.Transparency = np.Transparency + 0.03
  171. --if mes ~= nil then
  172. --mp.Scale = Vector3.new(i,mag,i) else
  173. mp.Scale = Vector3.new(i,i,1) -- end
  174. wait()
  175. end
  176. np:Remove()
  177. end))
  178. wait(0.08)
  179. end
  180. end))
  181. end)
  182. end
  183. Sounds = {
  184. Boom = "http://www.roblox.com/asset/?id=16976189";
  185. SniperFire = "http://www.roblox.com/asset/?id=1369158";
  186. ShotgunFire2 = "http://www.roblox.com/asset/?id=1868836";
  187. MinigunFire = "http://www.roblox.com/asset/?id=2692806";
  188. MinigunCharge = "http://www.roblox.com/asset/?id=2692844";
  189. MinigunDischarge = "http://www.roblox.com/asset/?id=1753007";
  190. Flashbang = "http://www.roblox.com/asset/?id=16976189";
  191. Beep = "http://www.roblox.com/asset/?id=15666462";
  192. Smash = "http://www.roblox.com/asset/?id=2801263";
  193. Punch = "http://www.roblox.com/asset/?id=31173820";
  194. Slash = "rbxasset://sounds/swordslash.wav";
  195. Falcon = "http://www.roblox.com/asset/?id=1387390";
  196. Cast = "http://www.roblox.com/asset/?id=2101137";
  197. Spin = "http://www.roblox.com/asset/?id=1369159";
  198. Abscond = "http://www.roblox.com/asset/?id=2767090";
  199. ElectricalCharge = "http://www.roblox.com/asset/?id=2800815";
  200. FireExplosion = "http://www.roblox.com/asset/?id=3264793";
  201. SaberLightUp = "http://www.roblox.com/asset/?id=10209303";
  202. SaberSlash = "http://www.roblox.com/asset/?id=10209280";
  203. SaberHit = "http://www.roblox.com/asset/?id=44463749";
  204. EnergyBlast = "http://www.roblox.com/asset/?id=10209268";
  205. }
  206. function Sound(sid,pit,vol)
  207. local ss = Instance.new("Sound")
  208. ss.Name = "Sound"
  209. ss.Parent = Head
  210. ss.SoundId = sid
  211. ss.Pitch = pit
  212. ss.Volume = vol
  213. ss.PlayOnRemove = true
  214. wait()
  215. ss:Remove()
  216. end
  217.  
  218.  
  219. r(Char,"SwordPack")
  220. r(Char,"Suit")
  221. r(Char,"Saber" ..Player.Name)
  222. r(Pg,"Sabers")
  223. Suit = inew("Model")
  224. Suit.Name = "Suit"
  225. Suit.Parent = Char
  226. function p(pa,sh,x,y,z,c,a,tr,re,bc)
  227. local fp = it("Part",pa)
  228. fp.formFactor = "Custom"
  229. fp.Shape = sh
  230. fp.Size = v3(x,y,z)
  231. fp.CanCollide = c
  232. fp.Anchored = a
  233. fp.BrickColor = br(bc)
  234. fp.Transparency = tr
  235. fp.Reflectance = re
  236. fp.BottomSurface = 0
  237. fp.TopSurface = 0
  238. fp.CFrame = Torso.CFrame
  239. fp:BreakJoints()
  240. return fp
  241. end
  242. function weld(pa,p0,p1,x,y,z,a,b,c)
  243. local fw = it("Weld",pa)
  244. fw.Part0 = p0
  245. fw.Part1 = p1
  246. fw.C0 = cf(x,y,z) *ca(a,b,c)
  247. return fw
  248. end
  249. function ft(tab,nam)
  250. if tab == nil or nam == nil then print("U: Fail table") return false end
  251. for i=1,#tab do
  252. if tab == nam then
  253. return i
  254. else
  255. end
  256. end
  257. return nil
  258. end
  259. function spm(ty,pa,ssx,ssy,ssz)
  260. local sp = it("SpecialMesh",pa)
  261. sp.MeshType = ty
  262. sp.Scale = Vector3.new(ssx,ssy,ssz)
  263. return sp
  264. end
  265. Torso.Transparency = 1
  266. Torm = Instance.new("Model",Char)
  267. Torm.Name = "Saber" ..Player.Name
  268. Tor = p(Torm,"Block",1.98,1.98,1,false,false,0,0,"basda") Tor.Name = "Torso"
  269. Torw = weld(Tor,Torso,Tor,0,0,0,0,0,0)
  270. pcall(function() Char.Shirt:Clone().Parent = Torm end)
  271. pcall(function() Char.Pants:Clone().Parent = Torm end)
  272. function ShockWave(onb,scale,col)
  273. coroutine.resume(coroutine.create(function()
  274. local e1 = Instance.new("Part")
  275. e1.Anchored = true
  276. e1.formFactor = "Custom"
  277. e1.CanCollide = false
  278. e1.Size = Vector3.new(1,1,1)
  279. e1.BrickColor = BrickColor.new(col)
  280. e1.Transparency = 0.6
  281. e1.TopSurface = 0
  282. e1.BottomSurface = 0
  283. e1.Parent = Torm
  284. e1.CFrame = onb.CFrame
  285. e1.CFrame = e1.CFrame *CFrame.Angles(math.rad(-90),0,0)
  286. local e1m = Instance.new("SpecialMesh")
  287. e1m.MeshType = "FileMesh"
  288. e1m.Scale = Vector3.new(3,3,3)
  289. e1m.Parent = e1
  290. e1m.MeshId = RingMesh.MeshId
  291. local r1 = Instance.new("Part")
  292. r1.Anchored = true
  293. r1.formFactor = "Custom"
  294. r1.CanCollide = false
  295. r1.Size = Vector3.new(1,1,1)
  296. r1.BrickColor = BrickColor.new(col)
  297. r1.Transparency = 0.6
  298. r1.TopSurface = 0
  299. r1.BottomSurface = 0
  300. r1.Parent = Torm
  301. r1.CFrame = e1.CFrame *CFrame.Angles(math.rad(90),0,0)
  302. local r1m = Instance.new("SpecialMesh")
  303. r1m.MeshType = "FileMesh"
  304. r1m.Scale = Vector3.new(3,3,3)
  305. r1m.Parent = r1
  306. r1m.MeshId = BlastMesh.MeshId
  307. for i=1,30 do
  308. local pluscal = scale/38
  309. e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  310. r1m.Scale = r1m.Scale + Vector3.new(pluscal/1.5,pluscal/3,pluscal/1.5)
  311. r1.CFrame = r1.CFrame * CFrame.Angles(0,math.rad(6),0)
  312. wait()
  313. end
  314. for i=1,30 do
  315. local pluscal = scale/38
  316. e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  317. r1m.Scale = r1m.Scale + Vector3.new(pluscal/1.5,pluscal/4,pluscal/1.5)
  318. r1.CFrame = r1.CFrame * CFrame.Angles(0,math.rad(6),0)
  319. e1.Transparency = e1.Transparency + 0.1
  320. r1.Transparency = r1.Transparency + 0.1
  321. wait()
  322. end
  323. e1:Remove()
  324. r1:Remove()
  325. end))
  326. end
  327.  
  328. function Explode(onb,scale,col)
  329. coroutine.resume(coroutine.create(function()
  330. local e1 = Instance.new("Part")
  331. e1.Anchored = true
  332. e1.formFactor = "Custom"
  333. e1.CanCollide = false
  334. e1.Size = Vector3.new(1,1,1)
  335. e1.BrickColor = BrickColor.new(col)
  336. e1.Transparency = 0.6
  337. e1.TopSurface = 0
  338. e1.BottomSurface = 0
  339. e1.Parent = Torm
  340. e1.CFrame = onb.CFrame
  341. local e1m = Instance.new("SpecialMesh")
  342. e1m.MeshType = "Sphere"
  343. e1m.Parent = e1
  344. local r1 = Instance.new("Part")
  345. r1.Anchored = true
  346. r1.formFactor = "Custom"
  347. r1.CanCollide = false
  348. r1.Size = Vector3.new(1,1,1)
  349. r1.BrickColor = BrickColor.new(col)
  350. r1.Transparency = 0.6
  351. r1.TopSurface = 0
  352. r1.BottomSurface = 0
  353. r1.Parent = Torm
  354. r1.CFrame = e1.CFrame *CFrame.Angles(math.rad(180),0,0)
  355. local r1m = Instance.new("SpecialMesh")
  356. r1m.MeshType = "FileMesh"
  357. r1m.Scale = Vector3.new(3,3,3)
  358. r1m.Parent = r1
  359. r1m.MeshId = RingMesh.MeshId
  360. local r2 = Instance.new("Part")
  361. r2.Anchored = true
  362. r2.formFactor = "Custom"
  363. r2.CanCollide = false
  364. r2.Size = Vector3.new(1,1,1)
  365. r2.BrickColor = BrickColor.new(col)
  366. r2.Transparency = 0.6
  367. r2.TopSurface = 0
  368. r2.BottomSurface = 0
  369. r2.Parent = Torm
  370. r2.CFrame = e1.CFrame *CFrame.Angles(0,math.rad(180),0)
  371. local r2m = Instance.new("SpecialMesh")
  372. r2m.MeshType = "FileMesh"
  373. r2m.Parent = r2
  374. r2m.Scale = Vector3.new(3,3,3)
  375. r2m.MeshId = RingMesh.MeshId
  376. local bla = Instance.new("Part")
  377. bla.Anchored = true
  378. bla.formFactor = "Custom"
  379. bla.CanCollide = false
  380. bla.Size = Vector3.new(1,1,1)
  381. bla.BrickColor = BrickColor.new(col)
  382. bla.Transparency = 0.6
  383. bla.TopSurface = 0
  384. bla.BottomSurface = 0
  385. bla.Parent = Torm
  386. bla.CFrame = CFrame.new(e1.Position.x,e1.Position.y,e1.Position.z)
  387. local blam = Instance.new("SpecialMesh")
  388. blam.MeshType = "FileMesh"
  389. blam.Parent = bla
  390. blam.Scale = Vector3.new(5,5,5)
  391. blam.MeshId = BlastMesh.MeshId
  392. for i=1,30 do
  393. local pluscal = scale/38
  394. e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  395. r1m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  396. r2m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  397. blam.Scale = blam.Scale + Vector3.new(pluscal,pluscal/2,pluscal)
  398. bla.CFrame = bla.CFrame * CFrame.Angles(0,math.rad(12),0)
  399. r1.CFrame = r1.CFrame * CFrame.Angles(math.rad(6),0,0)
  400. r2.CFrame = r2.CFrame * CFrame.Angles(0,math.rad(6),0)
  401. wait()
  402. end
  403. for i=1,30 do
  404. local pluscal = scale/38
  405. e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  406. r1m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  407. r2m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  408. blam.Scale = blam.Scale + Vector3.new(pluscal/1.5,pluscal/3,pluscal/1.5)
  409. bla.CFrame = bla.CFrame * CFrame.Angles(0,math.rad(12),0)
  410. r1.CFrame = r1.CFrame * CFrame.Angles(math.rad(6),0,0)
  411. r2.CFrame = r2.CFrame * CFrame.Angles(0,math.rad(6),0)
  412. bla.Transparency = bla.Transparency + 0.1
  413. e1.Transparency = e1.Transparency + 0.1
  414. r1.Transparency = r1.Transparency + 0.1
  415. r2.Transparency = r2.Transparency + 0.1
  416. wait()
  417. end
  418. e1:Remove()
  419. r1:Remove()
  420. r2:Remove()
  421. end))
  422. end
  423. H1 = p(Torm,"Block",0.5,0.9,0.5,false,false,0,0.1,"Medium stone grey") spm("Head",H1,1,1.3,1)
  424. H1w = weld(Tor,Torso,H1,0.4,-0.7,0.5,0,0,mr(45))
  425. H2 = p(Torm,"Block",0.5,0.9,0.5,false,false,0,0.1,"Medium stone grey") spm("Head",H2,1,1.3,1)
  426. H2w = weld(Tor,H1,H2,0,-0.8,0,mr(180),0,0)
  427. Des1 = p(Torm,"Block",0.6,0.1,0.6,false,false,0,0.1,"Black") Instance.new("CylinderMesh",Des1)
  428. Des1w = weld(Tor,H1,Des1,0,0.5,0,0,0,0)
  429. Des2 = p(Torm,"Block",0.6,0.1,0.6,false,false,0,0.1,"Black") Instance.new("CylinderMesh",Des2)
  430. Des2w = weld(Tor,H2,Des2,0,0.5,0,0,0,0)
  431. Des21 = p(Torm,"Block",0.6,0.1,0.6,false,false,0,0.1,"Black") Des21m = Instance.new("CylinderMesh",Des21) Des21m.Scale = Vector3.new(1,0.6,1)
  432. Des21w = weld(Tor,H1,Des21,0,-0.55,0,0,0,0)
  433. Des22 = p(Torm,"Block",0.6,0.1,0.6,false,false,0,0.1,"Black") Des22m = Instance.new("CylinderMesh",Des22) Des22m.Scale = Vector3.new(1,0.6,1)
  434. Des22w = weld(Tor,H2,Des22,0,-0.55,0,0,0,0)
  435.  
  436. Blad1 = p(Torm,"Block",0.3,4,0.3,false,false,1,0.25,BladeColor) M1 = spm("Head",Blad1,1,1,1)
  437. Blad1w = weld(Tor,H1,Blad1,0,1.9,0,0,0,0)
  438. Blad2 = p(Torm,"Block",0.3,4,0.3,false,false,1,0.25,BladeColor) M2 = spm("Head",Blad2,1,1,1)
  439. Blad2w = weld(Tor,H2,Blad2,0,1.9,0,0,0,0)
  440. Glow1 = p(Torm,"Block",0.47,4.2,0.47,false,false,1,0,BladeColor) GM1 = spm("Head",Glow1,1,1,1)
  441. Glow1w = weld(Tor,H1,Glow1,0,1.9,0,0,0,0)
  442. Glow2 = p(Torm,"Block",0.47,4.2,0.47,false,false,1,0,BladeColor) GM2 = spm("Head",Glow2,1,1,1)
  443. Glow2w = weld(Tor,H2,Glow2,0,1.9,0,0,0,0)
  444.  
  445. r(Bp,HopperName)
  446. bin = inew("HopperBin")
  447. bin.Name = HopperName
  448. bin.Parent = Bp
  449.  
  450. Gui = Instance.new("ScreenGui",Pg)
  451. Gui.Name = "Sabers"
  452. Frame = Instance.new("Frame",Gui)
  453. Frame.BackgroundTransparency = 1 Frame.Size = UDim2.new(1,0,1,0)
  454. ImageGui = Instance.new("ImageLabel",Frame)
  455. ImageGui.Image = "http://www.roblox.com/asset/?id=51262246"
  456. ImageGui.BackgroundTransparency = 1
  457. ImageGui.Size = UDim2.new(0.3,0,0.075,0)
  458. HealthBar = Instance.new("ImageLabel",Frame)
  459. HealthBar.Image = "http://www.roblox.com/asset/?id=48965808"
  460. HealthBar.BorderSizePixel = 0
  461. HealthBar.Size = UDim2.new(0.23,0,0.017,0)
  462. HealthBar.Position = UDim2.new(0.06,0,0.017,0)
  463. RageBar = Instance.new("ImageLabel",Frame)
  464. RageBar.Image = "http://www.roblox.com/asset/?id=48965808"
  465. RageBar.BorderSizePixel = 0
  466. RageBar.Size = UDim2.new(0.165,0,0.012,0)
  467. RageBar.Position = UDim2.new(0.06,0,0.04,0)
  468. RageBar.BackgroundColor3 = BrickColor.new("Alder").Color
  469. SelectBar = Instance.new("ImageButton",Frame)
  470. SelectBar.Image = "http://www.roblox.com/asset/?id=48965808"
  471. SelectBar.BorderSizePixel = 0
  472. SelectBar.Size = UDim2.new(0.1,0,0.07,0)
  473. SelectBar.Position = UDim2.new(0.8,0,0.6,0)
  474. SelectBar.BackgroundColor3 = BrickColor.new(BladeColor).Color
  475. SelectrBar = Instance.new("TextLabel",SelectBar)
  476. SelectrBar.BackgroundTransparency = 1
  477. SelectrBar.BorderSizePixel = 0
  478. SelectrBar.Size = UDim2.new(0,0,0,0)
  479. SelectrBar.Position = UDim2.new(0.5,0,0.5,0)
  480. SelectrBar.Font = "ArialBold"
  481. SelectrBar.FontSize = "Size18"
  482. SelectBar.MouseButton1Up:connect(function()
  483. if Anim.Move ~= "None" then return end
  484. if Anim.Act == true then return end
  485. if Anim.Equipped == false then return end
  486. if SwordType == "Single" then
  487. Anim.Move = "Changing"
  488. Anims.ChangeToDual(0,1,0.065*Speed) SwordType = "Dual"
  489. Anim.Move = "None"
  490. else
  491. Anim.Move = "Changing"
  492. Anims.ChangeToSingle(0,1,0.065*Speed) SwordType = "Single"
  493. Anim.Move = "None"
  494. end
  495. end)
  496. coroutine.resume(coroutine.create(function()
  497. while true do
  498. wait(0.05)
  499. local hh = Hum.Health local hmh = Hum.MaxHealth
  500. HealthBar.Size = UDim2.new((hh/hmh)*0.23,0,0.017,0)
  501. if ((hh/hmh)*100) > 75 then
  502. HealthBar.BackgroundColor3 = BrickColor.new("Alder").Color
  503. elseif ((hh/hmh)*100) > 25 and ((hh/hmh)*100) < 76 then
  504. HealthBar.BackgroundColor3 = BrickColor.new("Deep orange").Color
  505. elseif ((hh/hmh)*100) < 26 then
  506. HealthBar.BackgroundColor3 = BrickColor.new("Bright red").Color
  507. end
  508. RageBar.Size = UDim2.new((Rage/MaxRage)*0.165,0,0.012,0)
  509. SelectrBar.Text = SwordType
  510. end
  511. end))
  512. -------
  513. function TellXPos(brick1,posd)
  514. local lb = p(nil,"Block",1,1,1,true,false,1,0.1,BladeColor)
  515. lb.CFrame = CFrame.new((brick1.CFrame *cf(-10,0,0)).p)
  516. local rb = p(nil,"Block",1,1,1,true,false,1,0.1,BladeColor)
  517. rb.CFrame = CFrame.new((brick1.CFrame *cf(10,0,0)).p)
  518. local posml = math.abs((posd - rb.Position).magnitude)
  519. local posmr = math.abs((posd - lb.Position).magnitude)
  520. if posml > posmr then
  521. return "left"
  522. else
  523. return "right"
  524. end
  525. end
  526. function GetNearPlayer(urpos,maxmag)
  527. if maxmag == nil then return nil end
  528. for i,v in pairs(game.Players:GetChildren()) do
  529. if v.Character ~= Char and v.Character ~= nil and v.Character:findFirstChild("Torso") ~= nil and math.abs((v.Character.Torso.Position-urpos).magnitude) < maxmag then
  530. return v.Character.Torso
  531. end
  532. end
  533. return nil
  534. end
  535. function Dmgz(hum,dmg)
  536. dmg = dmg*Props.Buff
  537. hum.Health = hum.Health - dmg
  538. Rage = Rage + ((dmg/1.25)*RageIncome)
  539. if Rage > MaxRage then Rage = MaxRage end
  540. end
  541. coroutine.resume(coroutine.create(function()
  542. while true do
  543. wait()
  544. if Right == true and Anim.Move == "ForceWave" then
  545. for i,v in pairs(workspace:GetChildren()) do
  546. coroutine.resume(coroutine.create(function()
  547. if v ~= Char and v ~= nil and v:findFirstChild("Torso") ~= nil and math.abs((v.Torso.Position-Blad2.Position).magnitude) < MagnitudeHit[Anim.Move] then
  548. local hit = v.Torso
  549. if hit ~= nil and hit.Parent:findFirstChild("Humanoid") ~= nil and ft(RightDebounce,hit.Parent.Name) == nil then
  550. Dmgz(hit.Parent.Humanoid,Damage[Anim.Move])
  551. table.insert(RightDebounce,hit.Parent.Name)
  552. wait(DebounceSpeed) local nf = ft(RightDebounce,hit.Parent.Name) if nf ~= nil then table.remove(RightDebounce,nf) end
  553. end
  554. else
  555. if v:IsA("BasePart") and v.Anchored == false and math.abs((v.Position-Blad2.Position).magnitude) < MagnitudeHit[Anim.Move] then v:BreakJoints() v.Velocity = cf(Blad2.Position,v.Position).lookVector*30 + Vector3.new(0,20,0) end
  556. end
  557. end))
  558. end -- for
  559. end
  560. end
  561. end))
  562. Blad1.Touched:connect(function(hit)
  563. if Left == true then
  564. if hit ~= nil and hit.Parent:findFirstChild("Humanoid") ~= nil and ft(LeftDebounce,hit.Parent.Name) == nil then
  565. coroutine.resume(coroutine.create(function()
  566. table.insert(LeftDebounce,hit.Parent.Name)
  567. wait(DebounceSpeed) local nf = ft(LeftDebounce,hit.Parent.Name) if nf ~= nil then table.remove(LeftDebounce,nf) end
  568. end))
  569. Sound(Sounds.SaberHit,1,1)
  570. Dmgz(hit.Parent.Humanoid,Damage[Anim.Move])
  571. else
  572. --if hit.Parent:findFirstChild("Humanoid") == nil and not hit:IsDescendantOf(Char) and hit.Anchored == false then hit:BreakJoints() hit.Velocity = cf(Blad1.Position,hit.Position).lookVector*30 end
  573. end
  574. end
  575. end)
  576.  
  577. Blad2.Touched:connect(function(hit)
  578. if Right == true then
  579. if hit ~= nil and hit.Parent:findFirstChild("Humanoid") ~= nil and ft(RightDebounce,hit.Parent.Name) == nil then
  580. coroutine.resume(coroutine.create(function()
  581. table.insert(RightDebounce,hit.Parent.Name)
  582. wait(DebounceSpeed) local nf = ft(RightDebounce,hit.Parent.Name) if nf ~= nil then table.remove(RightDebounce,nf) end
  583. end))
  584. Sound(Sounds.SaberHit,1,1)
  585. Dmgz(hit.Parent.Humanoid,Damage[Anim.Move])
  586. else
  587. --if hit.Parent:findFirstChild("Humanoid") == nil and not hit:IsDescendantOf(Char) and hit.Anchored == false then hit:BreakJoints() hit.Velocity = cf(Blad2.Position,hit.Position).lookVector*30 end
  588. end
  589. end
  590. end)
  591. LW = inew("Weld")
  592. RW = inew("Weld")
  593. Fla = p(Torm,"Block",1,2,1,false,false,1,0,BladeColor)
  594. Fra = p(Torm,"Block",1,2,1,false,false,1,0,BladeColor)
  595. Flaw = fWeld("Weld",Fla,Tor,Fla,true,-1.5,0.5,0,0,0,0)
  596. Fraw = fWeld("Weld",Fla,Tor,Fra,true,1.5,0.5,0,0,0,0)
  597. Flaw.C1 = CFrame.new(0,0.5,0)
  598. Fraw.C1 = CFrame.new(0,0.5,0)
  599.  
  600. Fll = p(Torm,"Block",1,2,1,false,false,1,0,BladeColor)
  601. Frl = p(Torm,"Block",1,2,1,false,false,1,0,BladeColor)
  602. Fllw = fWeld("Weld",Fll,Torso,Fll,true,0,0,0,0,0,0)
  603. Frlw = fWeld("Weld",Fll,Torso,Frl,true,0,0,0,0,0,0)
  604.  
  605. function FeetWeld(yesorno,lhh,rhh)
  606. if yesorno == false then
  607. lhh.Parent = nil
  608. rhh.Parent = nil
  609. Lh.Parent = Torso
  610. Rh.Parent = Torso
  611. Lh.Part0 = Tor
  612. Rh.Part0 = Tor
  613. Lh.Part1 = Char["Left Leg"]
  614. Rh.Part1 = Char["Right Leg"]
  615. return Lh,Rh
  616. else
  617. Rh.Parent = nil
  618. Lh.Parent = nil
  619. local hl,hr = it("Weld",Torso),it("Weld",Torso)
  620. hl.Part0 = Fll
  621. hr.Part0 = Frl
  622. hl.Part1 = Char["Left Leg"]
  623. hr.Part1 = Char["Right Leg"]
  624. hr.C1 = cf(-0.5,1.75,0)
  625. hl.C1 = cf(0.5,1.75,0)
  626. return hl,hr
  627. end
  628. end
  629. Anims = {}
  630. Anims.Equip = function(i1,i2,is)
  631. Anim.Act = true
  632. for i=i1,i2,is do
  633. RW.C1 = ca(mr(40*i),mr(20*i),0)
  634. RW.C0 = cf(-0.4*i,-0.1*i,0.4*i)
  635. wait()
  636. end
  637. H1w.Part0 = Ra
  638. H1w.Part1 = H1
  639. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(180),0) H1w.C1 = ca(mr(-90),0,0)
  640. Sound(Sounds.Slash,1,1)
  641. for i=i1,i2,is do
  642. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(90+(270*i)),0)
  643. LW.C1 = ca(mr(-80*i),mr(40*i),0)
  644. LW.C0 = cf(0.6*i,0.3*i,-1*i)
  645. RW.C1 = ca(mr(40+(-120*i)),mr(20+(-60*i)),0)
  646. RW.C0 = cf(-0.4+(-0.2*i),-0.1+(0.4*i),0.4+(-1.4*i))
  647. wait()
  648. end
  649. Sound(Sounds.SaberLightUp,3,1)
  650. for i=i1,i2,is do
  651. Blad1w.C0 = cf(0,0.95+(0.95*i),0)
  652. Blad2w.C0 = cf(0,0.95+(0.95*i),0)
  653. M1.Scale = Vector3.new(1,1*i,1)
  654. M2.Scale = Vector3.new(1,1*i,1)
  655. Blad1.Transparency = 0.9-(1*i)
  656. Blad2.Transparency = 0.9-(1*i)
  657. Glow1w.C0 = cf(0,0.95+(0.95*i),0)
  658. Glow2w.C0 = cf(0,0.95+(0.95*i),0)
  659. GM1.Scale = Vector3.new(1,1*i,1)
  660. GM2.Scale = Vector3.new(1,1*i,1)
  661. Glow1.Transparency = 1.05-(0.5*i)
  662. Glow2.Transparency = 1.05-(0.5*i)
  663. wait()
  664. end
  665. Anim.Act = false
  666. end
  667. Anims.UnEquip = function(i1,i2,is)
  668. Anim.Act = true
  669. Sound(Sounds.SaberLightUp,3,1)
  670. for i=i1,i2,is do
  671. Blad1w.C0 = cf(0,0.95+(0.95*i),0)
  672. Blad2w.C0 = cf(0,0.95+(0.95*i),0)
  673. M1.Scale = Vector3.new(1,1*i,1)
  674. M2.Scale = Vector3.new(1,1*i,1)
  675. Blad1.Transparency = 0.9-(1*i)
  676. Blad2.Transparency = 0.9-(1*i)
  677. Glow1w.C0 = cf(0,0.95+(0.95*i),0)
  678. Glow2w.C0 = cf(0,0.95+(0.95*i),0)
  679. GM1.Scale = Vector3.new(1,1*i,1)
  680. GM2.Scale = Vector3.new(1,1*i,1)
  681. Glow1.Transparency = 1.05-(0.5*i)
  682. Glow2.Transparency = 1.05-(0.5*i)
  683. wait()
  684. end
  685. Sound(Sounds.Slash,1,1)
  686. for i=i1,i2,is do
  687. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(90+(270*i)),0)
  688. LW.C1 = ca(mr(-80*i),mr(40*i),0)
  689. LW.C0 = cf(0.6*i,0.3*i,-1*i)
  690. RW.C1 = ca(mr(40+(-120*i)),mr(20+(-60*i)),0)
  691. RW.C0 = cf(-0.4+(-0.2*i),-0.1+(0.4*i),0.4+(-1.4*i))
  692. wait()
  693. end
  694. H1w.Part0 = Torso
  695. H1w.Part1 = H1
  696. H1w.C0 = cf(0.4,-0.7,0.5) *ca(0,0,mr(45))
  697. H1w.C1 = cf(0,0,0) *ca(0,0,0)
  698. for i=i1,i2,is do
  699. RW.C1 = ca(mr(40*i),mr(20*i),0)
  700. RW.C0 = cf(-0.4*i,-0.1*i,0.4*i)
  701. wait()
  702. end
  703. Anim.Act = false
  704. end
  705. Anims.ChangeToDual = function(i1,i2,is)
  706. Anim.Act = true
  707. for i=i1,i2,is*Speed do
  708. H1w.C0 = cf(0,-1.1,0) *ca(mr(-80*i),mr(50*i),0)
  709. wait()
  710. end
  711. Sound(Sounds.SaberHit,1,1)
  712. Sound(Sounds.SaberLightUp,2,0.5)
  713. H1w.Part0 = La
  714. H1w.Part1 = H1
  715. H2w.Part0 = Ra
  716. H2w.Part1 = H2
  717. H2w.C1 = ca(mr(-90),0,0)
  718. for i=i1,i2,is*Speed do
  719. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(-90+(-90*i)),mr(20+(-20*i)))
  720. H2w.C0 = cf(0,-1.1,0) *ca(0,mr(90+(90*i)),mr(-35+(-35*i)))
  721. LW.C1 = ca(mr(-80+(20*i)),mr(40+(-70*i)),0)
  722. LW.C0 = cf(0.6+(-0.6*i),0.3+(-0.3*i),-1+(0.5*i))
  723. RW.C1 = ca(mr(-80+(20*i)),mr(-40+(70*i)),0)
  724. RW.C0 = cf(-0.6+(0.6*i),0.3+(-0.3*i),-1+(0.5*i))
  725. wait()
  726. end
  727. Anim.Act = false
  728. end
  729. Anims.ChangeToSingle = function(i1,i2,is)
  730. Anim.Act = true
  731. for i=i2,i1,-is*Speed do
  732. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(-90+(-90*i)),mr(20+(-20*i)))
  733. H2w.C0 = cf(0,-1.1,0) *ca(0,mr(90+(90*i)),mr(-35+(-35*i)))
  734. LW.C1 = ca(mr(-80+(20*i)),mr(40+(-70*i)),0)
  735. LW.C0 = cf(0.6+(-0.6*i),0.3+(-0.3*i),-1+(0.5*i))
  736. RW.C1 = ca(mr(-80+(20*i)),mr(-40+(70*i)),0)
  737. RW.C0 = cf(-0.6+(0.6*i),0.3+(-0.3*i),-1+(0.5*i))
  738. wait()
  739. end
  740. H1w.Part0 = Ra
  741. H1w.Part1 = H1
  742. H2w.Part0 = H1
  743. H2w.Part1 = H2
  744. H2w.C1 = ca(0,0,0)
  745. H2w.C0 = cf(0,-0.8,0) *ca(mr(180),0,0)
  746. Sound(Sounds.SaberLightUp,2,0.5)
  747. Sound(Sounds.SaberHit,1,1)
  748. for i=i2,i1,-is*Speed do
  749. H1w.C0 = cf(0,-1.1,0) *ca(mr(-80*i),mr(50*i),0)
  750. wait()
  751. end
  752. Anim.Act = false
  753. end
  754. Anims.RotorBlade = function(i1,i2,is,RaigCost)
  755. local lolpos = (Torso.Position - mouse.hit.p).unit
  756. local allx = (lolpos.y*80)-10
  757. local ally = (((mouse.X-(mouse.ViewSizeX/2))/mouse.ViewSizeX)*1.8)*-90
  758. Anim.Act = true
  759. for i=i1,i2,is do
  760. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(40+(-40*i)),0)
  761. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(90*i),0)
  762. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(-40+(40*i)),0)
  763. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(((-90)+ally)*i),0)
  764. Torw.C1 = ca(0,mr(-90*i),0)
  765. wait()
  766. end
  767. DebounceSpeed = DebounceSpeed - (0.5*Speed)
  768. Hum.WalkSpeed = Hum.WalkSpeed + (8*Speed)
  769. Left = true
  770. Right = true
  771. Dash(Blad1,2/Speed,nil,2)
  772. Dash(Blad2,2/Speed,nil,2)
  773. H1w.C0 = cf(0,-1.1,0) *ca(0,0,0) H1w.C1 = cf(0,-0.4,0) *ca(mr(-90),0,0)
  774. local soundtime = 0
  775. for i=i1,i2*4,is do
  776. if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end
  777. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(360*i),0)
  778. wait()
  779. end
  780. H1w.C0 = cf(0,-1.1,0) *ca(0,0,0) H1w.C1 = cf(0,0,0) *ca(mr(-90),0,0)
  781. DebounceSpeed = DebounceSpeed + (0.5*Speed)
  782. Hum.WalkSpeed = Hum.WalkSpeed - (8*Speed)
  783. Left = false
  784. Right = false
  785. for i=i2,i1,-is do
  786. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(40+(-40*i)),0)
  787. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(90*i),0)
  788. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(-40+(40*i)),0)
  789. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(((-90)+ally)*i),0)
  790. Torw.C1 = ca(0,mr(-90*i),0)
  791. wait()
  792. end
  793. Torw.C1 = ca(0,0,0)
  794. Anim.Act = false
  795. end
  796. -------
  797. Anims.Boomerang = function(i1,i2,is,RaigCost)
  798. MinusRage(RaigCost)
  799. local lolpos = (Head.Position - mouse.hit.p).unit
  800. local allx = (lolpos.y*80)-10
  801. Anim.Act = true
  802. for i=i1,i2,is do
  803. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(40+(-40*i)),0)
  804. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(60*i),0)
  805. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(-40+(40*i)),0)
  806. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-60*i),0)
  807. Torw.C1 = ca(0,mr(-60*i),0)
  808. H1w.C0 = cf(0,-1.1,0) *ca(mr(80*i),0,0)
  809. wait()
  810. end
  811. DebounceSpeed = DebounceSpeed - (0.5*Speed)
  812. Left = true
  813. Right = true
  814. Dash(Blad1,3.8/Speed,nil,2)
  815. Dash(Blad2,3.8/Speed,nil,2)
  816. H1w.C0 = cf(0,-1.1,0) *ca(0,0,0) H1w.C1 = cf(0,-0.4,0) *ca(mr(-90),0,0)
  817. local soundtime = 0
  818. for i=i1,i2,is/2 do
  819. if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end
  820. H1w.C0 = cf(10*i,-1.1+(-15*i),0) *ca(mr(90),mr(720*i),0)
  821. wait()
  822. end
  823. for i=i1,i2,is/2 do
  824. if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end
  825. H1w.C0 = cf(10+(-20*i),-16.1,0) *ca(mr(90),mr(720*i),0)
  826. wait()
  827. end
  828. for i=i1,i2,is/2 do
  829. if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end
  830. H1w.C0 = cf(-10+(10*i),-16.1+(15*i),0) *ca(mr(90),mr(720*i),0)
  831. wait()
  832. end
  833. H1w.C0 = cf(0,-1.1,0) *ca(0,0,0) H1w.C1 = cf(0,0,0) *ca(mr(-90),0,0)
  834. DebounceSpeed = DebounceSpeed + (0.5*Speed)
  835. Left = false
  836. Right = false
  837. for i=i2,i1,-is do
  838. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(40+(-40*i)),0)
  839. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(60*i),0)
  840. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(-40+(40*i)),0)
  841. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-60*i),0)
  842. Torw.C1 = ca(0,mr(-60*i),0)
  843. H1w.C0 = cf(0,-1.1,0) *ca(mr(80*i),0,0)
  844. wait()
  845. end
  846. Torw.C1 = ca(0,0,0)
  847. Anim.Act = false
  848. end
  849. Anims.BoulderForce = function(i1,i2,is,RaigCost)
  850. MinusRage(RaigCost)
  851. Anim.Act = true
  852. for i=i1,i2,is do
  853. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(40+(-40*i)),0)
  854. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(50*i),0)
  855. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(-40+(40*i)),0)
  856. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-50*i),0)
  857. Torw.C1 = ca(0,mr(50*i),0)
  858. wait()
  859. end
  860. local bould = p(workspace,"Block",4,4,8,true,true,0,0,"Medium stone grey") bould.Name = "Boulder" bould.Material = "Concrete"
  861. local rm = RockMesh:Clone() rm.Scale = Vector3.new(3,3,4.8) rm.Parent = bould
  862. bould.Elasticity = 0 bould.Friction = 2 bould.CFrame = cf(Torso.Position.x+(math.random(-14,14)),Torso.Position.y-5,Torso.Position.z+(math.random(-14,14))) *CFrame.Angles(math.random(-33,33)/10,math.random(-33,33)/10,math.random(-33,33)/10)
  863. local warpdes = true
  864. local bpos = bould.Position
  865. Sound(Sounds.Cast,0.95,0.8)
  866. coroutine.resume(coroutine.create(function() repeat Functions.BrickWarpDesign(bould,9) wait() until warpdes == false end))
  867. for i=0,1,0.08 do bould.CFrame = CFrame.new(bpos.x,bpos.y,bpos.z) + Vector3.new(0,20*i,0) wait() end wait(1) bould.CFrame = CFrame.new(bpos.x,bpos.y+20,bpos.z) bould.CFrame = cf(bould.Position,mouse.hit.p)
  868. bould.Anchored = false wait() bould.Velocity = bould.CFrame.lookVector *(math.random(180,350)) bould.Touched:connect(function(hit) Functions.BoulderTouch(hit,bould) end)
  869. wait(0.5)
  870. warpdes = false
  871. game.Debris:AddItem(bould,10)
  872. for i=i2,i1,-is do
  873. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(40+(-40*i)),0)
  874. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(50*i),0)
  875. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(-40+(40*i)),0)
  876. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-50*i),0)
  877. Torw.C1 = ca(0,mr(50*i),0)
  878. wait()
  879. end
  880. Torw.C1 = ca(0,0,0)
  881. Anim.Act = false
  882. end
  883. Anims.ForceWave = function(i1,i2,is,RaigCost)
  884. local Hit, hitpos = rayCast(Torso.Position,((Torso.Position - Vector3.new(0,10000,0)) - Torso.Position),999.999,Player.Character)
  885. if Hit == nil then Anim.Act = false return end
  886. MinusRage(RaigCost)
  887. Anim.Act = true
  888. lh2,rh2 = FeetWeld(true,Lh,Rh)
  889. local bp2 = Instance.new("BodyPosition",Torso)
  890. bp2.maxForce = Vector3.new(0,math.huge,0)
  891. Humanoid.WalkSpeed = Humanoid.WalkSpeed - (RealSpeed-4)
  892. DebounceSpeed = DebounceSpeed + (1.1*Speed)
  893. bp2.position = Torso.Position + Vector3.new(0,25,0)
  894. Dash(Blad1,2.5/Speed)
  895. Dash(Blad2,2.5/Speed)
  896. local wav = p(Torm,"Block",0.1,0.1,0.1,true,false,0.3,0,BladeColor) wav.Anchored = true
  897. local wavm = BlastMesh:Clone()
  898. wavm.Parent = wav
  899. wavm.Scale = Vector3.new(15,6,15)
  900. local cff = Torso.CFrame - Vector3.new(0,0,0)
  901. coroutine.resume(coroutine.create(function()
  902. Dash(Blad1,4/Speed)
  903. Dash(Blad2,4/Speed)
  904. for i=i1,i2,is*Speed do
  905. LW.C1 = ca(mr(-80+(-100*i)),mr(40-(40*i)),mr(45*i))
  906. LW.C0 = cf(0.6,0.3+(1.4*i),-1+(1*i))
  907. RW.C1 = ca(mr(-80+(-100*i)),mr(-40+(40*i)),mr(-45*i))
  908. RW.C0 = cf(-0.6,0.3+(1.4*i),-1+(1*i))
  909. lh2.C1 = ca(mr(30*i),0,mr(15*i))
  910. rh2.C1 = ca(mr(30*i),0,mr(-15*i))
  911. lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
  912. rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
  913. H1w.C0 = cf(0,-1.1+(-0.9*i),0) *ca(0,mr(360*i),0)
  914. H1w.C1 = ca(mr(-90+(40*i)),0,0)
  915. wait()
  916. end for i=i1,i2*3,is*Speed do H1w.C1 = ca(mr(-50),mr(360*i),0) wait() end end)) Sound(Sounds.Cast,0.45,1) for i=i1,i2*5,is do Functions.BrickWarpDesign(Torso,13) wav.CFrame = cff *ca(0,mr(180*i),0) wait() end
  917. for i=1,0.3,-0.14*Speed do wav.Transparency = i wait() end wav:Remove()
  918. for i=i2,i1,-is*Speed do
  919. LW.C1 = ca(mr(-80+(-100*i)),mr(40-(40*i)),mr(45*i))
  920. LW.C0 = cf(0.6,0.3+(1.4*i),-1+(1*i))
  921. RW.C1 = ca(mr(-80+(-100*i)),mr(-40+(40*i)),mr(-45*i))
  922. RW.C0 = cf(-0.6,0.3+(1.4*i),-1+(1*i))
  923. lh2.C1 = ca(mr(30*i),0,mr(15*i))
  924. rh2.C1 = ca(mr(30*i),0,mr(-15*i))
  925. lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
  926. rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
  927. H1w.C0 = cf(0,-1.1+(-0.9*i),0) *ca(0,mr(360*i),0)
  928. H1w.C1 = ca(mr(-90+(40*i)),0,0)
  929. wait()
  930. end
  931. bp2:Remove()
  932. local bg = Instance.new("BodyGyro",Torso) bg.maxTorque = Vector3.new(math.huge,0,math.huge)
  933. local bp = Instance.new("BodyPosition",Torso) bp.position = Torso.Position bp.maxForce = Vector3.new(math.huge,1000000,math.huge)
  934. rpos = math.abs(hitpos.y - Torso.Position.y)
  935. rpos = rpos - 1.2
  936. local tpos = Torso.Position
  937. Hum.WalkSpeed = 0
  938. Hum.PlatformStand = true
  939. Dash(Blad2,1.6/Speed,RingMesh.MeshId)
  940. for i=i1,i2,is do
  941. bp.position = tpos - Vector3.new(0,rpos*i,0)
  942. Neck.C0 = cf(0,1-(0.5*i),-0.5*i) *ca(Neck.C1:toEulerAnglesXYZ())
  943. Torw.C1 = ca(mr(20*i),0,0)
  944. Torw.C0 = cf(0,-0.2*i,-0.2*i)
  945. lh2.C0 = cf(-0.5,-1.9+(1*i),-1.1*i) *ca(mr(10*i),mr(90),0)
  946. rh2.C0 = cf(0.5,-1.9+(1*i),0.1*i) *ca(mr(-95*i),mr(-90),0)
  947. LW.C1 = ca(mr(-80+(30*i)),mr(40),0)
  948. LW.C0 = cf(0.6,0.3-(0.3*i),-1+(0.3*i))
  949. RW.C1 = ca(mr(-80+(30*i)),mr(-40),0)
  950. RW.C0 = cf(-0.6,0.3-(0.3*i),-1+(0.3*i))
  951. H1w.C0 = cf(0,-1.1,0) *ca(mr(55*i),0,0)
  952. wait()
  953. end
  954. wait(0.25)
  955. Sound(Sounds.Boom,0.5,1)
  956. Sound(Sounds.EnergyBlast,0.9,1)
  957. Right = true
  958. ShockWave(Torso,50,BladeColor)
  959. wait(1.5)
  960. Right = false
  961. local t2pos = Torso.Position
  962. for i=i2,i1,-is do
  963. bp.position = t2pos - Vector3.new(0,1.5-(1.5*i),0)
  964. Neck.C0 = cf(0,1-(0.5*i),-0.5*i) *ca(Neck.C1:toEulerAnglesXYZ())
  965. Torw.C1 = ca(mr(20*i),0,0)
  966. Torw.C0 = cf(0,-0.2*i,-0.2*i)
  967. lh2.C0 = cf(-0.5,-1.9+(1*i),-1.1*i) *ca(mr(10*i),mr(90),0)
  968. rh2.C0 = cf(0.5,-1.9+(1*i),0.1*i) *ca(mr(-95*i),mr(-90),0)
  969. LW.C1 = ca(mr(-80+(30*i)),mr(40),0)
  970. LW.C0 = cf(0.6,0.3-(0.3*i),-1+(0.3*i))
  971. RW.C1 = ca(mr(-80+(30*i)),mr(-40),0)
  972. RW.C0 = cf(-0.6,0.3-(0.3*i),-1+(0.3*i))
  973. H1w.C0 = cf(0,-1.1,0) *ca(mr(55*i),0,0)
  974. wait()
  975. end
  976. DebounceSpeed = DebounceSpeed - (1.1*Speed)
  977. bp:Remove()
  978. bg:Remove()
  979. Hum.PlatformStand = false
  980. Hum.WalkSpeed = RealSpeed
  981. Torw.C1 = ca(0,0,0)
  982. Anim.Act = false
  983. Lh,Rh = FeetWeld(false,lh2,rh2)
  984. end
  985. Anims.DualSpin = function(i1,i2,is,RaigCost)
  986. MinusRage(RaigCost)
  987. Anim.Act = true
  988. for i=i1,i2,is*Speed do
  989. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(-180-(-90*i)),mr(0*i)) H1w.C1 = ca(mr(-90-(60*i)),0,mr(0*i))
  990. H2w.C0 = cf(0,-1.1,0) *ca(0,mr(180-(270*i)),mr(0*i)) H2w.C1 = ca(mr(-90+(-30*i)),0,0)
  991. LW.C1 = ca(mr(-60+(-40*i)),mr(-30+(-75*i)),mr(0*i))
  992. LW.C0 = cf(0.13*i,0.5*i,-0.5+(0.5*i))
  993. RW.C1 = ca(mr(-60+(-20*i)),mr(30+(45*i)),mr(0*i))
  994. RW.C0 = cf(0.13*i,0.4*i,-0.5+(0.4*i))
  995. wait()
  996. end
  997. DebounceSpeed = DebounceSpeed - (0.5*Speed) Right = true Left = true Dash(Blad1,2.6/Speed,nil,2) Dash(Blad2,2.6/Speed,nil,2) local x,y,z = Neck.C0:toEulerAnglesXYZ()
  998. local soundtime = 0
  999. for i=i1,i2*4,is*Speed do if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end Torw.C1 = ca(0,mr(i*360),0) Neck.C0 = cf(0,1,0) *ca(x,y,z+mr(-360*i)) wait() end Neck.C0 = cf(0,1,0) *ca(x,y,z)Torw.C1 = ca(0,0,0)
  1000. DebounceSpeed = DebounceSpeed + (0.5*Speed) for i=i2,i1,-is*Speed do
  1001. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(-180-(-90*i)),mr(0*i)) H1w.C1 = ca(mr(-90-(60*i)),0,mr(0*i))
  1002. H2w.C0 = cf(0,-1.1,0) *ca(0,mr(180-(270*i)),mr(0*i)) H2w.C1 = ca(mr(-90+(-30*i)),0,0)
  1003. LW.C1 = ca(mr(-60+(-40*i)),mr(-30+(-75*i)),mr(0*i))
  1004. LW.C0 = cf(0.13*i,0.5*i,-0.5+(0.5*i))
  1005. RW.C1 = ca(mr(-60+(-20*i)),mr(30+(45*i)),mr(0*i))
  1006. RW.C0 = cf(0.13*i,0.4*i,-0.5+(0.4*i))
  1007. wait()
  1008. end Right = false Left = false
  1009. Anim.Act = false
  1010. end
  1011.  
  1012. ----------------------------
  1013. ----------------------------
  1014. ----------------------------
  1015. ----------------------------
  1016.  
  1017. Lh = Torso["Left Hip"]
  1018. Rh = Torso["Right Hip"]
  1019.  
  1020. Functions = {}
  1021. Functions.BoulderTouch = function(hit2,bould)
  1022. print(bould.Name)
  1023. for i,v in pairs(workspace:GetChildren()) do
  1024. if v ~= Char and v ~= nil and v:findFirstChild("Torso") ~= nil and v:findFirstChild("Humanoid") ~= nil then
  1025. if math.abs((v.Torso.Position-bould.Position).magnitude) < 11 and ft(RightDebounce,v.Name) == nil then
  1026. Sound(Sounds.Smash,1,1)
  1027. Dmgz(v.Humanoid,Damage["BoulderForce"])
  1028. table.insert(RightDebounce,v.Name)
  1029. print(v.Name)
  1030. coroutine.resume(coroutine.create(function()wait(DebounceSpeed) local nf = ft(RightDebounce,v.Name) if nf ~= nil then table.remove(RightDebounce,nf) end end))
  1031. end
  1032. else
  1033. if v ~= bould and v:IsA("BasePart") and v.Anchored == false and math.abs((v.Position-bould.Position).magnitude) < 11 then v:BreakJoints() v.Velocity = cf(bould.Position,v.Position).lookVector*10 + Vector3.new(0,10,0) end
  1034. end
  1035. end -- for
  1036. end
  1037. Functions.Sparkle = function(bb,scal,si)
  1038. if si == nil then si = 1 end
  1039. local rand = bb.Position + Vector3.new(math.random(-scal,scal),math.random(-scal,scal),math.random(-scal,scal))
  1040. local np = p(Torm,"Block",0.1,0.1,0.1,false,true,0.1,0.2,BladeColor)
  1041. np.CFrame = cf(rand.x,rand.y,rand.z) *ca(math.random(-33,33)/10,math.random(-33,33)/10,math.random(-33,33)/10)
  1042. local dm = DiamondMesh:Clone() dm.Scale = Vector3.new(0,0,0) dm.Parent = np
  1043. coroutine.resume(coroutine.create(function()
  1044. for i=0,1*si,0.1*si do
  1045. dm.Scale = Vector3.new(1*i,1.25*i,1*i)
  1046. wait()
  1047. end
  1048. end))
  1049. coroutine.resume(coroutine.create(function()
  1050. wait(0.1)
  1051. for i=0,1,0.1 do
  1052. np.Transparency = i
  1053. wait()
  1054. end
  1055. np:Remove()
  1056. end))
  1057. end
  1058. Functions.BrickWarpDesign = function(bb,scal)
  1059. local rand = bb.Position + Vector3.new(math.random(-scal,scal),math.random(-scal,scal),math.random(-scal,scal))
  1060. local mag = (rand - bb.Position).magnitude
  1061. local np = p(Torm,"Block",0.1,0.1,mag-3,false,true,0.1,0.2,BladeColor)
  1062. np.CFrame = cf(bb.Position,rand)
  1063. np.CFrame = np.CFrame + np.CFrame.lookVector*((scal/5)+(mag/2))
  1064. coroutine.resume(coroutine.create(function()
  1065. for i=0.1,1,0.05 do
  1066. np.Transparency = i
  1067. wait()
  1068. end
  1069. np:Remove()
  1070. end))
  1071. end
  1072. Functions.RageRegen = function()
  1073. local lostcontrol = false
  1074. local hpos = Torso.Position.y + 10
  1075. Anim.Move = "RageRegening"
  1076. Anim.Act = true
  1077. local wav = p(Torm,"Block",0.1,0.1,0.1,true,false,1,0,BladeColor) wav.Anchored = true
  1078. local wavm = BlastMesh:Clone()
  1079. wavm.Parent = wav
  1080. local wavv = 0
  1081. wavm.Scale = Vector3.new(5,3.5,5)
  1082. wav.CFrame = cf((Torso.CFrame * CFrame.new(0,-2.5,0)).p) *ca(0,mr(wavv),0)
  1083. local bp = Instance.new("BodyPosition",Torso)
  1084. bp.maxForce = Vector3.new(0,math.huge,0)
  1085. Humanoid.WalkSpeed = Humanoid.WalkSpeed - (RealSpeed-4)
  1086. bp.position = Torso.Position + Vector3.new(0,10,0)
  1087. local bpos = bp.position
  1088. coroutine.resume(coroutine.create(function()
  1089. lh2,rh2 = FeetWeld(true,Lh,Rh)
  1090. if SwordType == "Single" then
  1091. for i=0,1,0.1*Speed do
  1092. LW.C1 = ca(mr(-80+(-30*i)),mr(40-(40*i)),0)
  1093. LW.C0 = cf(0.6-(0.6*i),0.3+(0.5*i),-1+(1.7*i)) *ca(0,mr(120*i),0)
  1094. RW.C1 = ca(mr(-80+(-30*i)),mr(-40+(40*i)),0)
  1095. RW.C0 = cf(-0.6+(0.6*i),0.3+(0.5*i),-1+(1.7*i)) *ca(0,mr(-120*i),0)
  1096. lh2.C1 = ca(mr(30*i),0,mr(15*i))
  1097. rh2.C1 = ca(mr(30*i),0,mr(-15*i))
  1098. lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
  1099. rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
  1100. wait()
  1101. end
  1102. else
  1103. for i=0,1,0.1*Speed do
  1104. LW.C1 = ca(mr(-60+(-50*i)),mr(-40-(-40*i)),0)
  1105. LW.C0 = cf(-0.1,0.8*i,-0.5+(1.2*i)) *ca(0,mr(120*i),0)
  1106. RW.C1 = ca(mr(-60+(-50*i)),mr(40+(-40*i)),0)
  1107. RW.C0 = cf(0.1,0.8*i,-0.5+(1.2*i)) *ca(0,mr(-120*i),0)
  1108. lh2.C1 = ca(mr(30*i),0,mr(15*i))
  1109. rh2.C1 = ca(mr(30*i),0,mr(-15*i))
  1110. lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
  1111. rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
  1112. wait()
  1113. end
  1114. end
  1115. local function movezx(i1,i2,is,bp)
  1116. if SwordType == "Single" then
  1117. for i=i1,i2,is*Speed do
  1118. LW.C1 = ca(mr(-120+(20*i)),0,0)
  1119. LW.C0 = cf(0,0.8,0.7) *ca(0,mr(120+(20*i)),0)
  1120. RW.C1 = ca(mr(-120+(20*i)),0,0)
  1121. RW.C0 = cf(0,0.8,0.7) *ca(0,mr(-120+(-20*i)),0)
  1122. lh2.C1 = ca(mr(30+(-15*i)),0,mr(15+(-8*i)))
  1123. rh2.C1 = ca(mr(30+(-15*i)),0,mr(-15+(8*i)))
  1124. lh2.C0 = cf(-0.7,-1.9,0.35)
  1125. rh2.C0 = cf(0.7,-1.9,0.35)
  1126. bp.position = Vector3.new(bpos.x,(hpos+10)+(3*i),bpos.z)
  1127. wait()
  1128. end
  1129. else
  1130. for i=i1,i2,is*Speed do
  1131. LW.C1 = ca(mr(-110),mr(0),0)
  1132. LW.C0 = cf(-0.1,0.8,0.7) *ca(0,mr(120+(20*i)),0)
  1133. RW.C1 = ca(mr(-110),mr(0),0)
  1134. RW.C0 = cf(0.1,0.8,0.7) *ca(0,mr(-120+(-20*i)),0)
  1135. lh2.C1 = ca(mr(30+(-15*i)),0,mr(15+(-8*i)))
  1136. rh2.C1 = ca(mr(30+(-15*i)),0,mr(-15+(8*i)))
  1137. lh2.C0 = cf(-0.7,-1.9,0.35)
  1138. rh2.C0 = cf(0.7,-1.9,0.35)
  1139. bp.position = Vector3.new(bpos.x,(hpos+10)+(3*i),bpos.z)
  1140. wait()
  1141. end
  1142. end
  1143. end
  1144. local moved = 2
  1145. repeat
  1146. if Rage >= MaxRage or Anim.key.z == false then break end
  1147. if moved == 2 then moved = 1 movezx(0,1,0.025,bp) else moved = 2 movezx(1,0,-0.025,bp) end
  1148. until Rage >= MaxRage or Anim.key.z == false or lostcontrol == true
  1149. if SwordType == "Single" then
  1150. for i=1,0,-0.1*Speed do
  1151. LW.C1 = ca(mr(-80+(-30*i)),mr(40-(40*i)),0)
  1152. LW.C0 = cf(0.6-(0.6*i),0.3+(0.5*i),-1+(1.7*i)) *ca(0,mr(120*i),0)
  1153. RW.C1 = ca(mr(-80+(-30*i)),mr(-40+(40*i)),0)
  1154. RW.C0 = cf(-0.6+(0.6*i),0.3+(0.5*i),-1+(1.7*i)) *ca(0,mr(-120*i),0)
  1155. lh2.C1 = ca(mr(30*i),0,mr(15*i))
  1156. rh2.C1 = ca(mr(30*i),0,mr(-15*i))
  1157. lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
  1158. rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
  1159. wait()
  1160. end
  1161. else
  1162. for i=1,0,-0.1*Speed do
  1163. LW.C1 = ca(mr(-60+(-50*i)),mr(-40-(-40*i)),0)
  1164. LW.C0 = cf(-0.1,0.8*i,-0.5+(1.2*i)) *ca(0,mr(120*i),0)
  1165. RW.C1 = ca(mr(-60+(-50*i)),mr(40+(-40*i)),0)
  1166. RW.C0 = cf(0.1,0.8*i,-0.5+(1.2*i)) *ca(0,mr(-120*i),0)
  1167. lh2.C1 = ca(mr(30*i),0,mr(15*i))
  1168. rh2.C1 = ca(mr(30*i),0,mr(-15*i))
  1169. lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
  1170. rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
  1171. wait()
  1172. end
  1173. end
  1174. Lh,Rh = FeetWeld(false,lh2,rh2)
  1175. wait(0.6)
  1176. Anim.Act = false
  1177. Anim.Move = "None"
  1178. end))
  1179. for i=1,0.3,-0.14*Speed do wav.Transparency = i wait() end
  1180. rpos = 0
  1181. Sound(Sounds.Cast,0.8,1)
  1182. repeat wait()
  1183. local Hit, hitpos = rayCast(Torso.Position,((Torso.Position - Vector3.new(0,10000,0)) - Torso.Position),999.999,Player.Character)
  1184. if Hit == nil then lostcontrol = true break end
  1185. hpos = hitpos.y if math.random(1,6) == 4 then Functions.Sparkle(Torso,8) end
  1186. if math.random(1,3) == 3 then Functions.BrickWarpDesign(Torso,10) end wavv = wavv + 10 Rage = Rage - (RageCost["RageRegening"]*RageIncome)
  1187. wav.CFrame = cf(Torso.Position.x,hpos+1.4,Torso.Position.z) *ca(0,mr(wavv),0)
  1188. until Rage >= MaxRage or Anim.key.z == false
  1189. for i=0.3,01,0.14*Speed do wav.Transparency = i wait() end wav:Remove()
  1190. bp:Remove()
  1191. Humanoid.WalkSpeed = Humanoid.WalkSpeed + (RealSpeed-4)
  1192. end
  1193. Functions.Teleport = function(i1,i2,is,RaigCost)
  1194. Anim.Act = true
  1195. for i=i1,i2,is*Speed do
  1196. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(40+(-40*i)),0)
  1197. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(50*i),0)
  1198. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(-40+(40*i)),0)
  1199. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-50*i),0)
  1200. Torw.C1 = ca(0,mr(50*i),0)
  1201. wait()
  1202. end
  1203. local tele = false
  1204. local tele2 = false -- for mouse
  1205. local mouseact = mouse.Button1Up:connect(function() tele2 = true end)
  1206. coroutine.resume(coroutine.create(function() Sound(Sounds.Cast,1.2,1) wait(12) tele = true end))
  1207. local telepos = Torso.Position
  1208. local telehit = nil
  1209. local wav = p(Torm,"Block",0.1,0.1,0.1,true,false,0.3,0.1,BladeColor) wav.Anchored = true
  1210. local wavm = BlastMesh:Clone()
  1211. wavm.Parent = wav
  1212. local wavv = 0
  1213. wavm.Scale = Vector3.new(3.5,2,3.5)
  1214. repeat
  1215. local mpos = mouse.hit.p + Vector3.new(0,2,0)
  1216. telehit,telepos = rayCast(mpos,((mpos - Vector3.new(0,10000,0)) - mpos),999.999,Player.Character)
  1217. wavv = wavv + 8 Functions.Sparkle(La,3) Functions.BrickWarpDesign(La,4)
  1218. if telehit ~= nil then wav.Transparency = 0 wav.CFrame = cf(telepos.x,telepos.y+1,telepos.z) *ca(0,mr(wavv),0) else wav.Transparency = 1 end
  1219. wait() until tele == true or tele2 == true mouseact:disconnect()
  1220. if telehit == nil or math.abs((Torso.Position - telepos).magnitude) > Props.MaxTeleDistance then
  1221. Sound(Sounds.Punch,1,1) for i=0.3,1,0.14 do wavm.Scale = Vector3.new(3.5+(5*i),2,3.5+(5*i)) wav.Transparency = i wait() end wav:Remove()
  1222. wav:Remove()
  1223. else
  1224. MinusRage(RaigCost)
  1225. for i=1,10 do wait() Functions.Sparkle(Torso,5,3) Functions.BrickWarpDesign(Torso,6) end
  1226. ShockWave(Torso,7,BladeColor)
  1227. Torso.CFrame = wav.CFrame + Vector3.new(0,2.2,0) Sound(Sounds.EnergyBlast,1.2,0.6)
  1228. ShockWave(Torso,7,BladeColor)
  1229. for i=1,10 do wait() Functions.Sparkle(Torso,5,3) Functions.BrickWarpDesign(Torso,6) end
  1230. for i=0.3,1,0.14 do wavm.Scale = Vector3.new(3.5+(5*i),2,3.5+(5*i)) wav.Transparency = i wait() end wav:Remove()
  1231. end
  1232. for i=i2,i1,-is*Speed do
  1233. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(40+(-40*i)),0)
  1234. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(50*i),0)
  1235. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(-40+(40*i)),0)
  1236. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-50*i),0)
  1237. Torw.C1 = ca(0,mr(50*i),0)
  1238. wait()
  1239. end
  1240. Anim.Act = false
  1241. end
  1242.  
  1243. --------------------------------------------------------------------------------------------------------------
  1244. --------------------------------------------------------------------------------------------------------------
  1245. --------------------------------------------------------------------------------------------------------------
  1246. --------------------------------------------------------------------------------------------------------------
  1247. bin.Selected:connect(function(mm)
  1248. Mouse = mouse
  1249. mouse = mm
  1250. Torso["Left Hip"].Part0 = Tor
  1251. Torso["Right Hip"].Part0 = Tor
  1252. RS.Parent = nil
  1253. LS.Parent = nil
  1254. RW.Parent = Torso
  1255. RW.Part0 = Fra
  1256. RW.Part1 = Ra
  1257. LW.Parent = Torso
  1258. LW.Part0 = Fla
  1259. LW.Part1 = La
  1260. RW.C0 = CFrame.new(0,0,0) RW.C1 = CFrame.new(0,0,0)
  1261. LW.C0 = CFrame.new(0,0,0) LW.C1 = CFrame.new(0,0,0)
  1262. Anims.Equip(0,1,0.07*Speed)
  1263. Anim.Equipped = true
  1264. mouse.KeyDown:connect(function(key)
  1265. key:lower()
  1266. pcall(function() Anim.key[key:lower()] = true end)
  1267. keydown = true
  1268. if key == "z" and Anim.Move == "None" and not Anim.Act then
  1269. Functions.RageRegen()
  1270. end
  1271. if SwordType == "Single" then
  1272. if key == "e" and Anim.Move == "None" and not Anim.Act and RageCost["RotorBlade"] <= Rage then
  1273. Anim.Move = "RotorBlade"
  1274. Anims.RotorBlade(0,1,0.08*Speed,RageCost["RotorBlade"])
  1275. Anim.Move = "None"
  1276. elseif key == "q" and Anim.Move == "None" and not Anim.Act and RageCost["Boomerang"] <= Rage then
  1277. Anim.Move = "Boomerang"
  1278. Anims.Boomerang(0,1,0.08*Speed,RageCost["Boomerang"])
  1279. Anim.Move = "None"
  1280. elseif key == "f" and Anim.Move == "None" and not Anim.Act and RageCost["BoulderForce"] <= Rage then
  1281. Anim.Move = "BoulderForce"
  1282. Anims.BoulderForce(0,1,0.08*Speed,RageCost["BoulderForce"])
  1283. Anim.Move = "None"
  1284. elseif key == "r" and Anim.Move == "None" and not Anim.Act and RageCost["ForceWave"] <= Rage then
  1285. Anim.Move = "ForceWave"
  1286. Anims.ForceWave(0,1,0.08*Speed,RageCost["ForceWave"])
  1287. Anim.Move = "None"
  1288. elseif key == "t" and Anim.Move == "None" and not Anim.Act and RageCost["Teleport"] <= Rage then
  1289. Anim.Move = "Teleport"
  1290. Functions.Teleport(0,1,0.08*Speed,RageCost["Teleport"])
  1291. Anim.Move = "None"
  1292. end
  1293. elseif SwordType == "Dual" then
  1294. if key == "e" and Anim.Move == "None" and not Anim.Act and RageCost["DualSpin"] <= Rage then
  1295. Anim.Move = "DualSpin"
  1296. Anims.DualSpin(0,1,0.08*Speed,RageCost["DualSpin"])
  1297. Anim.Move = "None"
  1298. end
  1299. end
  1300. end)
  1301. mouse.KeyUp:connect(function(key)
  1302. pcall(function() Anim.key[key:lower()] = false end)
  1303. keydown = false
  1304. end)
  1305.  
  1306. mouse.Button1Down:connect(function() Anim.Button = true
  1307. if not Anim.Click and Anim.Move == "None" and not Anim.Act then
  1308. Anim.Click = true
  1309. if Anim.CanBerserk ~= 0 then Anim.CanBerserk = Anim.CanBerserk + 1 end
  1310. if Anim.CanBerserk == 0 and RageCost["Berserk"] <= Rage then
  1311. Rage = Rage - RageCost["Berserk"]
  1312. Anim.ComboBreak = true
  1313. Speed = Speed + 0.5
  1314. Anim.CanBerserk = Anim.CanBerserk + 1
  1315. --Anim.Move = "LeftPunch"
  1316. --Anims.LeftPunch(0,1,0.1*Speed,0) Anim.Move = "None"
  1317. elseif Anim.CanBerserk == 2 then
  1318. Anim.CanBerserk = 0
  1319. end
  1320. coroutine.resume(coroutine.create(function() local oldcomb = Anim.CanBerserk wait(0.5) if Anim.ComboBreak == true and Anim.CanBerserk == oldcomb then Anim.ComboBreak = false Speed = Speed -0.5 Anim.CanBerserk = 0 end end))
  1321. wait(0.1)
  1322. Anim.Click = false
  1323. end
  1324. end)
  1325. mouse.Button1Up:connect(function() Anim.Button = false
  1326. end)
  1327. end)
  1328. bin.Deselected:connect(function(mouse)
  1329. Anim.Equipped = false
  1330. if SwordType == "Dual" then Anims.ChangeToSingle(0,1,0.25*Speed) SwordType = "Single" end
  1331. Anims.UnEquip(1,0,-0.08*Speed)
  1332. RW.Parent = nil
  1333. LW.Parent = nil
  1334. RS.Parent = Torso
  1335. RS.Part0 = Torso
  1336. RS.Part1 = Ra
  1337. LS.Parent = Torso
  1338. LS.Part0 = Torso
  1339. LS.Part1 = La
  1340. if Rh.Parent == nil then
  1341. FeetWeld(false,Lh,Rh)
  1342. end
  1343. Torso["Left Hip"].Part0 = Torso
  1344. Torso["Right Hip"].Part0 = Torso
  1345. end)
  1346. Hum.WalkSpeed = RealSpeed
  1347. Rage = 100000
  1348. wait(5)
  1349. Workspace.ares200345.Humanoid.MaxHealth = math.huge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement