Advertisement
ManityMan

(Op) Roblox Lightsaber Script

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