Advertisement
UltimateGate

Arkus from Black Magic

Aug 4th, 2017
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 70.54 KB | None | 0 0
  1. --[[
  2. Made by Fenrier.
  3. ]]
  4. Player = game:GetService("Players").LocalPlayer
  5. Character = Player.Character
  6. PlayerGui = Player.PlayerGui
  7. Backpack = Player.Backpack
  8. Torso = Character.Torso
  9. Head = Character.Head
  10. Humanoid = Character.Humanoid
  11. LeftArm = Character["Left Arm"]
  12. LeftLeg = Character["Left Leg"]
  13. RightArm = Character["Right Arm"]
  14. RightLeg = Character["Right Leg"]
  15. LS = Torso["Left Shoulder"]
  16. LH = Torso["Left Hip"]
  17. RS = Torso["Right Shoulder"]
  18. RH = Torso["Right Hip"]
  19. Neck = Torso.Neck
  20. it=Instance.new
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  28. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  29. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  30. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RootPart=Character.HumanoidRootPart
  32. RootJoint=RootPart.RootJoint
  33. RootCF=euler(-1.57,0,3.14)
  34. attack=false
  35. MMouse=nil
  36. combo=0
  37. blocked=false
  38. local EffectParts={}
  39. local Clone={}
  40. Mode="Obelisk"
  41. Weapon="None"
  42. --player
  43. player = nil
  44. --save shoulders
  45. RSH, LSH = nil, nil
  46. --welds
  47. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  48. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  49. LH=Torso["Left Hip"]
  50. RH=Torso["Right Hip"]
  51. Asset="http://www.roblox.com/asset/?id="
  52.  
  53. function swait(num)
  54. if num==0 or num==nil then
  55. game:service'RunService'.RenderStepped:wait()
  56. else
  57. for i=0,num do
  58. game:service'RunService'.RenderStepped:wait()
  59. end
  60. end
  61. end
  62.  
  63. if Character:findFirstChild("Ark",true) ~= nil then
  64. Character:findFirstChild("Ark",true).Parent = nil
  65. end
  66. if Character:findFirstChild("Arkantus Blade",true) ~= nil then
  67. Character:findFirstChild("Arkantus Blade",true).Parent = nil
  68. end
  69.  
  70. function NoOutline(Part)
  71. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  72. end
  73.  
  74. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  75. local fp = it("Part")
  76. fp.formFactor = formfactor
  77. fp.Parent = parent
  78. fp.Reflectance = reflectance
  79. fp.Transparency = transparency
  80. fp.CanCollide = false
  81. fp.Locked=true
  82. fp.BrickColor = brickcolor
  83. fp.Name = name
  84. fp.Size = size
  85. fp.Position = Torso.Position
  86. NoOutline(fp)
  87. fp.Material="SmoothPlastic"
  88. fp:BreakJoints()
  89. return fp
  90. end
  91.  
  92. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  93. local mesh = it(Mesh)
  94. mesh.Parent = part
  95. if Mesh=="SpecialMesh" then
  96. mesh.MeshType = meshtype
  97. if meshtype=="FileMesh" then
  98. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  99. end
  100. end
  101. mesh.Offset=offset
  102. mesh.Scale=scale
  103. return mesh
  104. end
  105.  
  106. function weld(parent,part0,part1,c0)
  107. local weld = it("Weld")
  108. weld.Parent = parent
  109. weld.Part0 = part0
  110. weld.Part1 = part1
  111. weld.C0 = c0
  112. return weld
  113. end
  114.  
  115. local modelzorz = Instance.new("Model")
  116. modelzorz.Parent = Character
  117. modelzorz.Name = "Ark"
  118.  
  119. local prt1=part(1,modelzorz,0,0.9,BrickColor.new("Black"),"Part1",vt(1,1,1))
  120. local prt2=part(1,modelzorz,0,0,BrickColor.new("White"),"Part2",vt(1,1,1))
  121. local prt37=part(1,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part37",vt(1,1,1))
  122. local prt38=part(1,modelzorz,0,0,BrickColor.new("White"),"Part38",vt(1,1,1))
  123. local prt39=part(1,modelzorz,0,0,BrickColor.new("White"),"Part39",vt(1,1,1))
  124. local prt40=part(1,modelzorz,0,0,BrickColor.new("White"),"Part40",vt(1,1,1))
  125. local prt41=part(1,modelzorz,0,0.5,BrickColor.new("Bright red"),"Part41",vt(1,1,1))
  126. local prt42=part(1,modelzorz,0,0,BrickColor.new("Bright red"),"Part42",vt(1,1,1))
  127. local prt43=part(1,modelzorz,0,0,BrickColor.new("Bright red"),"Part43",vt(1,1,1))
  128. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1.51,1,1.51))
  129. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(1.5,6,1.5))
  130. local msh37=mesh("SpecialMesh",prt37,"Head","",vt(0,0,0),vt(2.3,1.3,2.3))
  131. local msh38=mesh("SpecialMesh",prt38,"FileMesh","9756362",vt(0,0,0),vt(1,1.5,1))
  132. local msh39=mesh("SpecialMesh",prt39,"FileMesh","9756362",vt(0,0,0),vt(0.8,2,0.8))
  133. local msh40=mesh("BlockMesh",prt40,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  134. local msh41=mesh("BlockMesh",prt41,"","",vt(0,0,0),vt(0.8,0.8,0.8))
  135. local msh42=mesh("SpecialMesh",prt42,"FileMesh","3270017",vt(0,0,0),vt(4,4,3))
  136. local msh43=mesh("SpecialMesh",prt43,"FileMesh","3270017",vt(0,0,0),vt(4,4,3))
  137. local wld1=weld(prt1,prt1,Torso,euler(0,0,1.3)*cf(0,0,-1))
  138. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0.5,0))
  139. local wld37=weld(prt37,prt37,prt2,euler(0,0,0)*cf(0,3.2,0))
  140. local wld38=weld(prt38,prt38,prt37,euler(0,0,0)*cf(0,0.7,0))
  141. local wld39=weld(prt39,prt39,prt2,euler(0,0,0)*cf(0,-3.7,0))
  142. local wld40=weld(prt40,prt40,prt2,euler(0,1.57,0)*cf(0,-6,0))
  143. local wld41=weld(prt41,prt41,prt40,euler(0,0,0)*cf(0,0,0))
  144. local wld42=weld(prt42,prt42,prt40,euler(0,0,0)*cf(0,0,0))
  145. local wld43=weld(prt43,prt43,prt40,euler(0,1.57,0)*cf(0,0,0))
  146. local hitbox=part(1,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  147. hitbox.Anchored=false
  148.  
  149. numb=0.785
  150. for i=1,7 do
  151. local prt41=part(1,modelzorz,0,0,BrickColor.new("White"),"Part41",vt(1,1,1))
  152. local msh41=mesh("SpecialMesh",prt41,"FileMesh","9756362",vt(0,0,0),vt(0.3,1,0.3))
  153. local wld41=weld(prt41,prt41,prt40,cf(0,2.4,0)*euler(0,0,numb))
  154. numb=numb+0.785
  155. end
  156.  
  157. numb=0.785
  158. for i=1,7 do
  159. local prt41=part(1,modelzorz,0,0,BrickColor.new("White"),"Part41",vt(1,1,1))
  160. local msh41=mesh("SpecialMesh",prt41,"FileMesh","9756362",vt(0,0,0),vt(0.3,1,0.3))
  161. local wld41=weld(prt41,prt41,prt43,cf(0,2.4,0)*euler(0,0,numb))
  162. numb=numb+0.785
  163. end
  164.  
  165. coroutine.resume(coroutine.create(function(Part)
  166. while true do
  167. for i=0.5,1,0.01 do
  168. swait()
  169. prt1.Transparency=1
  170. Part.Transparency=i
  171. end
  172. for i=1,0.5,-0.01 do
  173. swait()
  174. prt1.Transparency=1
  175. Part.Transparency=i
  176. end
  177. end
  178. end),prt41)
  179.  
  180. local prt3=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part3",vt(1,1,1))
  181. local prt4=part(1,modelzorz,0,0,BrickColor.new("White"),"Part4",vt(1,1,1))
  182. local prt5=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part5",vt(1,1,1))
  183. local prt6=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part6",vt(1,1,1))
  184. local prt7=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part7",vt(1,1,1))
  185. local prt8=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part8",vt(1,1,1))
  186. local prt9=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part9",vt(1,1,1))
  187. local prt12=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part12",vt(1,1,1))
  188. local prt13=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part13",vt(1,1,1))
  189. local prt14=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part14",vt(1,1,1))
  190. local prt15=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part15",vt(1,1,1))
  191. local prt16=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part16",vt(1,1,1))
  192. local prt17=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part17",vt(1,1,1))
  193. local prt18=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part18",vt(1,1,1))
  194. local prt19=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part19",vt(1,1,1))
  195. local prt20=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part20",vt(1,1,1))
  196. local prt21=part(1,modelzorz,0,1,BrickColor.new("White"),"Part21",vt(1,1,1))
  197. local prt22=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part22",vt(1,1,1))
  198. local prt23=part(1,modelzorz,0,0,BrickColor.new("White"),"Part23",vt(1,1,1))
  199. local prt24=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part24",vt(1,1,1))
  200. local prt25=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part25",vt(1,1,1))
  201. local prt26=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part26",vt(1,1,1))
  202. local prt27=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part27",vt(1,1,1))
  203. local prt28=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part28",vt(1,1,1))
  204. local prt29=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part29",vt(1,1,1))
  205. local prt30=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part30",vt(1,1,1))
  206. local prt31=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part31",vt(1,1,1))
  207. local prt32=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part32",vt(1,1,1))
  208. local prt33=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part33",vt(1,1,1))
  209. local prt34=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part34",vt(1,1,1))
  210. local prt35=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part35",vt(1,1,1))
  211. local prt36=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part36",vt(1,1,1))
  212. local prt37=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part37",vt(1,1,1))
  213. local msh3=mesh("CylinderMesh",prt3,"","",vt(0,0,0),vt(1,1.3,1))
  214. local msh4=mesh("CylinderMesh",prt4,"","",vt(0,0,0),vt(0.5,1.33,0.5))
  215. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.2,1.3,1))
  216. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.2,1.3,1))
  217. local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(0.2,1.3,1))
  218. local msh8=mesh("BlockMesh",prt8,"","",vt(0,0,0),vt(0.2,1.3,0.8))
  219. local msh9=mesh("BlockMesh",prt9,"","",vt(0,0,0),vt(0.2,1.3,0.8))
  220. local msh12=mesh("BlockMesh",prt12,"","",vt(0,0,0),vt(0.2,1.3,1.6))
  221. local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(0.2,1.3,1.6))
  222. local msh14=mesh("CylinderMesh",prt14,"","",vt(0,0,0),vt(0.5,1.3,0.5))
  223. local msh15=mesh("CylinderMesh",prt15,"","",vt(0,0,0),vt(0.5,1.3,0.5))
  224. local msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(0.3,1.3,3.6))
  225. local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(0.3,1.3,3.6))
  226. local msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(0.1,1.3,0.5))
  227. local msh19=mesh("BlockMesh",prt19,"","",vt(0,0,0),vt(0.1,1.3,0.5))
  228. local msh20=mesh("BlockMesh",prt20,"","",vt(0,0,0),vt(0.1,1.3,0.5))
  229. local msh21=mesh("BlockMesh",prt21,"","",vt(0,0,0),vt(0.1,0.1,0.1))
  230. local msh22=mesh("CylinderMesh",prt22,"","",vt(0,0,0),vt(1,1.3,1))
  231. local msh23=mesh("CylinderMesh",prt23,"","",vt(0,0,0),vt(0.5,1.33,0.5))
  232. local msh24=mesh("BlockMesh",prt24,"","",vt(0,0,0),vt(0.2,1.3,1))
  233. local msh25=mesh("BlockMesh",prt25,"","",vt(0,0,0),vt(0.2,1.3,1))
  234. local msh26=mesh("BlockMesh",prt26,"","",vt(0,0,0),vt(0.2,1.3,1))
  235. local msh27=mesh("BlockMesh",prt27,"","",vt(0,0,0),vt(0.2,1.3,0.8))
  236. local msh28=mesh("BlockMesh",prt28,"","",vt(0,0,0),vt(0.2,1.3,0.8))
  237. local msh29=mesh("BlockMesh",prt29,"","",vt(0,0,0),vt(0.2,1.3,1.6))
  238. local msh30=mesh("BlockMesh",prt30,"","",vt(0,0,0),vt(0.2,1.3,1.6))
  239. local msh31=mesh("CylinderMesh",prt31,"","",vt(0,0,0),vt(0.5,1.3,0.5))
  240. local msh32=mesh("CylinderMesh",prt32,"","",vt(0,0,0),vt(0.5,1.3,0.5))
  241. local msh33=mesh("BlockMesh",prt33,"","",vt(0,0,0),vt(0.3,1.3,3.6))
  242. local msh34=mesh("BlockMesh",prt34,"","",vt(0,0,0),vt(0.3,1.3,3.6))
  243. local msh35=mesh("BlockMesh",prt35,"","",vt(0,0,0),vt(0.1,1.3,0.5))
  244. local msh36=mesh("BlockMesh",prt36,"","",vt(0,0,0),vt(0.1,1.3,0.5))
  245. local msh37=mesh("BlockMesh",prt37,"","",vt(0,0,0),vt(0.1,1.3,0.5))
  246. local wld3=weld(prt3,prt3,prt2,euler(1.57,0,0)*cf(0,2,0))
  247. local wld4=weld(prt4,prt4,prt2,euler(1.57,0,0)*cf(0,2,0))
  248. local wld5=weld(prt5,prt5,prt2,euler(1.57,0,0)*cf(0,1.1,0))
  249. local wld6=weld(prt6,prt6,prt2,euler(1.57,0,0.5)*cf(-0.25,0.2,0))
  250. local wld7=weld(prt7,prt7,prt2,euler(1.57,0,-0.5)*cf(0.25,0.2,0))
  251. local wld8=weld(prt8,prt8,prt2,euler(1.57,0,-0.7)*cf(0.3,1.6,0))
  252. local wld9=weld(prt9,prt9,prt2,euler(1.57,0,0.7)*cf(-0.3,1.6,0))
  253. local wld12=weld(prt12,prt12,prt2,euler(1.57,0,0)*cf(0.53,0.55,0))
  254. local wld13=weld(prt13,prt13,prt2,euler(1.57,0,0)*cf(-0.53,0.55,0))
  255. local wld14=weld(prt14,prt14,prt2,euler(1.57,0,0)*cf(0.45,-0.2,0))
  256. local wld15=weld(prt15,prt15,prt2,euler(1.57,0,0)*cf(-0.45,-0.2,0))
  257. local wld16=weld(prt16,prt16,prt2,euler(1.57,0,0)*cf(-0.45,-1.79,0))
  258. local wld17=weld(prt17,prt17,prt2,euler(1.57,0,0)*cf(0.45,-1.79,0))
  259. local wld18=weld(prt18,prt18,prt2,euler(1.57,0,0)*cf(0,-0.7,0))
  260. local wld19=weld(prt19,prt19,prt2,euler(1.57,0,0)*cf(0,-1.9,0))
  261. local wld20=weld(prt20,prt20,prt2,euler(1.57,0,0)*cf(0,-3.1,0))
  262. local wld21=weld(prt21,prt21,prt2,euler(0,1.57,0)*cf(0,0,0))
  263. local wld22=weld(prt22,prt22,prt21,euler(1.57,0,0)*cf(0,2,0))
  264. local wld23=weld(prt23,prt23,prt21,euler(1.57,0,0)*cf(0,2,0))
  265. local wld24=weld(prt24,prt24,prt21,euler(1.57,0,0)*cf(0,1.1,0))
  266. local wld25=weld(prt25,prt25,prt21,euler(1.57,0,0.5)*cf(-0.25,0.2,0))
  267. local wld26=weld(prt26,prt26,prt21,euler(1.57,0,-0.5)*cf(0.25,0.2,0))
  268. local wld27=weld(prt27,prt27,prt21,euler(1.57,0,-0.7)*cf(0.3,1.6,0))
  269. local wld28=weld(prt28,prt28,prt21,euler(1.57,0,0.7)*cf(-0.3,1.6,0))
  270. local wld29=weld(prt29,prt29,prt21,euler(1.57,0,0)*cf(0.53,0.55,0))
  271. local wld30=weld(prt30,prt30,prt21,euler(1.57,0,0)*cf(-0.53,0.55,0))
  272. local wld31=weld(prt31,prt31,prt21,euler(1.57,0,0)*cf(0.45,-0.2,0))
  273. local wld32=weld(prt32,prt32,prt21,euler(1.57,0,0)*cf(-0.45,-0.2,0))
  274. local wld33=weld(prt33,prt33,prt21,euler(1.57,0,0)*cf(-0.45,-1.79,0))
  275. local wld34=weld(prt34,prt34,prt21,euler(1.57,0,0)*cf(0.45,-1.79,0))
  276. local wld35=weld(prt35,prt35,prt21,euler(1.57,0,0)*cf(0,-0.7,0))
  277. local wld36=weld(prt36,prt36,prt21,euler(1.57,0,0)*cf(0,-1.9,0))
  278. local wld37=weld(prt37,prt37,prt21,euler(1.57,0,0)*cf(0,-3.1,0))
  279. table.insert(EffectParts,prt3)
  280. table.insert(EffectParts,prt5)
  281. table.insert(EffectParts,prt6)
  282. table.insert(EffectParts,prt7)
  283. table.insert(EffectParts,prt8)
  284. table.insert(EffectParts,prt9)
  285. table.insert(EffectParts,prt10)
  286. table.insert(EffectParts,prt11)
  287. table.insert(EffectParts,prt12)
  288. table.insert(EffectParts,prt13)
  289. table.insert(EffectParts,prt14)
  290. table.insert(EffectParts,prt15)
  291. table.insert(EffectParts,prt16)
  292. table.insert(EffectParts,prt17)
  293. table.insert(EffectParts,prt18)
  294. table.insert(EffectParts,prt19)
  295. table.insert(EffectParts,prt20)
  296. table.insert(EffectParts,prt21)
  297. table.insert(EffectParts,prt22)
  298. table.insert(EffectParts,prt24)
  299. table.insert(EffectParts,prt25)
  300. table.insert(EffectParts,prt26)
  301. table.insert(EffectParts,prt27)
  302. table.insert(EffectParts,prt28)
  303. table.insert(EffectParts,prt29)
  304. table.insert(EffectParts,prt30)
  305. table.insert(EffectParts,prt31)
  306. table.insert(EffectParts,prt32)
  307. table.insert(EffectParts,prt33)
  308. table.insert(EffectParts,prt34)
  309. table.insert(EffectParts,prt35)
  310. table.insert(EffectParts,prt36)
  311. table.insert(EffectParts,prt37)
  312.  
  313. --[[ARKANTUS BLADE THINGS]]
  314. local modelzorz2=Instance.new("Model")
  315. modelzorz2.Parent=nil
  316. modelzorz2.Name="Arkantus Blade"
  317.  
  318. local SwordWelds={}
  319. local sprt1=part(1,modelzorz2,0,0,BrickColor.new("White"),"Sword Part1",vt(1,1,1))
  320. local sprt2=part(1,modelzorz2,0,0,BrickColor.new("Bright red"),"Sword Part2",vt(1,1,1))
  321. local sprt3=part(1,modelzorz2,0,0,BrickColor.new("Bright red"),"Sword Part3",vt(1,1,1))
  322. local sprt4=part(1,modelzorz2,0,0,BrickColor.new("Bright red"),"Sword Part4",vt(1,1,1))
  323. local sprt5=part(1,modelzorz2,0,0,BrickColor.new("Bright red"),"Sword Part5",vt(1,1,1))
  324. local sprt6=part(1,modelzorz2,0,0,BrickColor.new("Light stone grey"),"Sword Part6",vt(1,1,1))
  325. local sprt7=part(1,modelzorz2,0,0,BrickColor.new("Light stone grey"),"Sword Part7",vt(1,1,1))
  326. local sprt8=part(1,modelzorz2,0,0,BrickColor.new("Dark stone grey"),"Sword Part8",vt(1,1,1))
  327. local sprt9=part(1,modelzorz2,0,0,BrickColor.new("Medium stone grey"),"Sword Part9",vt(1,1,1))
  328. local sprt10=part(1,modelzorz2,0.2,0,BrickColor.new("Institutional white"),"Sword Part10",vt(1,1,1))
  329. local sprt11=part(1,modelzorz2,0,0,BrickColor.new("White"),"Sword Part11",vt(1,1,1))
  330. local sprt12=part(1,modelzorz2,0,0,BrickColor.new("Black"),"Sword Part12",vt(1,1,1))
  331. local sprt13=part(1,modelzorz2,0,0.5,BrickColor.new("Really red"),"Sword Part13",vt(1,1,1))
  332. local sprt14=part(1,modelzorz2,0,0.5,BrickColor.new("Really red"),"Sword Part14",vt(1,1,1))
  333. local smsh1=mesh("CylinderMesh",sprt1,"","",vt(0,0,0),vt(0.4,1.5,0.4))
  334. local smsh2=mesh("CylinderMesh",sprt2,"","",vt(0,0,0),vt(0.41,0.2,0.41))
  335. local smsh3=mesh("CylinderMesh",sprt3,"","",vt(0,0,0),vt(0.41,0.2,0.41))
  336. local smsh4=mesh("CylinderMesh",sprt4,"","",vt(0,0,0),vt(0.41,0.2,0.41))
  337. local smsh5=mesh("SpecialMesh",sprt5,"Sphere","",vt(0,0,0),vt(0.4,0.6,0.4))
  338. local smsh6=mesh("BlockMesh",sprt6,"","",vt(0,0,0),vt(0.6,0.4,0.8))
  339. local smsh7=mesh("BlockMesh",sprt7,"","",vt(0,0,0),vt(0.6,0.2,0.4))
  340. local smsh8=mesh("SpecialMesh",sprt8,"Wedge","",vt(0,0,0),vt(0.4,0.5,1))
  341. local smsh9=mesh("CylinderMesh",sprt9,"","",vt(0,0,0),vt(0.4,0.4,0.4))
  342. local smsh10=mesh("BlockMesh",sprt10,"","",vt(0,0,0),vt(0.1,2.5,0.3))
  343. local smsh11=mesh("CylinderMesh",sprt11,"","",vt(0,0,0),vt(0.4,0.2,0.4))
  344. local smsh12=mesh("CylinderMesh",sprt12,"","",vt(0,0,0),vt(0.6,0.1,0.6))
  345. local smsh13=mesh("BlockMesh",sprt13,"","",vt(0,0,0),vt(0.2,2.7,0.49))
  346. local smsh14=mesh("SpecialMesh",sprt14,"Wedge","",vt(0,0,0),vt(0.2,0.5,0.49))
  347. local swld1=weld(sprt1,sprt1,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  348. local swld2=weld(sprt1,sprt2,sprt1,euler(0,0,0)*cf(0,0,0))
  349. local swld3=weld(sprt1,sprt3,sprt1,euler(0,0,0)*cf(0,0.5,0))
  350. local swld4=weld(sprt1,sprt4,sprt1,euler(0,0,0)*cf(0,-0.5,0))
  351. local swld5=weld(sprt1,sprt5,sprt1,euler(0,0,0)*cf(0,0.9,0))
  352. local swld6=weld(sprt1,sprt6,sprt1,euler(0,0,0)*cf(0,-0.9,0))
  353. local swld7=weld(sprt1,sprt7,sprt6,euler(1.57,0,0)*cf(0,-0.4,0.275))
  354. local swld8=weld(sprt1,sprt8,sprt6,euler(-1.57+0.1,0,0)*cf(0,-0.7,0.1))
  355. local swld9=weld(sprt1,sprt9,sprt6,euler(-0.2,0,0)*cf(0,-0.5,-0.2))
  356. local swld10=weld(sprt1,sprt10,sprt6,euler(0,0,0)*cf(0,-2,0))
  357. local swld11=weld(sprt1,sprt11,sprt9,euler(0,0,1.57)*cf(0,-0.3,0))
  358. local swld12=weld(sprt1,sprt12,sprt11,euler(0,0,0)*cf(0,0,0))
  359. local swld13=weld(sprt1,sprt13,sprt10,euler(0,0,0)*cf(0,0,0))
  360. local swld14=weld(sprt1,sprt14,sprt10,euler(0,3.14,0)*cf(0,-1.92,0))
  361.  
  362. numb=0.9
  363. for i=1,3 do
  364. local sprt13=part(1,modelzorz2,0,0,BrickColor.new("Bright red"),"Sword Part13",vt(1,1,1))
  365. local smsh13=mesh("SpecialMesh",sprt13,"FileMesh","9756362",vt(0,0,0),vt(0.2,0.4,0.2))
  366. local swld13=weld(sprt1,sprt13,sprt11,cf(0,0.8,0)*euler(1.57,numb,0))
  367. numb=numb-0.7
  368. end
  369.  
  370. for _,i in pairs(sprt1:children()) do
  371. if i.className=="Weld" then
  372. print(i.Part0)
  373. table.insert(SwordWelds,i)
  374. end
  375. end
  376.  
  377. function SummonSword()
  378. Weapon="ArkBlade"
  379. modelzorz2.Parent=Character
  380. for i=1,#SwordWelds do
  381. SwordWelds[i].Parent=sprt1
  382. end
  383. end
  384.  
  385. function UnsummonSword()
  386. Weapon="None"
  387. modelzorz2.Parent=nil
  388. end
  389. --[[END OF ARKANTUS BLADE THINGS]]
  390.  
  391. if (script.Parent.className ~= "HopperBin") then
  392. Tool = Instance.new("HopperBin")
  393. Tool.Parent = Backpack
  394. Tool.Name = "Fen"
  395. script.Parent = Tool
  396. end
  397. Bin = script.Parent
  398.  
  399. BPos=Instance.new("BodyPosition")
  400. Gy=Instance.new("BodyGyro")
  401.  
  402. function so(id,par,vol,pit)
  403. coroutine.resume(coroutine.create(function()
  404. local sou = Instance.new("Sound",par or workspace)
  405. sou.Volume=vol
  406. sou.Pitch=pit or 1
  407. sou.SoundId=Sounds[id].Id
  408. --sou.SoundId=id
  409. swait()
  410. sou:play()
  411. swait(6)
  412. sou:Remove()
  413. end))
  414. end
  415.  
  416. Sounds={
  417. Woosh1={Id=Asset..(169445092)},
  418. Woosh2={Id=Asset..(169445073)},
  419. Woosh3={Id=Asset..(169445121)},
  420. AirWoosh={Id=Asset..(147722270)},
  421. Smash={Id=Asset..(2760979)},
  422. Hit1={Id=Asset..(169380525)},
  423. Hit2={Id=Asset..(169380538)},
  424. Hit3={Id=Asset..(169380528)},
  425. Swing1={Id=Asset..(10209640)},
  426. Appear={Id=Asset..(161006033)},
  427. TeslaShot={Id=Asset..(169445602)},
  428. Explosion1={Id=Asset..(153092334)},
  429. Charge2={Id=Asset..(169380495)},
  430. PileDrive={Id=Asset..(2974000)},
  431. BeamLockon={Id=Asset..(169445683)},
  432. Elec={Id=Asset..(169380505)},
  433. DoctorOctogonapus={Id=Asset..(169380479)},
  434. Activate={Id=Asset..(169445572)},
  435. }
  436.  
  437. ContentProvider = game:GetService("ContentProvider")
  438. for _,v in pairs(Sounds) do
  439. ContentProvider:Preload(v.Id)
  440. end
  441.  
  442. function hideanim()
  443. equipped=false
  444. Neck.C0=necko
  445. RootJoint.C0=RootCF
  446. if Mode=="Obelisk" then
  447. wld1.C0=euler(0,0,1.3)*cf(0,0,-1)
  448. wld1.C1=euler(0,0,0)
  449. wld2.C0=euler(0,0,0)*cf(0,0.5,0)
  450. elseif Mode=="Planted" then
  451. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  452. end
  453. end
  454.  
  455. function equipanim()
  456. equipped=true
  457. if Mode=="Obelisk" then
  458. wld1.C0=euler(1.4,0,0)*cf(0.5,0.5,0)
  459. wld1.C1=euler(0,0,-0.5)
  460. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  461. Neck.C0=necko*euler(0,0,0.5)
  462. RootJoint.C0=RootCF*euler(0,0,-0.5)
  463. RW.C0=cf(1.5,0.5,0)*euler(2.8,0,0.5)
  464. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  465. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2)
  466. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  467. RH.C0=RHC0*cf(0,0,0)*euler(0,0,0)
  468. RH.C1=RHC1
  469. LH.C0=LHC0*cf(0,0,0)*euler(0,0,0)
  470. LH.C1=LHC1
  471. RootJoint.C1=RootCF
  472. elseif Mode=="Planted" then
  473. wld1.C0=euler(1.57,0,0)*cf(1,1.5,0)
  474. wld1.C1=euler(0,0,0.6)
  475. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  476. Neck.C0=necko*euler(0,0,0)
  477. RootJoint.C0=RootCF*cf(0,0,0)
  478. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.2)
  479. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  480. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2)
  481. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  482. RH.C0=RHC0*cf(0,0,0)*euler(0,0,0)
  483. RH.C1=RHC1
  484. LH.C0=LHC0*cf(0,0,0)*euler(0,0,0)
  485. LH.C1=LHC1
  486. end
  487. end
  488.  
  489. function lightattackone()
  490. attack=true
  491. for i=0,1,0.1 do
  492. swait()
  493. Neck.C0=necko*euler(0,0,0.5+0.5*i)
  494. RootJoint.C0=RootCF*euler(0,0,-0.5-0.5*i)
  495. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(1.57*i,0,-0.2+1.2*i)
  496. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  497. end
  498. so("Woosh1",LeftArm,1,1)
  499. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,5,"Normal",hitbox,.5,"Hit1",1) end)
  500. hitbox.Parent=Character
  501. hitbox.Size=vt(1,2,1)
  502. hitbox.CFrame=LeftArm.CFrame
  503. for i=0,1,0.2 do
  504. swait()
  505. Neck.C0=necko*euler(0,0,1)
  506. RootJoint.C0=RootCF*euler(0,0,-1)
  507. LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(1.57,0,1-2.3*i)
  508. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  509. hitbox.CFrame=LeftArm.CFrame
  510. end
  511. numb=2
  512. for i=0,1,0.1 do
  513. swait()
  514. Neck.C0=necko*euler(0,0,1)
  515. RootJoint.C0=RootCF*euler(0,0,-1)
  516. LW.C0=cf(-1.5,0.5,0)*euler(1.57,0,-1.3-0.27*(i*numb))
  517. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  518. hitbox.CFrame=LeftArm.CFrame
  519. numb=numb-0.1
  520. end
  521. con1:disconnect()
  522. hitbox.Parent=nil
  523. for i=0,1,0.1 do
  524. swait()
  525. Neck.C0=necko*euler(0,0,1-0.5*i)
  526. RootJoint.C0=RootCF*euler(0,0,-1+0.5*i)
  527. LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.57*i,0,-1.57+1.37*i)
  528. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  529. end
  530. attack=false
  531. end
  532.  
  533. function lightattacktwo()
  534. attack=true
  535. so("Woosh1",LeftLeg,1,1.4)
  536. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(10,20),"Normal",hitbox,.5,"Hit2",1.1) end)
  537. hitbox.Parent=Character
  538. hitbox.Size=vt(1,2,1)
  539. hitbox.CFrame=LeftLeg.CFrame
  540. for i=0,1,0.2 do
  541. swait()
  542. Neck.C0=necko*euler(0.2*i,0,0.5)
  543. RootJoint.C0=RootCF*euler(0,0,-0.5)
  544. LW.C0=cf(-1.5,0.5,0)*euler(-0.4*i,0,-0.2)
  545. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  546. RH.C0=RHC0*cf(0,0.1*i,0)*euler(-0.1*i,0,0)
  547. RH.C1=RHC1
  548. LH.C0=LHC0*cf(-0.8*i,0,0.8*i)*euler(0,0.6*i,1*i)
  549. LH.C1=LHC1
  550. hitbox.CFrame=LeftLeg.CFrame
  551. end
  552. con1:disconnect()
  553. hitbox.Parent=nil
  554. for i=0,1,0.05 do
  555. swait()
  556. Neck.C0=necko*euler(0.2-0.2*i,0,0.5)
  557. RootJoint.C0=RootCF*euler(0,0,-0.5)
  558. LW.C0=cf(-1.5,0.5,0)*euler(-0.4+0.4*i,0,-0.2)
  559. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  560. RH.C0=RHC0*cf(0,0.1-0.1*i,0)*euler(-0.1+0.1*i,0,0)
  561. RH.C1=RHC1
  562. LH.C0=LHC0*cf(-0.8+0.8*i,0,0.8-0.8*i)*euler(0,0.6-0.6*i,1-1*i)
  563. LH.C1=LHC1
  564. end
  565. attack=false
  566. end
  567.  
  568. function lightattackthree()
  569. attack=true
  570. so("Woosh1",LeftLeg,1,2)
  571. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,25,math.random(20,40),"Normal",hitbox,.5,"Hit2",1) end)
  572. hitbox.Parent=Character
  573. hitbox.Size=vt(1,2,1)
  574. hitbox.CFrame=LeftLeg.CFrame
  575. for i=0,1,0.2 do
  576. swait()
  577. Neck.C0=necko*euler(0.3*i,0,0.5)
  578. RootJoint.C0=RootCF*euler(0,0,-0.5)
  579. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2)
  580. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  581. RH.C0=RHC0*cf(0,0,0)*euler(0,0,0)
  582. RH.C1=RHC1
  583. LH.C0=LHC0*cf(0,0,0)*euler(0,0.5*i,-1.5*i)
  584. LH.C1=LHC1
  585. hitbox.CFrame=LeftLeg.CFrame
  586. end
  587. con1:disconnect()
  588. hitbox.Parent=nil
  589. for i=0,1,0.05 do
  590. swait()
  591. Neck.C0=necko*euler(0.3-0.3*i,0,0.5)
  592. RootJoint.C0=RootCF*euler(0,0,-0.5)
  593. RH.C0=RHC0*cf(0,0,0)*euler(0,0,0)
  594. RH.C1=RHC1
  595. LH.C0=LHC0*cf(0,0,0)*euler(0,0.5-0.5*i,-1.5+1.5*i)
  596. LH.C1=LHC1
  597. end
  598. attack=false
  599. end
  600.  
  601. function lightattackfour()
  602. attack=true
  603. so("Woosh2",LeftLeg,1,1)
  604. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,15,30,math.random(20,40),"Normal",hitbox,.8,"Hit3",1) end)
  605. hitbox.Parent=Character
  606. hitbox.Size=vt(2,2,2)
  607. hitbox.CFrame=prt38.CFrame
  608. for i=0,1,0.2 do
  609. swait()
  610. wld1.C0=euler(1.4+0.5*i,-1*i,0)*cf(0.5,0.5,0)
  611. wld1.C1=euler(0,0,-0.5-0.2*i)
  612. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  613. Neck.C0=necko*euler(0,0,0.5-0.9*i)
  614. RootJoint.C0=RootCF*euler(0,0,-0.5+0.9*i)
  615. RW.C0=cf(1.5,0.5,0)*euler(2.8-0.5*i,0,0.5)
  616. RW.C1=cf(0,0.5,0)*euler(0,1*i,0)
  617. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2)
  618. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  619. hitbox.CFrame=prt38.CFrame
  620. end
  621. numb=2
  622. for i=0,1,0.1 do
  623. swait()
  624. Neck.C0=necko*euler(0,0,-0.4-0.1*(i*numb))
  625. RootJoint.C0=RootCF*euler(0,0,0.4+0.1*(i*numb))
  626. RW.C0=cf(1.5,0.5,0)*euler(2.3-0.1*(i*numb),0,0.5)
  627. RW.C1=cf(0,0.5,0)*euler(0,1,0)
  628. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2)
  629. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  630. hitbox.CFrame=prt38.CFrame
  631. numb=numb-0.1
  632. end
  633. con1:disconnect()
  634. hitbox.Parent=nil
  635. for i=0,1,0.1 do
  636. swait()
  637. wld1.C0=euler(1.9-0.5*i,-1+1*i,0)*cf(0.5,0.5,0)
  638. wld1.C1=euler(0,0,-0.7+0.2*i)
  639. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  640. Neck.C0=necko*euler(0,0,-0.5+1*i)
  641. RootJoint.C0=RootCF*euler(0,0,0.5-1*i)
  642. RW.C0=cf(1.5,0.5,0)*euler(2.2+0.6*i,0,0.5)
  643. RW.C1=cf(0,0.5,0)*euler(0,1-1*i,0)
  644. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2)
  645. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  646. end
  647. attack=false
  648. end
  649.  
  650. function heavyattackone()
  651. attack=true
  652. for i=0,1,0.05 do
  653. swait()
  654. wld1.C0=euler(1.4,0,0)*cf(0.5,0.5,0)
  655. wld1.C1=euler(0,0,-0.5)
  656. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  657. Neck.C0=necko*euler(-0.2*i,0,0.5+0.3*i)
  658. RootJoint.C0=RootCF*euler(0,0,-0.5-0.3*i)
  659. RW.C0=cf(1.5,0.5,0)*euler(2.8+0.2*i,0,0.5+0.2*i)
  660. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  661. LW.C0=cf(-1.5+1*i,0.5,-0.5*i)*euler(2.8*i,0,-0.2+1*i)
  662. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  663. end
  664. so("Woosh2",prt2,1,0.9)
  665. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(20,40),"Normal",hitbox,1,"Hit3",1) end)
  666. hitbox.Parent=Character
  667. hitbox.Size=vt(2.5,10,2.5)
  668. hitbox.CFrame=prt2.CFrame*cf(0,2,0)
  669. for i=0,1,0.1 do
  670. swait()
  671. wld1.C0=euler(1.4+0.1*i,0,0)*cf(0.5+0.5*i,0.5-0.5*i,0)
  672. wld1.C1=euler(0.5*i,0,-0.5+1*i)
  673. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  674. Neck.C0=necko*euler(-0.2+0.3*i,0,0.8-2*i)
  675. RootJoint.C0=RootCF*euler(0,0,-0.8+2*i)
  676. RW.C0=cf(1.5,0.5,0)*euler(3-2.5*i,0,0.7-1*i)
  677. RW.C1=cf(0,0.5,0)*euler(0,1.57*i,0)
  678. LW.C0=cf(-0.5,0.5,-0.5)*euler(2.8-1.5*i,0,0.8)
  679. LW.C1=cf(0,0.5,0)*euler(0.5*i,0,0.5*i)
  680. hitbox.CFrame=prt2.CFrame*cf(0,2,0)
  681. end
  682. numb=2
  683. for i=0,1,0.1 do
  684. swait()
  685. wld1.C0=euler(1.5,0,0)*cf(1,0,0)
  686. wld1.C1=euler(0.5-0.2*i*numb,0,0.5)
  687. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  688. Neck.C0=necko*euler(0.1,0,-1.2)
  689. RootJoint.C0=RootCF*euler(0,0,1.2)
  690. RW.C0=cf(1.5,0.5,0)*euler(0.5-0.1*i*numb,0,-0.3-0.1*i*numb)
  691. RW.C1=cf(0,0.5,0)*euler(0,1.57,0)
  692. LW.C0=cf(-0.5,0.5,-0.5)*euler(1.3+0.7*i*numb,0,0.8)
  693. LW.C1=cf(0,0.5,0)*euler(0.5,0,0.5)
  694. hitbox.CFrame=prt2.CFrame*cf(0,2,0)
  695. numb=numb-0.1
  696. end
  697. con1:disconnect()
  698. hitbox.Parent=nil
  699. for i=0,1,0.1 do
  700. swait()
  701. wld1.C0=euler(1.5-0.1*i,0,0)*cf(1-0.5*i,0.5*i,0)
  702. wld1.C1=euler(0.3-0.3*i,0,0.5-1*i)
  703. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  704. Neck.C0=necko*euler(0.1,0,-1.2+1.7*i)
  705. RootJoint.C0=RootCF*euler(0,0,1.2-1.7*i)
  706. RW.C0=cf(1.5,0.5,0)*euler(0.4+2.4*i,0,-0.4+0.9*i)
  707. RW.C1=cf(0,0.5,0)*euler(0,1.57-1.57*i,0)
  708. LW.C0=cf(-0.5-1*i,0.5,-0.5+0.5*i)*euler(2-2*i,0,0.8-1*i)
  709. LW.C1=cf(0,0.5,0)*euler(0.5-0.5*i,0,0.5-0.5*i)
  710. end
  711. attack=false
  712. end
  713.  
  714. function heavyattackthree()
  715. attack=true
  716. for i=0,1,0.05 do
  717. swait()
  718. wld1.C0=euler(1.4+0.5*i,0,0)*cf(0.5,0.5,0)
  719. wld1.C1=euler(0,0,-0.5+0.5*i)
  720. wld2.C0=euler(0,0,0)*cf(0,-1+0.5*i,0)
  721. Neck.C0=necko*euler(0,0,0.5+1*i)
  722. RootJoint.C0=RootCF*euler(0,0,-0.5-1*i)
  723. RW.C0=cf(1.5,0.5,0)*euler(2.8-2.8*i,0,0.5)
  724. RW.C1=cf(0,0.5,0)*euler(0,1.57*i,0)
  725. LW.C0=cf(-1.5+1.5*i,0.5,-0.5*i)*euler(0.6*i,0,-0.2+1*i)
  726. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  727. end
  728. so("Woosh2",prt2,1,0.7)
  729. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(20,40),"Normal",hitbox,.6,"Hit2",1) end)
  730. hitbox.Parent=Character
  731. hitbox.Size=vt(2.5,10,2.5)
  732. hitbox.CFrame=prt2.CFrame*cf(0,2,0)
  733. for i=0,1,0.05 do
  734. swait()
  735. Neck.C0=necko*euler(0,0,1.5-2.9*i)
  736. RootJoint.C0=RootCF*euler(0,0,-1.5+2.9*i)
  737. RootJoint.C1=RootCF*euler(0,0,-6.28*i)
  738. hitbox.CFrame=prt2.CFrame*cf(0,2,0)
  739. end
  740. numb=2
  741. for i=0,1,0.1 do
  742. swait()
  743. Neck.C0=necko*euler(0,0,1.5-2.9-0.1*i*numb)
  744. RootJoint.C0=RootCF*euler(0,0,-1.5+2.9+0.1*i*numb)
  745. RootJoint.C1=RootCF
  746. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5)
  747. RW.C1=cf(0,0.5,0)*euler(0,1.57,0)
  748. LW.C0=cf(0,0.5,-0.5)*euler(0.6-0.2*i*numb,0,0.8-0.2*i*numb)
  749. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  750. hitbox.CFrame=prt2.CFrame*cf(0,2,0)
  751. numb=numb-0.1
  752. end
  753. con1:disconnect()
  754. hitbox.Parent=nil
  755. for i=0,1,0.1 do
  756. swait()
  757. wld1.C0=euler(1.9-0.5*i,0,0)*cf(0.5,0.5,0)
  758. wld1.C1=euler(0,0,-0.5*i)
  759. wld2.C0=euler(0,0,0)*cf(0,-0.5-0.5*i,0)
  760. Neck.C0=necko*euler(0,0,-1.5+2*i)
  761. RootJoint.C0=RootCF*euler(0,0,1.5-2*i)
  762. RW.C0=cf(1.5,0.5,0)*euler(2.8*i,0,0.5)
  763. RW.C1=cf(0,0.5,0)*euler(0,1.57-1.57*i,0)
  764. LW.C0=cf(-1.5*i,0.5,-0.5+0.5*i)*euler(0.4-0.4*i,0,0.6-0.8*i)
  765. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  766. end
  767. attack=false
  768. end
  769.  
  770. function heavyattackfour()
  771. attack=true
  772. for i=0,1,0.1 do
  773. swait()
  774. wld1.C0=euler(1.4+0.17*i,0,0)*cf(0.5+0.5*i,0.5+1*i,0)
  775. wld1.C1=euler(0,0,-0.5+0.9*i)
  776. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  777. Neck.C0=necko*euler(-0.4*i,0,0.5-0.5*i)
  778. RootJoint.C0=RootCF*euler(0,0,-0.5+0.5*i)
  779. RW.C0=cf(1.5-0.2*i,0.5+0.4*i,0)*euler(2.8+0.3*i,0,0.5-0.9*i)
  780. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  781. LW.C0=cf(-1.5+0.2*i,0.5+0.4*i,0)*euler(3.1*i,0,-0.2+0.6*i)
  782. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  783. RH.C0=RHC0*cf(0,0,0)*euler(0,0,0)
  784. RH.C1=RHC1
  785. LH.C0=LHC0*cf(0,0,0)*euler(0,0,0)
  786. LH.C1=LHC1
  787. end
  788. Humanoid.WalkSpeed=0
  789. so("Woosh3",prt2,1,1)
  790. for i=0,1,0.1 do
  791. swait()
  792. wld1.C0=euler(1.57+0.43*i,0,0)*cf(1,1.5,0)
  793. wld1.C1=euler(0,0,0.4)
  794. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  795. Neck.C0=necko*euler(-0.4+0.8*i,0,0)
  796. RootJoint.C0=RootCF*cf(0,0,-1*i)
  797. RW.C0=cf(1.5-0.2-0.2*i,0.5+0.4-0.4*i,0)*euler(3.1-2.7*i,0,-0.4)
  798. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  799. LW.C0=cf(-1.5+0.2-0.2*i,0.5+0.4-0.4*i,0)*euler(3.1-2.7*i,0,0.4)
  800. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  801. RH.C0=RHC0*cf(0,0.5*i,0.3*i)*euler(0,0,-0.5*i)
  802. RH.C1=RHC1
  803. LH.C0=LHC0*cf(-0.5*i,0.8*i,0.5*i)*euler(0,0,0.2*i)
  804. LH.C1=LHC1
  805. end
  806. hitfloor=false
  807. while hitfloor==false do
  808. swait()
  809. hit,pos = rayCast(prt41.Position, (CFrame.new(prt41.Position,prt41.Position - Vector3.new(0,2,0))).lookVector, 2, Character)
  810. if hit ~= nil then
  811. hitfloor = true
  812. end
  813. end
  814. local paint=part(1,workspace,0,1,BrickColor.new("Black"),"BreakEffect",vt(5,1,5))
  815. paint.CFrame=prt41.CFrame*euler(0,0,-1.57)*cf(0,-1,0)
  816. paint.Anchored=true
  817. decc=Instance.new("Decal")
  818. decc.Parent=paint
  819. decc.Shiny=0
  820. decc.Specular=0
  821. decc.Texture="http://www.roblox.com/asset/?id=49173398"
  822. decc.Face="Top"
  823. so("Smash",paint,1,0.3)
  824. --so("Smash",paint,1,0.1)
  825. MagicCircle(BrickColor.new("White"),prt41.CFrame,0,0,0,0.5,0.5,0.5,0.01)
  826. --MagicCircle(BrickColor.new("Really red"),prt41.CFrame,0,0,0,2,2,2,0.01)
  827. WaveEffect2(BrickColor.new("White"),prt41.CFrame*euler(0,0,-1.57),0,0,0,0.3,0.3,0.3,0.02)
  828. coroutine.resume(coroutine.create(function()
  829. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Knockdown",RootPart,2,"Hit3",0.8) end)
  830. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,2000,3000,math.random(9000,10000),"Knockdown",RootPart,2) end)
  831. hitbox.Parent=workspace
  832. hitbox.Size=vt(5,5,5)
  833. --hitbox.Size=vt(100,100,100)
  834. CF=prt41.CFrame
  835. hitbox.CFrame=prt41.CFrame
  836. for i=0,1,0.1 do
  837. swait()
  838. hitbox.CFrame=CF
  839. end
  840. con1:disconnect()
  841. hitbox.Parent=nil
  842. end))
  843. game:GetService("Debris"):AddItem(paint,10)
  844. wait(0.5)
  845. Humanoid.WalkSpeed=16
  846. for i=0,1,0.05 do
  847. swait()
  848. wld1.C0=euler(2-0.6*i,0,0)*cf(1-0.5*i,1.5-1*i,0)
  849. wld1.C1=euler(0,0,0.4-0.9*i)
  850. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  851. Neck.C0=necko*euler(0.4-0.4*i,0,0.5*i)
  852. RootJoint.C0=RootCF*cf(0,0,-1+1*i)*euler(0,0,-0.5*i)
  853. RW.C0=cf(1.5,0.5,0)*euler(0.4+2.4*i,0,-0.4+0.9*i)
  854. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  855. LW.C0=cf(-1.5,0.5,0)*euler(0.4-0.4*i,0,0.4-0.6*i)
  856. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  857. RH.C0=RHC0*cf(0,0.5-0.5*i,0.3-0.3*i)*euler(0,0,-0.5+0.5*i)
  858. RH.C1=RHC1
  859. LH.C0=LHC0*cf(-0.5+0.5*i,0.8-0.8*i,0.5-0.5*i)*euler(0,0,0.2-0.2*i)
  860. LH.C1=LHC1
  861. end
  862. attack=false
  863. end
  864.  
  865. function Plant()
  866. attack=true
  867. Humanoid.WalkSpeed=0
  868. for i=0,1,0.1 do
  869. swait()
  870. wld1.C0=euler(1.4+0.17*i,0,0)*cf(0.5+0.5*i,0.5+1*i,0)
  871. wld1.C1=euler(0,0,-0.5+1.1*i)
  872. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  873. Neck.C0=necko*euler(-0.4*i,0,0.5-0.5*i)
  874. RootJoint.C0=RootCF*euler(0,0,-0.5+0.5*i)
  875. RW.C0=cf(1.5-0.2*i,0.5+0.4*i,0)*euler(2.8-0.3*i,0,0.5-1.1*i)
  876. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  877. LW.C0=cf(-1.5+0.2*i,0.5+0.4*i,0)*euler(2.5*i,0,-0.2+0.8*i)
  878. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  879. RH.C0=RHC0*cf(0,0,0)*euler(0,0,0)
  880. RH.C1=RHC1
  881. LH.C0=LHC0*cf(0,0,0)*euler(0,0,0)
  882. LH.C1=LHC1
  883. end
  884. so("Swing1",prt2,1,0.6)
  885. for i=0,1,0.1 do
  886. swait()
  887. wld1.C0=euler(1.57,0,0)*cf(1,1.5,0)
  888. wld1.C1=euler(0,0,0.6)
  889. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  890. Neck.C0=necko*euler(-0.4+0.4*i,0,0)
  891. RootJoint.C0=RootCF*cf(0,0,-1*i)
  892. RW.C0=cf(1.5-0.2+0.2*i,0.5+0.4-0.4*i,0)*euler(2.5-0.93*i,0,-0.6)
  893. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  894. LW.C0=cf(-1.5+0.2-0.2*i,0.5+0.4-0.4*i,0)*euler(2.5-0.93*i,0,0.6)
  895. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  896. RH.C0=RHC0*cf(0,0.5*i,0.1*i)*euler(0,0,-0.5*i)
  897. RH.C1=RHC1
  898. LH.C0=LHC0*cf(-0.5*i,0.8*i,0.1*i)*euler(0,0,0.2*i)
  899. LH.C1=LHC1
  900. end
  901. hitfloor=false
  902. while hitfloor==false do
  903. swait()
  904. hit,pos = rayCast(prt1.Position, (CFrame.new(prt1.Position,prt1.Position - Vector3.new(0,2,0))).lookVector, 2.5, Character)
  905. if hit ~= nil then
  906. hitfloor = true
  907. end
  908. end
  909. for i=1,10 do
  910. Col=BrickColor.new("DarkGreen")
  911. if hit~=nil then
  912. Col=hit.BrickColor
  913. end
  914. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(2,3)+math.random(),math.random(2,3)+math.random(),math.random(2,3)+math.random()))
  915. print(groundpart.BrickColor)
  916. groundpart.Anchored=true
  917. groundpart.CanCollide=true
  918. groundpart.CFrame=cf(pos)*cf(math.random(-3,2)+math.random(),0,math.random(-3,2)+math.random())*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  919. game:GetService("Debris"):AddItem(groundpart,10)
  920. coroutine.resume(coroutine.create(function(Part)
  921. wait(5)
  922. for i=0,1,0.05 do
  923. wait(0)
  924. Part.Transparency=i
  925. end
  926. Part.Parent=nil
  927. end),groundpart)
  928. end
  929. coroutine.resume(coroutine.create(function()
  930. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Knockdown",RootPart,2) end)
  931. hitbox.Parent=workspace
  932. hitbox.Size=vt(8,8,8)
  933. CF=prt38.CFrame
  934. hitbox.CFrame=prt38.CFrame
  935. for i=0,1,0.1 do
  936. swait()
  937. hitbox.CFrame=CF
  938. end
  939. con1:disconnect()
  940. hitbox.Parent=nil
  941. end))
  942. wld1.Part1=nil
  943. BPos.P=50000
  944. BPos.D=1000
  945. BPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  946. BPos.position=prt1.Position
  947. BPos.Parent=prt1
  948. Gy.maxTorque = vt(math.huge,math.huge,math.huge)
  949. Gy.P = 20e+003
  950. Gy.cframe=prt1.CFrame
  951. Gy.Parent=prt1
  952. prt1.CanCollide=true
  953. prt41.CanCollide=true
  954. MagicCircle(BrickColor.new("White"),prt38.CFrame,0,0,0,2,2,2,0.05)
  955. so("Smash",prt38,1,0.5)
  956. Mode="Planted"
  957. wait(0.5)
  958. ArkActivate()
  959. for i=0,1,0.1 do
  960. swait()
  961. wld1.C0=euler(1.57,0,0)*cf(1,1.5,0)
  962. wld1.C1=euler(0,0,0.6)
  963. wld2.C0=euler(0,0,0)*cf(0,-1,0)
  964. Neck.C0=necko*euler(0,0,0)
  965. RootJoint.C0=RootCF*cf(0,0,-1+1*i)
  966. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i,0,-0.6+0.8*i)
  967. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  968. LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.57*i,0,0.6-0.8*i)
  969. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  970. RH.C0=RHC0*cf(0,0.5-0.5*i,0.1-0.1*i)*euler(0,0,-0.5+0.5*i)
  971. RH.C1=RHC1
  972. LH.C0=LHC0*cf(-0.5+0.5*i,0.8-0.8*i,0.1-0.1*i)*euler(0,0,0.2-0.2*i)
  973. LH.C1=LHC1
  974. end
  975. Humanoid.WalkSpeed=16
  976. hideanim()
  977. attack=false
  978. end
  979.  
  980. function GetArk()
  981. attack=true
  982. Disappear(modelzorz)
  983. wait(0.5)
  984. ArkUnactivate()
  985. Mode="Obelisk"
  986. prt1.CanCollide=false
  987. prt41.CanCollide=false
  988. BPos.Parent=nil
  989. Gy.Parent=nil
  990. wld1.Part1=RightArm
  991. Reappear(modelzorz)
  992. equipanim()
  993. attack=false
  994. end
  995.  
  996. function ObeliskHop()
  997. attack=true
  998. Humanoid.WalkSpeed=0
  999. --so("http://roblox.com/asset/?id=166095295",Torso,1,1) --boidzerg
  1000. so("AirWoosh",Torso,1,1.5)
  1001. for i=0,1,0.1 do
  1002. swait()
  1003. Neck.C0=necko*euler(-0.3*i,0,0)
  1004. RootJoint.C0=RootCF*cf(0,0,-1.9*i)*euler(0.7*i,0,0)
  1005. RW.C0=cf(1.5,0.5,0)*euler(0.7*i,0,0.2-0.2*i)
  1006. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1007. LW.C0=cf(-1.5,0.5,0)*euler(-0.2*i,0,-0.2-0.2*i)
  1008. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1009. RH.C0=RHC0*cf(0,0.5*i,0.1*i)*euler(0,0,-0.5*i)
  1010. RH.C1=RHC1
  1011. LH.C0=LHC0*cf(-0.5*i,1.6*i,0.1*i)*euler(0,0,-0.2*i)
  1012. LH.C1=LHC1
  1013. end
  1014. Disappear(Character)
  1015. swait(5)
  1016. so("AirWoosh",Torso,1,1)
  1017. swait(5)
  1018. Torso.CFrame=prt1.CFrame*cf(math.random(-5,5),math.random(1,5),math.random(-5,5))
  1019. Reappear(Character)
  1020. Neck.C0=necko*euler(0,0,0)
  1021. RootJoint.C0=RootCF*cf(0,0,0)*euler(0.5,0,0)
  1022. RW.C0=cf(1.5,0.5,0)*euler(-0.8,0,0.4)
  1023. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1024. LW.C0=cf(-1.5,0.5,0)*euler(-0.8,0,-0.4)
  1025. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1026. RH.C0=RHC0*cf(0,0,0)*euler(-0.3,0,-0.3)
  1027. RH.C1=RHC1
  1028. LH.C0=LHC0*cf(0,0,0)*euler(-0.3,0,0.3)
  1029. LH.C1=LHC1
  1030. swait(2)
  1031. numb=2
  1032. for i=0,1,0.1 do
  1033. swait()
  1034. Neck.C0=necko*euler(0,0,0)
  1035. RootJoint.C0=RootCF*cf(0,0,-1.5*i*numb)*euler(0.5-0.2*i*numb,0,0)
  1036. RW.C0=cf(1.5,0.5,0)*euler(-0.8-0.2*i,0,0.4)
  1037. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1038. LW.C0=cf(-1.5,0.5,0)*euler(-0.8-0.2*i,0,-0.4)
  1039. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1040. RH.C0=RHC0*cf(0,0.5*i,0.1*i)*euler(-0.3+0.3*i,0,-0.3-0.2*i)
  1041. RH.C1=RHC1
  1042. LH.C0=LHC0*cf(-0.5*i,1.2*i,0.1*i)*euler(-0.3+0.3*i,0,0.3-0.1*i)
  1043. LH.C1=LHC1
  1044. numb=numb-0.1
  1045. end
  1046. swait(5)
  1047. for i=0,1,0.1 do
  1048. swait()
  1049. Neck.C0=necko*euler(0,0,0)
  1050. RootJoint.C0=RootCF*cf(0,0,-1.5+1.5*i)*euler(0.3-0.3*i,0,0)
  1051. RW.C0=cf(1.5,0.5,0)*euler(-1+1*i,0,0.4-0.2*i)
  1052. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1053. LW.C0=cf(-1.5,0.5,0)*euler(-1+1*i,0,-0.4+0.2*i)
  1054. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1055. RH.C0=RHC0*cf(0,0.5-0.5*i,0.1-0.1*i)*euler(0,0,-0.5+0.5*i)
  1056. RH.C1=RHC1
  1057. LH.C0=LHC0*cf(-0.5+0.5*i,1.2-1.2*i,0.1-0.1*i)*euler(0,0,0.2-0.2*i)
  1058. LH.C1=LHC1
  1059. end
  1060. Humanoid.WalkSpeed=16
  1061. attack=false
  1062. end
  1063.  
  1064. function ObeliskSmash()
  1065. attack=true
  1066. for i=0,1,0.1 do
  1067. swait()
  1068. Neck.C0=necko*euler(0,0,0)
  1069. RootJoint.C0=RootCF*cf(0,0,0)
  1070. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(1.57*i,0,0.2-0.8*i)
  1071. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1072. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(1.57*i,0,-0.2+0.8*i)
  1073. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1074. RH.C0=RHC0*cf(0,0,0)*euler(0,0,0)
  1075. RH.C1=RHC1
  1076. LH.C0=LHC0*cf(0,0,0)*euler(0,0,0)
  1077. LH.C1=LHC1
  1078. end
  1079. swait(10)
  1080. so("Appear",RightArm,1,1)
  1081. MagicCircle(BrickColor.new("White"),LeftArm.CFrame*cf(0,-1,0)*euler(0,0,0),0,0,0,1,0.2,0.2,0.05)
  1082. MagicCircle(BrickColor.new("White"),LeftArm.CFrame*cf(0,-1,0)*euler(0,0,0),0,0,0,0.2,1,0.2,0.05)
  1083. MagicCircle(BrickColor.new("White"),LeftArm.CFrame*cf(0,-1,0)*euler(0,0,0),0,0,0,0.2,0.2,1,0.05)
  1084. Disappear(modelzorz)
  1085. swait(20)
  1086. TehCF=Torso.CFrame
  1087. BPos.position=Torso.Position+vt(0,80,0)
  1088. prt1.CFrame=cf(Torso.Position+vt(0,80,0))
  1089. Gy.cframe=TehCF*euler((math.random(-1,0)+math.random())/3,(math.random(-1,0)+math.random())/3,(math.random(-1,0)+math.random())/3)
  1090. swait(40)
  1091. coroutine.resume(coroutine.create(function()
  1092. Reappear(modelzorz)
  1093. BPos.Parent=nil
  1094. local vel=Instance.new("BodyVelocity")
  1095. vel.Parent=prt1
  1096. vel.maxForce=vt(4e+005,4e+005,4e+005)*1
  1097. PrtCF=prt1.CFrame*euler(1.57,0,0)
  1098. vel.velocity=PrtCF.lookVector*-150
  1099. hitfloor=false
  1100. while hitfloor==false do
  1101. swait()
  1102. hit,pos = rayCast(prt1.Position, (CFrame.new(prt1.Position,prt1.Position - Vector3.new(0,2,0))).lookVector, 2, Character)
  1103. if hit ~= nil then
  1104. hitfloor = true
  1105. end
  1106. end
  1107. vel.Parent=nil
  1108. game:GetService("Debris"):AddItem(vel,0.1)
  1109. prt1.Anchored=true
  1110. coroutine.resume(coroutine.create(function()
  1111. swait(50)
  1112. prt1.Anchored=false
  1113. print("underp")
  1114. end))
  1115. for i=1,10 do
  1116. Col=BrickColor.new("DarkGreen")
  1117. if hit~=nil then
  1118. Col=hit.BrickColor
  1119. end
  1120. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(2,3)+math.random(),math.random(2,3)+math.random(),math.random(2,3)+math.random()))
  1121. print(groundpart.BrickColor)
  1122. groundpart.Anchored=true
  1123. groundpart.CanCollide=true
  1124. groundpart.CFrame=cf(pos)*cf(math.random(-3,2)+math.random(),0,math.random(-3,2)+math.random())*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1125. game:GetService("Debris"):AddItem(groundpart,10)
  1126. coroutine.resume(coroutine.create(function(Part)
  1127. wait(5)
  1128. for i=0,1,0.05 do
  1129. wait(0)
  1130. Part.Transparency=i
  1131. end
  1132. Part.Parent=nil
  1133. end),groundpart)
  1134. end
  1135. coroutine.resume(coroutine.create(function()
  1136. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(10,20),"Knockdown",prt1,2) end)
  1137. hitbox.Parent=workspace
  1138. hitbox.Size=vt(11,11,11)
  1139. CF=prt38.CFrame
  1140. hitbox.CFrame=cf(prt38.Position)
  1141. for i=0,1,0.1 do
  1142. swait()
  1143. hitbox.CFrame=CF
  1144. end
  1145. con1:disconnect()
  1146. hitbox.Parent=nil
  1147. end))
  1148. BPos.P=50000
  1149. BPos.D=1000
  1150. BPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1151. BPos.position=prt1.Position
  1152. BPos.Parent=prt1
  1153. MagicCircle(BrickColor.new("White"),prt38.CFrame,0,0,0,3,3,3,0.05)
  1154. WaveEffect2(BrickColor.new("White"),prt38.CFrame*cf(0,4,0),0,0,0,0.3,0.3,0.3,0.02)
  1155. so("Smash",prt38,1,0.5)
  1156. end))
  1157. for i=0,1,0.1 do
  1158. swait()
  1159. Neck.C0=necko*euler(0,0,0)
  1160. RootJoint.C0=RootCF*cf(0,0,0)
  1161. RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(1.57-1.57*i,0,-0.6+0.8*i)
  1162. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1163. LW.C0=cf(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i)*euler(1.57-1.57*i,0,0.6-0.8*i)
  1164. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1165. RH.C0=RHC0*cf(0,0,0)*euler(0,0,0)
  1166. RH.C1=RHC1
  1167. LH.C0=LHC0*cf(0,0,0)*euler(0,0,0)
  1168. LH.C1=LHC1
  1169. end
  1170. attack=false
  1171. end
  1172.  
  1173. function LightningBlasts()
  1174. attack=true
  1175. Humanoid.WalkSpeed=0
  1176. for i=0,1,0.1 do
  1177. swait()
  1178. Neck.C0=necko*euler(0,0,0)
  1179. RootJoint.C0=RootCF*cf(0,0,0)
  1180. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.2+1.37*i)
  1181. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1182. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2-1.37*i)
  1183. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1184. end
  1185. --RootJoint.C0=RootCF*cf(0,0,-1.5)*euler(0.8,0,0.5)
  1186. for i=0,1,0.1 do
  1187. swait()
  1188. Neck.C0=necko*euler(-0.4*i,0,-0.2*i)
  1189. RootJoint.C0=RootCF*cf(0,0,-1.5*i)*euler(0.8*i,0,0.5*i)
  1190. RW.C0=cf(1.5,0.5,0)*euler(1.4*i,0,1.57-1.07*i)
  1191. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1192. LW.C0=cf(-1.5,0.5,0)*euler(-0.2*i,0,-1.57+1.17*i)
  1193. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1194. RH.C0=RHC0*cf(0,0,0)*euler(0,-0.5*i,-0.5*i)
  1195. LH.C0=LHC0*cf(-0.5*i,1*i,0)*euler(0.5*i,0,-0.5*i)
  1196. end
  1197. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,0,"Knockdown",hitbox,.4) end)
  1198. for i=1,2 do
  1199. MagicBlock(BrickColor.new("Bright red"),cf(prt41.Position+vt(0,750,0)),0.1,3000,0.1,0.05,0.05,0.05,0.01)
  1200. CF=RootPart.CFrame*cf(math.random(-15,15),-3.5,-12-math.random(0,15))
  1201. MagicBlock(BrickColor.new("Bright red"),CF,0.1,3000,0.1,0.05,0.05,0.05,0.01)
  1202. local efprt=part(1,workspace,0,0.5,BrickColor.new("Black"),"Effect",vt(1,1,1))
  1203. efprt.CFrame=CF
  1204. efprt.Anchored=true
  1205. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(20,1,20))
  1206. local efprt2=part(1,workspace,0,0.5,BrickColor.new("White"),"Effect",vt(1,1,1))
  1207. efprt2.CFrame=CF
  1208. efprt2.Anchored=true
  1209. local efmsh2=mesh("CylinderMesh",efprt2,"","",vt(0,0,0),vt(0,1,0))
  1210. coroutine.resume(coroutine.create(function(Part1,Part2,Mesh2)
  1211. --[[so("http://www.roblox.com/asset/?id=2233908",Part1,1,1.1)
  1212. so("http://www.roblox.com/asset/?id=153092334",Part1,0.7,0.9)]]
  1213. so("TeslaShot",Part1,1,1)
  1214. teh=math.random()
  1215. WaveEffect2(BrickColor.new("Bright red"),CFrame.new(Part1.Position),5,1.5,5,0.7,0.7,0.7,0.02)
  1216. MagicCircle(BrickColor.new("White"),CFrame.new(Part1.Position),20,20,20,1.6,1.6,1.6,0.03)
  1217. --[[Lightning(prt41.Position,prt41.Position+vt(math.random(-5,5),800,math.random(-5,5)),20,1,"White",0.1,0.1,0.2)
  1218. for i=1,5 do
  1219. Lightning(Part1.Position+vt(math.random(-5,5),0,math.random(-5,5)),Part1.Position+vt(math.random(-5,5),800,math.random(-5,5)),20,1,"White",0.1,0.1,0.2)
  1220. end]]
  1221. Part1.Transparency=1
  1222. Part2.Transparency=1
  1223. hitbox.Parent=workspace
  1224. hitbox.Size=vt(17,17,17)
  1225. hitbox.CFrame=Part1.CFrame
  1226. coroutine.resume(coroutine.create(function(Part,tehCF)
  1227. for i=0,1,0.1 do
  1228. swait()
  1229. Part.CFrame=tehCF*cf(0,2,0)
  1230. end
  1231. Part.Parent=nil
  1232. end),hitbox,Part1.CFrame)
  1233. swait(20)
  1234. Part1.Parent=nil
  1235. Part2.Parent=nil
  1236. end),efprt,efprt2,efmsh2)
  1237. so("Appear",efprt,1,1.5)
  1238. game:GetService("Debris"):AddItem(efprt,5)
  1239. end
  1240. swait(30)
  1241. Humanoid.WalkSpeed=16
  1242. for i=0,1,0.05 do
  1243. swait()
  1244. Neck.C0=necko*euler(-0.4+0.4*i,0,-0.2+0.2*i)
  1245. RootJoint.C0=RootCF*cf(0,0,-1.5+1.5*i)*euler(0.8-0.8*i,0,0.5-0.5*i)
  1246. RW.C0=cf(1.5,0.5,0)*euler(1.4-1.4*i,0,0.5-0.3*i)
  1247. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1248. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i,0,-0.4+0.2*i)
  1249. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1250. RH.C0=RHC0*cf(0,0,0)*euler(0,-0.5+0.5*i,-0.5+0.5*i)
  1251. LH.C0=LHC0*cf(-0.5+0.5*i,1-1*i,0)*euler(0.5-0.5*i,0,-0.5+0.5*i)
  1252. end
  1253. con1:disconnect()
  1254. attack=false
  1255. end
  1256.  
  1257. function PileDrive()
  1258. attack=true
  1259. for i=0,1,0.1 do
  1260. swait()
  1261. Neck.C0=necko*euler(0,0,1*i)
  1262. RootJoint.C0=RootCF*euler(0,0,-1*i)
  1263. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.2+1.37*i)
  1264. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1265. LW.C0=cf(-1.5,0.5,0)*euler(-0.5*i,0,-0.2)
  1266. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1267. end
  1268. local efprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(1,1,1))
  1269. local efwld=weld(efprt,efprt,RightArm,cf(0,1,0))
  1270. game:GetService("Debris"):AddItem(efprt,10)
  1271. so("Explosion1",prt41,1,0.3)
  1272. so("Explosion1",efprt,1,0.5)
  1273. so("Charge2",efprt,1,1)
  1274. for i=0,30 do
  1275. swait()
  1276. Lightning(efprt.Position,prt41.Position,5,0.5,"Bright red",0.1,0.1,0.1)
  1277. MagicBlock(BrickColor.new("Bright red"),efprt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),0,0,0,0.3,0.3,0.3,0.05)
  1278. end
  1279. for i=0,1,0.1 do
  1280. swait()
  1281. Neck.C0=necko*euler(0,0,1-2.57*i)
  1282. RootJoint.C0=RootCF*euler(0,0,-1+2.57*i)
  1283. RW.C0=cf(1.5,0.5,0)*euler(0,0,1.57)
  1284. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1285. LW.C0=cf(-1.5,0.5,0)*euler(-0.5,0,-0.2)
  1286. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1287. Lightning(efprt.Position,prt41.Position,5,0.5,"Bright red",0.1,0.1,0.1)
  1288. MagicBlock(BrickColor.new("Bright red"),efprt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),0,0,0,0.3,0.3,0.3,0.05)
  1289. end
  1290. bodvel=it("BodyVelocity")
  1291. bodvel.Parent=RootPart
  1292. bodvel.maxForce=vt(4e+005,4e+005,4e+005)*1
  1293. bodvel.velocity=Head.CFrame.lookVector*30
  1294. bg=it("BodyGyro")
  1295. bg.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1296. bg.P=20e+003
  1297. bg.Parent=RootPart
  1298. bg.cframe=RootPart.CFrame
  1299. game:GetService("Debris"):AddItem(bodvel,1)
  1300. game:GetService("Debris"):AddItem(bg,1)
  1301. efwld.C0=cf(0,4,0)
  1302. so("PileDrive",efprt,1,0.7)
  1303. MagicCircle(BrickColor.new("White"),efprt.CFrame,0,0,0,0.7,0.7,0.7,0.01)
  1304. MagicRing(BrickColor.new("White"),efprt.CFrame*euler(-1.57,0,0),0,0,0,0.5,0.5,0.5,0.01)
  1305. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,30,40,50,"Knockdown",hitbox,1) end)
  1306. hitbox.Parent=Character
  1307. hitbox.Size=vt(5,10,5)
  1308. hitbox.CFrame=RightArm.CFrame
  1309. for i=1,30 do
  1310. swait()
  1311. MagicBlock(BrickColor.new("Bright red"),efprt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),2,2,2,0.8,0.8,0.8,0.1)
  1312. hitbox.CFrame=RightArm.CFrame
  1313. end
  1314. con1:disconnect()
  1315. hitbox.Parent=nil
  1316. swait(30)
  1317. attack=false
  1318. end
  1319.  
  1320. function LaserBarrage()
  1321. attack=true
  1322. for i=0,1,0.1 do
  1323. swait()
  1324. Neck.C0=necko*euler(0,0,0)
  1325. RootJoint.C0=RootCF*cf(0,0,-1*i)*euler(0,0,0)
  1326. RW.C0=cf(1.5,0.5,0)*euler(1.57*i,1.57*i,0.2-0.2*i)
  1327. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1328. LW.C0=cf(-1.5+1.5*i,0.5,-0.5*i)*euler(1.2*i,-1.2*i,-0.2+0.2*i)
  1329. LW.C1=cf(0,0.5,0)*euler(-1.4*i,0,0)
  1330. RH.C0=RHC0*cf(0,0,0)*euler(0,0.1*i,-1*i)
  1331. LH.C0=LHC0*cf(-0.5*i,1*i,0)*euler(-0.1*i,0,0)
  1332. end
  1333. --so("BeamLockon",prt41,1,1)
  1334. for i=1,10 do
  1335. local efprt=part(3,modelzorz,0,0.5,BrickColor.new("Bright red"),"Effect",vt(0.2,0.2,0.2))
  1336. efprt.Anchored=true
  1337. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  1338. spread=vt((math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7)*(prt41.Position-MMouse.Hit.p).magnitude/100
  1339. --spread=vt(0,0,0)
  1340. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  1341. game:GetService("Debris"):AddItem(Part,6)
  1342. local TheHit=MMouse.Hit.p
  1343. local MouseLook=cf((prt41.Position+TheHit)/2,TheHit+Spreaded)
  1344. local hit,pos = rayCast(prt41.Position,MouseLook.lookVector,1000,modelzorz)
  1345. so("Elec",prt41,0.2,1)
  1346. local tefprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1347. tefprt.CFrame=cf(pos)
  1348. MagicCircle(BrickColor.new("Really red"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04)
  1349. so("Elec",tefprt,0.3,1)
  1350. game:GetService("Debris"):AddItem(tefprt,3)
  1351. Part.CFrame=CFrame.new((prt41.Position+pos)/2,pos)*angles(1.57,0,0)
  1352. local mag=(prt41.Position-pos).magnitude
  1353. if hit~=nil then
  1354. Damagefunc(hit,10,20,1,"Normal",RootPart,0,"TeslaShot",2)
  1355. end
  1356. MagicCylinder(BrickColor.new("Bright red"),Part.CFrame,1,mag*5,1,0.5,0,0.5,0.05)
  1357. Part.Parent=nil
  1358. end),efprt,efmsh,spread)
  1359. end
  1360. swait(20)
  1361. for i=0,1,0.1 do
  1362. swait()
  1363. Neck.C0=necko*euler(0,0,0)
  1364. RootJoint.C0=RootCF*cf(0,0,-1+1*i)*euler(0,0,0)
  1365. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i,1.57-1.57*i,0.2*i)
  1366. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1367. LW.C0=cf(-1.5*i,0.5,-0.5+0.5*i)*euler(1.2-1.2*i,-1.2+1.2*i,-0.2*i)
  1368. LW.C1=cf(0,0.5,0)*euler(-1.4+1.4*i,0,0)
  1369. RH.C0=RHC0*cf(0,0,0)*euler(0,0.1-0.1*i,-1+1*i)
  1370. LH.C0=LHC0*cf(-0.5+0.5*i,1-1*i,0)*euler(-0.1+0.1*i,0,0)
  1371. end
  1372. attack=false
  1373. end
  1374.  
  1375. function BLAAAAARGH()
  1376. attack=true
  1377. for i=0,1,0.1 do
  1378. swait()
  1379. Neck.C0=necko*euler(0,0,0)
  1380. RootJoint.C0=RootCF*cf(0,0,-1*i)*euler(0,0,0)
  1381. RW.C0=cf(1.5,0.5,0)*euler(1.57*i,1.57*i,0.2-0.2*i)
  1382. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1383. LW.C0=cf(-1.5+1.5*i,0.5,-0.5*i)*euler(1.2*i,-1.2*i,-0.2+0.2*i)
  1384. LW.C1=cf(0,0.5,0)*euler(-1.4*i,0,0)
  1385. RH.C0=RHC0*cf(0,0,0)*euler(0,0.1*i,-1*i)
  1386. LH.C0=LHC0*cf(-0.5*i,1*i,0)*euler(-0.1*i,0,0)
  1387. end
  1388. for i=1,3 do
  1389. so("DoctorOctogonapus",prt41,1,1)
  1390. end
  1391. for i=1,1 do
  1392. local efprt=part(3,modelzorz,0,0.5,BrickColor.new("Bright red"),"Effect",vt(0.6,0.2,0.6))
  1393. efprt.Anchored=true
  1394. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  1395. --spread=vt((math.random(-1,0)+math.random())*5,(math.random(-1,0)+math.random())*5,(math.random(-1,0)+math.random())*5)
  1396. spread=vt(0,0,0)
  1397. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  1398. game:GetService("Debris"):AddItem(Part,6)
  1399. for i=1,70 do
  1400. swait()
  1401. local MouseLook=cf((prt41.Position+MMouse.Hit.p)/2,MMouse.Hit.p+Spreaded)
  1402. local hit,pos = rayCast(prt41.Position,MouseLook.lookVector,1000,modelzorz)
  1403. Part.CFrame=CFrame.new((prt41.Position+pos)/2,pos)*angles(1.57,0,0)
  1404. local mag=(prt41.Position-pos).magnitude
  1405. Mesh.Scale=vt(1,mag*5,1)
  1406. end
  1407. local MouseLook=cf((prt41.Position+MMouse.Hit.p)/2,MMouse.Hit.p+Spreaded)
  1408. local hit,pos = rayCast(prt41.Position,MouseLook.lookVector,1000,modelzorz)
  1409. --so("http://www.roblox.com/asset/?id=169380505",prt41,0.5,1)
  1410. local tefprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1411. tefprt.CFrame=cf(pos)
  1412. MagicCircle(BrickColor.new("Really red"),cf(pos),3,3,3,4,4,4,0.04)
  1413. --so("http://www.roblox.com/asset/?id=169380505",tefprt,0.5,1)
  1414. game:GetService("Debris"):AddItem(tefprt,3)
  1415. Part.CFrame=CFrame.new((prt41.Position+pos)/2,pos)*angles(1.57,0,0)
  1416. local mag=(prt41.Position-pos).magnitude
  1417. if hit~=nil and hit.Name~="Base" then
  1418. Damagefunc(hit,25,25,10,"Knockdown",prt41,0,"",2)
  1419. local angle=(hit.Position-(prt41.Position+Vector3.new(0,0,0))).unit
  1420. if hit.Parent:findFirstChild("Humanoid")~=nil then
  1421. local efprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1422. efprt.Anchored=true
  1423. efprt.CFrame=hit.CFrame
  1424. game:GetService("Debris"):AddItem(efprt,10)
  1425. local sou=Instance.new("Sound")
  1426. sou.Parent=efprt
  1427. sou.Volume=1
  1428. sou.Pitch=1
  1429. sou.SoundId="http://www.roblox.com/asset/?id=169445683"
  1430. sou.Looped=false
  1431. sou:play()
  1432. end
  1433. end
  1434. MagicCylinder(BrickColor.new("Bright red"),Part.CFrame,20,mag*5,20,4,0,4,0.05)
  1435. Part.Parent=nil
  1436. end),efprt,efmsh,spread)
  1437. end
  1438. swait(100)
  1439. for i=0,1,0.1 do
  1440. swait()
  1441. Neck.C0=necko*euler(0,0,0)
  1442. RootJoint.C0=RootCF*cf(0,0,-1+1*i)*euler(0,0,0)
  1443. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i,1.57-1.57*i,0.2*i)
  1444. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1445. LW.C0=cf(-1.5*i,0.5,-0.5+0.5*i)*euler(1.2-1.2*i,-1.2+1.2*i,-0.2*i)
  1446. LW.C1=cf(0,0.5,0)*euler(-1.4+1.4*i,0,0)
  1447. RH.C0=RHC0*cf(0,0,0)*euler(0,0.1-0.1*i,-1+1*i)
  1448. LH.C0=LHC0*cf(-0.5+0.5*i,1-1*i,0)*euler(-0.1+0.1*i,0,0)
  1449. end
  1450. attack=false
  1451. end
  1452.  
  1453. function ALLCHILD()
  1454. local all={}
  1455. for _,v in pairs(workspace:children()) do
  1456. table.insert(all,v)
  1457. end
  1458. return all
  1459. end
  1460.  
  1461. function Disappear(Mod)
  1462. for _,v in pairs(Mod:children()) do
  1463. if v.className=="Hat" then
  1464. for _,i in pairs(v:children()) do
  1465. if i.className=="Part" then
  1466. coroutine.resume(coroutine.create(function(Part)
  1467. for i=0,1,0.1 do
  1468. swait()
  1469. Part.Transparency=i
  1470. end
  1471. Part.Transparency=1
  1472. end),i)
  1473. end
  1474. end
  1475. end
  1476. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1477. coroutine.resume(coroutine.create(function(Part)
  1478. for i=0,1,0.1 do
  1479. swait()
  1480. Part.Transparency=i
  1481. end
  1482. Part.Transparency=1
  1483. end),v)
  1484. end
  1485. end
  1486. end
  1487.  
  1488. function Reappear(Mod)
  1489. for _,v in pairs(Mod:children()) do
  1490. if v.className=="Hat" then
  1491. for _,i in pairs(v:children()) do
  1492. if i.className=="Part" then
  1493. coroutine.resume(coroutine.create(function(Part)
  1494. for i=1,0,-0.1 do
  1495. swait()
  1496. Part.Transparency=i
  1497. end
  1498. Part.Transparency=0
  1499. end),i)
  1500. end
  1501. end
  1502. end
  1503. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1504. coroutine.resume(coroutine.create(function(Partt)
  1505. for i=1,0,-0.1 do
  1506. swait()
  1507. Partt.Transparency=i
  1508. end
  1509. Partt.Transparency=0
  1510. end),v)
  1511. end
  1512. end
  1513. end
  1514.  
  1515. function ArkActivate()
  1516. coroutine.resume(coroutine.create(function()
  1517. clone=prt3:Clone()
  1518. clone.Parent=modelzorz
  1519. clone.BrickColor=BrickColor.new("Bright red")
  1520. clone.Mesh.Scale=clone.Mesh.Scale+vt(0.01,0.005,0.01)
  1521. local awld3=weld(clone,clone,prt3,cf(0,0,0))
  1522. so("Activate",prt41,1,1)
  1523. coroutine.resume(coroutine.create(function(Part)
  1524. for i=1,0,-0.01 do
  1525. swait()
  1526. Part.Transparency=i
  1527. end
  1528. Part.Transparency=0
  1529. end),clone)
  1530. table.insert(Clone,clone)
  1531. for i=2,31 do
  1532. --prt22
  1533. clone=EffectParts[i]:Clone()
  1534. clone.Parent=modelzorz
  1535. clone.BrickColor=BrickColor.new("Bright red")
  1536. if clone.Name=="Part22" then
  1537. clone.Mesh.Scale=clone.Mesh.Scale+vt(0.01,0.005,0.01)
  1538. else
  1539. clone.Mesh.Scale=clone.Mesh.Scale+vt(0.01,0.01,0.01)
  1540. end
  1541. local awld3=weld(clone,clone,EffectParts[i],cf(0,0,0))
  1542. coroutine.resume(coroutine.create(function(Part)
  1543. for i=1,0,-0.01 do
  1544. swait()
  1545. Part.Transparency=i
  1546. end
  1547. Part.Transparency=0
  1548. end),clone)
  1549. table.insert(Clone,clone)
  1550. end
  1551. end))
  1552. coroutine.resume(coroutine.create(function()
  1553. numb=0
  1554. numbderp=0.785*3
  1555. for i=1,3 do
  1556. for i=1,4 do
  1557. MagicShard(BrickColor.new("Bright red"),prt43.CFrame*euler(0,numb,numbderp)*cf(0,5,0),0,0,0,0.03,0.07,0.03,0.02)
  1558. numb=numb+1.57
  1559. --local wld41=weld(prt41,prt41,prt43,cf(0,2.4,0)*euler(0,0,numb))
  1560. end
  1561. swait(10)
  1562. numbderp=numbderp-0.785
  1563. end
  1564. MagicShard(BrickColor.new("Bright red"),prt43.CFrame*euler(0,0,0)*cf(0,5,0),0,0,0,0.03,0.07,0.03,0.02)
  1565. end))
  1566. coroutine.resume(coroutine.create(function(Part)
  1567. while Mode=="Planted" do
  1568. swait(math.random(5,10))
  1569. ElecEffect(Part.Position,4,4,4)
  1570. end
  1571. end),prt41)
  1572. end
  1573.  
  1574. function ArkUnactivate()
  1575. for i=1,#Clone do
  1576. --[[print(Clone[i])
  1577. print(i)]]
  1578. Clone[i].Parent=nil
  1579. end
  1580. for i=1,#Clone do
  1581. table.remove(Clone,i)
  1582. end
  1583. end
  1584.  
  1585. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1586. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1587. end
  1588.  
  1589. --[[local LastPoint=prt4.CFrame*CFrame.new(0,prt4.Size.Y*2.5,0)
  1590. local Point=prt4.CFrame*CFrame.new(0,prt4.Size.Y*2.5,0)]]
  1591. function effect(Color,Ref,Size,LP,P1,returnn)
  1592. local effectsmsh = Instance.new("BlockMesh")
  1593. effectsmsh.Scale = Vector3.new(0.4,1,0.4)
  1594. effectsmsh.Name = "Mesh"
  1595. local effectsg = Instance.new("Part")
  1596. effectsg.formFactor = 3
  1597. effectsg.CanCollide = false
  1598. effectsg.Name = "Eff"
  1599. effectsg.Locked = true
  1600. effectsg.Anchored = true
  1601. effectsg.Size = Vector3.new(0.2,1,0.2)
  1602. effectsg.Parent = workspace
  1603. effectsmsh.Parent = effectsg
  1604. effectsg.BrickColor = BrickColor.new(Color)
  1605. effectsg.Reflectance = Ref
  1606. local point1 = P1
  1607. local mg = (LP.p - point1.p).magnitude
  1608. effectsg.Size = Vector3.new(Size,mg,Size)
  1609. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1610. if returnn then return effectsg end
  1611. coroutine.resume(coroutine.create(function()
  1612. if not returnn then
  1613. for i = 0 , 1 , 0.1 do
  1614. swait()
  1615. effectsg.Transparency = 1*i
  1616. effectsmsh.Scale = Vector3.new(Size-Size*i,1,Size-Size*i)
  1617. end
  1618. swait()
  1619. effectsg.Parent = nil
  1620. end
  1621. end))
  1622. end
  1623.  
  1624. function ElecEffect(cff,x,y,z)
  1625. local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
  1626. prt.Anchored=true
  1627. game:GetService("Debris"):AddItem(prt,2)
  1628. xval=math.random()
  1629. yval=math.random()
  1630. zval=math.random()
  1631. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1632. coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal)
  1633. Part.CFrame=cf(Frame)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1634. for i=0,1,0.05 do
  1635. swait()
  1636. xvaal=xvaal-0.1
  1637. yvaal=yvaal-0.1
  1638. zvaal=zvaal-0.1
  1639. Mesh.Scale=vt(xvaal,yvaal,zvaal)
  1640. Part.Transparency=i
  1641. end
  1642. Part.Parent=nil
  1643. end),prt,msh,cff,xval,yval,zval)
  1644. end
  1645.  
  1646. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1647. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1648. prt.Anchored=true
  1649. prt.CFrame=cframe
  1650. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1651. game:GetService("Debris"):AddItem(prt,5)
  1652. coroutine.resume(coroutine.create(function(Part,Mesh)
  1653. for i=0,1,delay do
  1654. swait()
  1655. Part.CFrame=Part.CFrame
  1656. Part.Transparency=i
  1657. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1658. end
  1659. Part.Parent=nil
  1660. end),prt,msh)
  1661. end
  1662.  
  1663. function MagicBlock2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,decrease)
  1664. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1665. prt.Anchored=true
  1666. prt.CFrame=cframe
  1667. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1668. game:GetService("Debris"):AddItem(prt,2)
  1669. CF=prt.CFrame
  1670. num=math.random(5,20)
  1671. coroutine.resume(coroutine.create(function(Part,Mesh,CF2,Num)
  1672. for i=0,1.05,0.05 do
  1673. swait()
  1674. Part.CFrame=CF2*cf(0,i*Num,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1675. Part.Transparency=i
  1676. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1677. Num=Num-decrease
  1678. end
  1679. Part.Parent=nil
  1680. end),prt,msh,CF,num)
  1681. end
  1682.  
  1683. function MagicBlock3(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1684. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1685. prt.Anchored=true
  1686. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1687. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1688. game:GetService("Debris"):AddItem(prt,2)
  1689. coroutine.resume(coroutine.create(function(Part,Mesh)
  1690. for i=0,1,0.1 do
  1691. swait()
  1692. TehCF=cframe
  1693. Part.CFrame=TehCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1694. Part.Transparency=i
  1695. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1696. end
  1697. Part.Parent=nil
  1698. end),prt,msh)
  1699. end
  1700.  
  1701. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1702. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1703. prt.Anchored=true
  1704. prt.CFrame=cframe
  1705. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1706. game:GetService("Debris"):AddItem(prt,2)
  1707. coroutine.resume(coroutine.create(function(Part,Mesh)
  1708. for i=0,1,delay do
  1709. swait()
  1710. Part.CFrame=Part.CFrame
  1711. Part.Transparency=i
  1712. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1713. end
  1714. Part.Parent=nil
  1715. end),prt,msh)
  1716. end
  1717.  
  1718. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1719. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1720. prt.Anchored=true
  1721. prt.CFrame=cframe
  1722. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1723. game:GetService("Debris"):AddItem(prt,2)
  1724. coroutine.resume(coroutine.create(function(Part,Mesh)
  1725. for i=0,1,delay do
  1726. swait()
  1727. Part.CFrame=Part.CFrame
  1728. Part.Transparency=i
  1729. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1730. end
  1731. Part.Parent=nil
  1732. end),prt,msh)
  1733. end
  1734.  
  1735. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1736. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1737. prt.Anchored=true
  1738. prt.CFrame=cframe
  1739. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1740. game:GetService("Debris"):AddItem(prt,2)
  1741. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  1742. for i=0,1,delay do
  1743. swait()
  1744. Part.CFrame=Part.CFrame*cf(0,0,-num)
  1745. Part.Transparency=i
  1746. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1747. end
  1748. Part.Parent=nil
  1749. end),prt,msh,(math.random(0,1)+math.random())/5)
  1750. end
  1751.  
  1752. function MagicFire(brickcolor,cframe,x1,y1,z1)
  1753. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1754. prt.Anchored=true
  1755. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1756. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1757. game:GetService("Debris"):AddItem(prt,2)
  1758. coroutine.resume(coroutine.create(function(Part,Mesh)
  1759. for i=0,1,0.1 do
  1760. swait()
  1761. Part.CFrame=cf(Part.Position+vt(0,0.5,0))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1762. Part.Transparency=i
  1763. Mesh.Scale=Mesh.Scale+vt(0.1,0.1,0.1)
  1764. end
  1765. Part.Parent=nil
  1766. end),prt,msh)
  1767. end
  1768.  
  1769. function BlastEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1770. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1771. prt.Anchored=true
  1772. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1773. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=24388358",vt(0,0,0),vt(x1,y1,z1))
  1774. game:GetService("Debris"):AddItem(prt,2)
  1775. coroutine.resume(coroutine.create(function(Part,Mesh)
  1776. for i=0,1,0.05 do
  1777. swait()
  1778. Part.CFrame=Part.CFrame
  1779. Part.Transparency=i
  1780. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1781. end
  1782. Part.Parent=nil
  1783. end),prt,msh)
  1784. end
  1785.  
  1786. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1787. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1788. prt.Anchored=true
  1789. prt.CFrame=cframe
  1790. msh=mesh("SpecialMesh",prt,"FileMesh","1323306",vt(0,0,0),vt(x1,y1,z1))
  1791. game:GetService("Debris"):AddItem(prt,2)
  1792. coroutine.resume(coroutine.create(function(Part,Mesh)
  1793. for i=0,1,0.1 do
  1794. swait()
  1795. Part.CFrame=Part.CFrame*cf(0,y3,0)
  1796. Part.Transparency=i
  1797. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1798. end
  1799. Part.Parent=nil
  1800. end),prt,msh)
  1801. end
  1802.  
  1803. function WaveEffect2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1804. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1805. prt.Anchored=true
  1806. prt.CFrame=cframe
  1807. msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  1808. game:GetService("Debris"):AddItem(prt,2)
  1809. coroutine.resume(coroutine.create(function(Part,Mesh)
  1810. for i=0,1,delay do
  1811. swait()
  1812. Part.CFrame=Part.CFrame
  1813. Part.Transparency=i
  1814. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1815. end
  1816. Part.Parent=nil
  1817. end),prt,msh)
  1818. end
  1819.  
  1820. function MagicShard(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1821. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1822. prt.Anchored=true
  1823. prt.CFrame=cframe
  1824. msh=mesh("SpecialMesh",prt,"FileMesh","9756362",vt(0,0,0),vt(x1,y1,z1))
  1825. game:GetService("Debris"):AddItem(prt,5)
  1826. coroutine.resume(coroutine.create(function(Part,Mesh)
  1827. for i=0,1,delay do
  1828. swait()
  1829. Part.CFrame=Part.CFrame
  1830. Part.Transparency=i
  1831. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1832. end
  1833. Part.Parent=nil
  1834. end),prt,msh)
  1835. end
  1836.  
  1837. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  1838. --[[p0=pos1
  1839. p1=pos2
  1840. tym=times
  1841. ofs=offset
  1842. col=color
  1843. th=size
  1844. tra=transparency
  1845. last=lastingtime]]
  1846. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  1847. for i=1,tym do
  1848. 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)
  1849. 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)])
  1850. light1=Instance.new("PointLight")
  1851. light1.Brightness=.8
  1852. light1.Color=Color3.new(.2,255,.2)
  1853. light1.Range=8
  1854. light1.Parent=li
  1855. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  1856. if tym == i then
  1857. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  1858. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  1859. else
  1860. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  1861. end
  1862. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  1863. end
  1864. end
  1865.  
  1866. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,HitSound,HitPitch)
  1867. if hit.Parent==nil then
  1868. return
  1869. end
  1870. CPlayer=Bin
  1871. h=hit.Parent:FindFirstChild("Humanoid")
  1872. for _,v in pairs(hit.Parent:children()) do
  1873. if v:IsA("Humanoid") then
  1874. h=v
  1875. end
  1876. end
  1877. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1878. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1879. if h.MaxHealth>=math.huge then
  1880. hit:BreakJoints()
  1881. end
  1882. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1883. return
  1884. end]]
  1885. -- hs(hit,1.2)
  1886. c=Instance.new("ObjectValue")
  1887. c.Name="creator"
  1888. c.Value=game:service("Players").LocalPlayer
  1889. c.Parent=h
  1890. game:GetService("Debris"):AddItem(c,.5)
  1891. if HitSound~=nil and HitPitch~=nil then
  1892. so(HitSound,hit,1,HitPitch)
  1893. end
  1894. Damage=math.random(minim,maxim)
  1895. -- h:TakeDamage(Damage)
  1896. blocked=false
  1897. block=hit.Parent:findFirstChild("Block")
  1898. if block~=nil then
  1899. if block.className=="IntValue" then
  1900. if block.Value>0 then
  1901. blocked=true
  1902. block.Value=block.Value-1
  1903. print(block.Value)
  1904. end
  1905. end
  1906. end
  1907. if blocked==false then
  1908. h:TakeDamage(Damage)
  1909. -- h.Health=h.Health-Damage
  1910. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  1911. else
  1912. h:TakeDamage(Damage/2)
  1913. -- h.Health=h.Health-(Damage/2)
  1914. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1915. end
  1916. if Type=="Knockdown" then
  1917. hum=hit.Parent.Humanoid
  1918. hum.PlatformStand=true
  1919. coroutine.resume(coroutine.create(function(HHumanoid)
  1920. swait(1)
  1921. HHumanoid.PlatformStand=false
  1922. end),hum)
  1923. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1924. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1925. local bodvol=Instance.new("BodyVelocity")
  1926. bodvol.velocity=angle*knockback
  1927. bodvol.P=5000
  1928. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1929. bodvol.Parent=hit
  1930. rl=Instance.new("BodyAngularVelocity")
  1931. rl.P=3000
  1932. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1933. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1934. rl.Parent=hit
  1935. game:GetService("Debris"):AddItem(bodvol,.5)
  1936. game:GetService("Debris"):AddItem(rl,.5)
  1937. elseif Type=="Normal" then
  1938. vp=Instance.new("BodyVelocity")
  1939. vp.P=500
  1940. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1941. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1942. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1943. if knockback>0 then
  1944. vp.Parent=hit.Parent.Torso
  1945. end
  1946. game:GetService("Debris"):AddItem(vp,.5)
  1947. elseif Type=="Up" then
  1948. local bodyVelocity=Instance.new("BodyVelocity")
  1949. bodyVelocity.velocity=vt(0,20,0)
  1950. bodyVelocity.P=5000
  1951. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1952. bodyVelocity.Parent=hit
  1953. game:GetService("Debris"):AddItem(bodyVelocity,.5)
  1954. elseif Type=="Snare" then
  1955. bp=Instance.new("BodyPosition")
  1956. bp.P=2000
  1957. bp.D=100
  1958. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1959. bp.position=hit.Parent.Torso.Position
  1960. bp.Parent=hit.Parent.Torso
  1961. game:GetService("Debris"):AddItem(bp,1)
  1962. elseif Type=="Freeze" then
  1963. BodPos=Instance.new("BodyPosition")
  1964. BodPos.P=50000
  1965. BodPos.D=1000
  1966. BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1967. BodPos.position=hit.Parent.Torso.Position
  1968. BodPos.Parent=hit.Parent.Torso
  1969. BodGy = it("BodyGyro")
  1970. BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1971. BodGy.P = 20e+003
  1972. BodGy.Parent=hit.Parent.Torso
  1973. BodGy.cframe = hit.Parent.Torso.CFrame
  1974. hit.Parent.Torso.Anchored=true
  1975. coroutine.resume(coroutine.create(function(Part)
  1976. swait(1.5)
  1977. Part.Anchored=false
  1978. end),hit.Parent.Torso)
  1979. game:GetService("Debris"):AddItem(BodPos,3)
  1980. game:GetService("Debris"):AddItem(BodGy,3)
  1981. end
  1982. debounce=Instance.new("BoolValue")
  1983. debounce.Name="DebounceHit"
  1984. debounce.Parent=hit.Parent
  1985. debounce.Value=true
  1986. game:GetService("Debris"):AddItem(debounce,Delay)
  1987. c=Instance.new("ObjectValue")
  1988. c.Name="creator"
  1989. c.Value=Player
  1990. c.Parent=h
  1991. game:GetService("Debris"):AddItem(c,.5)
  1992. CRIT=false
  1993. hitDeb=true
  1994. AttackPos=6
  1995. end
  1996. end
  1997.  
  1998. showDamage=function(Char,Dealt,du,Color)
  1999. m=Instance.new("Model")
  2000. m.Name=tostring(Dealt)
  2001. h=Instance.new("Humanoid")
  2002. h.Health=0
  2003. h.MaxHealth=0
  2004. h.Parent=m
  2005. c=Instance.new("Part")
  2006. c.Transparency=0
  2007. c.BrickColor=Color
  2008. c.Name="Head"
  2009. c.TopSurface=0
  2010. c.BottomSurface=0
  2011. c.formFactor="Plate"
  2012. c.Size=Vector3.new(1,.4,1)
  2013. ms=Instance.new("CylinderMesh")
  2014. ms.Scale=Vector3.new(.8,.8,.8)
  2015. if CRIT==true then
  2016. ms.Scale=Vector3.new(1,1.25,1)
  2017. end
  2018. ms.Parent=c
  2019. c.Reflectance=0
  2020. Instance.new("BodyGyro").Parent=c
  2021. c.Parent=m
  2022. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2023. f=Instance.new("BodyPosition")
  2024. f.P=2000
  2025. f.D=100
  2026. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2027. f.position=c.Position+Vector3.new(0,3,0)
  2028. f.Parent=c
  2029. game:GetService("Debris"):AddItem(m,.5+du)
  2030. c.CanCollide=false
  2031. m.Parent=workspace
  2032. c.CanCollide=false
  2033. end
  2034.  
  2035. combo=0
  2036. num=0
  2037. function ob1d(mouse)
  2038. if attack==true then return end
  2039. hold=true
  2040. if combo==0 then
  2041. combo=1
  2042. if holdz==true then
  2043. heavyattackone()
  2044. else
  2045. lightattackone()
  2046. end
  2047. elseif combo==1 then
  2048. combo=2
  2049. if holdz==true then
  2050. lightattackfour()
  2051. else
  2052. lightattacktwo()
  2053. end
  2054. elseif combo==2 then
  2055. combo=3
  2056. if holdz==true then
  2057. heavyattackthree()
  2058. else
  2059. lightattackthree()
  2060. end
  2061. elseif combo==3 then
  2062. combo=4
  2063. if holdz==true then
  2064. heavyattackfour()
  2065. else
  2066. lightattackfour()
  2067. end
  2068. end
  2069. coroutine.resume(coroutine.create(function()
  2070. swait(8)
  2071. if attack==false then
  2072. combo=0
  2073. equipanim()
  2074. end
  2075. end))
  2076. end
  2077.  
  2078. function ob1u(mouse)
  2079. hold = false
  2080. end
  2081.  
  2082. buttonhold = false
  2083.  
  2084. eul=0
  2085. holdq=false
  2086. holdz=false
  2087. function key(key)
  2088. if key=="q" then
  2089. holdq=true
  2090. end
  2091. if key=="z" then
  2092. holdz=true
  2093. end
  2094. if attack==true then return end
  2095. if Mode=="Planted" and holdq==true then
  2096. if key=="z" then
  2097. LightningBlasts()
  2098. end
  2099. if key=="x" then
  2100. PileDrive()
  2101. end
  2102. if key=="c" then
  2103. LaserBarrage()
  2104. end
  2105. if key=="v" then
  2106. BLAAAAARGH()
  2107. end
  2108. elseif holdq==false then
  2109. if key=="j" then
  2110. if Weapon=="None" then
  2111. SummonSword()
  2112. else
  2113. UnsummonSword()
  2114. end
  2115. end
  2116. end
  2117. --[[if key=="j" then
  2118. heavyattackfour()
  2119. end]]
  2120. if key=="f" then
  2121. if Mode=="Obelisk" then
  2122. Plant()
  2123. elseif Mode=="Planted" then
  2124. GetArk()
  2125. end
  2126. end
  2127. --[[if key=="g" then
  2128. if Mode=="Planted" then
  2129. ObeliskHop()
  2130. end
  2131. end]]
  2132. if key=="h" then
  2133. if Mode=="Planted" then
  2134. ObeliskSmash()
  2135. end
  2136. end
  2137. equipanim()
  2138. if key=="kderp" then
  2139. so("http://www.roblox.com/asset/?id=130818264",Torso,1,1)
  2140. ArkActivate()
  2141. wld1.Part1=RootPart
  2142. wld1.C0=euler(-0.05,0,0)*cf(0,0,-1.3)
  2143. wld1.C1=euler(0,0,0)
  2144. wld2.C0=euler(0,0,0)*cf(0,0.5,0)
  2145. Neck.C0=necko*euler(0.4,0,0)
  2146. RootJoint.C0=RootCF*cf(0,0,-0.3)*euler(-0.05,0,0)
  2147. RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.4)
  2148. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  2149. LW.C0=cf(-1.5,0.5,0)*euler(-0.1,0,0)
  2150. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  2151. RH.C0=RHC0*cf(0,0,0)*euler(-0.1,0,0.5)
  2152. RH.C1=RHC1
  2153. LH.C0=LHC0*cf(0,0,0)*euler(0,0,0.2)
  2154. LH.C1=LHC1
  2155. for i=1,100 do
  2156. swait()
  2157. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(0,-1,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),0,0,0,0.3,0.3,0.3,0.05)
  2158. end
  2159. end
  2160. if key=="l" then
  2161. ArkUnactivate()
  2162. wld1.Part1=RightArm
  2163. equipanim()
  2164. end
  2165. end
  2166.  
  2167. function key2(key)
  2168. if key=="q" then
  2169. holdq=false
  2170. end
  2171. if key=="z" then
  2172. holdz=false
  2173. end
  2174. end
  2175.  
  2176. function s(mouse)
  2177. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2178. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2179. mouse.KeyDown:connect(key)
  2180. mouse.KeyUp:connect(key2)
  2181. unsheathed = true
  2182. player = Player
  2183. ch = Character
  2184. MMouse = mouse
  2185. RSH = ch.Torso["Right Shoulder"]
  2186. LSH = ch.Torso["Left Shoulder"]
  2187. --
  2188. RSH.Parent = nil
  2189. LSH.Parent = nil
  2190. --
  2191. RW.Part0 = ch.Torso
  2192. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2193. RW.C1 = CFrame.new(0, 0.5, 0)
  2194. RW.Part1 = ch["Right Arm"]
  2195. RW.Parent = ch.Torso
  2196. --_G.R = RW
  2197. --
  2198. LW.Part0 = ch.Torso
  2199. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2200. LW.C1 = CFrame.new(0, 0.5, 0)
  2201. LW.Part1 = ch["Left Arm"]
  2202. LW.Parent = ch.Torso
  2203. --_G.L = LW
  2204. --
  2205. if Mode=="Obelisk" then
  2206. wld1.Part1=RightArm
  2207. end
  2208. equipanim()
  2209. end
  2210.  
  2211. function ds(mouse)
  2212. if Mode=="Obelisk" then
  2213. wld1.Part1=Torso
  2214. end
  2215. hideanim()
  2216. swait(0)
  2217. RW.Parent = nil
  2218. LW.Parent = nil
  2219. RSH.Parent = player.Character.Torso
  2220. LSH.Parent = player.Character.Torso
  2221. end
  2222.  
  2223. Bin.Selected:connect(s)
  2224. Bin.Deselected:connect(ds)
  2225. --[[
  2226. Copyrighted (C) Fenrier 2014
  2227. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement