Advertisement
Trade_item

Untitled

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