SHARE
TWEET

Spidermech

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