Advertisement
vibrantsinger423

plz do

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