Advertisement
Webor7

OMEGA WEAPON

Feb 9th, 2017
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. Made by Fenrier.
  3. ]]
  4. Player = game:GetService("Webor8").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="Neon"
  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..(130781950)},
  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=modelzorz
  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=modelzorz
  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=modelzorz
  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=modelzorz
  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=modelzorz
  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=modelzorz
  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. for i=0,1,0.1 do
  1186. swait()
  1187. Neck.C0=necko*euler(-0.4*i,0,-0.2*i)
  1188. RootJoint.C0=RootCF*cf(0,0,-1.5*i)*euler(0.8*i,0,0.5*i)
  1189. RW.C0=cf(1.5,0.5,0)*euler(1.4*i,0,1.57-1.07*i)
  1190. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1191. LW.C0=cf(-1.5,0.5,0)*euler(-0.2*i,0,-1.57+1.17*i)
  1192. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1193. RH.C0=RHC0*cf(0,0,0)*euler(0,-0.5*i,-0.5*i)
  1194. LH.C0=LHC0*cf(-0.5*i,1*i,0)*euler(0.5*i,0,-0.5*i)
  1195. end
  1196. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,0,"Knockdown",hitbox,.4) end)
  1197. for i=1,2 do
  1198. 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)
  1199. CF=RootPart.CFrame*cf(math.random(-15,15),-3.5,-12-math.random(0,15))
  1200. MagicBlock(BrickColor.new("Bright red"),CF,0.1,3000,0.1,0.05,0.05,0.05,0.01)
  1201. local efprt=part(1,workspace,0,0.5,BrickColor.new("Black"),"Effect",vt(1,1,1))
  1202. efprt.CFrame=CF
  1203. efprt.Anchored=true
  1204. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(20,1,20))
  1205. local efprt2=part(1,workspace,0,0.5,BrickColor.new("White"),"Effect",vt(1,1,1))
  1206. efprt2.CFrame=CF
  1207. efprt2.Anchored=true
  1208. local efmsh2=mesh("CylinderMesh",efprt2,"","",vt(0,0,0),vt(0,1,0))
  1209. coroutine.resume(coroutine.create(function(Part1,Part2,Mesh2)
  1210. --[[so("http://www.roblox.com/asset/?id=2233908",Part1,1,1.1)
  1211. so("http://www.roblox.com/asset/?id=153092334",Part1,0.7,0.9)]]
  1212. so("TeslaShot",Part1,1,1)
  1213. teh=math.random()
  1214. WaveEffect2(BrickColor.new("Bright red"),CFrame.new(Part1.Position),5,1.5,5,0.7,0.7,0.7,0.02)
  1215. MagicCircle(BrickColor.new("White"),CFrame.new(Part1.Position),20,20,20,1.6,1.6,1.6,0.03)
  1216. --[[Lightning(prt41.Position,prt41.Position+vt(math.random(-5,5),800,math.random(-5,5)),20,1,"White",0.1,0.1,0.2)
  1217. for i=1,5 do
  1218. 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)
  1219. end]]
  1220. Part1.Transparency=1
  1221. Part2.Transparency=1
  1222. hitbox.Parent=workspace
  1223. hitbox.Size=vt(17,17,17)
  1224. hitbox.CFrame=Part1.CFrame
  1225. coroutine.resume(coroutine.create(function(Part,tehCF)
  1226. for i=0,1,0.1 do
  1227. swait()
  1228. Part.CFrame=tehCF*cf(0,2,0)
  1229. end
  1230. Part.Parent=nil
  1231. end),hitbox,Part1.CFrame)
  1232. swait(20)
  1233. Part1.Parent=nil
  1234. Part2.Parent=nil
  1235. end),efprt,efprt2,efmsh2)
  1236. so("Appear",efprt,1,1.5)
  1237. game:GetService("Debris"):AddItem(efprt,5)
  1238. end
  1239. swait(30)
  1240. Humanoid.WalkSpeed=16
  1241. for i=0,1,0.05 do
  1242. swait()
  1243. Neck.C0=necko*euler(-0.4+0.4*i,0,-0.2+0.2*i)
  1244. RootJoint.C0=RootCF*cf(0,0,-1.5+1.5*i)*euler(0.8-0.8*i,0,0.5-0.5*i)
  1245. RW.C0=cf(1.5,0.5,0)*euler(1.4-1.4*i,0,0.5-0.3*i)
  1246. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1247. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i,0,-0.4+0.2*i)
  1248. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1249. RH.C0=RHC0*cf(0,0,0)*euler(0,-0.5+0.5*i,-0.5+0.5*i)
  1250. 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)
  1251. end
  1252. con1:disconnect()
  1253. attack=false
  1254. end
  1255.  
  1256. function PileDrive()
  1257. attack=true
  1258. for i=0,1,0.1 do
  1259. swait()
  1260. Neck.C0=necko*euler(0,0,1*i)
  1261. RootJoint.C0=RootCF*euler(0,0,-1*i)
  1262. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.2+1.37*i)
  1263. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1264. LW.C0=cf(-1.5,0.5,0)*euler(-0.5*i,0,-0.2)
  1265. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1266. end
  1267. local efprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(1,1,1))
  1268. local efwld=weld(efprt,efprt,RightArm,cf(0,1,0))
  1269. game:GetService("Debris"):AddItem(efprt,10)
  1270. so("Explosion1",prt41,1,0.3)
  1271. so("Explosion1",efprt,1,0.5)
  1272. so("Charge2",efprt,1,1)
  1273. for i=0,30 do
  1274. swait()
  1275. Lightning(efprt.Position,prt41.Position,5,0.5,"Bright red",0.1,0.1,0.1)
  1276. 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)
  1277. end
  1278. for i=0,1,0.1 do
  1279. swait()
  1280. Neck.C0=necko*euler(0,0,1-2.57*i)
  1281. RootJoint.C0=RootCF*euler(0,0,-1+2.57*i)
  1282. RW.C0=cf(1.5,0.5,0)*euler(0,0,1.57)
  1283. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1284. LW.C0=cf(-1.5,0.5,0)*euler(-0.5,0,-0.2)
  1285. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1286. Lightning(efprt.Position,prt41.Position,5,0.5,"Bright red",0.1,0.1,0.1)
  1287. 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)
  1288. end
  1289. bodvel=it("BodyVelocity")
  1290. bodvel.Parent=RootPart
  1291. bodvel.maxForce=vt(4e+005,4e+005,4e+005)*1
  1292. bodvel.velocity=Head.CFrame.lookVector*30
  1293. bg=it("BodyGyro")
  1294. bg.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1295. bg.P=20e+003
  1296. bg.Parent=RootPart
  1297. bg.cframe=RootPart.CFrame
  1298. game:GetService("Debris"):AddItem(bodvel,1)
  1299. game:GetService("Debris"):AddItem(bg,1)
  1300. efwld.C0=cf(0,4,0)
  1301. so("PileDrive",efprt,1,0.7)
  1302. MagicCircle(BrickColor.new("White"),efprt.CFrame,0,0,0,0.7,0.7,0.7,0.01)
  1303. MagicRing(BrickColor.new("White"),efprt.CFrame*euler(-1.57,0,0),0,0,0,0.5,0.5,0.5,0.01)
  1304. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,30,40,50,"Knockdown",hitbox,1) end)
  1305. hitbox.Parent=modelzorz
  1306. hitbox.Size=vt(5,10,5)
  1307. hitbox.CFrame=RightArm.CFrame
  1308. for i=1,30 do
  1309. swait()
  1310. 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)
  1311. hitbox.CFrame=RightArm.CFrame
  1312. end
  1313. con1:disconnect()
  1314. hitbox.Parent=nil
  1315. swait(30)
  1316. attack=false
  1317. end
  1318.  
  1319. function LaserBarrage()
  1320. attack=true
  1321. for i=0,1,0.1 do
  1322. swait()
  1323. Neck.C0=necko*euler(0,0,0)
  1324. RootJoint.C0=RootCF*cf(0,0,-1*i)*euler(0,0,0)
  1325. RW.C0=cf(1.5,0.5,0)*euler(1.57*i,1.57*i,0.2-0.2*i)
  1326. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1327. 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)
  1328. LW.C1=cf(0,0.5,0)*euler(-1.4*i,0,0)
  1329. RH.C0=RHC0*cf(0,0,0)*euler(0,0.1*i,-1*i)
  1330. LH.C0=LHC0*cf(-0.5*i,1*i,0)*euler(-0.1*i,0,0)
  1331. end
  1332. --so("BeamLockon",prt41,1,1)
  1333. for i=1,10 do
  1334. local efprt=part(3,modelzorz,0,0.5,BrickColor.new("Bright red"),"Effect",vt(0.2,0.2,0.2))
  1335. efprt.Anchored=true
  1336. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  1337. 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
  1338. --spread=vt(0,0,0)
  1339. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  1340. game:GetService("Debris"):AddItem(Part,6)
  1341. local TheHit=MMouse.Hit.p
  1342. local MouseLook=cf((prt41.Position+TheHit)/2,TheHit+Spreaded)
  1343. local hit,pos = rayCast(prt41.Position,MouseLook.lookVector,1000,modelzorz)
  1344. so("Elec",prt41,0.2,1)
  1345. local tefprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1346. tefprt.CFrame=cf(pos)
  1347. MagicCircle(BrickColor.new("Really red"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04)
  1348. so("Elec",tefprt,0.3,1)
  1349. game:GetService("Debris"):AddItem(tefprt,3)
  1350. Part.CFrame=CFrame.new((prt41.Position+pos)/2,pos)*angles(1.57,0,0)
  1351. local mag=(prt41.Position-pos).magnitude
  1352. if hit~=nil then
  1353. Damagefunc(hit,10,20,1,"Normal",RootPart,0,"TeslaShot",2)
  1354. end
  1355. MagicCylinder(BrickColor.new("Bright red"),Part.CFrame,1,mag*5,1,0.5,0,0.5,0.05)
  1356. Part.Parent=nil
  1357. end),efprt,efmsh,spread)
  1358. end
  1359. swait(20)
  1360. for i=0,1,0.1 do
  1361. swait()
  1362. Neck.C0=necko*euler(0,0,0)
  1363. RootJoint.C0=RootCF*cf(0,0,-1+1*i)*euler(0,0,0)
  1364. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i,1.57-1.57*i,0.2*i)
  1365. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1366. 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)
  1367. LW.C1=cf(0,0.5,0)*euler(-1.4+1.4*i,0,0)
  1368. RH.C0=RHC0*cf(0,0,0)*euler(0,0.1-0.1*i,-1+1*i)
  1369. LH.C0=LHC0*cf(-0.5+0.5*i,1-1*i,0)*euler(-0.1+0.1*i,0,0)
  1370. end
  1371. attack=false
  1372. end
  1373.  
  1374. function BLAAAAARGH()
  1375. attack=true
  1376. for i=0,1,0.1 do
  1377. swait()
  1378. Neck.C0=necko*euler(0,0,0)
  1379. RootJoint.C0=RootCF*cf(0,0,-1*i)*euler(0,0,0)
  1380. RW.C0=cf(1.5,0.5,0)*euler(1.57*i,1.57*i,0.2-0.2*i)
  1381. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1382. 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)
  1383. LW.C1=cf(0,0.5,0)*euler(-1.4*i,0,0)
  1384. RH.C0=RHC0*cf(0,0,0)*euler(0,0.1*i,-1*i)
  1385. LH.C0=LHC0*cf(-0.5*i,1*i,0)*euler(-0.1*i,0,0)
  1386. end
  1387. for i=1,3 do
  1388. so("DoctorOctogonapus",prt41,1,1)
  1389. end
  1390. for i=1,1 do
  1391. local efprt=part(3,modelzorz,0,0.5,BrickColor.new("Bright red"),"Effect",vt(0.6,0.2,0.6))
  1392. efprt.Anchored=true
  1393. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  1394. --spread=vt((math.random(-1,0)+math.random())*5,(math.random(-1,0)+math.random())*5,(math.random(-1,0)+math.random())*5)
  1395. spread=vt(0,0,0)
  1396. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  1397. game:GetService("Debris"):AddItem(Part,6)
  1398. for i=1,70 do
  1399. swait()
  1400. local MouseLook=cf((prt41.Position+MMouse.Hit.p)/2,MMouse.Hit.p+Spreaded)
  1401. local hit,pos = rayCast(prt41.Position,MouseLook.lookVector,1000,modelzorz)
  1402. Part.CFrame=CFrame.new((prt41.Position+pos)/2,pos)*angles(1.57,0,0)
  1403. local mag=(prt41.Position-pos).magnitude
  1404. Mesh.Scale=vt(1,mag*5,1)
  1405. end
  1406. local MouseLook=cf((prt41.Position+MMouse.Hit.p)/2,MMouse.Hit.p+Spreaded)
  1407. local hit,pos = rayCast(prt41.Position,MouseLook.lookVector,1000,modelzorz)
  1408. --so("http://www.roblox.com/asset/?id=169380505",prt41,0.5,1)
  1409. local tefprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1410. tefprt.CFrame=cf(pos)
  1411. MagicCircle(BrickColor.new("Really red"),cf(pos),3,3,3,4,4,4,0.04)
  1412. --so("http://www.roblox.com/asset/?id=169380505",tefprt,0.5,1)
  1413. game:GetService("Debris"):AddItem(tefprt,3)
  1414. Part.CFrame=CFrame.new((prt41.Position+pos)/2,pos)*angles(1.57,0,0)
  1415. local mag=(prt41.Position-pos).magnitude
  1416. if hit~=nil and hit.Name~="Base" then
  1417. Damagefunc(hit,9999,9999,1000,"Knockdown",prt41,0,"",2)
  1418. hit.Anchored=false
  1419. hit:BreakJoints()
  1420. local angle=(hit.Position-(prt41.Position+Vector3.new(0,0,0))).unit
  1421. local bodvol=Instance.new("BodyVelocity")
  1422. bodvol.velocity=angle*100000000
  1423. bodvol.P=5000
  1424. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1425. bodvol.Parent=hit
  1426. game:GetService("Debris"):AddItem(bodvol,5)
  1427. end
  1428. MagicCylinder(BrickColor.new("Bright red"),Part.CFrame,20,mag*5,20,4,0,4,0.05)
  1429. Part.Parent=nil
  1430. end),efprt,efmsh,spread)
  1431. end
  1432. swait(100)
  1433. for i=0,1,0.1 do
  1434. swait()
  1435. Neck.C0=necko*euler(0,0,0)
  1436. RootJoint.C0=RootCF*cf(0,0,-1+1*i)*euler(0,0,0)
  1437. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i,1.57-1.57*i,0.2*i)
  1438. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1439. 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)
  1440. LW.C1=cf(0,0.5,0)*euler(-1.4+1.4*i,0,0)
  1441. RH.C0=RHC0*cf(0,0,0)*euler(0,0.1-0.1*i,-1+1*i)
  1442. LH.C0=LHC0*cf(-0.5+0.5*i,1-1*i,0)*euler(-0.1+0.1*i,0,0)
  1443. end
  1444. attack=false
  1445. end
  1446.  
  1447. function ALLCHILD()
  1448. local all={}
  1449. for _,v in pairs(workspace:children()) do
  1450. table.insert(all,v)
  1451. end
  1452. return all
  1453. end
  1454.  
  1455. function Disappear(Mod)
  1456. for _,v in pairs(Mod:children()) do
  1457. if v.className=="Hat" then
  1458. for _,i in pairs(v:children()) do
  1459. if i.className=="Part" then
  1460. coroutine.resume(coroutine.create(function(Part)
  1461. for i=0,1,0.1 do
  1462. swait()
  1463. Part.Transparency=i
  1464. end
  1465. Part.Transparency=1
  1466. end),i)
  1467. end
  1468. end
  1469. end
  1470. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1471. coroutine.resume(coroutine.create(function(Part)
  1472. for i=0,1,0.1 do
  1473. swait()
  1474. Part.Transparency=i
  1475. end
  1476. Part.Transparency=1
  1477. end),v)
  1478. end
  1479. end
  1480. end
  1481.  
  1482. function Reappear(Mod)
  1483. for _,v in pairs(Mod:children()) do
  1484. if v.className=="Hat" then
  1485. for _,i in pairs(v:children()) do
  1486. if i.className=="Part" then
  1487. coroutine.resume(coroutine.create(function(Part)
  1488. for i=1,0,-0.1 do
  1489. swait()
  1490. Part.Transparency=i
  1491. end
  1492. Part.Transparency=0
  1493. end),i)
  1494. end
  1495. end
  1496. end
  1497. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1498. coroutine.resume(coroutine.create(function(Partt)
  1499. for i=1,0,-0.1 do
  1500. swait()
  1501. Partt.Transparency=i
  1502. end
  1503. Partt.Transparency=0
  1504. end),v)
  1505. end
  1506. end
  1507. end
  1508.  
  1509. function ArkActivate()
  1510. coroutine.resume(coroutine.create(function()
  1511. clone=prt3:Clone()
  1512. clone.Parent=modelzorz
  1513. clone.BrickColor=BrickColor.new("Bright red")
  1514. clone.Mesh.Scale=clone.Mesh.Scale+vt(0.01,0.005,0.01)
  1515. local awld3=weld(clone,clone,prt3,cf(0,0,0))
  1516. so("Activate",prt41,1,1)
  1517. coroutine.resume(coroutine.create(function(Part)
  1518. for i=1,0,-0.01 do
  1519. swait()
  1520. Part.Transparency=i
  1521. end
  1522. Part.Transparency=0
  1523. end),clone)
  1524. table.insert(Clone,clone)
  1525. for i=2,31 do
  1526. --prt22
  1527. clone=EffectParts[i]:Clone()
  1528. clone.Parent=modelzorz
  1529. clone.BrickColor=BrickColor.new("Bright red")
  1530. if clone.Name=="Part22" then
  1531. clone.Mesh.Scale=clone.Mesh.Scale+vt(0.01,0.005,0.01)
  1532. else
  1533. clone.Mesh.Scale=clone.Mesh.Scale+vt(0.01,0.01,0.01)
  1534. end
  1535. local awld3=weld(clone,clone,EffectParts[i],cf(0,0,0))
  1536. coroutine.resume(coroutine.create(function(Part)
  1537. for i=1,0,-0.01 do
  1538. swait()
  1539. Part.Transparency=i
  1540. end
  1541. Part.Transparency=0
  1542. end),clone)
  1543. table.insert(Clone,clone)
  1544. end
  1545. end))
  1546. coroutine.resume(coroutine.create(function()
  1547. numb=0
  1548. numbderp=0.785*3
  1549. for i=1,3 do
  1550. for i=1,4 do
  1551. 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)
  1552. numb=numb+1.57
  1553. --local wld41=weld(prt41,prt41,prt43,cf(0,2.4,0)*euler(0,0,numb))
  1554. end
  1555. swait(10)
  1556. numbderp=numbderp-0.785
  1557. end
  1558. 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)
  1559. end))
  1560. coroutine.resume(coroutine.create(function(Part)
  1561. while Mode=="Planted" do
  1562. swait(math.random(5,10))
  1563. ElecEffect(Part.Position,4,4,4)
  1564. end
  1565. end),prt41)
  1566. end
  1567.  
  1568. function ArkUnactivate()
  1569. for i=1,#Clone do
  1570. --[[print(Clone[i])
  1571. print(i)]]
  1572. Clone[i].Parent=nil
  1573. end
  1574. for i=1,#Clone do
  1575. table.remove(Clone,i)
  1576. end
  1577. end
  1578.  
  1579. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1580. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1581. end
  1582.  
  1583. --[[local LastPoint=prt4.CFrame*CFrame.new(0,prt4.Size.Y*2.5,0)
  1584. local Point=prt4.CFrame*CFrame.new(0,prt4.Size.Y*2.5,0)]]
  1585. function effect(Color,Ref,Size,LP,P1,returnn)
  1586. local effectsmsh = Instance.new("BlockMesh")
  1587. effectsmsh.Scale = Vector3.new(0.4,1,0.4)
  1588. effectsmsh.Name = "Mesh"
  1589. local effectsg = Instance.new("Part")
  1590. effectsg.formFactor = 3
  1591. effectsg.CanCollide = false
  1592. effectsg.Name = "Eff"
  1593. effectsg.Locked = true
  1594. effectsg.Anchored = true
  1595. effectsg.Size = Vector3.new(0.2,1,0.2)
  1596. effectsg.Parent = workspace
  1597. effectsmsh.Parent = effectsg
  1598. effectsg.BrickColor = BrickColor.new(Color)
  1599. effectsg.Reflectance = Ref
  1600. local point1 = P1
  1601. local mg = (LP.p - point1.p).magnitude
  1602. effectsg.Size = Vector3.new(Size,mg,Size)
  1603. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1604. if returnn then return effectsg end
  1605. coroutine.resume(coroutine.create(function()
  1606. if not returnn then
  1607. for i = 0 , 1 , 0.1 do
  1608. swait()
  1609. effectsg.Transparency = 1*i
  1610. effectsmsh.Scale = Vector3.new(Size-Size*i,1,Size-Size*i)
  1611. end
  1612. swait()
  1613. effectsg.Parent = nil
  1614. end
  1615. end))
  1616. end
  1617.  
  1618. function ElecEffect(cff,x,y,z)
  1619. local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
  1620. prt.Anchored=true
  1621. game:GetService("Debris"):AddItem(prt,2)
  1622. xval=math.random()
  1623. yval=math.random()
  1624. zval=math.random()
  1625. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1626. coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal)
  1627. Part.CFrame=cf(Frame)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1628. for i=0,1,0.05 do
  1629. swait()
  1630. xvaal=xvaal-0.1
  1631. yvaal=yvaal-0.1
  1632. zvaal=zvaal-0.1
  1633. Mesh.Scale=vt(xvaal,yvaal,zvaal)
  1634. Part.Transparency=i
  1635. end
  1636. Part.Parent=nil
  1637. end),prt,msh,cff,xval,yval,zval)
  1638. end
  1639.  
  1640. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1641. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1642. prt.Anchored=true
  1643. prt.CFrame=cframe
  1644. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1645. game:GetService("Debris"):AddItem(prt,5)
  1646. coroutine.resume(coroutine.create(function(Part,Mesh)
  1647. for i=0,1,delay do
  1648. swait()
  1649. Part.CFrame=Part.CFrame
  1650. Part.Transparency=i
  1651. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1652. end
  1653. Part.Parent=nil
  1654. end),prt,msh)
  1655. end
  1656.  
  1657. function MagicBlock2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,decrease)
  1658. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1659. prt.Anchored=true
  1660. prt.CFrame=cframe
  1661. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1662. game:GetService("Debris"):AddItem(prt,2)
  1663. CF=prt.CFrame
  1664. num=math.random(5,20)
  1665. coroutine.resume(coroutine.create(function(Part,Mesh,CF2,Num)
  1666. for i=0,1.05,0.05 do
  1667. swait()
  1668. Part.CFrame=CF2*cf(0,i*Num,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1669. Part.Transparency=i
  1670. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1671. Num=Num-decrease
  1672. end
  1673. Part.Parent=nil
  1674. end),prt,msh,CF,num)
  1675. end
  1676.  
  1677. function MagicBlock3(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1678. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1679. prt.Anchored=true
  1680. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1681. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1682. game:GetService("Debris"):AddItem(prt,2)
  1683. coroutine.resume(coroutine.create(function(Part,Mesh)
  1684. for i=0,1,0.1 do
  1685. swait()
  1686. TehCF=cframe
  1687. Part.CFrame=TehCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1688. Part.Transparency=i
  1689. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1690. end
  1691. Part.Parent=nil
  1692. end),prt,msh)
  1693. end
  1694.  
  1695. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1696. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1697. prt.Anchored=true
  1698. prt.CFrame=cframe
  1699. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1700. game:GetService("Debris"):AddItem(prt,2)
  1701. coroutine.resume(coroutine.create(function(Part,Mesh)
  1702. for i=0,1,delay do
  1703. swait()
  1704. Part.CFrame=Part.CFrame
  1705. Part.Transparency=i
  1706. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1707. end
  1708. Part.Parent=nil
  1709. end),prt,msh)
  1710. end
  1711.  
  1712. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1713. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1714. prt.Anchored=true
  1715. prt.CFrame=cframe
  1716. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1717. game:GetService("Debris"):AddItem(prt,2)
  1718. coroutine.resume(coroutine.create(function(Part,Mesh)
  1719. for i=0,1,delay do
  1720. swait()
  1721. Part.CFrame=Part.CFrame
  1722. Part.Transparency=i
  1723. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1724. end
  1725. Part.Parent=nil
  1726. end),prt,msh)
  1727. end
  1728.  
  1729. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1730. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1731. prt.Anchored=true
  1732. prt.CFrame=cframe
  1733. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1734. game:GetService("Debris"):AddItem(prt,2)
  1735. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  1736. for i=0,1,delay do
  1737. swait()
  1738. Part.CFrame=Part.CFrame*cf(0,0,-num)
  1739. Part.Transparency=i
  1740. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1741. end
  1742. Part.Parent=nil
  1743. end),prt,msh,(math.random(0,1)+math.random())/5)
  1744. end
  1745.  
  1746. function MagicFire(brickcolor,cframe,x1,y1,z1)
  1747. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1748. prt.Anchored=true
  1749. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1750. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1751. game:GetService("Debris"):AddItem(prt,2)
  1752. coroutine.resume(coroutine.create(function(Part,Mesh)
  1753. for i=0,1,0.1 do
  1754. swait()
  1755. Part.CFrame=cf(Part.Position+vt(0,0.5,0))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1756. Part.Transparency=i
  1757. Mesh.Scale=Mesh.Scale+vt(0.1,0.1,0.1)
  1758. end
  1759. Part.Parent=nil
  1760. end),prt,msh)
  1761. end
  1762.  
  1763. function BlastEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1764. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1765. prt.Anchored=true
  1766. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1767. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=24388358",vt(0,0,0),vt(x1,y1,z1))
  1768. game:GetService("Debris"):AddItem(prt,2)
  1769. coroutine.resume(coroutine.create(function(Part,Mesh)
  1770. for i=0,1,0.05 do
  1771. swait()
  1772. Part.CFrame=Part.CFrame
  1773. Part.Transparency=i
  1774. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1775. end
  1776. Part.Parent=nil
  1777. end),prt,msh)
  1778. end
  1779.  
  1780. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1781. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1782. prt.Anchored=true
  1783. prt.CFrame=cframe
  1784. msh=mesh("SpecialMesh",prt,"FileMesh","1323306",vt(0,0,0),vt(x1,y1,z1))
  1785. game:GetService("Debris"):AddItem(prt,2)
  1786. coroutine.resume(coroutine.create(function(Part,Mesh)
  1787. for i=0,1,0.1 do
  1788. swait()
  1789. Part.CFrame=Part.CFrame*cf(0,y3,0)
  1790. Part.Transparency=i
  1791. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1792. end
  1793. Part.Parent=nil
  1794. end),prt,msh)
  1795. end
  1796.  
  1797. function WaveEffect2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1798. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1799. prt.Anchored=true
  1800. prt.CFrame=cframe
  1801. msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  1802. game:GetService("Debris"):AddItem(prt,2)
  1803. coroutine.resume(coroutine.create(function(Part,Mesh)
  1804. for i=0,1,delay do
  1805. swait()
  1806. Part.CFrame=Part.CFrame
  1807. Part.Transparency=i
  1808. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1809. end
  1810. Part.Parent=nil
  1811. end),prt,msh)
  1812. end
  1813.  
  1814. function MagicShard(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1815. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1816. prt.Anchored=true
  1817. prt.CFrame=cframe
  1818. msh=mesh("SpecialMesh",prt,"FileMesh","9756362",vt(0,0,0),vt(x1,y1,z1))
  1819. game:GetService("Debris"):AddItem(prt,5)
  1820. coroutine.resume(coroutine.create(function(Part,Mesh)
  1821. for i=0,1,delay do
  1822. swait()
  1823. Part.CFrame=Part.CFrame
  1824. Part.Transparency=i
  1825. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1826. end
  1827. Part.Parent=nil
  1828. end),prt,msh)
  1829. end
  1830.  
  1831. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  1832. --[[p0=pos1
  1833. p1=pos2
  1834. tym=times
  1835. ofs=offset
  1836. col=color
  1837. th=size
  1838. tra=transparency
  1839. last=lastingtime]]
  1840. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  1841. for i=1,tym do
  1842. 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)
  1843. 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)])
  1844. light1=Instance.new("PointLight")
  1845. light1.Brightness=.8
  1846. light1.Color=Color3.new(.2,255,.2)
  1847. light1.Range=8
  1848. light1.Parent=li
  1849. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  1850. if tym == i then
  1851. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  1852. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  1853. else
  1854. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  1855. end
  1856. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  1857. end
  1858. end
  1859.  
  1860. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,HitSound,HitPitch)
  1861. if hit.Parent==nil then
  1862. return
  1863. end
  1864. CPlayer=Bin
  1865. h=hit.Parent:FindFirstChild("Humanoid")
  1866. for _,v in pairs(hit.Parent:children()) do
  1867. if v:IsA("Humanoid") then
  1868. h=v
  1869. end
  1870. end
  1871. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1872. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1873. if h.MaxHealth>=math.huge then
  1874. hit:BreakJoints()
  1875. end
  1876. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1877. return
  1878. end]]
  1879. -- hs(hit,1.2)
  1880. c=Instance.new("ObjectValue")
  1881. c.Name="creator"
  1882. c.Value=game:service("Players").LocalPlayer
  1883. c.Parent=h
  1884. game:GetService("Debris"):AddItem(c,.5)
  1885. if HitSound~=nil and HitPitch~=nil then
  1886. so(HitSound,hit,1,HitPitch)
  1887. end
  1888. Damage=math.random(minim,maxim)
  1889. -- h:TakeDamage(Damage)
  1890. blocked=false
  1891. block=hit.Parent:findFirstChild("Block")
  1892. if block~=nil then
  1893. if block.className=="IntValue" then
  1894. if block.Value>0 then
  1895. blocked=true
  1896. block.Value=block.Value-1
  1897. print(block.Value)
  1898. end
  1899. end
  1900. end
  1901. if blocked==false then
  1902. -- h:TakeDamage(Damage)
  1903. h.Health=h.Health-Damage
  1904. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  1905. else
  1906. h.Health=h.Health-(Damage/2)
  1907. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1908. end
  1909. if Type=="Knockdown" then
  1910. hum=hit.Parent.Humanoid
  1911. hum.PlatformStand=true
  1912. coroutine.resume(coroutine.create(function(HHumanoid)
  1913. swait(1)
  1914. HHumanoid.PlatformStand=false
  1915. end),hum)
  1916. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1917. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1918. local bodvol=Instance.new("BodyVelocity")
  1919. bodvol.velocity=angle*knockback
  1920. bodvol.P=5000
  1921. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1922. bodvol.Parent=hit
  1923. rl=Instance.new("BodyAngularVelocity")
  1924. rl.P=3000
  1925. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1926. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1927. rl.Parent=hit
  1928. game:GetService("Debris"):AddItem(bodvol,.5)
  1929. game:GetService("Debris"):AddItem(rl,.5)
  1930. elseif Type=="Normal" then
  1931. vp=Instance.new("BodyVelocity")
  1932. vp.P=500
  1933. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1934. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1935. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1936. if knockback>0 then
  1937. vp.Parent=hit.Parent.Torso
  1938. end
  1939. game:GetService("Debris"):AddItem(vp,.5)
  1940. elseif Type=="Up" then
  1941. local bodyVelocity=Instance.new("BodyVelocity")
  1942. bodyVelocity.velocity=vt(0,20,0)
  1943. bodyVelocity.P=5000
  1944. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1945. bodyVelocity.Parent=hit
  1946. game:GetService("Debris"):AddItem(bodyVelocity,.5)
  1947. elseif Type=="Snare" then
  1948. bp=Instance.new("BodyPosition")
  1949. bp.P=2000
  1950. bp.D=100
  1951. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1952. bp.position=hit.Parent.Torso.Position
  1953. bp.Parent=hit.Parent.Torso
  1954. game:GetService("Debris"):AddItem(bp,1)
  1955. elseif Type=="Freeze" then
  1956. BodPos=Instance.new("BodyPosition")
  1957. BodPos.P=50000
  1958. BodPos.D=1000
  1959. BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1960. BodPos.position=hit.Parent.Torso.Position
  1961. BodPos.Parent=hit.Parent.Torso
  1962. BodGy = it("BodyGyro")
  1963. BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1964. BodGy.P = 20e+003
  1965. BodGy.Parent=hit.Parent.Torso
  1966. BodGy.cframe = hit.Parent.Torso.CFrame
  1967. hit.Parent.Torso.Anchored=true
  1968. coroutine.resume(coroutine.create(function(Part)
  1969. swait(1.5)
  1970. Part.Anchored=false
  1971. end),hit.Parent.Torso)
  1972. game:GetService("Debris"):AddItem(BodPos,3)
  1973. game:GetService("Debris"):AddItem(BodGy,3)
  1974. end
  1975. debounce=Instance.new("BoolValue")
  1976. debounce.Name="DebounceHit"
  1977. debounce.Parent=hit.Parent
  1978. debounce.Value=true
  1979. game:GetService("Debris"):AddItem(debounce,Delay)
  1980. c=Instance.new("ObjectValue")
  1981. c.Name="creator"
  1982. c.Value=Player
  1983. c.Parent=h
  1984. game:GetService("Debris"):AddItem(c,.5)
  1985. CRIT=false
  1986. hitDeb=true
  1987. AttackPos=6
  1988. end
  1989. end
  1990.  
  1991. showDamage=function(Char,Dealt,du,Color)
  1992. m=Instance.new("Model")
  1993. m.Name=tostring(Dealt)
  1994. h=Instance.new("Humanoid")
  1995. h.Health=0
  1996. h.MaxHealth=0
  1997. h.Parent=m
  1998. c=Instance.new("Part")
  1999. c.Transparency=0
  2000. c.BrickColor=Color
  2001. c.Name="Head"
  2002. c.TopSurface=0
  2003. c.BottomSurface=0
  2004. c.formFactor="Plate"
  2005. c.Size=Vector3.new(1,.4,1)
  2006. ms=Instance.new("CylinderMesh")
  2007. ms.Scale=Vector3.new(.8,.8,.8)
  2008. if CRIT==true then
  2009. ms.Scale=Vector3.new(1,1.25,1)
  2010. end
  2011. ms.Parent=c
  2012. c.Reflectance=0
  2013. Instance.new("BodyGyro").Parent=c
  2014. c.Parent=m
  2015. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2016. f=Instance.new("BodyPosition")
  2017. f.P=2000
  2018. f.D=100
  2019. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2020. f.position=c.Position+Vector3.new(0,3,0)
  2021. f.Parent=c
  2022. game:GetService("Debris"):AddItem(m,.5+du)
  2023. c.CanCollide=false
  2024. m.Parent=workspace
  2025. c.CanCollide=false
  2026. end
  2027.  
  2028. combo=0
  2029. num=0
  2030. function ob1d(mouse)
  2031. if attack==true then return end
  2032. hold=true
  2033. if combo==0 then
  2034. combo=1
  2035. if holdz==true then
  2036. heavyattackone()
  2037. else
  2038. lightattackone()
  2039. end
  2040. elseif combo==1 then
  2041. combo=2
  2042. if holdz==true then
  2043. lightattackfour()
  2044. else
  2045. lightattacktwo()
  2046. end
  2047. elseif combo==2 then
  2048. combo=3
  2049. if holdz==true then
  2050. heavyattackthree()
  2051. else
  2052. lightattackthree()
  2053. end
  2054. elseif combo==3 then
  2055. combo=4
  2056. if holdz==true then
  2057. heavyattackfour()
  2058. else
  2059. lightattackfour()
  2060. end
  2061. end
  2062. coroutine.resume(coroutine.create(function()
  2063. swait(8)
  2064. if attack==false then
  2065. combo=0
  2066. equipanim()
  2067. end
  2068. end))
  2069. end
  2070.  
  2071. function ob1u(mouse)
  2072. hold = false
  2073. end
  2074.  
  2075. buttonhold = false
  2076.  
  2077. eul=0
  2078. holdq=false
  2079. holdz=false
  2080. function key(key)
  2081. if key=="q" then
  2082. holdq=true
  2083. end
  2084. if key=="z" then
  2085. holdz=true
  2086. end
  2087. if attack==true then return end
  2088. if Mode=="Planted" and holdq==true then
  2089. if key=="z" then
  2090. LightningBlasts()
  2091. end
  2092. if key=="x" then
  2093. PileDrive()
  2094. end
  2095. if key=="c" then
  2096. LaserBarrage()
  2097. end
  2098. if key=="v" then
  2099. BLAAAAARGH()
  2100. end
  2101. elseif holdq==false then
  2102. if key=="j" then
  2103. if Weapon=="None" then
  2104. SummonSword()
  2105. else
  2106. UnsummonSword()
  2107. end
  2108. end
  2109. end
  2110. --[[if key=="j" then
  2111. heavyattackfour()
  2112. end]]
  2113. if key=="f" then
  2114. if Mode=="Obelisk" then
  2115. Plant()
  2116. elseif Mode=="Planted" then
  2117. GetArk()
  2118. end
  2119. end
  2120. if key=="g" then
  2121. if Mode=="Planted" then
  2122. ObeliskHop()
  2123. end
  2124. end
  2125. if key=="h" then
  2126. if Mode=="Planted" then
  2127. ObeliskSmash()
  2128. end
  2129. end
  2130. equipanim()
  2131. --[[if key=="c" then
  2132. --so("http://www.roblox.com/asset/?id=130818264",Torso,1,1)
  2133. ArkActivate()
  2134. wld1.Part1=RootPart
  2135. wld1.C0=euler(-0.05,0,0)*cf(0,0,-1.3)
  2136. wld1.C1=euler(0,0,0)
  2137. wld2.C0=euler(0,0,0)*cf(0,0.5,0)
  2138. Neck.C0=necko*euler(0.4,0,0)
  2139. RootJoint.C0=RootCF*cf(0,0,-0.3)*euler(-0.05,0,0)
  2140. RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.4)
  2141. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  2142. LW.C0=cf(-1.5,0.5,0)*euler(-0.1,0,0)
  2143. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  2144. RH.C0=RHC0*cf(0,0,0)*euler(-0.1,0,0.5)
  2145. RH.C1=RHC1
  2146. LH.C0=LHC0*cf(0,0,0)*euler(0,0,0.2)
  2147. LH.C1=LHC1
  2148. for i=1,100 do
  2149. swait()
  2150. 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)
  2151. end
  2152. end
  2153. if key=="v" then
  2154. ArkUnactivate()
  2155. wld1.Part1=RightArm
  2156. equipanim()
  2157. end]]
  2158. end
  2159.  
  2160. function key2(key)
  2161. if key=="q" then
  2162. holdq=false
  2163. end
  2164. if key=="z" then
  2165. holdz=false
  2166. end
  2167. end
  2168.  
  2169. function s(mouse)
  2170. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2171. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2172. mouse.KeyDown:connect(key)
  2173. mouse.KeyUp:connect(key2)
  2174. unsheathed = true
  2175. player = Player
  2176. ch = Character
  2177. MMouse = mouse
  2178. RSH = ch.Torso["Right Shoulder"]
  2179. LSH = ch.Torso["Left Shoulder"]
  2180. --
  2181. RSH.Parent = nil
  2182. LSH.Parent = nil
  2183. --
  2184. RW.Part0 = ch.Torso
  2185. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2186. RW.C1 = CFrame.new(0, 0.5, 0)
  2187. RW.Part1 = ch["Right Arm"]
  2188. RW.Parent = ch.Torso
  2189. --_G.R = RW
  2190. --
  2191. LW.Part0 = ch.Torso
  2192. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2193. LW.C1 = CFrame.new(0, 0.5, 0)
  2194. LW.Part1 = ch["Left Arm"]
  2195. LW.Parent = ch.Torso
  2196. --_G.L = LW
  2197. --
  2198. if Mode=="Obelisk" then
  2199. wld1.Part1=RightArm
  2200. end
  2201. equipanim()
  2202. end
  2203.  
  2204. function ds(mouse)
  2205. if Mode=="Obelisk" then
  2206. wld1.Part1=Torso
  2207. end
  2208. hideanim()
  2209. swait(0)
  2210. RW.Parent = nil
  2211. LW.Parent = nil
  2212. RSH.Parent = player.Character.Torso
  2213. LSH.Parent = player.Character.Torso
  2214. end
  2215.  
  2216. Bin.Selected:connect(s)
  2217. Bin.Deselected:connect(ds)
  2218. --[[
  2219. Copyrighted (C) Fenrier 2014
  2220. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement