Advertisement
WDGASTER132

Untitled

Jul 16th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.66 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. it=Instance.new
  18. vt=Vector3.new
  19. cf=CFrame.new
  20. euler=CFrame.fromEulerAnglesXYZ
  21. angles=CFrame.Angles
  22. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  23. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  24. attack = false
  25. attacktype = 1
  26. attackdebounce = false
  27. ssdebounce=false
  28. MMouse=nil
  29. combo=0
  30. local CrystalNumb=0
  31. local Crystals={}
  32. CrystalColor=BrickColor.new("Lime green")
  33. crystal = BrickColor.new("Lime green")
  34. --player
  35. player = nil
  36. --save shoulders
  37. RSH, LSH = nil, nil
  38. --welds
  39. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  40. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  41. if Character:findFirstChild("Crystal Gauntlet",true) ~= nil then
  42. Character:findFirstChild("Crystal Gauntlet",true).Parent = nil
  43. end
  44. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  45. local fp = it("Part")
  46. fp.Material = "SmoothPlastic"
  47. fp.formFactor = formfactor
  48. fp.Parent = parent
  49. fp.Reflectance = reflectance
  50. fp.Transparency = transparency
  51. fp.CanCollide = false
  52. fp.Locked=true
  53. fp.BrickColor = brickcolor
  54. fp.Name = name
  55. fp.Size = size
  56. fp.Position = Torso.Position
  57. fp.BottomSurface="SmoothNoOutlines"
  58. fp.TopSurface="SmoothNoOutlines"
  59. fp.LeftSurface="SmoothNoOutlines"
  60. fp.RightSurface="SmoothNoOutlines"
  61. fp:BreakJoints()
  62. return fp
  63. end
  64. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  65. local mesh = it(Mesh)
  66. mesh.Parent = part
  67. if Mesh=="SpecialMesh" then
  68. mesh.MeshType = meshtype
  69. mesh.MeshId = meshid
  70. end
  71. mesh.Offset=offset
  72. mesh.Scale=scale
  73. return mesh
  74. end
  75. function weld(parent,part0,part1,c0)
  76. local weld = it("Weld")
  77. weld.Parent = parent
  78. weld.Part0 = part0
  79. weld.Part1 = part1
  80. weld.C0 = c0
  81. return weld
  82. end
  83. local modelzorz = Instance.new("Model")
  84. modelzorz.Parent = Character
  85. modelzorz.Name = "Crystal Gauntlet"
  86. local prt1=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part1",vt(1,1,1))
  87. local prt2=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part2",vt(1,1,1))
  88. local prt3=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part3",vt(1,1,1))
  89. local prt4=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part4",vt(1,1,1))
  90. local prt5=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part5",vt(1,1,1))
  91. local prt6=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part6",vt(1,1,1))
  92. local prt7=part(3,modelzorz,0,0,BrickColor.new("Lime green"),"Part7",vt(1,1,1))
  93. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1.1,0.6,1.1))
  94. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(1.1,0.8,0.5))
  95. local msh3=mesh("CylinderMesh",prt3,"","",vt(0,0,0),vt(0.8,0.2,0.8))
  96. local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1.05,0.2,1.05))
  97. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.5,0.65,0.2))
  98. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.2,0.65,1.01))
  99. local msh7=mesh("SpecialMesh",prt7,"Sphere","",vt(0,0,0),vt(0.6,0.6,0.6))
  100. local wld1=weld(prt1,prt1,LeftArm,euler(0,0,0)*cf(0,-0.5,0))
  101. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0.7,0))
  102. local wld3=weld(prt3,prt3,prt2,euler(0,0,1.57)*cf(0.5,0.4,0))
  103. local wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,0.2,0))
  104. local wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0.3,0.3,0))
  105. local wld6=weld(prt6,prt6,prt4,euler(0,0,0)*cf(0,0.3,0))
  106. local wld7=weld(prt7,prt7,prt3,euler(0,0,0)*cf(0,0,0))
  107. if (script.Parent.className ~= "HopperBin") then
  108. Tool = Instance.new("HopperBin")
  109. Tool.Parent = Backpack
  110. Tool.Name = "Crystal Gauntlet"
  111. script.Parent = Tool
  112. end
  113. Bin = script.Parent
  114. local bg = it("BodyGyro")
  115. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  116. bg.P = 20e+003
  117. bg.Parent = nil
  118. so = function(id,par,vol,pit)
  119. coroutine.resume(coroutine.create(function()
  120. local sou = Instance.new("Sound",par or workspace)
  121. sou.Volume=vol
  122. sou.Pitch=pit or 1
  123. sou.SoundId=id
  124. wait()
  125. sou:play()
  126. wait(6)
  127. sou:Remove()
  128. end))
  129. end
  130. function hideanim()
  131. equipped=false
  132. wait(0.1)
  133. bg.Parent=nil
  134. end
  135. function equipanim()
  136. equipped=true
  137. wait(0.1)
  138. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  139. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  140. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8,0,0)
  141. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0.4)
  142. end
  143. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  144. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  145. end
  146. spread=2
  147. range=500
  148. rangepower=50
  149. function shoottrail(mouse,baseprt)
  150. coroutine.resume(coroutine.create(function()
  151. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-MMouse.Hit.p).magnitude/100
  152. local dir = CFrame.new((baseprt.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spreadvector)
  153. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,modelzorz)
  154. local rangepos = range
  155. local function drawtrail(From,To)
  156. local effectsmsh = Instance.new("CylinderMesh")
  157. effectsmsh.Scale = Vector3.new(1,1,1)
  158. effectsmsh.Name = "Mesh"
  159. local effectsg = Instance.new("Part")
  160. effectsg.formFactor = 3
  161. effectsg.CanCollide = false
  162. effectsg.Name = "Eff"
  163. effectsg.Locked = true
  164. effectsg.Anchored = true
  165. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  166. effectsg.Parent = modelzorz
  167. effectsmsh.Parent = effectsg
  168. effectsg.BrickColor = CrystalColor
  169. effectsg.Reflectance = 0.4
  170. glow = Instance.new("PointLight")
  171. glow.Parent = prt
  172. glow.Range = 6
  173. glow.Brightness = 5
  174. glow.Color = crystal.Color
  175. local LP = From
  176. local point1 = To
  177. local mg = (LP - point1).magnitude
  178. effectsmsh.Scale = Vector3.new(2,mg*5,2)
  179. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  180. coroutine.resume(coroutine.create(function()
  181. for i = 0 , 1 , 0.1 do
  182. wait()
  183. effectsg.Transparency = 1*i
  184. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  185. end
  186. effectsg.Parent = nil
  187. end))
  188. end
  189. local newpos = baseprt.Position
  190. local inc = rangepower
  191. repeat
  192. wait() wait()
  193. rangepos = rangepos - 10
  194. dir = dir * CFrame.Angles(math.rad(-1),0,0)
  195. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  196. drawtrail(newpos,pos)
  197. newpos = newpos + (dir.lookVector * inc)
  198. if inc >= 20 then
  199. inc = inc - 10
  200. end
  201. if hit ~= nil then
  202. rangepos = 0
  203. end
  204. until rangepos <= 0
  205. if hit ~= nil then
  206. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  207. hum = hit.Parent.Humanoid
  208. tTorso=hit.Parent.Torso
  209. Damagefunc1(hit,5,30)
  210. attackdebounce=false
  211. --ADmg(hum,hit)
  212. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  213. hum = hit.Parent.Parent.Humanoid
  214. tTorso=hit.Parent.Parent.Torso
  215. Damagefunc1(hit.Parent.Parent.Torso,5,30)
  216. attackdebounce=false
  217. --ADmg(hum,hit)
  218. end
  219. end
  220. end))
  221. end
  222. function MagicCircle(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  223. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  224. prt.Anchored=true
  225. prt.CFrame=cframe*cf(x2,y2,z2)
  226. glow = Instance.new("PointLight")
  227. glow.Parent = prt
  228. glow.Range = 4
  229. glow.Brightness = 5
  230. glow.Color = crystal.Color
  231. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  232. coroutine.resume(coroutine.create(function()
  233. for i=0,1,0.1 do
  234. wait()
  235. prt.CFrame=prt.CFrame
  236. prt.Transparency=i
  237. msh.Scale=msh.Scale+vt(x3,y3,z3)
  238. end
  239. prt.Parent=nil
  240. end))
  241. end
  242. function SpecialEffect()
  243. local prt=part(3,workspace,1,0,BrickColor.new("Lime green"),"Part",vt(1,1,1))
  244. prt.Anchored=true
  245. prt.CFrame=Torso.CFrame
  246. glow = Instance.new("PointLight")
  247. glow.Parent = prt
  248. glow.Range = 4
  249. glow.Brightness = 5
  250. glow.Color = crystal.Color
  251. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  252. coroutine.resume(coroutine.create(function(Part,Mesh)
  253. for i=0,1,0.2 do
  254. wait(0)
  255. Part.Transparency=i
  256. Mesh.Scale=Mesh.Scale+vt(10,10,10)
  257. end
  258. prt.Parent=nil
  259. end),prt,msh)
  260. end
  261. Damagefunc1=function(hit,Damage,Knockback)
  262. if hit.Parent==nil then
  263. return
  264. end
  265. CPlayer=Bin
  266. h=hit.Parent:FindFirstChild("Humanoid")
  267. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  268. if attackdebounce == false then
  269. attackdebounce = true
  270. coroutine.resume(coroutine.create(function()
  271. wait(0.2)
  272. attackdebounce = false
  273. end))
  274. Damage=Damage
  275. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  276. return
  277. end]]
  278. -- hs(hit,1.2)
  279. c=Instance.new("ObjectValue")
  280. c.Name="creator"
  281. c.Value=game.Players.LocalPlayer
  282. c.Parent=h
  283. game:GetService("Debris"):AddItem(c,.5)
  284. Damage=Damage+math.random(0,10)
  285. -- h:TakeDamage(Damage)
  286. blocked=false
  287. block=hit.Parent:findFirstChild("Block")
  288. if block~=nil then
  289. print("herp")
  290. if block.Value>0 then
  291. blocked=true
  292. block.Value=block.Value-1
  293. print(block.Value)
  294. end
  295. end
  296. if blocked==false then
  297. -- h:TakeDamage(Damage)
  298. h.Health=h.Health-Damage
  299. showDamage(hit.Parent,Damage,.5)
  300. else
  301. h:TakeDamage(1)
  302. showDamage(hit.Parent,1,.5)
  303. end
  304. vp=Instance.new("BodyVelocity")
  305. vp.P=500
  306. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  307. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  308. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  309. if Knockback>0 then
  310. vp.Parent=hit.Parent.Torso
  311. end
  312. game:GetService("Debris"):AddItem(vp,.25)
  313. c=Instance.new("ObjectValue")
  314. c.Name="creator"
  315. c.Value=Player
  316. c.Parent=h
  317. game:GetService("Debris"):AddItem(c,.5)
  318. CRIT=false
  319. hitDeb=true
  320. AttackPos=6
  321. end
  322. end
  323. end
  324. Damagefunc2=function(hit,Damage,Knockback)
  325. if attackdebounce == false then
  326. attackdebounce = true
  327. coroutine.resume(coroutine.create(function()
  328. wait(0.1)
  329. attackdebounce = false
  330. end))
  331. if hit.Parent==nil then
  332. return
  333. end
  334. CPlayer=Bin
  335. blocked=false
  336. h=hit.Parent:FindFirstChild("Humanoid")
  337. if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  338. Damage=Damage
  339. c=it("ObjectValue")
  340. c.Name="creator"
  341. c.Value=game.Players.LocalPlayer
  342. c.Parent=h
  343. game:GetService("Debris"):AddItem(c,.5)
  344. -- print(c.Value)
  345. --[[ if math.random(0,99)+math.random()<=7.8 then
  346. CRIT=true
  347. Damage=Damage*2
  348. s=it("Sound")
  349. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  350. s.Volume=1
  351. s.Pitch=2
  352. s.Parent=hit
  353. s.PlayOnRemove=true
  354. s.Parent=nil
  355.  
  356. end]]
  357. Damage=Damage+math.random(0,10)
  358. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  359. blocked=false
  360. block=hit.Parent:findFirstChild("Block")
  361. if block~=nil then
  362. print("herp")
  363. if block.Value>0 then
  364. blocked=true
  365. block.Value=block.Value-3
  366. print(block.Value)
  367. end
  368. end
  369. if blocked==false then
  370. -- h:TakeDamage(Damage)
  371. h.Health=h.Health-Damage
  372. showDamage(hit.Parent,Damage,.5)
  373. else
  374. h:TakeDamage(1)
  375. showDamage(hit.Parent,1,.5)
  376. end
  377. --if blocked==false then
  378. local angle = (hit.Position-(Torso.Position+Vector3.new(0,0,0))).unit
  379. print(angle)
  380. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  381. rl=Instance.new("BodyAngularVelocity")
  382. rl.P=3000
  383. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  384. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  385. rl.Parent=hit
  386. coroutine.resume(coroutine.create(function(vel)
  387. wait(1)
  388. vel:Remove()
  389. end),rl)
  390. --end
  391. local bodyVelocity=Instance.new("BodyVelocity")
  392. bodyVelocity.velocity=angle*40+Vector3.new(0,0,0)
  393. bodyVelocity.P=5000
  394. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  395. bodyVelocity.Parent=hit
  396. coroutine.resume(coroutine.create(function(Vel)
  397. wait(0.7)
  398. Vel:Remove()
  399. end),bodyVelocity)
  400. c=it("ObjectValue")
  401. c.Name="creator"
  402. c.Value=Player
  403. c.Parent=h
  404. game:GetService("Debris"):AddItem(c,.5)
  405. CRIT=false
  406. hitDeb=true
  407. AttackPos=6
  408. end
  409. end
  410. end
  411. showDamage=function(Char,Dealt,du)
  412. m=Instance.new("Model")
  413. m.Name=tostring(Dealt)
  414. h=Instance.new("Humanoid")
  415. h.Health=0
  416. h.MaxHealth=0
  417. h.Parent=m
  418. c=Instance.new("Part")
  419. c.Material = "SmoothPlastic"
  420. c.Transparency=0
  421. c.BrickColor=BrickColor:Red()
  422. if CRIT==true then
  423. c.BrickColor=BrickColor.new("Really red")
  424. end
  425. c.Name="Head"
  426. c.TopSurface=0
  427. c.BottomSurface=0
  428. c.formFactor="Plate"
  429. c.Size=Vector3.new(1,.4,1)
  430. ms=Instance.new("CylinderMesh")
  431. ms.Scale=Vector3.new(.8,.8,.8)
  432. if CRIT==true then
  433. ms.Scale=Vector3.new(1,1.25,1)
  434. end
  435. ms.Parent=c
  436. c.Reflectance=0
  437. Instance.new("BodyGyro").Parent=c
  438. c.Parent=m
  439. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  440. f=Instance.new("BodyPosition")
  441. f.P=2000
  442. f.D=100
  443. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  444. f.position=c.Position+Vector3.new(0,3,0)
  445. f.Parent=c
  446. game:GetService("Debris"):AddItem(m,.5+du)
  447. c.CanCollide=false
  448. m.Parent=workspace
  449. c.CanCollide=false
  450. end
  451. function CrystalEffect(crystal)
  452. clone=crystal:Clone()
  453. clone.Parent=workspace
  454. clone.Anchored=true
  455. clone.CFrame=crystal.CFrame
  456. glow = Instance.new("PointLight")
  457. glow.Parent = clone
  458. glow.Range = 9
  459. glow.Brightness = 6
  460. glow.Color = crystal.Color
  461. Mesh=clone.Mesh
  462. coroutine.resume(coroutine.create(function(Part,Meshh)
  463. for i=0.5,1,0.05 do
  464. wait()
  465. Part.Transparency=i
  466. Meshh.Scale=Meshh.Scale+vt(0.3,0.3,0.3)
  467. end
  468. Part.Parent=nil
  469. end),clone,Mesh)
  470. end
  471. function MakeCrystals()
  472. attack=true
  473. for i=0,1,0.1 do
  474. wait()
  475. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  476. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  477. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+0.77*i,0,0)
  478. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+2.07*i,0.4-0.4*i)
  479. end
  480. while crystalhold==true do
  481. if CrystalNumb<90 then
  482. so("http://www.roblox.com/asset/?id=106626284",Torso,1,2)
  483. CrystalEffect(prt7)
  484. CrystalNumb=CrystalNumb+1
  485. print(CrystalNumb)
  486. local base=part(3,modelzorz,0,1,BrickColor.new("Lime green"),"Part1",vt(1,1,1))
  487. base.Anchored=true
  488. base.CFrame=prt7.CFrame
  489. table.insert(Crystals,base)
  490. local crystall=part(3,base,0.4,0,CrystalColor,"Crystal",vt(2,2,2))
  491. local msh=mesh("SpecialMesh",crystall,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(2,2,2))
  492. glow = Instance.new("PointLight")
  493. glow.Parent = crystall
  494. glow.Range = 4.5
  495. glow.Brightness = 4.5
  496. glow.Color = crystal.Color
  497. crystall.Anchored=false
  498. crystall.CFrame=base.CFrame
  499. fd=Instance.new("BodyPosition")
  500. fd.P=10000
  501. fd.D=1000
  502. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  503. fd.position=base.Position
  504. fd.Parent=crystall
  505. coroutine.resume(coroutine.create(function(BodyPos,Part,BasePart)
  506. while BasePart.Parent~=nil do
  507. wait()
  508. BodyPos.position=BasePart.Position
  509. end
  510. Part.Parent=nil
  511. end),fd,crystall,base)
  512. end
  513. wait(0.5)
  514. end
  515. for i=0,1,0.1 do
  516. wait()
  517. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  518. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  519. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
  520. LW.C1=cf(0, 0.5, 0) * euler(0,1.57-2.07*i,0.4-0.4+0.4*i)
  521. end
  522. attack=false
  523. end
  524. function attackone()
  525. attack=true
  526. hitted=false
  527. CrystalEffect(prt7)
  528. randomnumb=math.random(1,#Crystals)
  529. item=Crystals[randomnumb]
  530. item.CFrame=LeftArm.CFrame*cf(0,-5,0)
  531. CrystalNumb=CrystalNumb-1
  532. table.remove(Crystals,randomnumb)
  533. for i=0,1,0.1 do
  534. wait()
  535. item.CFrame=LeftArm.CFrame*cf(0,-5,0)
  536. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  537. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  538. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8-0.8*i,0,0)
  539. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5-1.07*i,0.4+1.17*i)
  540. end
  541. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  542. Cryst=item.Crystal
  543. con1=Cryst.Touched:connect(function(hit)
  544. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  545. so("http://www.roblox.com/asset/?id=12222005",Torso,1,1.5)
  546. Cryst.Parent=nil
  547. hitted=true
  548. for i=1,math.random(4,8) do
  549. local brokecryst=part(3,workspace,0.4,0,Cryst.BrickColor,"Crystal",vt(1,1,1))
  550. 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()))
  551. glow = Instance.new("PointLight")
  552. glow.Parent = brokecryst
  553. glow.Range = 4
  554. glow.Brightness = 4.5
  555. glow.Color = crystal.Color
  556. brokecryst.CanCollide=true
  557. 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))
  558. brokecryst.Velocity=vt(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  559. game:GetService("Debris"):AddItem(brokecryst,4)
  560. end
  561. end
  562. Damagefunc1(hit,10,20)
  563. end)
  564. for i=0,1,0.2 do
  565. wait()
  566. item.CFrame=LeftArm.CFrame*cf(0,-5,0)
  567. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  568. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  569. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0,-3*i,0)
  570. LW.C1=cf(0, 0.5, 0) * euler(0,-1.57,1.57)
  571. end
  572. wait(0.5)
  573. con1:disconnect()
  574. if hitted==true then
  575. item.Parent=nil
  576. elseif hitted==false then
  577. CrystalNumb=CrystalNumb+1
  578. table.insert(Crystals,item)
  579. end
  580. attack=false
  581. end
  582. function Shatter()
  583. attack=true
  584. Damage=0
  585. for i=0,1,0.1 do
  586. wait()
  587. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  588. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.8+0.8*i,0,0)
  589. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+0.5*i,0.4-1.6*i)
  590. end
  591. CrystalEffect(prt7)
  592. for e=1,#Crystals do
  593. Damage=Damage+5
  594. so("http://www.roblox.com/asset/?id=12222005",Torso,1,1.5)
  595. CrystalNumb=CrystalNumb-1
  596. Crystals[e].Parent=nil
  597. for i=1,math.random(4,10) do
  598. local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  599. 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()))
  600. glow = Instance.new("PointLight")
  601. glow.Parent = brokecryst
  602. glow.Range = 4
  603. glow.Brightness = 4.5
  604. glow.Color = crystal.Color
  605. brokecryst.CanCollide=true
  606. 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))
  607. brokecryst.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  608. game:GetService("Debris"):AddItem(brokecryst,4)
  609. end
  610. --table.remove(Crystals,c)
  611. end
  612. local cc = game.Workspace:GetChildren()
  613. for i = 1, #cc do
  614. local hum = cc[i]:findFirstChild("Humanoid")
  615. if hum ~= nil and hum.Health ~= 0 then
  616. local head = cc[i]:findFirstChild("Head")
  617. if head ~= nil then
  618. local targ = head.Position - Torso.Position
  619. local mag = targ.magnitude
  620. if mag <= 20 and cc[i].Name ~= Player.Name then
  621. attackdebounce=false
  622. Damagefunc2(head,Damage,10)
  623. end
  624. end
  625. end
  626. end
  627. for i=1,10 do
  628. print("nou")
  629. for e=1,#Crystals do
  630. print(#Crystals)
  631. table.remove(Crystals,e)
  632. end
  633. end
  634. wait(0.4)
  635. for i=0,1,0.1 do
  636. wait()
  637. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  638. 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)
  639. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5*i,-1.2+1.6*i)
  640. end
  641. CrystalNumb=0
  642. attack=false
  643. end
  644. function ShardJab()
  645. attack=true
  646. for i=0,1,0.1 do
  647. wait()
  648. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  649. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+2.2*i,0,0)
  650. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5-1.07*i,0.4-0.4*i)
  651. end
  652. for i=1,3 do
  653. randomnumb=math.random(1,#Crystals)
  654. item=Crystals[randomnumb]
  655. item.CFrame=Torso.CFrame*cf(math.random(-6,6),math.random(6,8),math.random(-6,6))
  656. coroutine.resume(coroutine.create(function(Part)
  657. CrystalNumb=CrystalNumb-1
  658. table.remove(Crystals,randomnumb)
  659. CrystalEffect(prt7)
  660. wait(0.4)
  661. so("http://www.roblox.com/asset/?id=12222005",Part,1,1.5)
  662. Part.Crystal.Parent=nil
  663. for i=1,math.random(2,6) do
  664. local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  665. 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()))
  666. brokecryst.CanCollide=true
  667. 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))
  668. brokecryst.Velocity=vt(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  669. game:GetService("Debris"):AddItem(brokecryst,4)
  670. end
  671. for i=1,3 do
  672. local Shard=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  673. local mshh=mesh("SpecialMesh",Shard,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,1.5,0.5))
  674. glow = Instance.new("PointLight")
  675. glow.Parent = Shard
  676. glow.Range = 9
  677. glow.Brightness = 6
  678. glow.Color = crystal.Color
  679. fd=Instance.new("BodyPosition")
  680. fd.P=10000
  681. fd.D=1000
  682. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  683. fd.position=Part.Position+vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  684. fd.Parent=Shard
  685. local bg = it("BodyGyro")
  686. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  687. bg.P = 20e+003
  688. bg.Parent=Shard
  689. bg.cframe=CFrame.new(Shard.Position,MMouse.Hit.p)*euler(1.57,0,0)
  690. --bg.cframe=CFrame.new(pos1,targetpos)
  691. coroutine.resume(coroutine.create(function(Part)
  692. wait(0.5)
  693. shoottrail(MMouse,Part)
  694. Part.Parent=nil
  695. end),Shard)
  696. end
  697. end),item)
  698. end
  699. wait(1)
  700. for i=0,1,0.1 do
  701. wait()
  702. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  703. LW.C0=cf(-1.5, 0.5, 0) * euler(3-2.2*i,0,0)
  704. LW.C1=cf(0, 0.5, 0) * euler(0,-1.57+1.07*i,0.4*i)
  705. end
  706. item.Parent=nil
  707. attack=false
  708. end
  709.  
  710. function ShardWave()
  711. attack=true
  712. Humanoid.WalkSpeed=0
  713. for i=0,1,0.1 do
  714. wait()
  715. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  716. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+0.77*i,0,0)
  717. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+0.5*i,0.4-0.4*i)
  718. end
  719. MainCF=Torso.CFrame*cf(0,0,-5)
  720. for i=1,10 do
  721. wait(0.1)
  722. MainCF=MainCF*cf(0,0,-2)
  723. CrystalEffect(prt7)
  724. local CrystDerp=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  725. glow = Instance.new("PointLight")
  726. glow.Parent = CrystDerp
  727. glow.Range = 5
  728. glow.Brightness = 4
  729. glow.Color = crystal.Color
  730. 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()))
  731. CrystDerp.CFrame=MainCF*cf(math.random(-5,5),math.random(-20,-15),math.random(-5,5))
  732. CrystDerp.Anchored=true
  733. game:GetService("Debris"):AddItem(CrystDerp,4)
  734. coroutine.resume(coroutine.create(function(Part)
  735. for i=1,10 do
  736. wait()
  737. Part.CFrame=Part.CFrame*cf(0,2,0)
  738. end
  739. wait(1)
  740. local cc = game.Workspace:GetChildren()
  741. for i = 1, #cc do
  742. local hum = cc[i]:findFirstChild("Humanoid")
  743. if hum ~= nil and hum.Health ~= 0 then
  744. local head = cc[i]:findFirstChild("Head")
  745. if head ~= nil then
  746. local targ = head.Position - Part.Position
  747. local mag = targ.magnitude
  748. if mag <= 5 and cc[i].Name ~= Player.Name then
  749. attackdebounce=false
  750. Damagefunc1(head,5,10)
  751. end
  752. end
  753. end
  754. end
  755. so("http://www.roblox.com/asset/?id=12222005",Part,1,1.5)
  756. for i=1,math.random(2,6) do
  757. local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  758. 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()))
  759. brokecryst.CanCollide=true
  760. 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))
  761. brokecryst.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  762. game:GetService("Debris"):AddItem(brokecryst,4)
  763. end
  764. Part.Transparency=1
  765. end),CrystDerp)
  766. end
  767. Humanoid.WalkSpeed=16
  768. for i=0,1,0.1 do
  769. wait()
  770. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  771. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
  772. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5*i,0.4*i)
  773. end
  774. attack=false
  775. end
  776.  
  777. function ShardBarrage()
  778. attack=true
  779. Humanoid.WalkSpeed=0
  780. for i=0,1,0.1 do
  781. wait()
  782. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  783. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+0.77*i,0,0)
  784. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+0.5*i,0.4-0.4*i)
  785. end
  786. MainCF=Torso.CFrame*cf(0,0,-5)
  787. for i=1,35 do
  788. wait(0.1)
  789. MainCF=MainCF*cf(0,0,-2)
  790. CrystalEffect(prt7)
  791. local CrystDerp=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  792. local CrystDerp1=part(3,workspace,0.4,0,CrystalColor,"Crystal1",vt(1,1,1))
  793. 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)))
  794. 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)))
  795. CrystDerp.CFrame=MainCF*cf(math.random(-15,10),math.random(-25,-20),math.random(-30,15))
  796. CrystDerp.Anchored=true
  797. CrystDerp1.CFrame=MainCF*cf(math.random(-5,0),math.random(-20,-15),math.random(-10,10))
  798. CrystDerp1.Anchored=true
  799. game:GetService("Debris"):AddItem(CrystDerp,4)
  800. game:GetService("Debris"):AddItem(CrystDerp1,4)
  801. coroutine.resume(coroutine.create(function(Part)
  802. for i=1,10 do
  803. wait()
  804. Part.CFrame=Part.CFrame*cf(0,2,0)
  805. CrystDerp1.CFrame=CrystDerp1.CFrame*cf(0,2,0)
  806. end
  807. wait(1)
  808. local cc = game.Workspace:GetChildren()
  809. for i = 1, #cc do
  810. local hum = cc[i]:findFirstChild("Humanoid")
  811. if hum ~= nil and hum.Health ~= 0 then
  812. local head = cc[i]:findFirstChild("Head")
  813. if head ~= nil then
  814. local targ = head.Position - Part.Position
  815. local mag = targ.magnitude
  816. if mag <= 5 and cc[i].Name ~= Player.Name then
  817. attackdebounce=false
  818. Damagefunc1(head,25,40)
  819. end
  820. end
  821. end
  822. end
  823. local cc1 = game.Workspace:GetChildren()
  824. for e = 1, #cc1 do
  825. local hum1 = cc1[e]:findFirstChild("Humanoid")
  826. if hum1 ~= nil and hum1.Health ~= 0 then
  827. local head1 = cc1[e]:findFirstChild("Head")
  828. if head1 ~= nil then
  829. local targ1 = head1.Position - CrystDerp1.Position
  830. local mag1 = targ1.magnitude
  831. if mag1 <= 5 and cc1[e].Name ~= Player.Name then
  832. attackdebounce=false
  833. Damagefunc1(head1,25,40)
  834. end
  835. end
  836. end
  837. end
  838. so("http://www.roblox.com/asset/?id=12222005",Part,1,1.5)
  839. for i=1,math.random(2,6) do
  840. local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  841. 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()))
  842. glow = Instance.new("PointLight")
  843. glow.Parent = brokecryst
  844. glow.Range = 4
  845. glow.Brightness = 4
  846. glow.Color = crystal.Color
  847. brokecryst.CanCollide=true
  848. 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))
  849. brokecryst.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  850. local brokecryst1=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  851. 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()))
  852. glow = Instance.new("PointLight")
  853. glow.Parent = brokecryst1
  854. glow.Range = 4
  855. glow.Brightness = 4
  856. glow.Color = crystal.Color
  857. brokecryst1.CanCollide=true
  858. 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))
  859. brokecryst1.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  860. game:GetService("Debris"):AddItem(brokecryst,4)
  861. game:GetService("Debris"):AddItem(brokecryst1,4)
  862. end
  863. Part.Transparency=1
  864. CrystDerp1.Transparency=1
  865. end),CrystDerp)
  866. end
  867. Humanoid.WalkSpeed=16
  868. for i=0,1,0.1 do
  869. wait()
  870. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  871. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
  872. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5*i,0.4*i)
  873. end
  874. attack=false
  875. end
  876.  
  877. function ob1d(mouse)
  878. if attack == true or CrystalNumb==0 then return end
  879. hold=true
  880. attackone()
  881. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  882. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  883. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8,0,0)
  884. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0.4)
  885. end
  886. function ob1u(mouse)
  887. hold = false
  888. end
  889. buttonhold = false
  890. eul=0
  891. function key(key)
  892. if attack == true then return end
  893. if key=="z" then
  894. ShardWave()
  895. end
  896. if key=="b" then
  897. ShardBarrage()
  898. end
  899. if key=="x" and CrystalNumb>=0 then
  900. Shatter()
  901. end
  902. if key=="c" and CrystalNumb>=3 then
  903. ShardJab()
  904. end
  905. if key=="v" then
  906. crystalhold=true
  907. MakeCrystals()
  908. end
  909. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  910. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  911. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8,0,0)
  912. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0.4)
  913. end
  914. function key2(key)
  915. if key=="v" then
  916. crystalhold=false
  917. end
  918. end
  919. function s(mouse)
  920. mouse.Button1Down:connect(function() ob1d(mouse) end)
  921. mouse.Button1Up:connect(function() ob1u(mouse) end)
  922. mouse.KeyDown:connect(key)
  923. mouse.KeyUp:connect(key2)
  924. unsheathed = true
  925. player = Player
  926. ch = Character
  927. MMouse = mouse
  928. RSH = ch.Torso["Right Shoulder"]
  929. LSH = ch.Torso["Left Shoulder"]
  930. --
  931. RSH.Parent = nil
  932. LSH.Parent = nil
  933. --
  934. RW.Part0 = ch.Torso
  935. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  936. RW.C1 = CFrame.new(0, 0.5, 0)
  937. RW.Part1 = ch["Right Arm"]
  938. RW.Parent = ch.Torso
  939. --_G.R = RW
  940. --
  941. LW.Part0 = ch.Torso
  942. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  943. LW.C1 = CFrame.new(0, 0.5, 0)
  944. LW.Part1 = ch["Left Arm"]
  945. LW.Parent = ch.Torso
  946. --_G.L = LW
  947. --
  948. equipanim()
  949. end
  950. function ds(mouse)
  951. hideanim()
  952. wait(0)
  953. RW.Parent = nil
  954. LW.Parent = nil
  955. RSH.Parent = player.Character.Torso
  956. LSH.Parent = player.Character.Torso
  957. end
  958. Bin.Selected:connect(s)
  959. Bin.Deselected:connect(ds)
  960. print("Crystal Gauntlet loaded.")
  961. print(#Crystals)
  962. numbb=0
  963. datnumb=0
  964. while true do
  965. wait()
  966. datnumb=0
  967. BaseNumb=6.28
  968. BaseNumb=BaseNumb/CrystalNumb
  969. for d=1,#Crystals do
  970. datnumb=datnumb+BaseNumb
  971. local Crystal=Crystals[d]
  972. if Crystal.className=="Part" then
  973. coroutine.resume(coroutine.create(function(Part)
  974. if #Crystals~=0 then
  975. Part.CFrame=CFrame.new(Torso.Position)*euler(0,1+datnumb,0)*cf(0,0,5+(CrystalNumb/3))
  976. numbb=numbb+0.05
  977. --print(BaseNumb)
  978. end
  979. end),Crystal)
  980. end
  981. end
  982. end
  983. -- mediafire
  984. --[[
  985. Copyrighted (C) Fenrier 2013
  986. ]]Player = game:GetService("Players").LocalPlayer
  987. Character = Player.Character
  988. PlayerGui = Player.PlayerGui
  989. Backpack = Player.Backpack
  990. Torso = Character.Torso
  991. Head = Character.Head
  992. Humanoid = Character.Humanoid
  993. LeftArm = Character["Left Arm"]
  994. LeftLeg = Character["Left Leg"]
  995. RightArm = Character["Right Arm"]
  996. RightLeg = Character["Right Leg"]
  997. LS = Torso["Left Shoulder"]
  998. LH = Torso["Left Hip"]
  999. RS = Torso["Right Shoulder"]
  1000. RH = Torso["Right Hip"]
  1001. Neck = Torso.Neck
  1002. it=Instance.new
  1003. vt=Vector3.new
  1004. cf=CFrame.new
  1005. euler=CFrame.fromEulerAnglesXYZ
  1006. angles=CFrame.Angles
  1007. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1008. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1009. attack = false
  1010. attacktype = 1
  1011. attackdebounce = false
  1012. ssdebounce=false
  1013. MMouse=nil
  1014. combo=0
  1015. local CrystalNumb=0
  1016. local Crystals={}
  1017. CrystalColor=BrickColor.new("Lime green")
  1018. crystal = BrickColor.new("Lime green")
  1019. --player
  1020. player = nil
  1021. --save shoulders
  1022. RSH, LSH = nil, nil
  1023. --welds
  1024. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  1025. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1026. if Character:findFirstChild("Crystal Gauntlet",true) ~= nil then
  1027. Character:findFirstChild("Crystal Gauntlet",true).Parent = nil
  1028. end
  1029. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1030. local fp = it("Part")
  1031. fp.Material = "SmoothPlastic"
  1032. fp.formFactor = formfactor
  1033. fp.Parent = parent
  1034. fp.Reflectance = reflectance
  1035. fp.Transparency = transparency
  1036. fp.CanCollide = false
  1037. fp.Locked=true
  1038. fp.BrickColor = brickcolor
  1039. fp.Name = name
  1040. fp.Size = size
  1041. fp.Position = Torso.Position
  1042. fp.BottomSurface="SmoothNoOutlines"
  1043. fp.TopSurface="SmoothNoOutlines"
  1044. fp.LeftSurface="SmoothNoOutlines"
  1045. fp.RightSurface="SmoothNoOutlines"
  1046. fp:BreakJoints()
  1047. return fp
  1048. end
  1049. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1050. local mesh = it(Mesh)
  1051. mesh.Parent = part
  1052. if Mesh=="SpecialMesh" then
  1053. mesh.MeshType = meshtype
  1054. mesh.MeshId = meshid
  1055. end
  1056. mesh.Offset=offset
  1057. mesh.Scale=scale
  1058. return mesh
  1059. end
  1060. function weld(parent,part0,part1,c0)
  1061. local weld = it("Weld")
  1062. weld.Parent = parent
  1063. weld.Part0 = part0
  1064. weld.Part1 = part1
  1065. weld.C0 = c0
  1066. return weld
  1067. end
  1068. local modelzorz = Instance.new("Model")
  1069. modelzorz.Parent = Character
  1070. modelzorz.Name = "Crystal Gauntlet"
  1071. local prt1=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part1",vt(1,1,1))
  1072. local prt2=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part2",vt(1,1,1))
  1073. local prt3=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part3",vt(1,1,1))
  1074. local prt4=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part4",vt(1,1,1))
  1075. local prt5=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part5",vt(1,1,1))
  1076. local prt6=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part6",vt(1,1,1))
  1077. local prt7=part(3,modelzorz,0,0,BrickColor.new("Lime green"),"Part7",vt(1,1,1))
  1078. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1.1,0.6,1.1))
  1079. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(1.1,0.8,0.5))
  1080. local msh3=mesh("CylinderMesh",prt3,"","",vt(0,0,0),vt(0.8,0.2,0.8))
  1081. local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1.05,0.2,1.05))
  1082. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.5,0.65,0.2))
  1083. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.2,0.65,1.01))
  1084. local msh7=mesh("SpecialMesh",prt7,"Sphere","",vt(0,0,0),vt(0.6,0.6,0.6))
  1085. local wld1=weld(prt1,prt1,LeftArm,euler(0,0,0)*cf(0,-0.5,0))
  1086. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0.7,0))
  1087. local wld3=weld(prt3,prt3,prt2,euler(0,0,1.57)*cf(0.5,0.4,0))
  1088. local wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,0.2,0))
  1089. local wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0.3,0.3,0))
  1090. local wld6=weld(prt6,prt6,prt4,euler(0,0,0)*cf(0,0.3,0))
  1091. local wld7=weld(prt7,prt7,prt3,euler(0,0,0)*cf(0,0,0))
  1092. if (script.Parent.className ~= "HopperBin") then
  1093. Tool = Instance.new("HopperBin")
  1094. Tool.Parent = Backpack
  1095. Tool.Name = "Crystal Gauntlet"
  1096. script.Parent = Tool
  1097. end
  1098. Bin = script.Parent
  1099. local bg = it("BodyGyro")
  1100. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1101. bg.P = 20e+003
  1102. bg.Parent = nil
  1103. so = function(id,par,vol,pit)
  1104. coroutine.resume(coroutine.create(function()
  1105. local sou = Instance.new("Sound",par or workspace)
  1106. sou.Volume=vol
  1107. sou.Pitch=pit or 1
  1108. sou.SoundId=id
  1109. wait()
  1110. sou:play()
  1111. wait(6)
  1112. sou:Remove()
  1113. end))
  1114. end
  1115. function hideanim()
  1116. equipped=false
  1117. wait(0.1)
  1118. bg.Parent=nil
  1119. end
  1120. function equipanim()
  1121. equipped=true
  1122. wait(0.1)
  1123. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  1124. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  1125. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8,0,0)
  1126. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0.4)
  1127. end
  1128. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1129. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1130. end
  1131. spread=2
  1132. range=500
  1133. rangepower=50
  1134. function shoottrail(mouse,baseprt)
  1135. coroutine.resume(coroutine.create(function()
  1136. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-MMouse.Hit.p).magnitude/100
  1137. local dir = CFrame.new((baseprt.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spreadvector)
  1138. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,modelzorz)
  1139. local rangepos = range
  1140. local function drawtrail(From,To)
  1141. local effectsmsh = Instance.new("CylinderMesh")
  1142. effectsmsh.Scale = Vector3.new(1,1,1)
  1143. effectsmsh.Name = "Mesh"
  1144. local effectsg = Instance.new("Part")
  1145. effectsg.formFactor = 3
  1146. effectsg.CanCollide = false
  1147. effectsg.Name = "Eff"
  1148. effectsg.Locked = true
  1149. effectsg.Anchored = true
  1150. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1151. effectsg.Parent = modelzorz
  1152. effectsmsh.Parent = effectsg
  1153. effectsg.BrickColor = CrystalColor
  1154. effectsg.Reflectance = 0.4
  1155. glow = Instance.new("PointLight")
  1156. glow.Parent = prt
  1157. glow.Range = 6
  1158. glow.Brightness = 5
  1159. glow.Color = crystal.Color
  1160. local LP = From
  1161. local point1 = To
  1162. local mg = (LP - point1).magnitude
  1163. effectsmsh.Scale = Vector3.new(2,mg*5,2)
  1164. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1165. coroutine.resume(coroutine.create(function()
  1166. for i = 0 , 1 , 0.1 do
  1167. wait()
  1168. effectsg.Transparency = 1*i
  1169. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  1170. end
  1171. effectsg.Parent = nil
  1172. end))
  1173. end
  1174. local newpos = baseprt.Position
  1175. local inc = rangepower
  1176. repeat
  1177. wait() wait()
  1178. rangepos = rangepos - 10
  1179. dir = dir * CFrame.Angles(math.rad(-1),0,0)
  1180. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1181. drawtrail(newpos,pos)
  1182. newpos = newpos + (dir.lookVector * inc)
  1183. if inc >= 20 then
  1184. inc = inc - 10
  1185. end
  1186. if hit ~= nil then
  1187. rangepos = 0
  1188. end
  1189. until rangepos <= 0
  1190. if hit ~= nil then
  1191. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1192. hum = hit.Parent.Humanoid
  1193. tTorso=hit.Parent.Torso
  1194. Damagefunc1(hit,5,30)
  1195. attackdebounce=false
  1196. --ADmg(hum,hit)
  1197. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1198. hum = hit.Parent.Parent.Humanoid
  1199. tTorso=hit.Parent.Parent.Torso
  1200. Damagefunc1(hit.Parent.Parent.Torso,5,30)
  1201. attackdebounce=false
  1202. --ADmg(hum,hit)
  1203. end
  1204. end
  1205. end))
  1206. end
  1207. function MagicCircle(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  1208. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1209. prt.Anchored=true
  1210. prt.CFrame=cframe*cf(x2,y2,z2)
  1211. glow = Instance.new("PointLight")
  1212. glow.Parent = prt
  1213. glow.Range = 4
  1214. glow.Brightness = 5
  1215. glow.Color = crystal.Color
  1216. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1217. coroutine.resume(coroutine.create(function()
  1218. for i=0,1,0.1 do
  1219. wait()
  1220. prt.CFrame=prt.CFrame
  1221. prt.Transparency=i
  1222. msh.Scale=msh.Scale+vt(x3,y3,z3)
  1223. end
  1224. prt.Parent=nil
  1225. end))
  1226. end
  1227. function SpecialEffect()
  1228. local prt=part(3,workspace,1,0,BrickColor.new("Lime green"),"Part",vt(1,1,1))
  1229. prt.Anchored=true
  1230. prt.CFrame=Torso.CFrame
  1231. glow = Instance.new("PointLight")
  1232. glow.Parent = prt
  1233. glow.Range = 4
  1234. glow.Brightness = 5
  1235. glow.Color = crystal.Color
  1236. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1237. coroutine.resume(coroutine.create(function(Part,Mesh)
  1238. for i=0,1,0.2 do
  1239. wait(0)
  1240. Part.Transparency=i
  1241. Mesh.Scale=Mesh.Scale+vt(10,10,10)
  1242. end
  1243. prt.Parent=nil
  1244. end),prt,msh)
  1245. end
  1246. Damagefunc1=function(hit,Damage,Knockback)
  1247. if hit.Parent==nil then
  1248. return
  1249. end
  1250. CPlayer=Bin
  1251. h=hit.Parent:FindFirstChild("Humanoid")
  1252. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1253. if attackdebounce == false then
  1254. attackdebounce = true
  1255. coroutine.resume(coroutine.create(function()
  1256. wait(0.2)
  1257. attackdebounce = false
  1258. end))
  1259. Damage=Damage
  1260. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1261. return
  1262. end]]
  1263. -- hs(hit,1.2)
  1264. c=Instance.new("ObjectValue")
  1265. c.Name="creator"
  1266. c.Value=game.Players.LocalPlayer
  1267. c.Parent=h
  1268. game:GetService("Debris"):AddItem(c,.5)
  1269. Damage=Damage+math.random(0,10)
  1270. -- h:TakeDamage(Damage)
  1271. blocked=false
  1272. block=hit.Parent:findFirstChild("Block")
  1273. if block~=nil then
  1274. print("herp")
  1275. if block.Value>0 then
  1276. blocked=true
  1277. block.Value=block.Value-1
  1278. print(block.Value)
  1279. end
  1280. end
  1281. if blocked==false then
  1282. -- h:TakeDamage(Damage)
  1283. h.Health=h.Health-Damage
  1284. showDamage(hit.Parent,Damage,.5)
  1285. else
  1286. h:TakeDamage(1)
  1287. showDamage(hit.Parent,1,.5)
  1288. end
  1289. vp=Instance.new("BodyVelocity")
  1290. vp.P=500
  1291. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1292. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1293. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1294. if Knockback>0 then
  1295. vp.Parent=hit.Parent.Torso
  1296. end
  1297. game:GetService("Debris"):AddItem(vp,.25)
  1298. c=Instance.new("ObjectValue")
  1299. c.Name="creator"
  1300. c.Value=Player
  1301. c.Parent=h
  1302. game:GetService("Debris"):AddItem(c,.5)
  1303. CRIT=false
  1304. hitDeb=true
  1305. AttackPos=6
  1306. end
  1307. end
  1308. end
  1309. Damagefunc2=function(hit,Damage,Knockback)
  1310. if attackdebounce == false then
  1311. attackdebounce = true
  1312. coroutine.resume(coroutine.create(function()
  1313. wait(0.1)
  1314. attackdebounce = false
  1315. end))
  1316. if hit.Parent==nil then
  1317. return
  1318. end
  1319. CPlayer=Bin
  1320. blocked=false
  1321. h=hit.Parent:FindFirstChild("Humanoid")
  1322. if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  1323. Damage=Damage
  1324. c=it("ObjectValue")
  1325. c.Name="creator"
  1326. c.Value=game.Players.LocalPlayer
  1327. c.Parent=h
  1328. game:GetService("Debris"):AddItem(c,.5)
  1329. -- print(c.Value)
  1330. --[[ if math.random(0,99)+math.random()<=7.8 then
  1331. CRIT=true
  1332. Damage=Damage*2
  1333. s=it("Sound")
  1334. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1335. s.Volume=1
  1336. s.Pitch=2
  1337. s.Parent=hit
  1338. s.PlayOnRemove=true
  1339. s.Parent=nil
  1340.  
  1341. end]]
  1342. Damage=Damage+math.random(0,10)
  1343. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1344. blocked=false
  1345. block=hit.Parent:findFirstChild("Block")
  1346. if block~=nil then
  1347. print("herp")
  1348. if block.Value>0 then
  1349. blocked=true
  1350. block.Value=block.Value-3
  1351. print(block.Value)
  1352. end
  1353. end
  1354. if blocked==false then
  1355. -- h:TakeDamage(Damage)
  1356. h.Health=h.Health-Damage
  1357. showDamage(hit.Parent,Damage,.5)
  1358. else
  1359. h:TakeDamage(1)
  1360. showDamage(hit.Parent,1,.5)
  1361. end
  1362. --if blocked==false then
  1363. local angle = (hit.Position-(Torso.Position+Vector3.new(0,0,0))).unit
  1364. print(angle)
  1365. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1366. rl=Instance.new("BodyAngularVelocity")
  1367. rl.P=3000
  1368. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1369. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1370. rl.Parent=hit
  1371. coroutine.resume(coroutine.create(function(vel)
  1372. wait(1)
  1373. vel:Remove()
  1374. end),rl)
  1375. --end
  1376. local bodyVelocity=Instance.new("BodyVelocity")
  1377. bodyVelocity.velocity=angle*40+Vector3.new(0,0,0)
  1378. bodyVelocity.P=5000
  1379. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1380. bodyVelocity.Parent=hit
  1381. coroutine.resume(coroutine.create(function(Vel)
  1382. wait(0.7)
  1383. Vel:Remove()
  1384. end),bodyVelocity)
  1385. c=it("ObjectValue")
  1386. c.Name="creator"
  1387. c.Value=Player
  1388. c.Parent=h
  1389. game:GetService("Debris"):AddItem(c,.5)
  1390. CRIT=false
  1391. hitDeb=true
  1392. AttackPos=6
  1393. end
  1394. end
  1395. end
  1396. showDamage=function(Char,Dealt,du)
  1397. m=Instance.new("Model")
  1398. m.Name=tostring(Dealt)
  1399. h=Instance.new("Humanoid")
  1400. h.Health=0
  1401. h.MaxHealth=0
  1402. h.Parent=m
  1403. c=Instance.new("Part")
  1404. c.Material = "SmoothPlastic"
  1405. c.Transparency=0
  1406. c.BrickColor=BrickColor:Red()
  1407. if CRIT==true then
  1408. c.BrickColor=BrickColor.new("Really red")
  1409. end
  1410. c.Name="Head"
  1411. c.TopSurface=0
  1412. c.BottomSurface=0
  1413. c.formFactor="Plate"
  1414. c.Size=Vector3.new(1,.4,1)
  1415. ms=Instance.new("CylinderMesh")
  1416. ms.Scale=Vector3.new(.8,.8,.8)
  1417. if CRIT==true then
  1418. ms.Scale=Vector3.new(1,1.25,1)
  1419. end
  1420. ms.Parent=c
  1421. c.Reflectance=0
  1422. Instance.new("BodyGyro").Parent=c
  1423. c.Parent=m
  1424. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1425. f=Instance.new("BodyPosition")
  1426. f.P=2000
  1427. f.D=100
  1428. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1429. f.position=c.Position+Vector3.new(0,3,0)
  1430. f.Parent=c
  1431. game:GetService("Debris"):AddItem(m,.5+du)
  1432. c.CanCollide=false
  1433. m.Parent=workspace
  1434. c.CanCollide=false
  1435. end
  1436. function CrystalEffect(crystal)
  1437. clone=crystal:Clone()
  1438. clone.Parent=workspace
  1439. clone.Anchored=true
  1440. clone.CFrame=crystal.CFrame
  1441. glow = Instance.new("PointLight")
  1442. glow.Parent = clone
  1443. glow.Range = 9
  1444. glow.Brightness = 6
  1445. glow.Color = crystal.Color
  1446. Mesh=clone.Mesh
  1447. coroutine.resume(coroutine.create(function(Part,Meshh)
  1448. for i=0.5,1,0.05 do
  1449. wait()
  1450. Part.Transparency=i
  1451. Meshh.Scale=Meshh.Scale+vt(0.3,0.3,0.3)
  1452. end
  1453. Part.Parent=nil
  1454. end),clone,Mesh)
  1455. end
  1456. function MakeCrystals()
  1457. attack=true
  1458. for i=0,1,0.1 do
  1459. wait()
  1460. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  1461. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  1462. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+0.77*i,0,0)
  1463. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+2.07*i,0.4-0.4*i)
  1464. end
  1465. while crystalhold==true do
  1466. if CrystalNumb<90 then
  1467. so("http://www.roblox.com/asset/?id=106626284",Torso,1,2)
  1468. CrystalEffect(prt7)
  1469. CrystalNumb=CrystalNumb+1
  1470. print(CrystalNumb)
  1471. local base=part(3,modelzorz,0,1,BrickColor.new("Lime green"),"Part1",vt(1,1,1))
  1472. base.Anchored=true
  1473. base.CFrame=prt7.CFrame
  1474. table.insert(Crystals,base)
  1475. local crystall=part(3,base,0.4,0,CrystalColor,"Crystal",vt(2,2,2))
  1476. local msh=mesh("SpecialMesh",crystall,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(2,2,2))
  1477. glow = Instance.new("PointLight")
  1478. glow.Parent = crystall
  1479. glow.Range = 4.5
  1480. glow.Brightness = 4.5
  1481. glow.Color = crystal.Color
  1482. crystall.Anchored=false
  1483. crystall.CFrame=base.CFrame
  1484. fd=Instance.new("BodyPosition")
  1485. fd.P=10000
  1486. fd.D=1000
  1487. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1488. fd.position=base.Position
  1489. fd.Parent=crystall
  1490. coroutine.resume(coroutine.create(function(BodyPos,Part,BasePart)
  1491. while BasePart.Parent~=nil do
  1492. wait()
  1493. BodyPos.position=BasePart.Position
  1494. end
  1495. Part.Parent=nil
  1496. end),fd,crystall,base)
  1497. end
  1498. wait(0.5)
  1499. end
  1500. for i=0,1,0.1 do
  1501. wait()
  1502. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  1503. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  1504. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
  1505. LW.C1=cf(0, 0.5, 0) * euler(0,1.57-2.07*i,0.4-0.4+0.4*i)
  1506. end
  1507. attack=false
  1508. end
  1509. function attackone()
  1510. attack=true
  1511. hitted=false
  1512. CrystalEffect(prt7)
  1513. randomnumb=math.random(1,#Crystals)
  1514. item=Crystals[randomnumb]
  1515. item.CFrame=LeftArm.CFrame*cf(0,-5,0)
  1516. CrystalNumb=CrystalNumb-1
  1517. table.remove(Crystals,randomnumb)
  1518. for i=0,1,0.1 do
  1519. wait()
  1520. item.CFrame=LeftArm.CFrame*cf(0,-5,0)
  1521. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  1522. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  1523. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8-0.8*i,0,0)
  1524. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5-1.07*i,0.4+1.17*i)
  1525. end
  1526. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  1527. Cryst=item.Crystal
  1528. con1=Cryst.Touched:connect(function(hit)
  1529. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1530. so("http://www.roblox.com/asset/?id=12222005",Torso,1,1.5)
  1531. Cryst.Parent=nil
  1532. hitted=true
  1533. for i=1,math.random(4,8) do
  1534. local brokecryst=part(3,workspace,0.4,0,Cryst.BrickColor,"Crystal",vt(1,1,1))
  1535. 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()))
  1536. glow = Instance.new("PointLight")
  1537. glow.Parent = brokecryst
  1538. glow.Range = 4
  1539. glow.Brightness = 4.5
  1540. glow.Color = crystal.Color
  1541. brokecryst.CanCollide=true
  1542. 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))
  1543. brokecryst.Velocity=vt(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  1544. game:GetService("Debris"):AddItem(brokecryst,4)
  1545. end
  1546. end
  1547. Damagefunc1(hit,10,20)
  1548. end)
  1549. for i=0,1,0.2 do
  1550. wait()
  1551. item.CFrame=LeftArm.CFrame*cf(0,-5,0)
  1552. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  1553. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  1554. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0,-3*i,0)
  1555. LW.C1=cf(0, 0.5, 0) * euler(0,-1.57,1.57)
  1556. end
  1557. wait(0.5)
  1558. con1:disconnect()
  1559. if hitted==true then
  1560. item.Parent=nil
  1561. elseif hitted==false then
  1562. CrystalNumb=CrystalNumb+1
  1563. table.insert(Crystals,item)
  1564. end
  1565. attack=false
  1566. end
  1567. function Shatter()
  1568. attack=true
  1569. Damage=0
  1570. for i=0,1,0.1 do
  1571. wait()
  1572. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  1573. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.8+0.8*i,0,0)
  1574. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+0.5*i,0.4-1.6*i)
  1575. end
  1576. CrystalEffect(prt7)
  1577. for e=1,#Crystals do
  1578. Damage=Damage+5
  1579. so("http://www.roblox.com/asset/?id=12222005",Torso,1,1.5)
  1580. CrystalNumb=CrystalNumb-1
  1581. Crystals[e].Parent=nil
  1582. for i=1,math.random(4,10) do
  1583. local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  1584. 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()))
  1585. glow = Instance.new("PointLight")
  1586. glow.Parent = brokecryst
  1587. glow.Range = 4
  1588. glow.Brightness = 4.5
  1589. glow.Color = crystal.Color
  1590. brokecryst.CanCollide=true
  1591. 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))
  1592. brokecryst.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  1593. game:GetService("Debris"):AddItem(brokecryst,4)
  1594. end
  1595. --table.remove(Crystals,c)
  1596. end
  1597. local cc = game.Workspace:GetChildren()
  1598. for i = 1, #cc do
  1599. local hum = cc[i]:findFirstChild("Humanoid")
  1600. if hum ~= nil and hum.Health ~= 0 then
  1601. local head = cc[i]:findFirstChild("Head")
  1602. if head ~= nil then
  1603. local targ = head.Position - Torso.Position
  1604. local mag = targ.magnitude
  1605. if mag <= 20 and cc[i].Name ~= Player.Name then
  1606. attackdebounce=false
  1607. Damagefunc2(head,Damage,10)
  1608. end
  1609. end
  1610. end
  1611. end
  1612. for i=1,10 do
  1613. print("nou")
  1614. for e=1,#Crystals do
  1615. print(#Crystals)
  1616. table.remove(Crystals,e)
  1617. end
  1618. end
  1619. wait(0.4)
  1620. for i=0,1,0.1 do
  1621. wait()
  1622. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  1623. 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)
  1624. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5*i,-1.2+1.6*i)
  1625. end
  1626. CrystalNumb=0
  1627. attack=false
  1628. end
  1629. function ShardJab()
  1630. attack=true
  1631. for i=0,1,0.1 do
  1632. wait()
  1633. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  1634. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+2.2*i,0,0)
  1635. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5-1.07*i,0.4-0.4*i)
  1636. end
  1637. for i=1,3 do
  1638. randomnumb=math.random(1,#Crystals)
  1639. item=Crystals[randomnumb]
  1640. item.CFrame=Torso.CFrame*cf(math.random(-6,6),math.random(6,8),math.random(-6,6))
  1641. coroutine.resume(coroutine.create(function(Part)
  1642. CrystalNumb=CrystalNumb-1
  1643. table.remove(Crystals,randomnumb)
  1644. CrystalEffect(prt7)
  1645. wait(0.4)
  1646. so("http://www.roblox.com/asset/?id=12222005",Part,1,1.5)
  1647. Part.Crystal.Parent=nil
  1648. for i=1,math.random(2,6) do
  1649. local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  1650. 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()))
  1651. brokecryst.CanCollide=true
  1652. 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))
  1653. brokecryst.Velocity=vt(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1654. game:GetService("Debris"):AddItem(brokecryst,4)
  1655. end
  1656. for i=1,3 do
  1657. local Shard=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  1658. local mshh=mesh("SpecialMesh",Shard,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,1.5,0.5))
  1659. glow = Instance.new("PointLight")
  1660. glow.Parent = Shard
  1661. glow.Range = 9
  1662. glow.Brightness = 6
  1663. glow.Color = crystal.Color
  1664. fd=Instance.new("BodyPosition")
  1665. fd.P=10000
  1666. fd.D=1000
  1667. fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1668. fd.position=Part.Position+vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1669. fd.Parent=Shard
  1670. local bg = it("BodyGyro")
  1671. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1672. bg.P = 20e+003
  1673. bg.Parent=Shard
  1674. bg.cframe=CFrame.new(Shard.Position,MMouse.Hit.p)*euler(1.57,0,0)
  1675. --bg.cframe=CFrame.new(pos1,targetpos)
  1676. coroutine.resume(coroutine.create(function(Part)
  1677. wait(0.5)
  1678. shoottrail(MMouse,Part)
  1679. Part.Parent=nil
  1680. end),Shard)
  1681. end
  1682. end),item)
  1683. end
  1684. wait(1)
  1685. for i=0,1,0.1 do
  1686. wait()
  1687. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  1688. LW.C0=cf(-1.5, 0.5, 0) * euler(3-2.2*i,0,0)
  1689. LW.C1=cf(0, 0.5, 0) * euler(0,-1.57+1.07*i,0.4*i)
  1690. end
  1691. item.Parent=nil
  1692. attack=false
  1693. end
  1694.  
  1695. function ShardWave()
  1696. attack=true
  1697. Humanoid.WalkSpeed=0
  1698. for i=0,1,0.1 do
  1699. wait()
  1700. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  1701. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+0.77*i,0,0)
  1702. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+0.5*i,0.4-0.4*i)
  1703. end
  1704. MainCF=Torso.CFrame*cf(0,0,-5)
  1705. for i=1,10 do
  1706. wait(0.1)
  1707. MainCF=MainCF*cf(0,0,-2)
  1708. CrystalEffect(prt7)
  1709. local CrystDerp=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  1710. glow = Instance.new("PointLight")
  1711. glow.Parent = CrystDerp
  1712. glow.Range = 5
  1713. glow.Brightness = 4
  1714. glow.Color = crystal.Color
  1715. 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()))
  1716. CrystDerp.CFrame=MainCF*cf(math.random(-5,5),math.random(-20,-15),math.random(-5,5))
  1717. CrystDerp.Anchored=true
  1718. game:GetService("Debris"):AddItem(CrystDerp,4)
  1719. coroutine.resume(coroutine.create(function(Part)
  1720. for i=1,10 do
  1721. wait()
  1722. Part.CFrame=Part.CFrame*cf(0,2,0)
  1723. end
  1724. wait(1)
  1725. local cc = game.Workspace:GetChildren()
  1726. for i = 1, #cc do
  1727. local hum = cc[i]:findFirstChild("Humanoid")
  1728. if hum ~= nil and hum.Health ~= 0 then
  1729. local head = cc[i]:findFirstChild("Head")
  1730. if head ~= nil then
  1731. local targ = head.Position - Part.Position
  1732. local mag = targ.magnitude
  1733. if mag <= 5 and cc[i].Name ~= Player.Name then
  1734. attackdebounce=false
  1735. Damagefunc1(head,5,10)
  1736. end
  1737. end
  1738. end
  1739. end
  1740. so("http://www.roblox.com/asset/?id=12222005",Part,1,1.5)
  1741. for i=1,math.random(2,6) do
  1742. local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  1743. 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()))
  1744. brokecryst.CanCollide=true
  1745. 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))
  1746. brokecryst.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  1747. game:GetService("Debris"):AddItem(brokecryst,4)
  1748. end
  1749. Part.Transparency=1
  1750. end),CrystDerp)
  1751. end
  1752. Humanoid.WalkSpeed=16
  1753. for i=0,1,0.1 do
  1754. wait()
  1755. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  1756. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
  1757. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5*i,0.4*i)
  1758. end
  1759. attack=false
  1760. end
  1761.  
  1762. function ShardBarrage()
  1763. attack=true
  1764. Humanoid.WalkSpeed=0
  1765. for i=0,1,0.1 do
  1766. wait()
  1767. RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
  1768. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+0.77*i,0,0)
  1769. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+0.5*i,0.4-0.4*i)
  1770. end
  1771. MainCF=Torso.CFrame*cf(0,0,-5)
  1772. for i=1,35 do
  1773. wait(0.1)
  1774. MainCF=MainCF*cf(0,0,-2)
  1775. CrystalEffect(prt7)
  1776. local CrystDerp=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  1777. local CrystDerp1=part(3,workspace,0.4,0,CrystalColor,"Crystal1",vt(1,1,1))
  1778. 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)))
  1779. 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)))
  1780. CrystDerp.CFrame=MainCF*cf(math.random(-15,10),math.random(-25,-20),math.random(-30,15))
  1781. CrystDerp.Anchored=true
  1782. CrystDerp1.CFrame=MainCF*cf(math.random(-5,0),math.random(-20,-15),math.random(-10,10))
  1783. CrystDerp1.Anchored=true
  1784. game:GetService("Debris"):AddItem(CrystDerp,4)
  1785. game:GetService("Debris"):AddItem(CrystDerp1,4)
  1786. coroutine.resume(coroutine.create(function(Part)
  1787. for i=1,10 do
  1788. wait()
  1789. Part.CFrame=Part.CFrame*cf(0,2,0)
  1790. CrystDerp1.CFrame=CrystDerp1.CFrame*cf(0,2,0)
  1791. end
  1792. wait(1)
  1793. local cc = game.Workspace:GetChildren()
  1794. for i = 1, #cc do
  1795. local hum = cc[i]:findFirstChild("Humanoid")
  1796. if hum ~= nil and hum.Health ~= 0 then
  1797. local head = cc[i]:findFirstChild("Head")
  1798. if head ~= nil then
  1799. local targ = head.Position - Part.Position
  1800. local mag = targ.magnitude
  1801. if mag <= 5 and cc[i].Name ~= Player.Name then
  1802. attackdebounce=false
  1803. Damagefunc1(head,25,40)
  1804. end
  1805. end
  1806. end
  1807. end
  1808. local cc1 = game.Workspace:GetChildren()
  1809. for e = 1, #cc1 do
  1810. local hum1 = cc1[e]:findFirstChild("Humanoid")
  1811. if hum1 ~= nil and hum1.Health ~= 0 then
  1812. local head1 = cc1[e]:findFirstChild("Head")
  1813. if head1 ~= nil then
  1814. local targ1 = head1.Position - CrystDerp1.Position
  1815. local mag1 = targ1.magnitude
  1816. if mag1 <= 5 and cc1[e].Name ~= Player.Name then
  1817. attackdebounce=false
  1818. Damagefunc1(head1,25,40)
  1819. end
  1820. end
  1821. end
  1822. end
  1823. so("http://www.roblox.com/asset/?id=12222005",Part,1,1.5)
  1824. for i=1,math.random(2,6) do
  1825. local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  1826. 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()))
  1827. glow = Instance.new("PointLight")
  1828. glow.Parent = brokecryst
  1829. glow.Range = 4
  1830. glow.Brightness = 4
  1831. glow.Color = crystal.Color
  1832. brokecryst.CanCollide=true
  1833. 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))
  1834. brokecryst.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  1835. local brokecryst1=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
  1836. 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()))
  1837. glow = Instance.new("PointLight")
  1838. glow.Parent = brokecryst1
  1839. glow.Range = 4
  1840. glow.Brightness = 4
  1841. glow.Color = crystal.Color
  1842. brokecryst1.CanCollide=true
  1843. 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))
  1844. brokecryst1.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  1845. game:GetService("Debris"):AddItem(brokecryst,4)
  1846. game:GetService("Debris"):AddItem(brokecryst1,4)
  1847. end
  1848. Part.Transparency=1
  1849. CrystDerp1.Transparency=1
  1850. end),CrystDerp)
  1851. end
  1852. Humanoid.WalkSpeed=16
  1853. for i=0,1,0.1 do
  1854. wait()
  1855. RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
  1856. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
  1857. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5*i,0.4*i)
  1858. end
  1859. attack=false
  1860. end
  1861.  
  1862. function ob1d(mouse)
  1863. if attack == true or CrystalNumb==0 then return end
  1864. hold=true
  1865. attackone()
  1866. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  1867. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  1868. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8,0,0)
  1869. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0.4)
  1870. end
  1871. function ob1u(mouse)
  1872. hold = false
  1873. end
  1874. buttonhold = false
  1875. eul=0
  1876. function key(key)
  1877. if attack == true then return end
  1878. if key=="z" then
  1879. ShardWave()
  1880. end
  1881. if key=="b" then
  1882. ShardBarrage()
  1883. end
  1884. if key=="x" and CrystalNumb>=0 then
  1885. Shatter()
  1886. end
  1887. if key=="c" and CrystalNumb>=3 then
  1888. ShardJab()
  1889. end
  1890. if key=="v" then
  1891. crystalhold=true
  1892. MakeCrystals()
  1893. end
  1894. RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
  1895. RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
  1896. LW.C0=cf(-1.5, 0.5, 0) * euler(0.8,0,0)
  1897. LW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0.4)
  1898. end
  1899. function key2(key)
  1900. if key=="v" then
  1901. crystalhold=false
  1902. end
  1903. end
  1904. function s(mouse)
  1905. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1906. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1907. mouse.KeyDown:connect(key)
  1908. mouse.KeyUp:connect(key2)
  1909. unsheathed = true
  1910. player = Player
  1911. ch = Character
  1912. MMouse = mouse
  1913. RSH = ch.Torso["Right Shoulder"]
  1914. LSH = ch.Torso["Left Shoulder"]
  1915. --
  1916. RSH.Parent = nil
  1917. LSH.Parent = nil
  1918. --
  1919. RW.Part0 = ch.Torso
  1920. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1921. RW.C1 = CFrame.new(0, 0.5, 0)
  1922. RW.Part1 = ch["Right Arm"]
  1923. RW.Parent = ch.Torso
  1924. --_G.R = RW
  1925. --
  1926. LW.Part0 = ch.Torso
  1927. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1928. LW.C1 = CFrame.new(0, 0.5, 0)
  1929. LW.Part1 = ch["Left Arm"]
  1930. LW.Parent = ch.Torso
  1931. --_G.L = LW
  1932. --
  1933. equipanim()
  1934. end
  1935. function ds(mouse)
  1936. hideanim()
  1937. wait(0)
  1938. RW.Parent = nil
  1939. LW.Parent = nil
  1940. RSH.Parent = player.Character.Torso
  1941. LSH.Parent = player.Character.Torso
  1942. end
  1943. Bin.Selected:connect(s)
  1944. Bin.Deselected:connect(ds)
  1945. print("Crystal Gauntlet loaded.")
  1946. print(#Crystals)
  1947. numbb=0
  1948. datnumb=0
  1949. while true do
  1950. wait()
  1951. datnumb=0
  1952. BaseNumb=6.28
  1953. BaseNumb=BaseNumb/CrystalNumb
  1954. for d=1,#Crystals do
  1955. datnumb=datnumb+BaseNumb
  1956. local Crystal=Crystals[d]
  1957. if Crystal.className=="Part" then
  1958. coroutine.resume(coroutine.create(function(Part)
  1959. if #Crystals~=0 then
  1960. Part.CFrame=CFrame.new(Torso.Position)*euler(0,1+datnumb,0)*cf(0,0,5+(CrystalNumb/3))
  1961. numbb=numbb+0.05
  1962. --print(BaseNumb)
  1963. end
  1964. end),Crystal)
  1965. end
  1966. end
  1967. end
  1968. -- mediafire
  1969. --[[
  1970. Copyrighted (C) Fenrier 2013
  1971. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement