iiSuspect

Light saber

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