Advertisement
vibrantsinger423

0w0 testing crysta gauntlets

Jul 13th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 32.02 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. Humanoid = Character.Humanoid
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. Neck = Torso.Neck
  17. local s = Instance.new("Sound",Character)
  18.     s.Name = "BGMusic"
  19.     s.SoundId = "rbxassetid://698476289"
  20.     s.Pitch = 1
  21.     s.Volume = 3.25
  22.     s.Looped = true
  23.     s.archivable = false
  24.     wait(0.1)
  25.     s:play()
  26. wait(2);
  27. local ta1 = 5;
  28. function Cape(player,color)
  29. color = color or player.Torso.BrickColor;
  30. if (player:FindFirstChild("Head") == nil) then return nil; end
  31. local m = Instance.new("Model");
  32. m.Name = "Cape_Yshi";
  33. local neckpiece = Instance.new("Part",m);
  34. neckpiece.formFactor = "Plate";
  35. neckpiece.Size = Vector3.new(2,.4,1);
  36. neckpiece.Name = "NeckPiece";
  37. neckpiece.BrickColor = color;
  38. neckpiece.CanCollide = false;
  39. neckpiece.TopSurface = "Smooth";
  40. neckpiece.BottomSurface = "Smooth";
  41. local neckweld = Instance.new("Weld",neckpiece);
  42. neckweld.Part0 = player.Head;
  43. neckweld.Part1 = neckpiece;
  44. neckweld.C0 = CFrame.new(0,-.5,0);
  45. local seg1 = neckpiece:Clone();
  46. seg1.Size = Vector3.new(3,.4,1);
  47. seg1.Parent = m;
  48. seg1.Name = "Segment_1";
  49. local seg1w = Instance.new("Weld",seg1);
  50. seg1w.Part0 = neckpiece;
  51. seg1w.Part1 = seg1;
  52. seg1w.C0 = CFrame.new(0,0,.45);
  53. seg1w.C1 = CFrame.new(0,0,-.45)*CFrame.Angles(math.rad(-80),0,0);
  54. local seg2 = seg1:Clone();
  55. seg2.Parent = m;
  56. seg2.Name = "Segment_2";
  57. local seg2w = Instance.new("Weld",seg2);
  58. seg2w.Part0 = seg1;
  59. seg2w.Part1 = seg2;
  60. seg2w.C0 = CFrame.new(0,0,.45);
  61. seg2w.C1 = CFrame.new(0,0,-.45)*CFrame.Angles(math.rad(-5),0,0);
  62. m.Parent = player;
  63. local seg3 = seg2:Clone();
  64. seg3.Parent = m;
  65. seg3.Name = "Segment_3";
  66. local seg3w = Instance.new("Weld",seg3);
  67. seg3w.Part0 = seg2;
  68. seg3w.Part1 = seg3;
  69. seg3w.C0 = CFrame.new(0,0,.45);
  70. seg3w.C1 = CFrame.new(0,0,-.45)*CFrame.Angles(math.rad(-2),0,0);
  71. local seg4 = seg3:Clone();
  72. seg4.Name = "Segment_4";
  73. seg4.Parent = m;
  74. local seg4w = Instance.new("Weld",seg4);
  75. seg4w.Part0 = seg3;
  76. seg4w.Part1 = seg4;
  77. seg4w.C0 = CFrame.new(0,0,.45);
  78. seg4w.C1 = CFrame.new(0,0,-.45);
  79. return m;
  80. end
  81. function Flex(cape,vals)
  82. for i,v in pairs(vals) do
  83. if(i ~= 1) then
  84. cape:GetChildren()[i].Weld.C1 = CFrame.new(0,0,-.45)*CFrame.Angles(math.rad(vals[i-1]),0,0);
  85. end
  86. end
  87. end
  88. local char = game.Players.LocalPlayer.Character;
  89. local cape = Cape(char);
  90. local lastfrstrad = -60;
  91. for i=0, math.huge do
  92. local frstrad = -60;
  93. ta = ta1 * char.Torso.Velocity.magnitude/16 + 1 * (math.random()+.5);
  94. if(ta>10) then
  95. ta = math.random(90,100)/10;
  96. end
  97. frstrad = frstrad + (char.Torso.Velocity.magnitude) + math.sin(i)*3*ta;
  98. if(frstrad > 65) then
  99. frstrad = 65;
  100. elseif (char.Torso.Velocity.magnitude < 5) then
  101. frstrad = -80;
  102. end
  103. if(char.Humanoid:HasCustomStatus("Flying"))then
  104. frstrad = -80;
  105. ta = 15;
  106. end
  107. frstrad = (frstrad+lastfrstrad)/2;
  108. lastfrstrad = frstrad;
  109. Flex(cape,{frstrad,math.sin(i+20)*-1*ta,math.sin(i+20)*2*ta,math.sin(i+20)*ta,math.sin(i+20)*-1*ta});
  110. wait(.05);
  111. end
  112. it=Instance.new
  113. vt=Vector3.new
  114. cf=CFrame.new
  115. euler=CFrame.fromEulerAnglesXYZ
  116. angles=CFrame.Angles
  117. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  118. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  119. attack = false
  120. attacktype = 1
  121. attackdebounce = false
  122. ssdebounce=false
  123. MMouse=nil
  124. combo=0
  125. local CrystalNumb=0
  126. local Crystals={}
  127. CrystalColor=BrickColor.new("Navy blue")
  128. crystal = BrickColor.new("Navy blue")
  129. --player
  130. player = nil
  131. --save shoulders
  132. RSH, LSH = nil, nil
  133. --welds
  134. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  135. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  136. if Character:findFirstChild("Crystal Gauntlet",true) ~= nil then
  137. Character:findFirstChild("Crystal Gauntlet",true).Parent = nil
  138. end
  139. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  140. local fp = it("Part")
  141. fp.Material = "SmoothPlastic"
  142. fp.formFactor = formfactor
  143. fp.Parent = parent
  144. fp.Reflectance = reflectance
  145. fp.Transparency = transparency
  146. fp.CanCollide = false
  147. fp.Locked=true
  148. fp.BrickColor = brickcolor
  149. fp.Name = name
  150. fp.Size = size
  151. fp.Position = Torso.Position
  152. fp.BottomSurface="SmoothNoOutlines"
  153. fp.TopSurface="SmoothNoOutlines"
  154. fp.LeftSurface="SmoothNoOutlines"
  155. fp.RightSurface="SmoothNoOutlines"
  156. fp:BreakJoints()
  157. return fp
  158. end
  159. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  160. local mesh = it(Mesh)
  161. mesh.Parent = part
  162. if Mesh=="SpecialMesh" then
  163. mesh.MeshType = meshtype
  164. mesh.MeshId = meshid
  165. end
  166. mesh.Offset=offset
  167. mesh.Scale=scale
  168. return mesh
  169. end
  170. function weld(parent,part0,part1,c0)
  171. local weld = it("Weld")
  172. weld.Parent = parent
  173. weld.Part0 = part0
  174. weld.Part1 = part1
  175. weld.C0 = c0
  176. return weld
  177. end
  178. local modelzorz = Instance.new("Model")
  179. modelzorz.Parent = Character
  180. modelzorz.Name = "Crystal Gauntlet"
  181. local prt1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part1",vt(1,1,1))
  182. local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
  183. local prt3=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part3",vt(1,1,1))
  184. local prt4=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part4",vt(1,1,1))
  185. local prt5=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part5",vt(1,1,1))
  186. local prt6=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part6",vt(1,1,1))
  187. local prt7=part(3,modelzorz,0,0,BrickColor.new("Institutional white"),"Part7",vt(1,1,1))
  188. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1.1,0.6,1.1))
  189. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(1.1,0.8,0.5))
  190. local msh3=mesh("CylinderMesh",prt3,"","",vt(0,0,0),vt(0.8,0.2,0.8))
  191. local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1.05,0.2,1.05))
  192. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.5,0.65,0.2))
  193. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.2,0.65,1.01))
  194. local msh7=mesh("SpecialMesh",prt7,"Sphere","",vt(0,0,0),vt(0.6,0.6,0.6))
  195. local wld1=weld(prt1,prt1,LeftArm,euler(0,0,0)*cf(0,-0.5,0))
  196. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0.7,0))
  197. local wld3=weld(prt3,prt3,prt2,euler(0,0,1.57)*cf(0.5,0.4,0))
  198. local wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,0.2,0))
  199. local wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0.3,0.3,0))
  200. local wld6=weld(prt6,prt6,prt4,euler(0,0,0)*cf(0,0.3,0))
  201. local wld7=weld(prt7,prt7,prt3,euler(0,0,0)*cf(0,0,0))
  202. if (script.Parent.className ~= "HopperBin") then
  203. Tool = Instance.new("HopperBin")
  204. Tool.Parent = Backpack
  205. Tool.Name = "Crystal Gauntlet"
  206. script.Parent = Tool
  207. end
  208. Bin = script.Parent
  209. local bg = it("BodyGyro")
  210. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  211. bg.P = 20e+003
  212. bg.Parent = nil
  213. so = function(id,par,vol,pit)
  214. coroutine.resume(coroutine.create(function()
  215. local sou = Instance.new("Sound",par or workspace)
  216. sou.Volume=vol
  217. sou.Pitch=pit or 1
  218. sou.SoundId=id
  219. wait()
  220. sou:play()
  221. wait(6)
  222. sou:Remove()
  223. end))
  224. end
  225. function hideanim()
  226. equipped=false
  227. wait(0.1)
  228. bg.Parent=nil
  229. end
  230. function equipanim()
  231. equipped=true
  232. wait(0.1)
  233. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  234. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  235. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8,0,0)
  236. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0.4)
  237. end
  238. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  239. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  240. end
  241. spread=2
  242. range=500
  243. rangepower=50
  244. function shoottrail(mouse,baseprt)
  245. coroutine.resume(coroutine.create(function()
  246. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-MMouse.Hit.p).magnitude/100
  247. local dir = CFrame.new((baseprt.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spreadvector)
  248. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,modelzorz)
  249. local rangepos = range
  250. local function drawtrail(From,To)
  251. local effectsmsh = Instance.new("CylinderMesh")
  252. effectsmsh.Scale = Vector3.new(1,1,1)
  253. effectsmsh.Name = "Mesh"
  254. local effectsg = Instance.new("Part")
  255. effectsg.formFactor = 3
  256. effectsg.CanCollide = false
  257. effectsg.Name = "Eff"
  258. effectsg.Locked = true
  259. effectsg.Anchored = true
  260. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  261. effectsg.Parent = modelzorz
  262. effectsmsh.Parent = effectsg
  263. effectsg.BrickColor = CrystalColor
  264. effectsg.Reflectance = 0.4
  265. glow = Instance.new("PointLight")
  266. glow.Parent = prt
  267. glow.Range = 6
  268. glow.Brightness = 5
  269. glow.Color = crystal.Color
  270. local LP = From
  271. local point1 = To
  272. local mg = (LP - point1).magnitude
  273. effectsmsh.Scale = Vector3.new(2,mg*5,2)
  274. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  275. coroutine.resume(coroutine.create(function()
  276. for i = 0 , 1 , 0.1 do
  277. wait()
  278. effectsg.Transparency = 1*i
  279. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  280. end
  281. effectsg.Parent = nil
  282. end))
  283. end
  284. local newpos = baseprt.Position
  285. local inc = rangepower
  286. repeat
  287. wait() wait()
  288. rangepos = rangepos - 10
  289. dir = dir * CFrame.Angles(math.rad(-1),0,0)
  290. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  291. drawtrail(newpos,pos)
  292. newpos = newpos + (dir.lookVector * inc)
  293. if inc >= 20 then
  294. inc = inc - 10
  295. end
  296. if hit ~= nil then
  297. rangepos = 0
  298. end
  299. until rangepos <= 0
  300. if hit ~= nil then
  301. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  302. hum = hit.Parent.Humanoid
  303. tTorso=hit.Parent.Torso
  304. Damagefunc1(hit,5,30)
  305. attackdebounce=false
  306. --ADmg(hum,hit)
  307. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  308. hum = hit.Parent.Parent.Humanoid
  309. tTorso=hit.Parent.Parent.Torso
  310. Damagefunc1(hit.Parent.Parent.Torso,5,30)
  311. attackdebounce=false
  312. --ADmg(hum,hit)
  313. end
  314. end
  315. end))
  316. end
  317. function MagicCircle(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  318. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  319. prt.Anchored=true
  320. prt.CFrame=cframe*cf(x2,y2,z2)
  321. glow = Instance.new("PointLight")
  322. glow.Parent = prt
  323. glow.Range = 4
  324. glow.Brightness = 5
  325. glow.Color = crystal.Color
  326. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  327. coroutine.resume(coroutine.create(function()
  328. for i=0,1,0.1 do
  329. wait()
  330. prt.CFrame=prt.CFrame
  331. prt.Transparency=i
  332. msh.Scale=msh.Scale+vt(x3,y3,z3)
  333. end
  334. prt.Parent=nil
  335. end))
  336. end
  337. function SpecialEffect()
  338. local prt=part(3,workspace,1,0,BrickColor.new("Really black"),"Part",vt(1,1,1))
  339. prt.Anchored=true
  340. prt.CFrame=Torso.CFrame
  341. glow = Instance.new("PointLight")
  342. glow.Parent = prt
  343. glow.Range = 4
  344. glow.Brightness = 5
  345. glow.Color = crystal.Color
  346. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  347. coroutine.resume(coroutine.create(function(Part,Mesh)
  348. for i=0,1,0.2 do
  349. wait(0)
  350. Part.Transparency=i
  351. Mesh.Scale=Mesh.Scale+vt(10,10,10)
  352. end
  353. prt.Parent=nil
  354. end),prt,msh)
  355. end
  356. Damagefunc1=function(hit,Damage,Knockback)
  357. if hit.Parent==nil then
  358.  return
  359. end
  360. CPlayer=Bin
  361. h=hit.Parent:FindFirstChild("Humanoid")
  362. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  363. if attackdebounce == false then
  364. attackdebounce = true
  365. coroutine.resume(coroutine.create(function()
  366. wait(0.2)
  367. attackdebounce = false
  368. end))
  369. Damage=Damage
  370. --[[  if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  371.   return
  372.  end]]
  373. --   hs(hit,1.2)
  374.   c=Instance.new("ObjectValue")
  375.   c.Name="creator"
  376.   c.Value=game.Players.LocalPlayer
  377.   c.Parent=h
  378.   game:GetService("Debris"):AddItem(c,.5)
  379.  Damage=Damage+math.random(0,10)
  380. --  h:TakeDamage(Damage)
  381.  blocked=false
  382.  block=hit.Parent:findFirstChild("Block")
  383.  if block~=nil then
  384.  print("herp")
  385.  if block.Value>0 then
  386.  blocked=true
  387.  block.Value=block.Value-1
  388.  print(block.Value)
  389.  end
  390.  end
  391.  if blocked==false then
  392. --  h:TakeDamage(Damage)
  393.  h.Health=h.Health-Damage
  394.  showDamage(hit.Parent,Damage,.5)
  395.  else
  396.  h:TakeDamage(1)
  397.  showDamage(hit.Parent,1,.5)
  398.  end
  399.  vp=Instance.new("BodyVelocity")
  400.  vp.P=500
  401.  vp.maxForce=Vector3.new(math.huge,0,math.huge)
  402. --  vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  403.  vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  404.  if Knockback>0 then
  405.   vp.Parent=hit.Parent.Torso
  406.  end
  407.  game:GetService("Debris"):AddItem(vp,.25)
  408.    c=Instance.new("ObjectValue")
  409.   c.Name="creator"
  410.   c.Value=Player
  411.   c.Parent=h
  412.   game:GetService("Debris"):AddItem(c,.5)
  413.  CRIT=false
  414.  hitDeb=true
  415.  AttackPos=6
  416. end
  417. end
  418. end
  419. Damagefunc2=function(hit,Damage,Knockback)
  420. if attackdebounce == false then
  421. attackdebounce = true
  422. coroutine.resume(coroutine.create(function()
  423. wait(0.1)
  424. attackdebounce = false
  425. end))
  426. if hit.Parent==nil then
  427.  return
  428. end
  429. CPlayer=Bin
  430. blocked=false
  431. h=hit.Parent:FindFirstChild("Humanoid")
  432. if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  433.  Damage=Damage
  434.   c=it("ObjectValue")
  435.   c.Name="creator"
  436.   c.Value=game.Players.LocalPlayer
  437.   c.Parent=h
  438.   game:GetService("Debris"):AddItem(c,.5)
  439. --   print(c.Value)
  440. --[[  if math.random(0,99)+math.random()<=7.8 then
  441.   CRIT=true
  442.   Damage=Damage*2
  443.   s=it("Sound")
  444.   s.SoundId="http://www.roblox.com/asset/?id=2801263"
  445.   s.Volume=1
  446.   s.Pitch=2
  447.   s.Parent=hit
  448.   s.PlayOnRemove=true
  449.   s.Parent=nil
  450.  
  451.  end]]
  452.  Damage=Damage+math.random(0,10)
  453. --  Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  454.  blocked=false
  455.  block=hit.Parent:findFirstChild("Block")
  456.  if block~=nil then
  457.  print("herp")
  458.  if block.Value>0 then
  459.  blocked=true
  460.  block.Value=block.Value-3
  461.  print(block.Value)
  462.  end
  463.  end
  464.  if blocked==false then
  465. --  h:TakeDamage(Damage)
  466.  h.Health=h.Health-Damage
  467.  showDamage(hit.Parent,Damage,.5)
  468.  else
  469.  h:TakeDamage(1)
  470.  showDamage(hit.Parent,1,.5)
  471.  end
  472. --if blocked==false then
  473. local angle = (hit.Position-(Torso.Position+Vector3.new(0,0,0))).unit
  474. print(angle)
  475. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  476.  rl=Instance.new("BodyAngularVelocity")
  477.  rl.P=3000
  478.  rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  479.  rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  480.  rl.Parent=hit
  481. coroutine.resume(coroutine.create(function(vel)
  482. wait(1)
  483. vel:Remove()
  484. end),rl)
  485. --end
  486. local bodyVelocity=Instance.new("BodyVelocity")
  487. bodyVelocity.velocity=angle*40+Vector3.new(0,0,0)
  488. bodyVelocity.P=5000
  489. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  490. bodyVelocity.Parent=hit
  491. coroutine.resume(coroutine.create(function(Vel)
  492. wait(0.7)
  493. Vel:Remove()
  494. end),bodyVelocity)
  495.    c=it("ObjectValue")
  496.   c.Name="creator"
  497.   c.Value=Player
  498.   c.Parent=h
  499.   game:GetService("Debris"):AddItem(c,.5)
  500.  CRIT=false
  501.  hitDeb=true
  502.  AttackPos=6
  503. end
  504. end
  505. end
  506. showDamage=function(Char,Dealt,du)
  507. m=Instance.new("Model")
  508. m.Name=tostring(Dealt)
  509. h=Instance.new("Humanoid")
  510. h.Health=0
  511. h.MaxHealth=0
  512. h.Parent=m
  513. c=Instance.new("Part")
  514. c.Material = "SmoothPlastic"
  515. c.Transparency=0
  516. c.BrickColor=BrickColor:Red()
  517. if CRIT==true then
  518.  c.BrickColor=BrickColor.new("Really red")
  519. end
  520. c.Name="Head"
  521. c.TopSurface=0
  522. c.BottomSurface=0
  523. c.formFactor="Plate"
  524. c.Size=Vector3.new(1,.4,1)
  525. ms=Instance.new("CylinderMesh")
  526. ms.Scale=Vector3.new(.8,.8,.8)
  527. if CRIT==true then
  528.  ms.Scale=Vector3.new(1,1.25,1)
  529. end
  530. ms.Parent=c
  531. c.Reflectance=0
  532. Instance.new("BodyGyro").Parent=c
  533. c.Parent=m
  534. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  535. f=Instance.new("BodyPosition")
  536. f.P=2000
  537. f.D=100
  538. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  539. f.position=c.Position+Vector3.new(0,3,0)
  540. f.Parent=c
  541. game:GetService("Debris"):AddItem(m,.5+du)
  542. c.CanCollide=false
  543. m.Parent=workspace
  544. c.CanCollide=false
  545. end
  546. function CrystalEffect(crystal)
  547. clone=crystal:Clone()
  548. clone.Parent=workspace
  549. clone.Anchored=true
  550. clone.CFrame=crystal.CFrame
  551. glow = Instance.new("PointLight")
  552. glow.Parent = clone
  553. glow.Range = 9
  554. glow.Brightness = 6
  555. glow.Color = crystal.Color
  556. Mesh=clone.Mesh
  557. coroutine.resume(coroutine.create(function(Part,Meshh)
  558. for i=0.5,1,0.05 do
  559. wait()
  560. Part.Transparency=i
  561. Meshh.Scale=Meshh.Scale+vt(0.3,0.3,0.3)
  562. end
  563. Part.Parent=nil
  564. end),clone,Mesh)
  565. end
  566. function MakeCrystals()
  567. attack=true
  568. for i=0,1,0.1 do
  569. wait()
  570. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  571. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  572. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+0.77*i,0,0)
  573. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+2.07*i,0.4-0.4*i)
  574. end
  575. while crystalhold==true do
  576. if CrystalNumb<25 then
  577. so("http://www.roblox.com/asset/?id=106626284",Torso,1,2)
  578. CrystalEffect(prt7)
  579. CrystalNumb=CrystalNumb+1
  580. print(CrystalNumb)
  581. local base=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Part1",vt(1,1,1))
  582. base.Anchored=true
  583. base.CFrame=prt7.CFrame
  584. table.insert(Crystals,base)
  585. local crystall=part(3,base,0.4,0,CrystalColor,"Crystal",vt(2,2,2))
  586. local msh=mesh("SpecialMesh",crystall,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(2,2,2))
  587. glow = Instance.new("PointLight")
  588. glow.Parent = crystall
  589. glow.Range = 4.5
  590. glow.Brightness = 4.5
  591. glow.Color = crystal.Color
  592. crystall.Anchored=false
  593. crystall.CFrame=base.CFrame
  594. fd=Instance.new("BodyPosition")
  595. fd.P=10000
  596. fd.D=1000
  597. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  598. fd.position=base.Position
  599. fd.Parent=crystall
  600. coroutine.resume(coroutine.create(function(BodyPos,Part,BasePart)
  601. while BasePart.Parent~=nil do
  602. wait()
  603. BodyPos.position=BasePart.Position
  604. end
  605. Part.Parent=nil
  606. end),fd,crystall,base)
  607. end
  608. wait(0.5)
  609. end
  610. for i=0,1,0.1 do
  611. wait()
  612. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  613. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  614. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
  615. LW.C1=cf(0, 0.5, 0) * euler(0,1.57-2.07*i,0.4-0.4+0.4*i)
  616. end
  617. attack=false
  618. end
  619. function attackone()
  620. attack=true
  621. hitted=false
  622. CrystalEffect(prt7)
  623. randomnumb=math.random(1,#Crystals)
  624. item=Crystals[randomnumb]
  625. item.CFrame=LeftArm.CFrame*cf(0,-5,0)
  626. CrystalNumb=CrystalNumb-1
  627. table.remove(Crystals,randomnumb)
  628. for i=0,1,0.1 do
  629. wait()
  630. item.CFrame=LeftArm.CFrame*cf(0,-5,0)
  631. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  632. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  633. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8-0.8*i,0,0)
  634. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5-1.07*i,0.4+1.17*i)
  635. end
  636. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  637. Cryst=item.Crystal
  638. con1=Cryst.Touched:connect(function(hit)
  639. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  640. so("http://www.roblox.com/asset/?id=12222005",Torso,1,1.5)
  641. Cryst.Parent=nil
  642. hitted=true
  643. for i=1,math.random(4,8) do
  644. local brokecryst=part(3,workspace,0.4,0,Cryst.BrickColor,"Crystal",vt(1,1,1))
  645. local mshh=mesh("SpecialMesh",brokecryst,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(math.random()-math.random(),math.random()+math.random(0,1),math.random()-math.random()))
  646. glow = Instance.new("PointLight")
  647. glow.Parent = brokecryst
  648. glow.Range = 4
  649. glow.Brightness = 4.5
  650. glow.Color = crystal.Color
  651. brokecryst.CanCollide=true
  652. brokecryst.CFrame=Cryst.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  653. brokecryst.Velocity=vt(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  654. game:GetService("Debris"):AddItem(brokecryst,4)
  655. end
  656. end
  657. Damagefunc1(hit,10,20)
  658. end)
  659. for i=0,1,0.2 do
  660. wait()
  661. item.CFrame=LeftArm.CFrame*cf(0,-5,0)
  662. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  663. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  664. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0,-3*i,0)
  665. LW.C1=cf(0, 0.5, 0) * euler(0,-1.57,1.57)
  666. end
  667. wait(0.5)
  668. con1:disconnect()
  669. if hitted==true then
  670. item.Parent=nil
  671. elseif hitted==false then
  672. CrystalNumb=CrystalNumb+1
  673. table.insert(Crystals,item)
  674. end
  675. attack=false
  676. end
  677. function Shatter()
  678. attack=true
  679. Damage=0
  680. for i=0,1,0.1 do
  681. wait()
  682. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  683. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.8+0.8*i,0,0)
  684. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+0.5*i,0.4-1.6*i)
  685. end
  686. CrystalEffect(prt7)
  687. for e=1,#Crystals do
  688. Damage=Damage+5
  689. so("http://www.roblox.com/asset/?id=12222005",Torso,1,1.5)
  690. CrystalNumb=CrystalNumb-1
  691. Crystals[e].Parent=nil
  692. for i=1,math.random(4,10) do
  693. local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  694. local mshh=mesh("SpecialMesh",brokecryst,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(math.random()-math.random(),math.random()+math.random(0,1),math.random()-math.random()))
  695. glow = Instance.new("PointLight")
  696. glow.Parent = brokecryst
  697. glow.Range = 4
  698. glow.Brightness = 4.5
  699. glow.Color = crystal.Color
  700. brokecryst.CanCollide=true
  701. brokecryst.CFrame=Crystals[e].CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  702. brokecryst.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  703. game:GetService("Debris"):AddItem(brokecryst,4)
  704. end
  705. --table.remove(Crystals,c)
  706. end
  707. local cc = game.Workspace:GetChildren()
  708. for i = 1, #cc do
  709. local hum = cc[i]:findFirstChild("Humanoid")
  710. if hum ~= nil and hum.Health ~= 0 then
  711. local head = cc[i]:findFirstChild("Head")
  712. if head ~= nil then
  713. local targ = head.Position - Torso.Position
  714. local mag = targ.magnitude
  715. if mag <= 20 and cc[i].Name ~= Player.Name then
  716. attackdebounce=false
  717. Damagefunc2(head,Damage,10)
  718. end
  719. end
  720. end
  721. end
  722. for i=1,10 do
  723. print("nou")
  724. for e=1,#Crystals do
  725. print(#Crystals)
  726. table.remove(Crystals,e)
  727. end
  728. end
  729. wait(0.4)
  730. for i=0,1,0.1 do
  731. wait()
  732. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  733. LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(1.6-0.8*i,0,0)
  734. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5*i,-1.2+1.6*i)
  735. end
  736. CrystalNumb=0
  737. attack=false
  738. end
  739. function ShardJab()
  740. attack=true
  741. for i=0,1,0.1 do
  742. wait()
  743. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  744. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+2.2*i,0,0)
  745. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5-1.07*i,0.4-0.4*i)
  746. end
  747. for i=1,3 do
  748. randomnumb=math.random(1,#Crystals)
  749. item=Crystals[randomnumb]
  750. item.CFrame=Torso.CFrame*cf(math.random(-6,6),math.random(6,8),math.random(-6,6))
  751. coroutine.resume(coroutine.create(function(Part)
  752. CrystalNumb=CrystalNumb-1
  753. table.remove(Crystals,randomnumb)
  754. CrystalEffect(prt7)
  755. wait(0.4)
  756. so("http://www.roblox.com/asset/?id=12222005",Part,1,1.5)
  757. Part.Crystal.Parent=nil
  758. for i=1,math.random(2,6) do
  759. local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  760. local mshh=mesh("SpecialMesh",brokecryst,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(math.random()-math.random(),math.random()+math.random(0,1),math.random()-math.random()))
  761. brokecryst.CanCollide=true
  762. brokecryst.CFrame=Part.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  763. brokecryst.Velocity=vt(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  764. game:GetService("Debris"):AddItem(brokecryst,4)
  765. end
  766. for i=1,3 do
  767. local Shard=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  768. local mshh=mesh("SpecialMesh",Shard,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,1.5,0.5))
  769. glow = Instance.new("PointLight")
  770. glow.Parent = Shard
  771. glow.Range = 9
  772. glow.Brightness = 6
  773. glow.Color = crystal.Color
  774. fd=Instance.new("BodyPosition")
  775. fd.P=10000
  776. fd.D=1000
  777. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  778. fd.position=Part.Position+vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  779. fd.Parent=Shard
  780. local bg = it("BodyGyro")
  781. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  782. bg.P = 20e+003
  783. bg.Parent=Shard
  784. bg.cframe=CFrame.new(Shard.Position,MMouse.Hit.p)*euler(1.57,0,0)
  785. --bg.cframe=CFrame.new(pos1,targetpos)
  786. coroutine.resume(coroutine.create(function(Part)
  787. wait(0.5)
  788. shoottrail(MMouse,Part)
  789. Part.Parent=nil
  790. end),Shard)
  791. end
  792. end),item)
  793. end
  794. wait(1)
  795. for i=0,1,0.1 do
  796. wait()
  797. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  798. LW.C0=cf(-1.5, 0.5, 0) * euler(3-2.2*i,0,0)
  799. LW.C1=cf(0, 0.5, 0) * euler(0,-1.57+1.07*i,0.4*i)
  800. end
  801. item.Parent=nil
  802. attack=false
  803. end
  804.  
  805. function ShardWave()
  806. attack=true
  807. Humanoid.WalkSpeed=0
  808. for i=0,1,0.1 do
  809. wait()
  810. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  811. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+0.77*i,0,0)
  812. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+0.5*i,0.4-0.4*i)
  813. end
  814. MainCF=Torso.CFrame*cf(0,0,-5)
  815. for i=1,10 do
  816. wait(0.1)
  817. MainCF=MainCF*cf(0,0,-2)
  818. CrystalEffect(prt7)
  819. local CrystDerp=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  820. glow = Instance.new("PointLight")
  821. glow.Parent = CrystDerp
  822. glow.Range = 5
  823. glow.Brightness = 4
  824. glow.Color = crystal.Color
  825. local mshh=mesh("SpecialMesh",CrystDerp,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(1+math.random(),math.random(1,2)+math.random(),1+math.random()))
  826. CrystDerp.CFrame=MainCF*cf(math.random(-5,5),math.random(-20,-15),math.random(-5,5))
  827. CrystDerp.Anchored=true
  828. game:GetService("Debris"):AddItem(CrystDerp,4)
  829. coroutine.resume(coroutine.create(function(Part)
  830. for i=1,10 do
  831. wait()
  832. Part.CFrame=Part.CFrame*cf(0,2,0)
  833. end
  834. wait(1)
  835. local cc = game.Workspace:GetChildren()
  836. for i = 1, #cc do
  837. local hum = cc[i]:findFirstChild("Humanoid")
  838. if hum ~= nil and hum.Health ~= 0 then
  839. local head = cc[i]:findFirstChild("Head")
  840. if head ~= nil then
  841. local targ = head.Position - Part.Position
  842. local mag = targ.magnitude
  843. if mag <= 5 and cc[i].Name ~= Player.Name then
  844. attackdebounce=false
  845. Damagefunc1(head,5,10)
  846. end
  847. end
  848. end
  849. end
  850. so("http://www.roblox.com/asset/?id=12222005",Part,1,1.5)
  851. for i=1,math.random(2,6) do
  852. local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  853. local mshh=mesh("SpecialMesh",brokecryst,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(math.random()-math.random(),math.random()+math.random(0,1),math.random()-math.random()))
  854. brokecryst.CanCollide=true
  855. brokecryst.CFrame=Part.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  856. brokecryst.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  857. game:GetService("Debris"):AddItem(brokecryst,4)
  858. end
  859. Part.Transparency=1
  860. end),CrystDerp)
  861. end
  862. Humanoid.WalkSpeed=16
  863. for i=0,1,0.1 do
  864. wait()
  865. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  866. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
  867. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5*i,0.4*i)
  868. end
  869. attack=false
  870. end
  871.  
  872. function ShardBarrage()
  873. attack=true
  874. Humanoid.WalkSpeed=0
  875. for i=0,1,0.1 do
  876. wait()
  877. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  878. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+0.77*i,0,0)
  879. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+0.5*i,0.4-0.4*i)
  880. end
  881. MainCF=Torso.CFrame*cf(0,0,-5)
  882. for i=1,35 do
  883. wait(0.1)
  884. MainCF=MainCF*cf(0,0,-2)
  885. CrystalEffect(prt7)
  886. local CrystDerp=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  887. local CrystDerp1=part(3,workspace,0.4,0,CrystalColor,"Crystal1",vt(1,1,1))
  888. local mshh=mesh("SpecialMesh",CrystDerp,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(1+math.random(5,5),math.random(7,9)+math.random(),1+math.random(5,5)))
  889. local mshh1=mesh("SpecialMesh",CrystDerp1,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(1+math.random(5,5),math.random(7,9)+math.random(),1+math.random(5,5)))
  890. CrystDerp.CFrame=MainCF*cf(math.random(-15,10),math.random(-25,-20),math.random(-30,15))
  891. CrystDerp.Anchored=true
  892. CrystDerp1.CFrame=MainCF*cf(math.random(-5,0),math.random(-20,-15),math.random(-10,10))
  893. CrystDerp1.Anchored=true
  894. game:GetService("Debris"):AddItem(CrystDerp,4)
  895. game:GetService("Debris"):AddItem(CrystDerp1,4)
  896. coroutine.resume(coroutine.create(function(Part)
  897. for i=1,10 do
  898. wait()
  899. Part.CFrame=Part.CFrame*cf(0,2,0)
  900. CrystDerp1.CFrame=CrystDerp1.CFrame*cf(0,2,0)
  901. end
  902. wait(1)
  903. local cc = game.Workspace:GetChildren()
  904. for i = 1, #cc do
  905. local hum = cc[i]:findFirstChild("Humanoid")
  906. if hum ~= nil and hum.Health ~= 0 then
  907. local head = cc[i]:findFirstChild("Head")
  908. if head ~= nil then
  909. local targ = head.Position - Part.Position
  910. local mag = targ.magnitude
  911. if mag <= 5 and cc[i].Name ~= Player.Name then
  912. attackdebounce=false
  913. Damagefunc1(head,25,40)
  914. end
  915. end
  916. end
  917. end
  918. local cc1 = game.Workspace:GetChildren()
  919. for e = 1, #cc1 do
  920. local hum1 = cc1[e]:findFirstChild("Humanoid")
  921. if hum1 ~= nil and hum1.Health ~= 0 then
  922. local head1 = cc1[e]:findFirstChild("Head")
  923. if head1 ~= nil then
  924. local targ1 = head1.Position - CrystDerp1.Position
  925. local mag1 = targ1.magnitude
  926. if mag1 <= 5 and cc1[e].Name ~= Player.Name then
  927. attackdebounce=false
  928. Damagefunc1(head1,25,40)
  929. end
  930. end
  931. end
  932. end
  933. so("http://www.roblox.com/asset/?id=12222005",Part,1,1.5)
  934. for i=1,math.random(2,6) do
  935. local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  936. local mshh=mesh("SpecialMesh",brokecryst,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(math.random()-math.random(),math.random()+math.random(0,1),math.random()-math.random()))
  937. glow = Instance.new("PointLight")
  938. glow.Parent = brokecryst
  939. glow.Range = 4
  940. glow.Brightness = 4
  941. glow.Color = crystal.Color
  942. brokecryst.CanCollide=true
  943. brokecryst.CFrame=Part.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  944. brokecryst.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  945. local brokecryst1=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  946. local mshh=mesh("SpecialMesh",brokecryst1,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(math.random()-math.random(),math.random()+math.random(0,1),math.random()-math.random()))
  947. glow = Instance.new("PointLight")
  948. glow.Parent = brokecryst1
  949. glow.Range = 4
  950. glow.Brightness = 4
  951. glow.Color = crystal.Color
  952. brokecryst1.CanCollide=true
  953. brokecryst1.CFrame=CrystDerp1.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  954. brokecryst1.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  955. game:GetService("Debris"):AddItem(brokecryst,4)
  956. game:GetService("Debris"):AddItem(brokecryst1,4)
  957. end
  958. Part.Transparency=1
  959. CrystDerp1.Transparency=1
  960. end),CrystDerp)
  961. end
  962. Humanoid.WalkSpeed=16
  963. for i=0,1,0.1 do
  964. wait()
  965. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  966. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
  967. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5*i,0.4*i)
  968. end
  969. attack=false
  970. end
  971.  
  972. function ob1d(mouse)
  973. if attack == true or CrystalNumb==0 then return end
  974. hold=true
  975. attackone()
  976. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  977. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  978. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8,0,0)
  979. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0.4)
  980. end
  981. function ob1u(mouse)
  982. hold = false
  983. end
  984. buttonhold = false
  985. eul=0
  986. function key(key)
  987. if attack == true then return end
  988. if key=="z" then
  989. ShardWave()
  990. end
  991. if key=="b" then
  992. ShardBarrage()
  993. end
  994. if key=="x" and CrystalNumb>=0 then
  995. Shatter()
  996. end
  997. if key=="c" and CrystalNumb>=3 then
  998. ShardJab()
  999. end
  1000. if key=="v" then
  1001. crystalhold=true
  1002. MakeCrystals()
  1003. end
  1004. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  1005. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  1006. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8,0,0)
  1007. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0.4)
  1008. end
  1009. function key2(key)
  1010. if key=="v" then
  1011. crystalhold=false
  1012. end
  1013. end
  1014. function s(mouse)
  1015. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1016. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1017. mouse.KeyDown:connect(key)
  1018. mouse.KeyUp:connect(key2)
  1019. unsheathed = true
  1020. player = Player
  1021. ch = Character
  1022. MMouse = mouse
  1023. RSH = ch.Torso["Right Shoulder"]
  1024. LSH = ch.Torso["Left Shoulder"]
  1025. --
  1026. RSH.Parent = nil
  1027. LSH.Parent = nil
  1028. --
  1029. RW.Part0 = ch.Torso
  1030. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1031. RW.C1 = CFrame.new(0, 0.5, 0)
  1032. RW.Part1 = ch["Right Arm"]
  1033. RW.Parent = ch.Torso
  1034. --_G.R = RW
  1035. --
  1036. LW.Part0 = ch.Torso
  1037. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1038. LW.C1 = CFrame.new(0, 0.5, 0)
  1039. LW.Part1 = ch["Left Arm"]
  1040. LW.Parent = ch.Torso
  1041. --_G.L = LW
  1042. --
  1043. equipanim()
  1044. end
  1045. function ds(mouse)
  1046. hideanim()
  1047. wait(0)
  1048. RW.Parent = nil
  1049. LW.Parent = nil
  1050. RSH.Parent = player.Character.Torso
  1051. LSH.Parent = player.Character.Torso
  1052. end
  1053. Bin.Selected:connect(s)
  1054. Bin.Deselected:connect(ds)
  1055. print("Crystal Gauntlet loaded.")
  1056. print(#Crystals)
  1057. numbb=0
  1058. datnumb=0
  1059. while true do
  1060. wait()
  1061. datnumb=0
  1062. BaseNumb=6.28
  1063. BaseNumb=BaseNumb/CrystalNumb
  1064. for d=1,#Crystals do
  1065. datnumb=datnumb+BaseNumb
  1066. local Crystal=Crystals[d]
  1067. if Crystal.className=="Part" then
  1068. coroutine.resume(coroutine.create(function(Part)
  1069. if #Crystals~=0 then
  1070. Part.CFrame=CFrame.new(Torso.Position)*euler(0,1+datnumb,0)*cf(0,0,5+(CrystalNumb/3))
  1071. numbb=numbb+0.05
  1072. --print(BaseNumb)
  1073. end
  1074. end),Crystal)
  1075. end
  1076. end
  1077. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement