Niccotin

SPIDER

Mar 21st, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.29 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Char = Player.Character
  3. Head = Char.Head
  4. Torso = Char.Torso
  5. h = Char.Humanoid
  6.  
  7. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  8. local gairo = Instance.new("BodyGyro")
  9. gairo.Parent = nil
  10.  
  11. if Char:findFirstChild("Weapon",true) ~= nil then
  12. Char:findFirstChild("Weapon",true).Parent = nil
  13. end
  14.  
  15. bets = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," "}
  16. col = {"Really black","Really black","Really red"}
  17. Anims = {}
  18. act = {key = {}}
  19. for i=1,#bets do table.insert(act.key,bets) end
  20. act.mousedown = false
  21. act.keydown = false
  22. act.Walking = false
  23. act.Jumping = false
  24. act.Anim = ""
  25. hitted=false
  26. roflcopter=false
  27. bodypos=Instance.new("BodyPosition")
  28. holdshoot=false
  29. Prop = {}
  30.  
  31. difficulty=0.05
  32. Prop.LegLength = 5
  33. Prop.LegWide = 1
  34. Prop.BallSize = 0.9
  35.  
  36.  
  37. coroutine.resume(coroutine.create(function()
  38. for i=0,50 do
  39. wait()
  40. if h~= nil then
  41. h.WalkSpeed=18
  42. walksped=h.WalkSpeed
  43. h.MaxHealth=math.huge
  44. h.Health=math.huge
  45. end
  46. end
  47. end))
  48.  
  49. Spider = {w = {}}
  50. attack = false
  51. attackdebounce = false
  52.  
  53. it = Instance.new
  54. bc = BrickColor.new
  55. v3 = Vector3.new
  56. cf = CFrame.new
  57. ca = CFrame.Angles
  58. pi = math.pi
  59. rd = math.rad
  60. br = BrickColor.new
  61.  
  62. function r(pa,ob)
  63. pcall(function() pa[ob]:Remove() end)
  64. end
  65.  
  66. function p(pa,sh,x,y,z,c,a,tr,re,bc)
  67. local fp = it("Part",pa)
  68. fp.formFactor = "Custom"
  69. fp.Shape = sh
  70. fp.Size = v3(x,y,z)
  71. fp.CanCollide = c
  72. fp.Anchored = false
  73. fp.BrickColor = br(bc)
  74. fp.Transparency = tr
  75. fp.Reflectance = re
  76. fp.BottomSurface = 0
  77. fp.TopSurface = 0
  78. fp.CFrame = Torso.CFrame + Vector3.new(0,50,0)
  79. fp.Velocity = Vector3.new(0,10,0)
  80. fp:BreakJoints()
  81. return fp
  82. end
  83.  
  84. function weld(pa,p0,p1,x,y,z,a,b,c)
  85. local fw = it("Weld",pa)
  86. fw.Part0 = p0 fw.Part1 = p1
  87. fw.C0 = cf(x,y,z) *ca(a,b,c)
  88. return fw
  89. end
  90.  
  91. function spm(ty,pa,ss)
  92. local sp = it("SpecialMesh",pa)
  93. sp.MeshType = ty
  94. sp.Scale = Vector3.new(ss,ss,ss)
  95. end
  96.  
  97.  
  98. pcall(function() Torso.Spider:Remove() end)
  99. wait(0.1)
  100. pack = it("Model",Torso)
  101. pack.Name = "Spider"
  102.  
  103. Spider.Back = p(pack,"Block",1.2,1.7,0.5,false,false,0,0,col[1])
  104. --Right Arm
  105. Spider.RAb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[2]) spm("Sphere",Spider.RAb1,Prop.BallSize)
  106. Spider.w.RAb1 = weld(Spider.RAb1,Spider.Back,Spider.RAb1,0.5,0.6,0.35,0,0,0) Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  107. Spider.RAa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  108. Spider.w.RAa1 = weld(Spider.RAa1,Spider.RAb1,Spider.RAa1,0,Prop.LegLength/2,0,0,0,0)
  109. Spider.RAb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[2]) spm("Sphere",Spider.RAb2,Prop.BallSize)
  110. Spider.w.RAb2 = weld(Spider.RAb2,Spider.RAa1,Spider.RAb2,0,(Prop.LegLength/2),0,0,0,0) Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  111. Spider.RAa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  112. Spider.w.RAa2 = weld(Spider.RAa2,Spider.RAb2,Spider.RAa2,0,Prop.LegLength/2,0,0,0,0)
  113. --Left Arm
  114. Spider.LAb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[2]) spm("Sphere",Spider.LAb1,Prop.BallSize)
  115. Spider.w.LAb1 = weld(Spider.LAb1,Spider.Back,Spider.LAb1,-0.5,0.6,0.35,0,0,0) Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  116. Spider.LAa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  117. Spider.w.LAa1 = weld(Spider.LAa1,Spider.LAb1,Spider.LAa1,0,Prop.LegLength/2,0,0,0,0)
  118. Spider.LAb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[2]) spm("Sphere",Spider.LAb2,Prop.BallSize)
  119. Spider.w.LAb2 = weld(Spider.LAb2,Spider.LAa1,Spider.LAb2,0,(Prop.LegLength/2),0,0,0,0) Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  120. Spider.LAa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  121. Spider.w.LAa2 = weld(Spider.LAa2,Spider.LAb2,Spider.LAa2,0,Prop.LegLength/2,0,0,0,0)
  122. --Upper Right
  123. Spider.URb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.URb1,Prop.BallSize)
  124. Spider.w.URb1 = weld(Spider.URb1,Spider.Back,Spider.URb1,0.5,-0.6,0.35,0,0,0) Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40),0)
  125. Spider.URa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  126. Spider.w.URa1 = weld(Spider.URa1,Spider.URb1,Spider.URa1,0,Prop.LegLength/2,0,0,0,0)
  127. Spider.URb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.URb2,Prop.BallSize)
  128. Spider.w.URb2 = weld(Spider.URb2,Spider.URa1,Spider.URb2,0,(Prop.LegLength/2),0,0,0,0) Spider.w.URb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0)
  129. Spider.URa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  130. Spider.w.URa2 = weld(Spider.URa2,Spider.URb2,Spider.URa2,0,Prop.LegLength/2,0,0,0,0)
  131. --Upper Left
  132. Spider.ULb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.ULb1,Prop.BallSize)
  133. Spider.w.ULb1 = weld(Spider.ULb1,Spider.Back,Spider.ULb1,-0.5,-0.6,0.35,0,0,0) Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0)
  134. Spider.ULa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  135. Spider.w.ULa1 = weld(Spider.ULa1,Spider.ULb1,Spider.ULa1,0,Prop.LegLength/2,0,0,0,0)
  136. Spider.ULb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.ULb2,Prop.BallSize)
  137. Spider.w.ULb2 = weld(Spider.ULb2,Spider.ULa1,Spider.ULb2,0,(Prop.LegLength/2),0,0,0,0) Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0)
  138. Spider.ULa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  139. Spider.w.ULa2 = weld(Spider.ULa2,Spider.ULb2,Spider.ULa2,0,Prop.LegLength/2,0,0,0,0)
  140. --Lower Right
  141. Spider.LRb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.LRb1,Prop.BallSize)
  142. Spider.w.LRb1 = weld(Spider.LRb1,Spider.Back,Spider.LRb1,0.5,-0.6,0.35,0,0,0) Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40),0)
  143. Spider.LRa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  144. Spider.w.LRa1 = weld(Spider.LRa1,Spider.LRb1,Spider.LRa1,0,Prop.LegLength/2,0,0,0,0)
  145. Spider.LRb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.LRb2,Prop.BallSize)
  146. Spider.w.LRb2 = weld(Spider.LRb2,Spider.LRa1,Spider.LRb2,0,(Prop.LegLength/2),0,0,0,0) Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100),math.rad(0),0)
  147. Spider.LRa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  148. Spider.w.LRa2 = weld(Spider.LRa2,Spider.LRb2,Spider.LRa2,0,Prop.LegLength/2,0,0,0,0)
  149. --Lower Left
  150. Spider.LLb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.LLb1,Prop.BallSize)
  151. Spider.w.LLb1 = weld(Spider.LLb1,Spider.Back,Spider.LLb1,-0.5,-0.6,0.35,0,0,0) Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80),math.rad(40),0)
  152. Spider.LLa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  153. Spider.w.LLa1 = weld(Spider.LLa1,Spider.LLb1,Spider.LLa1,0,Prop.LegLength/2,0,0,0,0)
  154. Spider.LLb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.LLb2,Prop.BallSize)
  155. Spider.w.LLb2 = weld(Spider.LLb2,Spider.LLa1,Spider.LLb2,0,(Prop.LegLength/2),0,0,0,0) Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100),math.rad(0),0)
  156. Spider.LLa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  157. Spider.w.LLa2 = weld(Spider.LLa2,Spider.LLb2,Spider.LLa2,0,Prop.LegLength/2,0,0,0,0)
  158.  
  159. local prt1 = Instance.new("Part")
  160. prt1.formFactor = 1
  161. prt1.Parent = pack
  162. prt1.CanCollide = false
  163. prt1.BrickColor = br(col[1])
  164. prt1.Name = "Part1"
  165. prt1.Size = Vector3.new(1,1,1)
  166. prt1.Position = Torso.Position
  167. local prt2 = Instance.new("Part")
  168. prt2.formFactor = 1
  169. prt2.Parent = pack
  170. prt2.CanCollide = false
  171. prt2.BrickColor = BrickColor.new("Really red")
  172. prt2.Name = "Part2"
  173. prt2.Reflectance=0.3
  174. prt2.Size = Vector3.new(1,2,1)
  175. prt2.Position = Torso.Position
  176. local prt3 = Instance.new("Part")
  177. prt3.formFactor = 1
  178. prt3.Parent = pack
  179. prt3.CanCollide = false
  180. prt3.BrickColor = BrickColor.new("Medium stone grey")
  181. prt3.Name = "Part3"
  182. prt3.Reflectance=0.6
  183. prt3.Size = Vector3.new(1,2,1)
  184. prt3.Position = Torso.Position
  185. local prt4 = Instance.new("Part")
  186. prt4.formFactor = 1
  187. prt4.Parent = pack
  188. prt4.CanCollide = false
  189. prt4.BrickColor = BrickColor.new("Really red")
  190. prt4.Name = "Part4"
  191. prt4.Reflectance=0.3
  192. prt4.Size = Vector3.new(1,1,1)
  193. prt4.Position = Torso.Position
  194. local prt5 = Instance.new("Part")
  195. prt5.formFactor = 1
  196. prt5.Parent = pack
  197. prt5.CanCollide = false
  198. prt5.BrickColor = br(col[1])
  199. prt5.Name = "Part5"
  200. prt5.Size = Vector3.new(1,1,1)
  201. prt5.Position = Torso.Position
  202. local prt6 = Instance.new("Part")
  203. prt6.formFactor = 1
  204. prt6.Parent = pack
  205. prt6.CanCollide = false
  206. prt6.BrickColor = br(col[1])
  207. prt6.Name = "Part6"
  208. prt6.Size = Vector3.new(1,1,1)
  209. prt6.Position = Torso.Position
  210. local prt7 = Instance.new("Part")
  211. prt7.formFactor = 1
  212. prt7.Parent = pack
  213. prt7.CanCollide = false
  214. prt7.BrickColor = BrickColor.new("Really black")
  215. prt7.Name = "Part7"
  216. prt7.Size = Vector3.new(1,1,1)
  217. prt7.Position = Torso.Position
  218. local prt8 = Instance.new("Part")
  219. prt8.formFactor = 1
  220. prt8.Parent = pack
  221. prt8.CanCollide = false
  222. prt8.BrickColor = br(col[1])
  223. prt8.Name = "Part8"
  224. prt8.Size = Vector3.new(1,1,1)
  225. prt8.Position = Torso.Position
  226. local prt9 = Instance.new("Part")
  227. prt9.formFactor = 1
  228. prt9.Parent = pack
  229. prt9.CanCollide = false
  230. prt9.BrickColor = br(col[1])
  231. prt9.Name = "Part9"
  232. prt9.Size = Vector3.new(1,1,1)
  233. prt9.Position = Torso.Position
  234. local prt10 = Instance.new("Part")
  235. prt10.formFactor = 1
  236. prt10.Parent = pack
  237. prt10.CanCollide = false
  238. prt10.BrickColor = br(col[1])
  239. prt10.Name = "Part10"
  240. prt10.Size = Vector3.new(1,1,1)
  241. prt10.Position = Torso.Position
  242. local prt11 = Instance.new("Part")
  243. prt11.formFactor = 1
  244. prt11.Parent = pack
  245. prt11.CanCollide = false
  246. prt11.BrickColor = br(col[1])
  247. prt11.Name = "Part11"
  248. prt11.Size = Vector3.new(1,1,1)
  249. prt11.Position = Torso.Position
  250. local prt12 = Instance.new("Part")
  251. prt12.formFactor = 1
  252. prt12.Parent = pack
  253. prt12.CanCollide = false
  254. prt12.BrickColor = br(col[1])
  255. prt12.Name = "Part12"
  256. prt12.Size = Vector3.new(1,1,1)
  257. prt12.Position = Torso.Position
  258.  
  259. local msh1 = Instance.new("BlockMesh")
  260. msh1.Parent = prt1
  261. --msh1.Scale = Vector3.new(0.9,0.8,3)
  262. msh1.Scale = Vector3.new(Prop.LegWide/0.9,Prop.LegWide/1,Prop.LegLength/1.3)
  263. local msh2 = Instance.new("BlockMesh")
  264. msh2.Parent = prt2
  265. --msh2.Scale = Vector3.new(0.3,2.5,1)
  266. msh2.Scale = Vector3.new(Prop.LegWide/2.5,Prop.LegLength/1.6,Prop.LegWide*1.3)
  267. local msh3 = Instance.new("BlockMesh")
  268. msh3.Parent = prt3
  269. --msh3.Scale = Vector3.new(0.1,2.6,1.5)
  270. msh3.Scale = Vector3.new(Prop.LegWide/6,Prop.LegLength/1.6,Prop.LegWide*1.9)
  271. local msh4 = Instance.new("SpecialMesh")
  272. msh4.Parent = prt4
  273. msh4.MeshType = "Wedge"
  274. --msh4.Scale = Vector3.new(0.3,2,1)
  275. msh4.Scale = Vector3.new(Prop.LegWide/2.5,Prop.LegLength/2,Prop.LegWide*1.3)
  276. local msh5 = Instance.new("CylinderMesh")
  277. msh5.Parent = prt5
  278. --msh5.Scale = Vector3.new(1.5,1,1.5)
  279. msh5.Scale = Vector3.new(Prop.LegWide*2,Prop.LegLength/4,Prop.LegWide*2)
  280. local msh6 = Instance.new("CylinderMesh")
  281. msh6.Parent = prt6
  282. --msh6.Scale = Vector3.new(2.5,1.6,2.5)
  283. msh6.Scale = Vector3.new(Prop.LegWide*3.1,Prop.LegLength/2.5,Prop.LegWide*3.1)
  284. local msh7 = Instance.new("CylinderMesh")
  285. msh7.Parent = prt7
  286. --msh7.Scale = Vector3.new(1.4,1.7,1.4)
  287. msh7.Scale = Vector3.new(Prop.LegWide*1.8,Prop.LegLength/2.3,Prop.LegWide*1.8)
  288. local msh8 = Instance.new("BlockMesh")
  289. msh8.Parent = prt8
  290. --msh8.Scale = Vector3.new(0.5,2,0.5)
  291. msh8.Scale = Vector3.new(Prop.LegWide/1.6,Prop.LegLength/2,Prop.LegWide/1.6)
  292. local msh9 = Instance.new("BlockMesh")
  293. msh9.Parent = prt9
  294. --msh9.Scale = Vector3.new(0.5,2,0.5)
  295. msh9.Scale = Vector3.new(Prop.LegWide/1.6,Prop.LegLength/2,Prop.LegWide/1.6)
  296. local msh10 = Instance.new("BlockMesh")
  297. msh10.Parent = prt10
  298. --msh10.Scale = Vector3.new(0.5,2,0.5)
  299. msh10.Scale = Vector3.new(Prop.LegWide/1.6,Prop.LegLength/2,Prop.LegWide/1.6)
  300. local msh11 = Instance.new("BlockMesh")
  301. msh11.Parent = prt11
  302. --msh11.Scale = Vector3.new(0.5,2,0.5)
  303. msh11.Scale = Vector3.new(Prop.LegWide/1.6,Prop.LegLength/2,Prop.LegWide/1.6)
  304. local msh12 = Instance.new("BlockMesh")
  305. msh12.Parent = prt12
  306. --msh12.Scale = Vector3.new(0.5,2,0.5)
  307. msh12.Scale = Vector3.new(0,0,0)
  308.  
  309. local wld1 = Instance.new("Weld")
  310. wld1.Parent = prt1
  311. wld1.Part0 = prt1
  312. wld1.Part1 = Spider.RAa2
  313. --wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.5,0)
  314. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/6,0)
  315. local wld2 = Instance.new("Weld")
  316. wld2.Parent = prt2
  317. wld2.Part0 = prt2
  318. wld2.Part1 = prt1
  319. --wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-3,0)
  320. wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/1.3,0)
  321. local wld3 = Instance.new("Weld")
  322. wld3.Parent = prt3
  323. wld3.Part0 = prt3
  324. wld3.Part1 = prt1
  325. --wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-3,0)
  326. wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/1.3,0)
  327. local wld4 = Instance.new("Weld")
  328. wld4.Parent = prt4
  329. wld4.Part0 = prt4
  330. wld4.Part1 = prt2
  331. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-4.2,0)
  332. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/1.1,0)
  333. local wld5 = Instance.new("Weld")
  334. wld5.Parent = prt5
  335. wld5.Part0 = prt5
  336. wld5.Part1 = Spider.LAa2
  337. --wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-2.5,0)
  338. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/1.6,0)
  339. local wld6 = Instance.new("Weld")
  340. wld6.Parent = prt6
  341. wld6.Part0 = prt6
  342. wld6.Part1 = prt5
  343. --wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.5,0)
  344. wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/2.6,0)
  345. local wld7 = Instance.new("Weld")
  346. wld7.Parent = prt7
  347. wld7.Part0 = prt7
  348. wld7.Part1 = prt6
  349. wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  350. local wld8 = Instance.new("Weld")
  351. wld8.Parent = prt8
  352. wld8.Part0 = prt8
  353. wld8.Part1 = prt6
  354. --wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.5) * CFrame.new(1.5,-1,0)
  355. wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.5) * CFrame.new(Prop.LegWide*2,-Prop.LegLength/4,0)
  356. local wld9 = Instance.new("Weld")
  357. wld9.Parent = prt9
  358. wld9.Part0 = prt9
  359. wld9.Part1 = prt6
  360. --wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0.5) * CFrame.new(-1.5,-1,0)
  361. wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0.5) * CFrame.new(-Prop.LegWide*2,-Prop.LegLength/4,0)
  362. local wld10 = Instance.new("Weld")
  363. wld10.Parent = prt10
  364. wld10.Part0 = prt10
  365. wld10.Part1 = prt6
  366. --wld10.C0 = CFrame.fromEulerAnglesXYZ(-0.5,0,0) * CFrame.new(0,-1,-1.5)
  367. wld10.C0 = CFrame.fromEulerAnglesXYZ(-0.5,0,0) * CFrame.new(0,-Prop.LegLength/4,-Prop.LegWide*2)
  368. local wld11 = Instance.new("Weld")
  369. wld11.Parent = prt11
  370. wld11.Part0 = prt11
  371. wld11.Part1 = prt6
  372. --wld11.C0 = CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0,-1,1.5)
  373. wld11.C0 = CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0,-Prop.LegLength/4,Prop.LegWide*2)
  374. local wld12 = Instance.new("Weld")
  375. wld12.Parent = prt12
  376. wld12.Part0 = prt12
  377. wld12.Part1 = prt6
  378. --wld12.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,0,0)
  379. wld12.C0 = CFrame.fromEulerAnglesXYZ(-1.57,0,0) * CFrame.new(0,0,0)
  380.  
  381. wait()
  382. Spider.w.Back = weld(Spider.Back,Torso,Spider.Back,0,0,0.5,0,0,0)
  383. wait()
  384. Torso.CFrame = Torso.CFrame + Vector3.new(0,10,0)
  385.  
  386. function Anim()
  387. attack=true
  388. for i=0,1,0.1 do
  389. wait()
  390. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-(120*i)),math.rad(70-(70*i)),0)
  391. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+(10*i)),math.rad(40+(50*i)),0)
  392. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-(120*i)),math.rad(-70+(70*i)),0)
  393. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+(10*i)),math.rad(-40-(50*i)),0)
  394. end
  395. bodypos=Instance.new("BodyPosition")
  396. bodypos.P=500
  397. bodypos.D=100
  398. bodypos.maxForce=Vector3.new(0,math.huge,0)
  399. bodypos.position=Head.Position+Vector3.new(0,50,0)
  400. bodypos.Parent=Head
  401. while roflcopter==true do
  402. for i = 0,1,0.1 do
  403. wait()
  404. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-(120)),math.rad(70-(70)),0)
  405. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+(10)),math.rad(90+(360*i)),0)
  406. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-(120)),math.rad(-70+(70)),0)
  407. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+(10)),math.rad(-90+(360*i)),0)
  408. end
  409. end
  410. bodypos.Parent=nil
  411. for i=0,1,0.1 do
  412. wait()
  413. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-(120-120*i)),math.rad(70-(70-70*i)),0)
  414. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+(10-10*i)),math.rad(90-(50*i)),0)
  415. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-(120-120*i)),math.rad(-70+(70-70*i)),0)
  416. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+(10-10*i)),math.rad(-90+(50*i)),0)
  417. end
  418. attack=false
  419. end
  420.  
  421. function RoflCopter()
  422. act.Jumping=true
  423. for i=0,1,0.1 do
  424. wait()
  425. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40),0)
  426. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+80*i),math.rad(0),0)
  427. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0)
  428. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-80*i),math.rad(0),0)
  429. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80),math.rad(40),0)
  430. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+80*i),math.rad(0),0)
  431. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40),0)
  432. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-80*i),math.rad(0),0)
  433. end
  434. bodypos.P=500
  435. bodypos.D=100
  436. bodypos.maxForce=Vector3.new(0,math.huge,0)
  437. bodypos.position=Head.Position+Vector3.new(0,10,0)
  438. bodypos.Parent=Head
  439. while roflcopter==true do
  440. derpcon1=Spider.LRa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  441. derpcon2=Spider.LLa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  442. derpcon3=Spider.URa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  443. derpcon4=Spider.ULa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  444. for i=0,1,0.1 do
  445. wait()
  446. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40+360*i),0)
  447. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+80),math.rad(0),0)
  448. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40+360*i),0)
  449. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-80),math.rad(0),0)
  450. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80),math.rad(40+360*i),0)
  451. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+80),math.rad(0),0)
  452. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40+360*i),0)
  453. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-80),math.rad(0),0)
  454. end
  455. derpcon1:disconnect()
  456. derpcon2:disconnect()
  457. derpcon3:disconnect()
  458. derpcon4:disconnect()
  459. end
  460. bodypos.Parent=nil
  461. for i=0,1,0.1 do
  462. wait()
  463. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40),0)
  464. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+80-80*i),math.rad(0),0)
  465. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0)
  466. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-80+80*i),math.rad(0),0)
  467. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80),math.rad(40),0)
  468. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+80-80*i),math.rad(0),0)
  469. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40),0)
  470. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-80+80*i),math.rad(0),0)
  471. end
  472. act.Jumping=false
  473. end
  474.  
  475. function Shoot()
  476. attack=true
  477. for i=0,1,0.1 do
  478. wait()
  479. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  480. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  481. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50*i),math.rad(-70),0)
  482. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+20*i),math.rad(-40+40*i),0)
  483. end
  484. gairo.Parent = Head
  485. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  486. gairo.P = 20e+003
  487. gairo.cframe = Head.CFrame
  488. for i=0,1,0.1 do
  489. wait()
  490. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1.57*i)
  491. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  492. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  493. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50+20*i),math.rad(-70-20*i),0)
  494. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+20+80*i),math.rad(-40+40),0)
  495. end
  496. wait(0.1)
  497. for i = 1,3 do
  498. DerpMagic(prt7,Prop.LegWide*4,Prop.LegWide*4,Prop.LegWide*4,0,1,0,BrickColor.new("Black"))
  499. shoottrail2(prt7)
  500. wait(0.5)
  501. end
  502. for i=0,1,0.1 do
  503. wait()
  504. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1.57-1.57*i)
  505. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  506. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  507. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50+20+30*i),math.rad(-70-20+20*i),0)
  508. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+20+80-100*i),math.rad(-40+40-40*i),0)
  509. end
  510. gairo.Parent=nil
  511. Torso.Neck.C0=necko
  512. attack=false
  513. end
  514.  
  515. function Shoot2()
  516. attack=true
  517. for i=0,1,0.1 do
  518. wait()
  519. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  520. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  521. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-60*i),math.rad(-70),0)
  522. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+15*i),math.rad(-40-60*i),0)
  523. end
  524. for i=0,0.3,0.1 do
  525. wait(0.1)
  526. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  527. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  528. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-60),math.rad(-70),0)
  529. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+15+40*i),math.rad(-40-60),0)
  530. DerpMagic(prt7,Prop.LegWide*4,Prop.LegWide*4,Prop.LegWide*4,0,1,0,BrickColor.new("Black"))
  531. shoottrail2(prt7)
  532. end
  533. for i=0,1,0.1 do
  534. wait()
  535. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  536. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  537. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-60+60*i),math.rad(-70),0)
  538. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+15+20-55*i),math.rad(-40-60+60*i),0)
  539. end
  540. attack=false
  541. end
  542.  
  543. function Shoot3()
  544. attack=true
  545. for i=0,1,0.1 do
  546. wait()
  547. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  548. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  549. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50*i),math.rad(-70+70*i),math.rad(90*i))
  550. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+60*i),math.rad(-40+40*i),math.rad(3*i))
  551. end
  552. for i=0,1,0.1 do
  553. wait()
  554. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  555. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  556. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50+60*i),math.rad(-70+70),math.rad(90))
  557. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+60+40*i),math.rad(-40+40),math.rad(3))
  558. DerpMagic(prt7,Prop.LegWide*4,Prop.LegWide*4,Prop.LegWide*4,0,1,0,BrickColor.new("Black"))
  559. shoottrail2(prt7)
  560. end
  561. for i=0,1,0.1 do
  562. wait()
  563. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  564. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  565. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50+60-10*i),math.rad(-70+70-70*i),math.rad(90-90*i))
  566. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+60+40-100*i),math.rad(-40+40-40*i),math.rad(3-3*i))
  567. end
  568. attack=false
  569. end
  570.  
  571. function Shoot4()
  572. attack=true
  573. for i=0,1,0.1 do
  574. wait()
  575. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  576. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  577. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120+60*i),math.rad(-70+70*i),math.rad(0))
  578. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+50*i),math.rad(-40+40*i),math.rad(0))
  579. end
  580. for i=0,1,0.1 do
  581. wait()
  582. DerpMagic(prt7,Prop.LegWide*4,Prop.LegWide*4,Prop.LegWide*4,0,1,0,BrickColor.new("Black"))
  583. shoottrail2(prt7)
  584. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  585. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  586. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120+60),math.rad(-70+70),math.rad(0))
  587. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+50+50*i),math.rad(-40+40),math.rad(0))
  588. end
  589. for i=0,1,0.1 do
  590. wait()
  591. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  592. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  593. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120+60-60*i),math.rad(-70+70-70*i),math.rad(0))
  594. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+50+50-100*i),math.rad(-40+40-40*i),math.rad(0))
  595. end
  596. attack=false
  597. end
  598.  
  599. function Attack()
  600. attack=true
  601. for i=0,1,0.1 do
  602. wait()
  603. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80*i),math.rad(70-70*i),0)
  604. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40-40*i),0)
  605. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  606. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  607. end
  608. ss(1)
  609. con1=prt2.Touched:connect(function(hit) slashdamage1(hit,Prop.LegLength*3,20) end)
  610. con2=Spider.RAa2.Touched:connect(function(hit) slashdamage1(hit,Prop.LegLength*3,20) end)
  611. for i=0,1,0.2 do
  612. wait()
  613. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80+90*i),math.rad(70-70),0)
  614. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+70*i),math.rad(40-40),0)
  615. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  616. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  617. end
  618. wait(0.1)
  619. con1:disconnect()
  620. con2:disconnect()
  621. for i=0,1,0.1 do
  622. wait()
  623. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120+10-10*i),math.rad(70-70+70*i),0)
  624. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+70-70*i),math.rad(40-40+40*i),0)
  625. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  626. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  627. end
  628. attack=false
  629. end
  630.  
  631. function MegaBonk()
  632. attack=true
  633. for i=0,1,0.1 do
  634. wait()
  635. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80*i),math.rad(70-70*i),0)
  636. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40-40*i),0)
  637. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  638. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  639. end
  640. wait(0.1)
  641. for i=0,1,0.02 do
  642. wait()
  643. MMMAGIC(prt4,Prop.BallSize*2,Prop.BallSize*2,Prop.BallSize*2,0,Prop.LegLength/2,0,BrickColor.new("Really black"))
  644. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80-30*i),math.rad(70-70),0)
  645. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100-30*i),math.rad(40-40),0)
  646. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  647. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  648. end
  649. ss(1.3)
  650. con1=prt2.Touched:connect(function(hit) Damagefunc2(hit,Prop.LegLength*10,100) end)
  651. con2=Spider.RAa2.Touched:connect(function(hit) Damagefunc2(hit,Prop.LegLength*10,100) end)
  652. for i=0,1,0.2 do
  653. wait()
  654. MMMAGIC(prt4,Prop.BallSize*2,Prop.BallSize*2,Prop.BallSize*2,0,Prop.LegLength/2,0,BrickColor.new("Really black"))
  655. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80-30+110*i),math.rad(70-70),0)
  656. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100-30+120*i),math.rad(40-40),0)
  657. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  658. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  659. end
  660. MMMAGIC(prt4,Prop.BallSize*4,Prop.BallSize*4,Prop.BallSize*4,0,Prop.LegLength/2,0,BrickColor.new("Really black"))
  661. wait(0.5)
  662. con1:disconnect()
  663. con2:disconnect()
  664. for i=0,1,0.1 do
  665. wait()
  666. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-110+110),math.rad(70-70+70*i),0)
  667. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100-30+120-100*i),math.rad(40-40+40*i),0)
  668. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  669. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  670. end
  671. attack=false
  672. end
  673.  
  674. function DualAttack()
  675. attack=true
  676. for i=0,1,0.1 do
  677. wait()
  678. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-30*i),math.rad(70-90*i),0)
  679. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40+40*i),0)
  680. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  681. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  682. end
  683. ss(1)
  684. con1=prt2.Touched:connect(function(hit) slashdamage1(hit,Prop.LegLength*3,20) end)
  685. con2=Spider.RAa2.Touched:connect(function(hit) slashdamage1(hit,Prop.LegLength*3,20) end)
  686. for i=0,1,0.2 do
  687. wait()
  688. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-30),math.rad(70-90+100*i),0)
  689. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+50*i),math.rad(40+40),0)
  690. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  691. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  692. end
  693. con1:disconnect()
  694. con2:disconnect()
  695. for i=0,1,0.1 do
  696. wait()
  697. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-30+30*i),math.rad(70-90+100-10*i),0)
  698. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+50-50*i),math.rad(40+40-40*i),0)
  699. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  700. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  701. end
  702. attack=false
  703. end
  704.  
  705. function Stomp()
  706. attack=true
  707. local vel2 = Instance.new("BodyVelocity")
  708. vel2.Parent = Player.Character.Torso
  709. vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  710. vel2.velocity = Vector3.new(0,1,0) * 20
  711. wait(0.05)
  712. vel2.Parent=nil
  713. act.Jumping=true
  714. Char.Humanoid.WalkSpeed=0
  715. for i=0,1,0.1 do
  716. wait()
  717. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80-50*i),math.rad(-40),0)
  718. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+50*i),math.rad(0),0)
  719. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0)
  720. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0)
  721. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80-50*i),math.rad(40),0)
  722. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+50*i),math.rad(0),0)
  723. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40),0)
  724. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0)
  725. end
  726. for i=0,1,0.1 do
  727. wait()
  728. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80-50),math.rad(-40),0)
  729. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+50),math.rad(0),0)
  730. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50*i),math.rad(-40+40*i),0)
  731. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-30*i),math.rad(0),0)
  732. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80-50),math.rad(40),0)
  733. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+50),math.rad(0),0)
  734. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50*i),math.rad(40-40*i),0)
  735. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-30*i),math.rad(0),0)
  736. end
  737. ss(0.9)
  738. con1=Spider.URa1.Touched:connect(function(hit) DBHit(hit,50,Prop.LegLength*2) end)
  739. con2=Spider.URa2.Touched:connect(function(hit) DBHit(hit,50,Prop.LegLength*2) end)
  740. for i=0,1,0.2 do
  741. wait()
  742. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80-50+50*i),math.rad(-40),0)
  743. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+50-50*i),math.rad(0),0)
  744. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50+50*i),math.rad(-40+40),0)
  745. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-30+30*i),math.rad(0),0)
  746. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80-50+50*i),math.rad(40),0)
  747. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+50-50*i),math.rad(0),0)
  748. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50+50*i),math.rad(40-40),0)
  749. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-30+30*i),math.rad(0),0)
  750. end
  751. wait(0.1)
  752. con1:disconnect()
  753. con2:disconnect()
  754. for i=0,1,0.1 do
  755. wait()
  756. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80-50+50),math.rad(-40),0)
  757. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+50-50),math.rad(0),0)
  758. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50+50),math.rad(-40+40-40*i),0)
  759. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-30+30),math.rad(0),0)
  760. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80-50+50),math.rad(40),0)
  761. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+50-50),math.rad(0),0)
  762. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50+50),math.rad(40-40+40*i),0)
  763. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-30+30),math.rad(0),0)
  764. end
  765. Char.Humanoid.WalkSpeed=walksped
  766. act.Jumping=false
  767. attack=false
  768. end
  769.  
  770. function Jump()
  771. attack=true
  772. act.Jumping=true
  773. for i=0,1,0.1 do
  774. wait()
  775. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+50*i),math.rad(-40),0)
  776. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-50*i),math.rad(0),0)
  777. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50*i),math.rad(-40),0)
  778. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+50*i),math.rad(0),0)
  779. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+50*i),math.rad(40),0)
  780. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-50*i),math.rad(0),0)
  781. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50*i),math.rad(40),0)
  782. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+50*i),math.rad(0),0)
  783. end
  784. for i=0,1,0.2 do
  785. wait()
  786. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+50-100*i),math.rad(-40),0)
  787. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-50+100*i),math.rad(0),0)
  788. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50+100*i),math.rad(-40),0)
  789. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+50-100*i),math.rad(0),0)
  790. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+50-100*i),math.rad(40),0)
  791. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-50+100*i),math.rad(0),0)
  792. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50+100*i),math.rad(40),0)
  793. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+50-100*i),math.rad(0),0)
  794. end
  795. local vel2 = Instance.new("BodyVelocity")
  796. vel2.Parent = Player.Character.Torso
  797. vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  798. vel2.velocity = Vector3.new(0,1,0) * 100
  799. wait(0.1)
  800. vel2.Parent=nil
  801. for i=0,1,0.1 do
  802. wait()
  803. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+50-100+50*i),math.rad(-40),0)
  804. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-50+100-50*i),math.rad(0),0)
  805. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50+100-50*i),math.rad(-40),0)
  806. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+50-100+50*i),math.rad(0),0)
  807. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+50-100+50*i),math.rad(40),0)
  808. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-50+100-50*i),math.rad(0),0)
  809. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50+100-50*i),math.rad(40),0)
  810. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+50-100+50*i),math.rad(0),0)
  811. end
  812. act.Jumping=false
  813. attack=false
  814. end
  815.  
  816. function shoottrail2(pos1)
  817. coroutine.resume(coroutine.create(function()
  818. spread2 = 0
  819. range2 = Prop.LegLength*150
  820. rangepower = Prop.LegLength*1.5
  821. local spreadvector = (Vector3.new(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) * (pos1.Position).magnitude/100
  822. --local dir = Head.CFrame.lookVector+spreadvector
  823. local dir = prt12.CFrame.lookVector+spreadvector
  824. local hit2,pos = rayCast(pos1.Position,dir,10,pack)
  825. local rangepos = range2
  826. local function drawtrail(From,To)
  827. local effectsmsh = Instance.new("CylinderMesh")
  828. effectsmsh.Scale = Vector3.new(1,1,1)
  829. effectsmsh.Name = "Mesh"
  830. local effectsg = Instance.new("Part")
  831. effectsg.formFactor = 3
  832. effectsg.CanCollide = false
  833. effectsg.Name = "Eff"
  834. effectsg.Locked = true
  835. effectsg.Anchored = true
  836. effectsg.Size = Vector3.new(Prop.LegLength/4,Prop.LegLength/5,Prop.LegLength/4)
  837. effectsg.Parent = pack
  838. effectsmsh.Parent = effectsg
  839. effectsg.BrickColor = BrickColor.new("Really black")
  840. effectsg.Reflectance = 0.25
  841. local LP = From
  842. local point1 = To
  843. local mg = (LP - point1).magnitude
  844. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  845. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  846. coroutine.resume(coroutine.create(function()
  847. for i = 0 , 1 , 0.2 do
  848. wait()
  849. effectsg.Transparency = 1*i
  850. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  851. end
  852. effectsg.Parent = nil
  853. end))
  854. end
  855. local newpos = pos1.Position
  856. local inc = rangepower
  857. repeat
  858. wait()
  859. rangepos = rangepos - 10
  860. dir = dir
  861. hit2,pos = rayCast(newpos,dir,inc,pack)
  862. drawtrail(newpos,pos)
  863. newpos = newpos + (dir * inc)
  864. if alt==1 then
  865. inc = 10
  866. if inc >= 20 then
  867. inc = inc - 10
  868. end
  869. end
  870. if hit2 ~= nil then
  871. rangepos = 0
  872. end
  873. until rangepos <= 0
  874. if hit2 ~= nil then
  875. local effectsmsh = Instance.new("SpecialMesh")
  876. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  877. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  878. effectsmsh.Scale = Vector3.new(3,3,3)
  879. local effectsg = Instance.new("Part")
  880. effectsg.formFactor = 3
  881. effectsg.CanCollide = false
  882. effectsg.Name = "Arrow"
  883. effectsg.Locked = true
  884. effectsg.Transparency = 1
  885. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  886. effectsg.Parent = pack
  887. effectsg.BrickColor = BrickColor.new("Really black")
  888. effectsmsh.Parent = effectsg
  889. effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2
  890. local efwel = Instance.new("Weld")
  891. efwel.Parent = effectsg
  892. efwel.Part0 = effectsg
  893. efwel.Part1 = hit2
  894. efwel.Parent = nil
  895. effectsg.Anchored = true
  896. local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75
  897. --local HitPos = prt1.Position + CFrame.new(newpos,pos).lookVector*0.75
  898. --local HitPos = prt1.Position + (prt1.CFrame.lookVector * .5)
  899. local CJ = CFrame.new(HitPos)
  900. local C0 = effectsg.CFrame:inverse() * CJ
  901. local C1 = hit2.CFrame:inverse() * CJ
  902. --efwel.C0 = C0
  903. --efwel.C1 = C1
  904. --efwel.Parent = effectsg
  905. Damg = Prop.LegLength*5
  906. coroutine.resume(coroutine.create(function()
  907. boomsound(1)
  908. coroutine.resume(coroutine.create(function()
  909. local c = game.Workspace:GetChildren();
  910. for i = 1, #c do
  911. local hum = c:findFirstChild("Humanoid")
  912. if hum ~= nil and hum.Health ~= 0 then
  913. local head = c:findFirstChild("Head");
  914. if head ~= nil then
  915. local targ = head.Position - effectsg.Position;
  916. local mag = targ.magnitude;
  917. if mag <= Prop.LegLength*3 then
  918. wait()
  919. DBHit(head,effectsg,Prop.LegLength)
  920. end
  921. end
  922. end
  923. end
  924. end))
  925. EVENMOARMAGIX(effectsg,Prop.LegLength*3,Prop.LegLength*2,Prop.LegLength*3,0,0,0,0,0,0,BrickColor.new("Black"))
  926. for i = 0,5 do
  927. wait()
  928. MMMAGIC(effectsg,Prop.LegLength*3,Prop.LegLength*2,Prop.LegLength*3,0,0,0,BrickColor.new("Black"))
  929. end
  930. end))
  931. coroutine.resume(coroutine.create(function()
  932. wait(3)
  933. effectsg.Parent = nil
  934. end))
  935. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  936. hum = hit2.Parent.Humanoid
  937. attackdebounce = false
  938. Damagefunc1(hit2,Damg,50)
  939. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  940. hum = hit2.Parent.Parent.Humanoid
  941. attackdebounce = false
  942. Damagefunc1(hit2,Damg,50)
  943. end
  944. end
  945. end))
  946. end
  947.  
  948. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants
  949. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  950. end
  951.  
  952. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  953. local msh1 = Instance.new("BlockMesh")
  954. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  955. S=Instance.new("Part")
  956. S.Name="Effect"
  957. S.formFactor=0
  958. S.Size=Vector3.new(x1,y1,z1)
  959. S.BrickColor=color
  960. S.Reflectance = 0
  961. S.TopSurface=0
  962. S.BottomSurface=0
  963. S.Transparency=0
  964. S.Anchored=true
  965. S.CanCollide=false
  966. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  967. S.Parent=pack
  968. msh1.Parent = S
  969. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  970. end
  971.  
  972. function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  973. local msh1 = Instance.new("BlockMesh")
  974. msh1.Scale = Vector3.new(x1,y1,z1)
  975. S=Instance.new("Part")
  976. S.Name="Effect"
  977. S.formFactor=0
  978. S.Size=Vector3.new(1,1,1)
  979. S.BrickColor=color
  980. S.Reflectance = 0
  981. S.TopSurface=0
  982. S.BottomSurface=0
  983. S.Transparency=0
  984. S.Anchored=true
  985. S.CanCollide=false
  986. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  987. S.Parent=pack
  988. msh1.Parent = S
  989. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  990. end
  991.  
  992. function MOREMAGIX(part,cframe,x,y,z,color)
  993. p2=Instance.new("Part")
  994. p2.Name="Blast"
  995. p2.TopSurface=0
  996. p2.BottomSurface=0
  997. p2.CanCollide=false
  998. p2.Anchored=true
  999. p2.BrickColor=color
  1000. p2.Size=Vector3.new(x,y,z)
  1001. p2.formFactor="Symmetric"
  1002. p2.CFrame=part.CFrame*CFrame.new(0,cframe,0)
  1003. p2.Parent=pack
  1004. m=Instance.new("BlockMesh")
  1005. m.Parent=p2
  1006. m.Name="BlastMesh"
  1007. coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09) part.Transparency=loll/20 part.CFrame=part.CFrame*CFrame.new(dir)*CFrame.fromEulerAnglesXYZ(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2,Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10))
  1008. end
  1009.  
  1010. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1011. local msh1 = Instance.new("SpecialMesh")
  1012. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1013. msh1.MeshType = "Sphere"
  1014. S=Instance.new("Part")
  1015. S.Name="Effect"
  1016. S.formFactor=0
  1017. S.Size=Vector3.new(x1,y1,z1)
  1018. S.BrickColor=color
  1019. S.Reflectance = 0
  1020. S.TopSurface=0
  1021. S.BottomSurface=0
  1022. S.Transparency=0
  1023. S.Anchored=true
  1024. S.CanCollide=false
  1025. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  1026. S.Parent=pack
  1027. msh1.Parent = S
  1028. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1029. end
  1030.  
  1031. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1032. local msh1 = Instance.new("SpecialMesh")
  1033. msh1.Scale = Vector3.new(x1,y1,z1)
  1034. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1035. S=Instance.new("Part")
  1036. S.Name="Effect"
  1037. S.formFactor=0
  1038. S.Size=Vector3.new(1,1,1)
  1039. S.BrickColor=color
  1040. S.Reflectance = 0
  1041. S.TopSurface=0
  1042. S.BottomSurface=0
  1043. S.Transparency=0
  1044. S.Anchored=true
  1045. S.CanCollide=false
  1046. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  1047. S.Parent=pack
  1048. msh1.Parent = S
  1049. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1050. end
  1051.  
  1052. function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1053. local msh1 = Instance.new("SpecialMesh")
  1054. msh1.Scale = Vector3.new(x1,y1,z1)
  1055. msh1.MeshId = "http://www.roblox.com/asset/?id=1323306"
  1056. S=Instance.new("Part")
  1057. S.Name="Effect"
  1058. S.formFactor=0
  1059. S.Size=Vector3.new(1,1,1)
  1060. S.BrickColor=color
  1061. S.Reflectance = 0
  1062. S.TopSurface=0
  1063. S.BottomSurface=0
  1064. S.Transparency=0
  1065. S.Anchored=true
  1066. S.CanCollide=false
  1067. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  1068. S.Parent=pack
  1069. msh1.Parent = S
  1070. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1071. end
  1072.  
  1073. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  1074. local msh1 = Instance.new("BlockMesh")
  1075. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1076. S=Instance.new("Part")
  1077. S.Name="Effect"
  1078. S.formFactor=0
  1079. S.Size=Vector3.new(x1,y1,z1)
  1080. S.BrickColor=color
  1081. S.Reflectance = 0
  1082. S.TopSurface=0
  1083. S.BottomSurface=0
  1084. S.Transparency=0
  1085. S.Anchored=true
  1086. S.CanCollide=false
  1087. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1088. S.Parent=pack
  1089. msh1.Parent = S
  1090. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1091. end
  1092.  
  1093.  
  1094. function ss(pitch)
  1095.  
  1096. local SlashSound = Instance.new("Sound")
  1097. --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  1098. SlashSound.SoundId = "http://roblox.com/asset/?id=10209645"
  1099. SlashSound.Parent = workspace
  1100. SlashSound.Volume = .7
  1101. SlashSound.Pitch = pitch
  1102. SlashSound.PlayOnRemove = true
  1103. coroutine.resume(coroutine.create(function()
  1104. wait(0)
  1105. SlashSound.Parent = nil
  1106. end))
  1107. end
  1108. function equipsound(pitch)
  1109.  
  1110. local SlashSound = Instance.new("Sound")
  1111. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  1112. SlashSound.Parent = workspace
  1113. SlashSound.Volume = .5
  1114. SlashSound.Pitch = pitch
  1115. SlashSound.PlayOnRemove = true
  1116. coroutine.resume(coroutine.create(function()
  1117. wait(0)
  1118. SlashSound.Parent = nil
  1119. end))
  1120. end
  1121. function magicsound(pitch)
  1122.  
  1123. local SlashSound = Instance.new("Sound")
  1124. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  1125. SlashSound.Parent = workspace
  1126. SlashSound.Volume = .5
  1127. SlashSound.Pitch = pitch
  1128. SlashSound.PlayOnRemove = true
  1129. coroutine.resume(coroutine.create(function()
  1130. wait(0)
  1131. SlashSound.Parent = nil
  1132. end))
  1133. end
  1134. function critsound(pitch)
  1135.  
  1136. local SlashSound = Instance.new("Sound")
  1137. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  1138. SlashSound.Parent = workspace
  1139. SlashSound.Volume = .7
  1140. SlashSound.Pitch = pitch
  1141. SlashSound.PlayOnRemove = true
  1142. coroutine.resume(coroutine.create(function()
  1143. wait(0)
  1144. SlashSound.Parent = nil
  1145. end))
  1146. end
  1147. function spikesound(pitch)
  1148.  
  1149. local SlashSound = Instance.new("Sound")
  1150. SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793"
  1151. SlashSound.Parent = workspace
  1152. SlashSound.Volume = .7
  1153. SlashSound.Pitch = pitch
  1154. SlashSound.PlayOnRemove = true
  1155. coroutine.resume(coroutine.create(function()
  1156. wait(0)
  1157. SlashSound.Parent = nil
  1158. end))
  1159. end
  1160. function boomsound(pitch)
  1161.  
  1162. local SlashSound = Instance.new("Sound")
  1163. SlashSound.SoundId = "http://www.roblox.com/asset?id=2101148"
  1164. SlashSound.Parent = workspace
  1165. SlashSound.Volume = .7
  1166. SlashSound.Pitch = pitch
  1167. SlashSound.PlayOnRemove = true
  1168. coroutine.resume(coroutine.create(function()
  1169. wait(0)
  1170. SlashSound.Parent = nil
  1171. end))
  1172. end
  1173. function lasersound(pitch)
  1174.  
  1175. local SlashSound = Instance.new("Sound")
  1176. SlashSound.SoundId = "rbxasset://sounds/Launching rocket.wav"
  1177. SlashSound.Parent = workspace
  1178. SlashSound.Volume = .5
  1179. SlashSound.Pitch = pitch
  1180. SlashSound.PlayOnRemove = true
  1181. coroutine.resume(coroutine.create(function()
  1182. wait(0)
  1183. SlashSound.Parent = nil
  1184. end))
  1185. end
  1186. function omnomnom(pitch)
  1187.  
  1188. local SlashSound = Instance.new("Sound")
  1189. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12544690"
  1190. SlashSound.Parent = workspace
  1191. SlashSound.Volume = .5
  1192. SlashSound.Pitch = pitch
  1193. SlashSound.PlayOnRemove = true
  1194. coroutine.resume(coroutine.create(function()
  1195. wait(0)
  1196. SlashSound.Parent = nil
  1197. end))
  1198. end
  1199. function boomsound(pitch)
  1200.  
  1201. local SlashSound = Instance.new("Sound")
  1202. SlashSound.SoundId = "http://www.roblox.com/asset?id=2101148"
  1203. SlashSound.Parent = workspace
  1204. SlashSound.Volume = .7
  1205. SlashSound.Pitch = pitch
  1206. SlashSound.PlayOnRemove = true
  1207. coroutine.resume(coroutine.create(function()
  1208. wait(0)
  1209. SlashSound.Parent = nil
  1210. end))
  1211. end
  1212.  
  1213. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1214. local msh1 = Instance.new("BlockMesh")
  1215. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1216. S=Instance.new("Part")
  1217. S.Name="Effect"
  1218. S.formFactor=0
  1219. S.Size=Vector3.new(x1,y1,z1)
  1220. S.BrickColor=color
  1221. S.Reflectance = 0
  1222. S.TopSurface=0
  1223. S.BottomSurface=0
  1224. S.Transparency=0
  1225. S.Anchored=true
  1226. S.CanCollide=false
  1227. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1228. S.Parent=workspace
  1229. msh1.Parent = S
  1230. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1231. end
  1232.  
  1233. attackdebounce = false
  1234. Damagefunc1=function(hit,Damage,Knockback)
  1235. if hit.Parent==nil then
  1236. return
  1237. end
  1238. CPlayer=Bin
  1239. h=hit.Parent:FindFirstChild("Humanoid")
  1240. if h~=nil and hit.Parent.Name~=Char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1241. if attackdebounce == false then
  1242. critsound(2)
  1243. attackdebounce = true
  1244. coroutine.resume(coroutine.create(function()
  1245. wait(0.1)
  1246. attackdebounce = false
  1247. end))
  1248. Damage=Damage
  1249. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1250. return
  1251. end]]
  1252. c=Instance.new("ObjectValue")
  1253. c.Name="creator"
  1254. c.Value=game.Players.LocalPlayer
  1255. c.Parent=h
  1256. game:GetService("Debris"):AddItem(c,.5)
  1257. -- print(c.Value)
  1258. if math.random(0,99)+math.random()<=5 then
  1259. CRIT=true
  1260. Damage=Damage*150
  1261. --[[ Knockback=Knockback*2
  1262. r=Instance.new("BodyAngularVelocity")
  1263. r.P=3000
  1264. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1265. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1266. r.Parent=hit.Parent.Torso]]
  1267. --critsound(2)
  1268.  
  1269. end
  1270. Damage=Damage+math.random(50,100)
  1271. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/20))
  1272. h:TakeDamage(Damage)
  1273. showDamage(hit.Parent,Damage,50)
  1274. vp=Instance.new("BodyVelocity")
  1275. vp.P=500
  1276. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1277. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1278. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1279. if Knockback>0 then
  1280. vp.Parent=hit.Parent.Torso
  1281. end
  1282. game:GetService("Debris"):AddItem(vp,.25)
  1283. --[[ r=Instance.new("BodyAngularVelocity")
  1284. r.P=3000
  1285. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1286. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1287. r.Parent=hit.Parent.Torso]]
  1288. game:GetService("Debris"):AddItem(r,.5)
  1289. c=Instance.new("ObjectValue")
  1290. c.Name="creator"
  1291. c.Value=Player
  1292. c.Parent=h
  1293. game:GetService("Debris"):AddItem(c,.5)
  1294. CRIT=false
  1295. hitDeb=true
  1296. AttackPos=6
  1297. end
  1298. end
  1299. end
  1300.  
  1301. Damagefunc2=function(hit,Damage,Knockback)
  1302. if hit.Parent==nil then
  1303. return
  1304. end
  1305. CPlayer=Bin
  1306. h=hit.Parent:FindFirstChild("Humanoid")
  1307. if h~=nil and hit.Parent.Name~=Char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1308. if attackdebounce == false then
  1309. critsound(1)
  1310. attackdebounce = true
  1311. coroutine.resume(coroutine.create(function()
  1312. wait(0.1)
  1313. attackdebounce = false
  1314. end))
  1315. Damage=Damage
  1316. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1317. return
  1318. end]]
  1319. c=Instance.new("ObjectValue")
  1320. c.Name="creator"
  1321. c.Value=game.Players.LocalPlayer
  1322. c.Parent=h
  1323. game:GetService("Debris"):AddItem(c,.5)
  1324. -- print(c.Value)
  1325. if math.random(0,99)+math.random()<=5 then
  1326. CRIT=true
  1327. Damage=Damage*100
  1328. --[[ Knockback=Knockback*2
  1329. r=Instance.new("BodyAngularVelocity")
  1330. r.P=3000
  1331. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1332. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1333. r.Parent=hit.Parent.Torso]]
  1334. --critsound(2)
  1335.  
  1336. end
  1337. Damage=Damage+math.random(50,100)
  1338. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/20))
  1339. h:TakeDamage(Damage)
  1340. showDamage(hit.Parent,Damage,50)
  1341. vp=Instance.new("BodyVelocity")
  1342. vp.P=500
  1343. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1344. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1345. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1346. rl=Instance.new("BodyAngularVelocity")
  1347. rl.P=3000
  1348. rl.maxTorque=Vector3.new(5000,5000,5000)*500000000
  1349. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1350. rl.Parent=t
  1351. game:GetService("Debris"):AddItem(rl,.2)
  1352. vl=Instance.new("BodyVelocity")
  1353. vl.P=4500
  1354. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1355. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,10,0)
  1356. vl.Parent=t
  1357. game:GetService("Debris"):AddItem(vl,.2)
  1358. if Knockback>0 then
  1359. vp.Parent=hit.Parent.Torso
  1360. end
  1361. game:GetService("Debris"):AddItem(vp,.25)
  1362. --[[ r=Instance.new("BodyAngularVelocity")
  1363. r.P=3000
  1364. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1365. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1366. r.Parent=hit.Parent.Torso]]
  1367. game:GetService("Debris"):AddItem(r,.5)
  1368. c=Instance.new("ObjectValue")
  1369. c.Name="creator"
  1370. c.Value=Player
  1371. c.Parent=h
  1372. game:GetService("Debris"):AddItem(c,.5)
  1373. CRIT=false
  1374. hitDeb=true
  1375. AttackPos=6
  1376. end
  1377. end
  1378. end
  1379.  
  1380. slashdamage1=function(hit,Damage,Knockback)
  1381. if hit.Parent==nil then
  1382. return
  1383. end
  1384. CPlayer=Bin
  1385. h=hit.Parent:FindFirstChild("Humanoid")
  1386. if h~=nil and hit.Parent.Name~=Char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1387. if attackdebounce == false then
  1388. attackdebounce = true
  1389. coroutine.resume(coroutine.create(function()
  1390. wait(0.1)
  1391. attackdebounce = false
  1392. end))
  1393. Damage=Damage
  1394. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1395. return
  1396. end]]
  1397. c=Instance.new("ObjectValue")
  1398. c.Name="creator"
  1399. c.Value=game.Players.LocalPlayer
  1400. c.Parent=h
  1401. game:GetService("Debris"):AddItem(c,.5)
  1402. -- print(c.Value)
  1403. if math.random(0,99)+math.random()<=5 then
  1404. Damage=Damage*50
  1405. --[[ Knockback=Knockback*2
  1406. r=Instance.new("BodyAngularVelocity")
  1407. r.P=3000
  1408. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1409. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1410. r.Parent=hit.Parent.Torso]]
  1411. --critsound(2)
  1412.  
  1413. end
  1414. Damage=Damage+math.random(65,90)
  1415. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/20))
  1416. h:TakeDamage(Damage)
  1417. showDamage(hit.Parent,Damage,50)
  1418. vp=Instance.new("BodyVelocity")
  1419. vp.P=500
  1420. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1421. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1422. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1423. if Knockback>0 then
  1424. vp.Parent=hit.Parent.Torso
  1425. end
  1426. game:GetService("Debris"):AddItem(vp,.25)
  1427. --[[ r=Instance.new("BodyAngularVelocity")
  1428. r.P=3000
  1429. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1430. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1431. r.Parent=hit.Parent.Torso]]
  1432. game:GetService("Debris"):AddItem(r,.5)
  1433. c=Instance.new("ObjectValue")
  1434. c.Name="creator"
  1435. c.Value=Player
  1436. c.Parent=h
  1437. game:GetService("Debris"):AddItem(c,.5)
  1438. CRIT=false
  1439. hitDeb=true
  1440. AttackPos=6
  1441. end
  1442. end
  1443. end
  1444.  
  1445. DBHit=function(hit,DB,Dmg) --credits to turdulator for making this function :D
  1446. if hit.Parent==nil then
  1447. return
  1448. end
  1449. h=hit.Parent:FindFirstChild("Humanoid")
  1450. if h==nil then
  1451. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1452. end
  1453. t=hit.Parent:FindFirstChild("Torso")
  1454. if h~=nil and t~=nil then
  1455. --[[ if h.Parent==Character then
  1456. return
  1457. end]]
  1458. critsound(1.5)
  1459. Damage=Dmg+math.random(20,100)
  1460. h:TakeDamage(Damage)
  1461. c=Instance.new("ObjectValue")
  1462. c.Name="creator"
  1463. c.Value=game.Players.LocalPlayer
  1464. c.Parent=h
  1465. game:GetService("Debris"):AddItem(c,.5)
  1466. showDamage(hit.Parent,Damage,59)
  1467. vl=Instance.new("BodyVelocity")
  1468. vl.P=4500
  1469. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1470. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,10,0)
  1471. vl.Parent=t
  1472. game:GetService("Debris"):AddItem(vl,.2)
  1473. rl=Instance.new("BodyAngularVelocity")
  1474. rl.P=3000
  1475. rl.maxTorque=Vector3.new(5000,5000,5000)*500000000
  1476. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1477. rl.Parent=t
  1478. game:GetService("Debris"):AddItem(rl,.2)
  1479. else
  1480. if hit.CanCollide==false then
  1481. return
  1482. end
  1483. MagicCom:disconnect()
  1484. -- DBExplode(DB)
  1485. CRIT=false
  1486. end
  1487. end
  1488.  
  1489. showDamage=function(Char,Dealt,du)
  1490. m=Instance.new("Model")
  1491. m.Name=tostring(Dealt)
  1492. h=Instance.new("Humanoid")
  1493. h.Health=math.huge
  1494. h.MaxHealth=math.huge
  1495. h.Parent=m
  1496. c=Instance.new("Part")
  1497. c.Transparency=0
  1498. c.BrickColor=BrickColor:Red()
  1499. c.Name="Head"
  1500. c.TopSurface=0
  1501. c.BottomSurface=0
  1502. c.formFactor="Plate"
  1503. c.Size=Vector3.new(1,.4,1)
  1504. ms=Instance.new("CylinderMesh")
  1505. ms.Scale=Vector3.new(.8,.8,.8)
  1506. ms.Parent=c
  1507. c.Reflectance=0
  1508. Instance.new("BodyGyro").Parent=c
  1509. c.Parent=m
  1510. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1511. f=Instance.new("BodyPosition")
  1512. f.P=2000
  1513. f.D=100
  1514. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1515. f.position=c.Position+Vector3.new(0,3,0)
  1516. f.Parent=c
  1517. game:GetService("Debris"):AddItem(m,.5+du)
  1518. c.CanCollide=false
  1519. m.Parent=workspace
  1520. c.CanCollide=false
  1521. end
  1522.  
  1523. Anims.Walking = function()
  1524. derpcon1=Spider.LRa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  1525. derpcon2=Spider.LLa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  1526. derpcon3=Spider.URa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  1527. derpcon4=Spider.ULa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  1528. for i=0,1,difficulty do
  1529. if act.Jumping ~= true then
  1530. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+(20*i)),math.rad(-40-(40*i)),0)
  1531. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-(20*i)),math.rad(0),0)
  1532. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-(20*i)),math.rad(-40-(40*i)),0)
  1533. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+(20*i)),math.rad(0),0)
  1534. wait()
  1535. end
  1536. end
  1537. coroutine.resume(coroutine.create(function()
  1538. for i=0,1,difficulty do
  1539. if act.Jumping ~= true then
  1540. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+(20*i)),math.rad(40+(40*i)),0)
  1541. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-(20*i)),math.rad(0),0)
  1542. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-(20*i)),math.rad(40+(40*i)),0)
  1543. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+(20*i)),math.rad(0),0)
  1544. wait()
  1545. end
  1546. end
  1547. for i=1,0,-difficulty do
  1548. if act.Jumping ~= true then
  1549. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+(20*i)),math.rad(40+(40*i)),0)
  1550. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-(20*i)),math.rad(0),0)
  1551. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-(20*i)),math.rad(40+(40*i)),0)
  1552. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+(20*i)),math.rad(0),0)
  1553. wait()
  1554. end
  1555. end
  1556. end))
  1557. for i=1,0,-difficulty do
  1558. if act.Jumping ~= true then
  1559. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+(20*i)),math.rad(-40-(40*i)),0)
  1560. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-(20*i)),math.rad(0),0)
  1561. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-(20*i)),math.rad(-40-(40*i)),0)
  1562. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+(20*i)),math.rad(0),0)
  1563. wait()
  1564. end
  1565. end
  1566. derpcon1:disconnect()
  1567. derpcon2:disconnect()
  1568. derpcon3:disconnect()
  1569. derpcon4:disconnect()
  1570. if act.Jumping ~= true then
  1571. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40),0)
  1572. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100),math.rad(0),0)
  1573. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0)
  1574. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0)
  1575. end
  1576. end
  1577.  
  1578.  
  1579. --[[while true do
  1580. wait()
  1581. if act.Walking == true then return end
  1582. if Torso.Velocity.magnitude >= 19 then
  1583. act.Walking = true
  1584. Anims.Walking()
  1585. act.Walking = false
  1586. end
  1587. end ]]
  1588.  
  1589. t = it("HopperBin")
  1590. t.Name = "[Spider]"
  1591. t.Selected:connect(function(mouse)
  1592. Mouse = mouse
  1593.  
  1594. mouse.KeyDown:connect(function(k) act.keydown = true
  1595. pcall(function() act.key[k:lower()] = true end)
  1596. local kk = k:lower()
  1597. if kk == "w" or kk == "a" or kk == "s" or kk == "d" then
  1598. if act.Walking == true then return end
  1599. while act.key["w"] == true or act.key["a"] == true or act.key["s"] == true or act.key["d"] == true do
  1600. act.Walking = true
  1601. Anims.Walking()
  1602. wait()
  1603. end
  1604. act.Walking = false
  1605.  
  1606. end
  1607. if kk == "q" then
  1608. if roflcopter==false then
  1609. roflcopter=true
  1610. RoflCopter()
  1611. elseif roflcopter==true then
  1612. roflcopter=false
  1613. end
  1614. --[[if roflcopter==false then
  1615. roflcopter=true
  1616. Anim()
  1617. elseif roflcopter==true then
  1618. roflcopter=false
  1619. end]]
  1620. end
  1621. if kk == "e" then
  1622. bodypos.position=bodypos.position+Vector3.new(0,10,0)
  1623. end
  1624. if kk == "r" then
  1625. bodypos.position=bodypos.position-Vector3.new(0,10,0)
  1626. end
  1627. if attack == true then return end
  1628. if kk == "f" then
  1629. Shoot()
  1630. end
  1631. if kk == "g" then
  1632. Shoot2()
  1633. end
  1634. if kk == "h" then
  1635. Shoot3()
  1636. end
  1637. if kk == "j" then
  1638. Shoot4()
  1639. end
  1640. if kk == "z" then
  1641. Attack()
  1642. end
  1643. if kk == "x" then
  1644. DualAttack()
  1645. end
  1646. if kk == "c" then
  1647. MegaBonk()
  1648. end
  1649. if kk == "v" then
  1650. Stomp()
  1651. end
  1652. if kk == " " then
  1653. Jump()
  1654. end
  1655. end)
  1656.  
  1657. mouse.KeyUp:connect(function(k) act.keydown = false
  1658. pcall(function() act.key[k:lower()] = false end)
  1659. end)
  1660. end)
  1661.  
  1662. wait(0.1)
  1663. t.Parent = game.Players.LocalPlayer.Backpack
Add Comment
Please, Sign In to add comment