Advertisement
SmokeDelsin

vbfdtr

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