lolita5432

spider bot

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