DuckyHacks4Sale

Script Tester

Jan 7th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.33 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. ]]
Add Comment
Please, Sign In to add comment