Advertisement
vibrantsinger423

Crystal gauntlets v2 w text above head 4 rel

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