memberhero

Untitled

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