Advertisement
SmokeDelsin

staff of darkness

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