Advertisement
AvaiIabIe

Lightsabor

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