Advertisement
PASTEBINWARRIOR

Untitled

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