Advertisement
Guest User

Untitled

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