Advertisement
Georgetanase792

SPIDER

Aug 21st, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.60 KB | None | 0 0
  1. Player = game.Players.georgetanase792
  2.  
  3. Char = Player.Character
  4.  
  5. Head = Char.Head
  6.  
  7. Torso = Char.Torso
  8.  
  9. h = Char.Humanoid
  10.  
  11. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  12.  
  13. local gairo = Instance.new("BodyGyro")
  14.  
  15. gairo.Parent = nil
  16.  
  17. if Char:findFirstChild("Weapon",true) ~= nil then
  18.  
  19. Char:findFirstChild("Weapon",true).Parent = nil
  20.  
  21. end
  22.  
  23. 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"," "}
  24.  
  25. --col = {"Really black,"Black"}
  26.  
  27. --col = {"Really red","Really black","Black"}
  28.  
  29. col = {"Really black","Really black","Really red"}
  30.  
  31. Anims = {}
  32.  
  33. act = {key = {}}
  34.  
  35. for i=1,#bets do table.insert(act.key,bets) end
  36.  
  37. act.mousedown = false
  38.  
  39. act.keydown = false
  40.  
  41. act.Walking = false
  42.  
  43. act.Jumping = false
  44.  
  45. act.Anim = ""
  46.  
  47. hitted=false
  48.  
  49. roflcopter=false
  50.  
  51. bodypos=Instance.new("BodyPosition")
  52.  
  53. holdshoot=false
  54.  
  55. Prop = {}
  56.  
  57. difficulty=0.05
  58.  
  59. Prop.LegLength = 5
  60.  
  61. Prop.LegWide = 1
  62.  
  63. Prop.BallSize = 0.9
  64.  
  65. --[[difficulty=0.1
  66.  
  67. Prop.LegLength = 4
  68.  
  69. Prop.LegWide = 0.8
  70.  
  71. Prop.BallSize = 1
  72.  
  73. difficulty=0.01
  74.  
  75. Prop.LegLength = 50
  76.  
  77. Prop.LegWide = 10
  78.  
  79. Prop.BallSize = 10.3
  80.  
  81. Prop.LegLength = 150
  82.  
  83. Prop.LegWide = 60
  84.  
  85. Prop.BallSize = 60.3]]
  86.  
  87. coroutine.resume(coroutine.create(function()
  88.  
  89. for i=0,50 do
  90.  
  91. wait()
  92.  
  93. h.WalkSpeed=18
  94.  
  95. --h.WalkSpeed=5
  96.  
  97. walksped=h.WalkSpeed
  98.  
  99. h.MaxHealth=math.huge
  100.  
  101. h.Health=math.huge
  102.  
  103. end
  104.  
  105. end))
  106.  
  107. Spider = {w = {}}
  108.  
  109. attack = false
  110.  
  111. attackdebounce = false
  112.  
  113. it = Instance.new
  114.  
  115. bc = BrickColor.new
  116.  
  117. v3 = Vector3.new
  118.  
  119. cf = CFrame.new
  120.  
  121. ca = CFrame.Angles
  122.  
  123. pi = math.pi
  124.  
  125. rd = math.rad
  126.  
  127. br = BrickColor.new
  128.  
  129. function r(pa,ob)
  130.  
  131. pcall(function() pa[ob]:Remove() end)
  132.  
  133. end
  134.  
  135. function p(pa,sh,x,y,z,c,a,tr,re,bc)
  136.  
  137. local fp = it("Part",pa)
  138.  
  139. fp.formFactor = "Custom"
  140.  
  141. fp.Shape = sh
  142.  
  143. fp.Size = v3(x,y,z)
  144.  
  145. fp.CanCollide = c
  146.  
  147. fp.Anchored = false
  148.  
  149. fp.BrickColor = br(bc)
  150.  
  151. fp.Transparency = tr
  152.  
  153. fp.Reflectance = re
  154.  
  155. fp.BottomSurface = 0
  156.  
  157. fp.TopSurface = 0
  158.  
  159. fp.CFrame = Torso.CFrame + Vector3.new(0,50,0)
  160.  
  161. fp.Velocity = Vector3.new(0,10,0)
  162.  
  163. fp:BreakJoints()
  164.  
  165. return fp
  166.  
  167. end
  168.  
  169. function weld(pa,p0,p1,x,y,z,a,b,c)
  170.  
  171. local fw = it("Weld",pa)
  172.  
  173. fw.Part0 = p0 fw.Part1 = p1
  174.  
  175. fw.C0 = cf(x,y,z) *ca(a,b,c)
  176.  
  177. return fw
  178.  
  179. end
  180.  
  181. function spm(ty,pa,ss)
  182.  
  183. local sp = it("SpecialMesh",pa)
  184.  
  185. sp.MeshType = ty
  186.  
  187. sp.Scale = Vector3.new(ss,ss,ss)
  188.  
  189. end
  190.  
  191.  
  192. pcall(function() Torso.Spider:Remove() end)
  193.  
  194. wait(0.1)
  195.  
  196. pack = it("Model",Torso)
  197.  
  198. pack.Name = "Spider"
  199.  
  200. Spider.Back = p(pack,"Block",1.2,1.7,0.5,false,false,0,0,col[1])
  201.  
  202. --Right Arm
  203.  
  204. Spider.RAb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[2]) spm("Sphere",Spider.RAb1,Prop.BallSize)
  205.  
  206. 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)
  207.  
  208. Spider.RAa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  209.  
  210. Spider.w.RAa1 = weld(Spider.RAa1,Spider.RAb1,Spider.RAa1,0,Prop.LegLength/2,0,0,0,0)
  211.  
  212. Spider.RAb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[2]) spm("Sphere",Spider.RAb2,Prop.BallSize)
  213.  
  214. 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)
  215.  
  216. Spider.RAa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  217.  
  218. Spider.w.RAa2 = weld(Spider.RAa2,Spider.RAb2,Spider.RAa2,0,Prop.LegLength/2,0,0,0,0)
  219.  
  220. --Left Arm
  221.  
  222. Spider.LAb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[2]) spm("Sphere",Spider.LAb1,Prop.BallSize)
  223.  
  224. 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)
  225.  
  226. Spider.LAa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  227.  
  228. Spider.w.LAa1 = weld(Spider.LAa1,Spider.LAb1,Spider.LAa1,0,Prop.LegLength/2,0,0,0,0)
  229.  
  230. Spider.LAb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[2]) spm("Sphere",Spider.LAb2,Prop.BallSize)
  231.  
  232. 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)
  233.  
  234. Spider.LAa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  235.  
  236. Spider.w.LAa2 = weld(Spider.LAa2,Spider.LAb2,Spider.LAa2,0,Prop.LegLength/2,0,0,0,0)
  237.  
  238. --Upper Right
  239.  
  240. Spider.URb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.URb1,Prop.BallSize)
  241.  
  242. 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)
  243.  
  244. Spider.URa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  245.  
  246. Spider.w.URa1 = weld(Spider.URa1,Spider.URb1,Spider.URa1,0,Prop.LegLength/2,0,0,0,0)
  247.  
  248. Spider.URb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.URb2,Prop.BallSize)
  249.  
  250. 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)
  251.  
  252. Spider.URa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  253.  
  254. Spider.w.URa2 = weld(Spider.URa2,Spider.URb2,Spider.URa2,0,Prop.LegLength/2,0,0,0,0)
  255.  
  256. --Upper Left
  257.  
  258. Spider.ULb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.ULb1,Prop.BallSize)
  259.  
  260. 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)
  261.  
  262. Spider.ULa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  263.  
  264. Spider.w.ULa1 = weld(Spider.ULa1,Spider.ULb1,Spider.ULa1,0,Prop.LegLength/2,0,0,0,0)
  265.  
  266. Spider.ULb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.ULb2,Prop.BallSize)
  267.  
  268. 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)
  269.  
  270. Spider.ULa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  271.  
  272. Spider.w.ULa2 = weld(Spider.ULa2,Spider.ULb2,Spider.ULa2,0,Prop.LegLength/2,0,0,0,0)
  273.  
  274. --Lower Right
  275.  
  276. Spider.LRb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.LRb1,Prop.BallSize)
  277.  
  278. 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)
  279.  
  280. Spider.LRa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  281.  
  282. Spider.w.LRa1 = weld(Spider.LRa1,Spider.LRb1,Spider.LRa1,0,Prop.LegLength/2,0,0,0,0)
  283.  
  284. Spider.LRb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.LRb2,Prop.BallSize)
  285.  
  286. 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)
  287.  
  288. Spider.LRa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  289.  
  290. Spider.w.LRa2 = weld(Spider.LRa2,Spider.LRb2,Spider.LRa2,0,Prop.LegLength/2,0,0,0,0)
  291.  
  292. --Lower Left
  293.  
  294. Spider.LLb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.LLb1,Prop.BallSize)
  295.  
  296. 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)
  297.  
  298. Spider.LLa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  299.  
  300. Spider.w.LLa1 = weld(Spider.LLa1,Spider.LLb1,Spider.LLa1,0,Prop.LegLength/2,0,0,0,0)
  301.  
  302. Spider.LLb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.LLb2,Prop.BallSize)
  303.  
  304. 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)
  305.  
  306. Spider.LLa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1])
  307.  
  308. Spider.w.LLa2 = weld(Spider.LLa2,Spider.LLb2,Spider.LLa2,0,Prop.LegLength/2,0,0,0,0)
  309.  
  310. local prt1 = Instance.new("Part")
  311.  
  312. prt1.formFactor = 1
  313.  
  314. prt1.Parent = pack
  315.  
  316. prt1.CanCollide = false
  317.  
  318. prt1.BrickColor = br(col[1])
  319.  
  320. prt1.Name = "Part1"
  321.  
  322. prt1.Size = Vector3.new(1,1,1)
  323.  
  324. prt1.Position = Torso.Position
  325.  
  326. local prt2 = Instance.new("Part")
  327.  
  328. prt2.formFactor = 1
  329.  
  330. prt2.Parent = pack
  331.  
  332. prt2.CanCollide = false
  333.  
  334. prt2.BrickColor = BrickColor.new("Really red")
  335.  
  336. prt2.Name = "Part2"
  337.  
  338. prt2.Reflectance=0.3
  339.  
  340. prt2.Size = Vector3.new(1,2,1)
  341.  
  342. prt2.Position = Torso.Position
  343.  
  344. local prt3 = Instance.new("Part")
  345.  
  346. prt3.formFactor = 1
  347.  
  348. prt3.Parent = pack
  349.  
  350. prt3.CanCollide = false
  351.  
  352. prt3.BrickColor = BrickColor.new("Medium stone grey")
  353.  
  354. prt3.Name = "Part3"
  355.  
  356. prt3.Reflectance=0.6
  357.  
  358. prt3.Size = Vector3.new(1,2,1)
  359.  
  360. prt3.Position = Torso.Position
  361.  
  362. local prt4 = Instance.new("Part")
  363.  
  364. prt4.formFactor = 1
  365.  
  366. prt4.Parent = pack
  367.  
  368. prt4.CanCollide = false
  369.  
  370. prt4.BrickColor = BrickColor.new("Really red")
  371.  
  372. prt4.Name = "Part4"
  373.  
  374. prt4.Reflectance=0.3
  375.  
  376. prt4.Size = Vector3.new(1,1,1)
  377.  
  378. prt4.Position = Torso.Position
  379.  
  380. local prt5 = Instance.new("Part")
  381.  
  382. prt5.formFactor = 1
  383.  
  384. prt5.Parent = pack
  385.  
  386. prt5.CanCollide = false
  387.  
  388. prt5.BrickColor = br(col[1])
  389.  
  390. prt5.Name = "Part5"
  391.  
  392. prt5.Size = Vector3.new(1,1,1)
  393.  
  394. prt5.Position = Torso.Position
  395.  
  396. local prt6 = Instance.new("Part")
  397.  
  398. prt6.formFactor = 1
  399.  
  400. prt6.Parent = pack
  401.  
  402. prt6.CanCollide = false
  403.  
  404. prt6.BrickColor = br(col[1])
  405.  
  406. prt6.Name = "Part6"
  407.  
  408. prt6.Size = Vector3.new(1,1,1)
  409.  
  410. prt6.Position = Torso.Position
  411.  
  412. local prt7 = Instance.new("Part")
  413.  
  414. prt7.formFactor = 1
  415.  
  416. prt7.Parent = pack
  417.  
  418. prt7.CanCollide = false
  419.  
  420. prt7.BrickColor = BrickColor.new("Really black")
  421.  
  422. prt7.Name = "Part7"
  423.  
  424. prt7.Size = Vector3.new(1,1,1)
  425.  
  426. prt7.Position = Torso.Position
  427.  
  428. local prt8 = Instance.new("Part")
  429.  
  430. prt8.formFactor = 1
  431.  
  432. prt8.Parent = pack
  433.  
  434. prt8.CanCollide = false
  435.  
  436. prt8.BrickColor = br(col[1])
  437.  
  438. prt8.Name = "Part8"
  439.  
  440. prt8.Size = Vector3.new(1,1,1)
  441.  
  442. prt8.Position = Torso.Position
  443.  
  444. local prt9 = Instance.new("Part")
  445.  
  446. prt9.formFactor = 1
  447.  
  448. prt9.Parent = pack
  449.  
  450. prt9.CanCollide = false
  451.  
  452. prt9.BrickColor = br(col[1])
  453.  
  454. prt9.Name = "Part9"
  455.  
  456. prt9.Size = Vector3.new(1,1,1)
  457.  
  458. prt9.Position = Torso.Position
  459.  
  460. local prt10 = Instance.new("Part")
  461.  
  462. prt10.formFactor = 1
  463.  
  464. prt10.Parent = pack
  465.  
  466. prt10.CanCollide = false
  467.  
  468. prt10.BrickColor = br(col[1])
  469.  
  470. prt10.Name = "Part10"
  471.  
  472. prt10.Size = Vector3.new(1,1,1)
  473.  
  474. prt10.Position = Torso.Position
  475.  
  476. local prt11 = Instance.new("Part")
  477.  
  478. prt11.formFactor = 1
  479.  
  480. prt11.Parent = pack
  481.  
  482. prt11.CanCollide = false
  483.  
  484. prt11.BrickColor = br(col[1])
  485.  
  486. prt11.Name = "Part11"
  487.  
  488. prt11.Size = Vector3.new(1,1,1)
  489.  
  490. prt11.Position = Torso.Position
  491.  
  492. local prt12 = Instance.new("Part")
  493.  
  494. prt12.formFactor = 1
  495.  
  496. prt12.Parent = pack
  497.  
  498. prt12.CanCollide = false
  499.  
  500. prt12.BrickColor = br(col[1])
  501.  
  502. prt12.Name = "Part12"
  503.  
  504. prt12.Size = Vector3.new(1,1,1)
  505.  
  506. prt12.Position = Torso.Position
  507.  
  508. local msh1 = Instance.new("BlockMesh")
  509.  
  510. msh1.Parent = prt1
  511.  
  512. --msh1.Scale = Vector3.new(0.9,0.8,3)
  513.  
  514. msh1.Scale = Vector3.new(Prop.LegWide/0.9,Prop.LegWide/1,Prop.LegLength/1.3)
  515.  
  516. local msh2 = Instance.new("BlockMesh")
  517.  
  518. msh2.Parent = prt2
  519.  
  520. --msh2.Scale = Vector3.new(0.3,2.5,1)
  521.  
  522. msh2.Scale = Vector3.new(Prop.LegWide/2.5,Prop.LegLength/1.6,Prop.LegWide*1.3)
  523.  
  524. local msh3 = Instance.new("BlockMesh")
  525.  
  526. msh3.Parent = prt3
  527.  
  528. --msh3.Scale = Vector3.new(0.1,2.6,1.5)
  529.  
  530. msh3.Scale = Vector3.new(Prop.LegWide/6,Prop.LegLength/1.6,Prop.LegWide*1.9)
  531.  
  532. local msh4 = Instance.new("SpecialMesh")
  533.  
  534. msh4.Parent = prt4
  535.  
  536. msh4.MeshType = "Wedge"
  537.  
  538. --msh4.Scale = Vector3.new(0.3,2,1)
  539.  
  540. msh4.Scale = Vector3.new(Prop.LegWide/2.5,Prop.LegLength/2,Prop.LegWide*1.3)
  541.  
  542. local msh5 = Instance.new("CylinderMesh")
  543.  
  544. msh5.Parent = prt5
  545.  
  546. --msh5.Scale = Vector3.new(1.5,1,1.5)
  547.  
  548. msh5.Scale = Vector3.new(Prop.LegWide*2,Prop.LegLength/4,Prop.LegWide*2)
  549.  
  550. local msh6 = Instance.new("CylinderMesh")
  551.  
  552. msh6.Parent = prt6
  553.  
  554. --msh6.Scale = Vector3.new(2.5,1.6,2.5)
  555.  
  556. msh6.Scale = Vector3.new(Prop.LegWide*3.1,Prop.LegLength/2.5,Prop.LegWide*3.1)
  557.  
  558. local msh7 = Instance.new("CylinderMesh")
  559.  
  560. msh7.Parent = prt7
  561.  
  562. --msh7.Scale = Vector3.new(1.4,1.7,1.4)
  563.  
  564. msh7.Scale = Vector3.new(Prop.LegWide*1.8,Prop.LegLength/2.3,Prop.LegWide*1.8)
  565.  
  566. local msh8 = Instance.new("BlockMesh")
  567.  
  568. msh8.Parent = prt8
  569.  
  570. --msh8.Scale = Vector3.new(0.5,2,0.5)
  571.  
  572. msh8.Scale = Vector3.new(Prop.LegWide/1.6,Prop.LegLength/2,Prop.LegWide/1.6)
  573.  
  574. local msh9 = Instance.new("BlockMesh")
  575.  
  576. msh9.Parent = prt9
  577.  
  578. --msh9.Scale = Vector3.new(0.5,2,0.5)
  579.  
  580. msh9.Scale = Vector3.new(Prop.LegWide/1.6,Prop.LegLength/2,Prop.LegWide/1.6)
  581.  
  582. local msh10 = Instance.new("BlockMesh")
  583.  
  584. msh10.Parent = prt10
  585.  
  586. --msh10.Scale = Vector3.new(0.5,2,0.5)
  587.  
  588. msh10.Scale = Vector3.new(Prop.LegWide/1.6,Prop.LegLength/2,Prop.LegWide/1.6)
  589.  
  590. local msh11 = Instance.new("BlockMesh")
  591.  
  592. msh11.Parent = prt11
  593.  
  594. --msh11.Scale = Vector3.new(0.5,2,0.5)
  595.  
  596. msh11.Scale = Vector3.new(Prop.LegWide/1.6,Prop.LegLength/2,Prop.LegWide/1.6)
  597.  
  598. local msh12 = Instance.new("BlockMesh")
  599.  
  600. msh12.Parent = prt12
  601.  
  602. --msh12.Scale = Vector3.new(0.5,2,0.5)
  603.  
  604. msh12.Scale = Vector3.new(0,0,0)
  605.  
  606. local wld1 = Instance.new("Weld")
  607.  
  608. wld1.Parent = prt1
  609.  
  610. wld1.Part0 = prt1
  611.  
  612. wld1.Part1 = Spider.RAa2
  613.  
  614. --wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.5,0)
  615.  
  616. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/6,0)
  617.  
  618. local wld2 = Instance.new("Weld")
  619.  
  620. wld2.Parent = prt2
  621.  
  622. wld2.Part0 = prt2
  623.  
  624. wld2.Part1 = prt1
  625.  
  626. --wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-3,0)
  627.  
  628. wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/1.3,0)
  629.  
  630. local wld3 = Instance.new("Weld")
  631.  
  632. wld3.Parent = prt3
  633.  
  634. wld3.Part0 = prt3
  635.  
  636. wld3.Part1 = prt1
  637.  
  638. --wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-3,0)
  639.  
  640. wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/1.3,0)
  641.  
  642. local wld4 = Instance.new("Weld")
  643.  
  644. wld4.Parent = prt4
  645.  
  646. wld4.Part0 = prt4
  647.  
  648. wld4.Part1 = prt2
  649.  
  650. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-4.2,0)
  651.  
  652. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/1.1,0)
  653.  
  654. local wld5 = Instance.new("Weld")
  655.  
  656. wld5.Parent = prt5
  657.  
  658. wld5.Part0 = prt5
  659.  
  660. wld5.Part1 = Spider.LAa2
  661.  
  662. --wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-2.5,0)
  663.  
  664. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/1.6,0)
  665.  
  666. local wld6 = Instance.new("Weld")
  667.  
  668. wld6.Parent = prt6
  669.  
  670. wld6.Part0 = prt6
  671.  
  672. wld6.Part1 = prt5
  673.  
  674. --wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.5,0)
  675.  
  676. wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/2.6,0)
  677.  
  678. local wld7 = Instance.new("Weld")
  679.  
  680. wld7.Parent = prt7
  681.  
  682. wld7.Part0 = prt7
  683.  
  684. wld7.Part1 = prt6
  685.  
  686. wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  687.  
  688. local wld8 = Instance.new("Weld")
  689.  
  690. wld8.Parent = prt8
  691.  
  692. wld8.Part0 = prt8
  693.  
  694. wld8.Part1 = prt6
  695.  
  696. --wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.5) * CFrame.new(1.5,-1,0)
  697.  
  698. wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.5) * CFrame.new(Prop.LegWide*2,-Prop.LegLength/4,0)
  699.  
  700. local wld9 = Instance.new("Weld")
  701.  
  702. wld9.Parent = prt9
  703.  
  704. wld9.Part0 = prt9
  705.  
  706. wld9.Part1 = prt6
  707.  
  708. --wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0.5) * CFrame.new(-1.5,-1,0)
  709.  
  710. wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0.5) * CFrame.new(-Prop.LegWide*2,-Prop.LegLength/4,0)
  711.  
  712. local wld10 = Instance.new("Weld")
  713.  
  714. wld10.Parent = prt10
  715.  
  716. wld10.Part0 = prt10
  717.  
  718. wld10.Part1 = prt6
  719.  
  720. --wld10.C0 = CFrame.fromEulerAnglesXYZ(-0.5,0,0) * CFrame.new(0,-1,-1.5)
  721.  
  722. wld10.C0 = CFrame.fromEulerAnglesXYZ(-0.5,0,0) * CFrame.new(0,-Prop.LegLength/4,-Prop.LegWide*2)
  723.  
  724. local wld11 = Instance.new("Weld")
  725.  
  726. wld11.Parent = prt11
  727.  
  728. wld11.Part0 = prt11
  729.  
  730. wld11.Part1 = prt6
  731.  
  732. --wld11.C0 = CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0,-1,1.5)
  733.  
  734. wld11.C0 = CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0,-Prop.LegLength/4,Prop.LegWide*2)
  735.  
  736. local wld12 = Instance.new("Weld")
  737.  
  738. wld12.Parent = prt12
  739.  
  740. wld12.Part0 = prt12
  741.  
  742. wld12.Part1 = prt6
  743.  
  744. --wld12.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,0,0)
  745.  
  746. wld12.C0 = CFrame.fromEulerAnglesXYZ(-1.57,0,0) * CFrame.new(0,0,0)
  747.  
  748. wait()
  749.  
  750. Spider.w.Back = weld(Spider.Back,Torso,Spider.Back,0,0,0.5,0,0,0)
  751.  
  752. wait()
  753.  
  754. Torso.CFrame = Torso.CFrame + Vector3.new(0,10,0)
  755.  
  756. function Anim()
  757.  
  758. attack=true
  759.  
  760. for i=0,1,0.1 do
  761.  
  762. wait()
  763.  
  764. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-(120*i)),math.rad(70-(70*i)),0)
  765.  
  766. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+(10*i)),math.rad(40+(50*i)),0)
  767.  
  768. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-(120*i)),math.rad(-70+(70*i)),0)
  769.  
  770. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+(10*i)),math.rad(-40-(50*i)),0)
  771.  
  772. end
  773.  
  774. bodypos=Instance.new("BodyPosition")
  775.  
  776. bodypos.P=500
  777.  
  778. bodypos.D=100
  779.  
  780. bodypos.maxForce=Vector3.new(0,math.huge,0)
  781.  
  782. bodypos.position=Head.Position+Vector3.new(0,50,0)
  783.  
  784. bodypos.Parent=Head
  785.  
  786. while roflcopter==true do
  787.  
  788. for i = 0,1,0.1 do
  789.  
  790. wait()
  791.  
  792. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-(120)),math.rad(70-(70)),0)
  793.  
  794. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+(10)),math.rad(90+(360*i)),0)
  795.  
  796. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-(120)),math.rad(-70+(70)),0)
  797.  
  798. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+(10)),math.rad(-90+(360*i)),0)
  799.  
  800. end
  801.  
  802. end
  803.  
  804. bodypos.Parent=nil
  805.  
  806. for i=0,1,0.1 do
  807.  
  808. wait()
  809.  
  810. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-(120-120*i)),math.rad(70-(70-70*i)),0)
  811.  
  812. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+(10-10*i)),math.rad(90-(50*i)),0)
  813.  
  814. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-(120-120*i)),math.rad(-70+(70-70*i)),0)
  815.  
  816. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+(10-10*i)),math.rad(-90+(50*i)),0)
  817.  
  818. end
  819.  
  820. attack=false
  821.  
  822. end
  823.  
  824. function RoflCopter()
  825.  
  826. act.Jumping=true
  827.  
  828. for i=0,1,0.1 do
  829.  
  830. wait()
  831.  
  832. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40),0)
  833.  
  834. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+80*i),math.rad(0),0)
  835.  
  836. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0)
  837.  
  838. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-80*i),math.rad(0),0)
  839.  
  840. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80),math.rad(40),0)
  841.  
  842. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+80*i),math.rad(0),0)
  843.  
  844. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40),0)
  845.  
  846. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-80*i),math.rad(0),0)
  847.  
  848. end
  849.  
  850. bodypos.P=500
  851.  
  852. bodypos.D=100
  853.  
  854. bodypos.maxForce=Vector3.new(0,math.huge,0)
  855.  
  856. bodypos.position=Head.Position+Vector3.new(0,10,0)
  857.  
  858. bodypos.Parent=Head
  859.  
  860. while roflcopter==true do
  861.  
  862. derpcon1=Spider.LRa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  863.  
  864. derpcon2=Spider.LLa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  865.  
  866. derpcon3=Spider.URa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  867.  
  868. derpcon4=Spider.ULa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  869.  
  870. for i=0,1,0.1 do
  871.  
  872. wait()
  873.  
  874. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40+360*i),0)
  875.  
  876. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+80),math.rad(0),0)
  877.  
  878. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40+360*i),0)
  879.  
  880. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-80),math.rad(0),0)
  881.  
  882. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80),math.rad(40+360*i),0)
  883.  
  884. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+80),math.rad(0),0)
  885.  
  886. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40+360*i),0)
  887.  
  888. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-80),math.rad(0),0)
  889.  
  890. end
  891.  
  892. derpcon1:disconnect()
  893.  
  894. derpcon2:disconnect()
  895.  
  896. derpcon3:disconnect()
  897.  
  898. derpcon4:disconnect()
  899.  
  900. end
  901.  
  902. bodypos.Parent=nil
  903.  
  904. for i=0,1,0.1 do
  905.  
  906. wait()
  907.  
  908. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40),0)
  909.  
  910. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+80-80*i),math.rad(0),0)
  911.  
  912. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0)
  913.  
  914. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-80+80*i),math.rad(0),0)
  915.  
  916. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80),math.rad(40),0)
  917.  
  918. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+80-80*i),math.rad(0),0)
  919.  
  920. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40),0)
  921.  
  922. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-80+80*i),math.rad(0),0)
  923.  
  924. end
  925.  
  926. act.Jumping=false
  927.  
  928. end
  929.  
  930. function Shoot()
  931.  
  932. attack=true
  933.  
  934. for i=0,1,0.1 do
  935.  
  936. wait()
  937.  
  938. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  939.  
  940. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  941.  
  942. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50*i),math.rad(-70),0)
  943.  
  944. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+20*i),math.rad(-40+40*i),0)
  945.  
  946. end
  947.  
  948. gairo.Parent = Head
  949.  
  950. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  951.  
  952. gairo.P = 20e+003
  953.  
  954. gairo.cframe = Head.CFrame
  955.  
  956. for i=0,1,0.1 do
  957.  
  958. wait()
  959.  
  960. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1.57*i)
  961.  
  962. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  963.  
  964. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  965.  
  966. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50+20*i),math.rad(-70-20*i),0)
  967.  
  968. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+20+80*i),math.rad(-40+40),0)
  969.  
  970. end
  971.  
  972. wait(0.1)
  973.  
  974. for i = 1,3 do
  975.  
  976. DerpMagic(prt7,Prop.LegWide*4,Prop.LegWide*4,Prop.LegWide*4,0,1,0,BrickColor.new("Black"))
  977.  
  978. shoottrail2(prt7)
  979.  
  980. wait(0.5)
  981.  
  982. end
  983.  
  984. for i=0,1,0.1 do
  985.  
  986. wait()
  987.  
  988. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1.57-1.57*i)
  989.  
  990. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  991.  
  992. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  993.  
  994. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50+20+30*i),math.rad(-70-20+20*i),0)
  995.  
  996. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+20+80-100*i),math.rad(-40+40-40*i),0)
  997.  
  998. end
  999.  
  1000. gairo.Parent=nil
  1001.  
  1002. Torso.Neck.C0=necko
  1003.  
  1004. attack=false
  1005.  
  1006. end
  1007.  
  1008. function Shoot2()
  1009.  
  1010. attack=true
  1011.  
  1012. for i=0,1,0.1 do
  1013.  
  1014. wait()
  1015.  
  1016. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  1017.  
  1018. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  1019.  
  1020. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-60*i),math.rad(-70),0)
  1021.  
  1022. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+15*i),math.rad(-40-60*i),0)
  1023.  
  1024. end
  1025.  
  1026. for i=0,0.3,0.1 do
  1027.  
  1028. wait(0.1)
  1029.  
  1030. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  1031.  
  1032. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  1033.  
  1034. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-60),math.rad(-70),0)
  1035.  
  1036. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+15+40*i),math.rad(-40-60),0)
  1037.  
  1038. DerpMagic(prt7,Prop.LegWide*4,Prop.LegWide*4,Prop.LegWide*4,0,1,0,BrickColor.new("Black"))
  1039.  
  1040. shoottrail2(prt7)
  1041.  
  1042. end
  1043.  
  1044. for i=0,1,0.1 do
  1045.  
  1046. wait()
  1047.  
  1048. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  1049.  
  1050. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  1051.  
  1052. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-60+60*i),math.rad(-70),0)
  1053.  
  1054. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+15+20-55*i),math.rad(-40-60+60*i),0)
  1055.  
  1056. end
  1057.  
  1058. attack=false
  1059.  
  1060. end
  1061.  
  1062. function Shoot3()
  1063.  
  1064. attack=true
  1065.  
  1066. for i=0,1,0.1 do
  1067.  
  1068. wait()
  1069.  
  1070. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  1071.  
  1072. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  1073.  
  1074. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50*i),math.rad(-70+70*i),math.rad(90*i))
  1075.  
  1076. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+60*i),math.rad(-40+40*i),math.rad(3*i))
  1077.  
  1078. end
  1079.  
  1080. for i=0,1,0.1 do
  1081.  
  1082. wait()
  1083.  
  1084. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  1085.  
  1086. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  1087.  
  1088. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50+60*i),math.rad(-70+70),math.rad(90))
  1089.  
  1090. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+60+40*i),math.rad(-40+40),math.rad(3))
  1091.  
  1092. DerpMagic(prt7,Prop.LegWide*4,Prop.LegWide*4,Prop.LegWide*4,0,1,0,BrickColor.new("Black"))
  1093.  
  1094. shoottrail2(prt7)
  1095.  
  1096. end
  1097.  
  1098. for i=0,1,0.1 do
  1099.  
  1100. wait()
  1101.  
  1102. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  1103.  
  1104. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  1105.  
  1106. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50+60-10*i),math.rad(-70+70-70*i),math.rad(90-90*i))
  1107.  
  1108. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+60+40-100*i),math.rad(-40+40-40*i),math.rad(3-3*i))
  1109.  
  1110. end
  1111.  
  1112. attack=false
  1113.  
  1114. end
  1115.  
  1116. function Shoot4()
  1117.  
  1118. attack=true
  1119.  
  1120. for i=0,1,0.1 do
  1121.  
  1122. wait()
  1123.  
  1124. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  1125.  
  1126. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  1127.  
  1128. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120+60*i),math.rad(-70+70*i),math.rad(0))
  1129.  
  1130. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+50*i),math.rad(-40+40*i),math.rad(0))
  1131.  
  1132. end
  1133.  
  1134. for i=0,1,0.1 do
  1135.  
  1136. wait()
  1137.  
  1138. DerpMagic(prt7,Prop.LegWide*4,Prop.LegWide*4,Prop.LegWide*4,0,1,0,BrickColor.new("Black"))
  1139.  
  1140. shoottrail2(prt7)
  1141.  
  1142. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  1143.  
  1144. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  1145.  
  1146. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120+60),math.rad(-70+70),math.rad(0))
  1147.  
  1148. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+50+50*i),math.rad(-40+40),math.rad(0))
  1149.  
  1150. end
  1151.  
  1152. for i=0,1,0.1 do
  1153.  
  1154. wait()
  1155.  
  1156. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0)
  1157.  
  1158. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0)
  1159.  
  1160. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120+60-60*i),math.rad(-70+70-70*i),math.rad(0))
  1161.  
  1162. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+50+50-100*i),math.rad(-40+40-40*i),math.rad(0))
  1163.  
  1164. end
  1165.  
  1166. attack=false
  1167.  
  1168. end
  1169.  
  1170. function Attack()
  1171.  
  1172. attack=true
  1173.  
  1174. for i=0,1,0.1 do
  1175.  
  1176. wait()
  1177.  
  1178. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80*i),math.rad(70-70*i),0)
  1179.  
  1180. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40-40*i),0)
  1181.  
  1182. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  1183.  
  1184. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  1185.  
  1186. end
  1187.  
  1188. ss(1)
  1189.  
  1190. con1=prt2.Touched:connect(function(hit) slashdamage1(hit,Prop.LegLength*3,20) end)
  1191.  
  1192. con2=Spider.RAa2.Touched:connect(function(hit) slashdamage1(hit,Prop.LegLength*3,20) end)
  1193.  
  1194. for i=0,1,0.2 do
  1195.  
  1196. wait()
  1197.  
  1198. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80+90*i),math.rad(70-70),0)
  1199.  
  1200. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+70*i),math.rad(40-40),0)
  1201.  
  1202. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  1203.  
  1204. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  1205.  
  1206. end
  1207.  
  1208. wait(0.1)
  1209.  
  1210. con1:disconnect()
  1211.  
  1212. con2:disconnect()
  1213.  
  1214. for i=0,1,0.1 do
  1215.  
  1216. wait()
  1217.  
  1218. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120+10-10*i),math.rad(70-70+70*i),0)
  1219.  
  1220. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+70-70*i),math.rad(40-40+40*i),0)
  1221.  
  1222. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  1223.  
  1224. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  1225.  
  1226. end
  1227.  
  1228. attack=false
  1229.  
  1230. end
  1231.  
  1232. function MegaBonk()
  1233.  
  1234. attack=true
  1235.  
  1236. for i=0,1,0.1 do
  1237.  
  1238. wait()
  1239.  
  1240. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80*i),math.rad(70-70*i),0)
  1241.  
  1242. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40-40*i),0)
  1243.  
  1244. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  1245.  
  1246. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  1247.  
  1248. end
  1249.  
  1250. wait(0.1)
  1251.  
  1252. for i=0,1,0.02 do
  1253.  
  1254. wait()
  1255.  
  1256. MMMAGIC(prt4,Prop.BallSize*2,Prop.BallSize*2,Prop.BallSize*2,0,Prop.LegLength/2,0,BrickColor.new("Really black"))
  1257.  
  1258. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80-30*i),math.rad(70-70),0)
  1259.  
  1260. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100-30*i),math.rad(40-40),0)
  1261.  
  1262. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  1263.  
  1264. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  1265.  
  1266. end
  1267.  
  1268. ss(1.3)
  1269.  
  1270. con1=prt2.Touched:connect(function(hit) Damagefunc2(hit,Prop.LegLength*10,100) end)
  1271.  
  1272. con2=Spider.RAa2.Touched:connect(function(hit) Damagefunc2(hit,Prop.LegLength*10,100) end)
  1273.  
  1274. for i=0,1,0.2 do
  1275.  
  1276. wait()
  1277.  
  1278. MMMAGIC(prt4,Prop.BallSize*2,Prop.BallSize*2,Prop.BallSize*2,0,Prop.LegLength/2,0,BrickColor.new("Really black"))
  1279.  
  1280. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80-30+110*i),math.rad(70-70),0)
  1281.  
  1282. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100-30+120*i),math.rad(40-40),0)
  1283.  
  1284. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  1285.  
  1286. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  1287.  
  1288. end
  1289.  
  1290. MMMAGIC(prt4,Prop.BallSize*4,Prop.BallSize*4,Prop.BallSize*4,0,Prop.LegLength/2,0,BrickColor.new("Really black"))
  1291.  
  1292. wait(0.5)
  1293.  
  1294. con1:disconnect()
  1295.  
  1296. con2:disconnect()
  1297.  
  1298. for i=0,1,0.1 do
  1299.  
  1300. wait()
  1301.  
  1302. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-110+110),math.rad(70-70+70*i),0)
  1303.  
  1304. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100-30+120-100*i),math.rad(40-40+40*i),0)
  1305.  
  1306. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  1307.  
  1308. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  1309.  
  1310. end
  1311.  
  1312. attack=false
  1313.  
  1314. end
  1315.  
  1316. function DualAttack()
  1317.  
  1318. attack=true
  1319.  
  1320. for i=0,1,0.1 do
  1321.  
  1322. wait()
  1323.  
  1324. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-30*i),math.rad(70-90*i),0)
  1325.  
  1326. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40+40*i),0)
  1327.  
  1328. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  1329.  
  1330. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  1331.  
  1332. end
  1333.  
  1334. ss(1)
  1335.  
  1336. con1=prt2.Touched:connect(function(hit) slashdamage1(hit,Prop.LegLength*3,20) end)
  1337.  
  1338. con2=Spider.RAa2.Touched:connect(function(hit) slashdamage1(hit,Prop.LegLength*3,20) end)
  1339.  
  1340. for i=0,1,0.2 do
  1341.  
  1342. wait()
  1343.  
  1344. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-30),math.rad(70-90+100*i),0)
  1345.  
  1346. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+50*i),math.rad(40+40),0)
  1347.  
  1348. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  1349.  
  1350. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  1351.  
  1352. end
  1353.  
  1354. con1:disconnect()
  1355.  
  1356. con2:disconnect()
  1357.  
  1358. for i=0,1,0.1 do
  1359.  
  1360. wait()
  1361.  
  1362. Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-30+30*i),math.rad(70-90+100-10*i),0)
  1363.  
  1364. Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+50-50*i),math.rad(40+40-40*i),0)
  1365.  
  1366. Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0)
  1367.  
  1368. Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0)
  1369.  
  1370. end
  1371.  
  1372. attack=false
  1373.  
  1374. end
  1375.  
  1376. function Stomp()
  1377.  
  1378. attack=true
  1379.  
  1380. local vel2 = Instance.new("BodyVelocity")
  1381.  
  1382. vel2.Parent = Player.Character.Torso
  1383.  
  1384. vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1385.  
  1386. vel2.velocity = Vector3.new(0,1,0) * 20
  1387.  
  1388. wait(0.05)
  1389.  
  1390. vel2.Parent=nil
  1391.  
  1392. act.Jumping=true
  1393.  
  1394. Char.Humanoid.WalkSpeed=0
  1395.  
  1396. for i=0,1,0.1 do
  1397.  
  1398. wait()
  1399.  
  1400. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80-50*i),math.rad(-40),0)
  1401.  
  1402. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+50*i),math.rad(0),0)
  1403.  
  1404. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0)
  1405.  
  1406. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0)
  1407.  
  1408. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80-50*i),math.rad(40),0)
  1409.  
  1410. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+50*i),math.rad(0),0)
  1411.  
  1412. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40),0)
  1413.  
  1414. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0)
  1415.  
  1416. end
  1417.  
  1418. for i=0,1,0.1 do
  1419.  
  1420. wait()
  1421.  
  1422. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80-50),math.rad(-40),0)
  1423.  
  1424. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+50),math.rad(0),0)
  1425.  
  1426. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50*i),math.rad(-40+40*i),0)
  1427.  
  1428. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-30*i),math.rad(0),0)
  1429.  
  1430. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80-50),math.rad(40),0)
  1431.  
  1432. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+50),math.rad(0),0)
  1433.  
  1434. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50*i),math.rad(40-40*i),0)
  1435.  
  1436. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-30*i),math.rad(0),0)
  1437.  
  1438. end
  1439.  
  1440. ss(0.9)
  1441.  
  1442. con1=Spider.URa1.Touched:connect(function(hit) DBHit(hit,50,Prop.LegLength*2) end)
  1443.  
  1444. con2=Spider.URa2.Touched:connect(function(hit) DBHit(hit,50,Prop.LegLength*2) end)
  1445.  
  1446. for i=0,1,0.2 do
  1447.  
  1448. wait()
  1449.  
  1450. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80-50+50*i),math.rad(-40),0)
  1451.  
  1452. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+50-50*i),math.rad(0),0)
  1453.  
  1454. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50+50*i),math.rad(-40+40),0)
  1455.  
  1456. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-30+30*i),math.rad(0),0)
  1457.  
  1458. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80-50+50*i),math.rad(40),0)
  1459.  
  1460. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+50-50*i),math.rad(0),0)
  1461.  
  1462. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50+50*i),math.rad(40-40),0)
  1463.  
  1464. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-30+30*i),math.rad(0),0)
  1465.  
  1466. end
  1467.  
  1468. wait(0.1)
  1469.  
  1470. con1:disconnect()
  1471.  
  1472. con2:disconnect()
  1473.  
  1474. for i=0,1,0.1 do
  1475.  
  1476. wait()
  1477.  
  1478. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80-50+50),math.rad(-40),0)
  1479.  
  1480. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+50-50),math.rad(0),0)
  1481.  
  1482. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50+50),math.rad(-40+40-40*i),0)
  1483.  
  1484. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-30+30),math.rad(0),0)
  1485.  
  1486. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80-50+50),math.rad(40),0)
  1487.  
  1488. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+50-50),math.rad(0),0)
  1489.  
  1490. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50+50),math.rad(40-40+40*i),0)
  1491.  
  1492. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-30+30),math.rad(0),0)
  1493.  
  1494. end
  1495.  
  1496. Char.Humanoid.WalkSpeed=walksped
  1497.  
  1498. act.Jumping=false
  1499.  
  1500. attack=false
  1501.  
  1502. end
  1503.  
  1504. function Jump()
  1505.  
  1506. attack=true
  1507.  
  1508. act.Jumping=true
  1509.  
  1510. for i=0,1,0.1 do
  1511.  
  1512. wait()
  1513.  
  1514. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+50*i),math.rad(-40),0)
  1515.  
  1516. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-50*i),math.rad(0),0)
  1517.  
  1518. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50*i),math.rad(-40),0)
  1519.  
  1520. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+50*i),math.rad(0),0)
  1521.  
  1522. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+50*i),math.rad(40),0)
  1523.  
  1524. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-50*i),math.rad(0),0)
  1525.  
  1526. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50*i),math.rad(40),0)
  1527.  
  1528. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+50*i),math.rad(0),0)
  1529.  
  1530. end
  1531.  
  1532. for i=0,1,0.2 do
  1533.  
  1534. wait()
  1535.  
  1536. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+50-100*i),math.rad(-40),0)
  1537.  
  1538. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-50+100*i),math.rad(0),0)
  1539.  
  1540. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50+100*i),math.rad(-40),0)
  1541.  
  1542. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+50-100*i),math.rad(0),0)
  1543.  
  1544. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+50-100*i),math.rad(40),0)
  1545.  
  1546. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-50+100*i),math.rad(0),0)
  1547.  
  1548. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50+100*i),math.rad(40),0)
  1549.  
  1550. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+50-100*i),math.rad(0),0)
  1551.  
  1552. end
  1553.  
  1554. local vel2 = Instance.new("BodyVelocity")
  1555.  
  1556. vel2.Parent = Player.Character.Torso
  1557.  
  1558. vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1559.  
  1560. vel2.velocity = Vector3.new(0,1,0) * 100
  1561.  
  1562. wait(0.1)
  1563.  
  1564. vel2.Parent=nil
  1565.  
  1566. for i=0,1,0.1 do
  1567.  
  1568. wait()
  1569.  
  1570. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+50-100+50*i),math.rad(-40),0)
  1571.  
  1572. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-50+100-50*i),math.rad(0),0)
  1573.  
  1574. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50+100-50*i),math.rad(-40),0)
  1575.  
  1576. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+50-100+50*i),math.rad(0),0)
  1577.  
  1578. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+50-100+50*i),math.rad(40),0)
  1579.  
  1580. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-50+100-50*i),math.rad(0),0)
  1581.  
  1582. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50+100-50*i),math.rad(40),0)
  1583.  
  1584. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+50-100+50*i),math.rad(0),0)
  1585.  
  1586. end
  1587.  
  1588. act.Jumping=false
  1589.  
  1590. attack=false
  1591.  
  1592. end
  1593.  
  1594. function shoottrail2(pos1)
  1595.  
  1596. coroutine.resume(coroutine.create(function()
  1597.  
  1598. spread2 = 0
  1599.  
  1600. range2 = Prop.LegLength*150
  1601.  
  1602. rangepower = Prop.LegLength*1.5
  1603.  
  1604. local spreadvector = (Vector3.new(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) * (pos1.Position).magnitude/100
  1605.  
  1606. --local dir = Head.CFrame.lookVector+spreadvector
  1607.  
  1608. local dir = prt12.CFrame.lookVector+spreadvector
  1609.  
  1610. local hit2,pos = rayCast(pos1.Position,dir,10,pack)
  1611.  
  1612. local rangepos = range2
  1613.  
  1614. local function drawtrail(From,To)
  1615.  
  1616. local effectsmsh = Instance.new("CylinderMesh")
  1617.  
  1618. effectsmsh.Scale = Vector3.new(1,1,1)
  1619.  
  1620. effectsmsh.Name = "Mesh"
  1621.  
  1622. local effectsg = Instance.new("Part")
  1623.  
  1624. effectsg.formFactor = 3
  1625.  
  1626. effectsg.CanCollide = false
  1627.  
  1628. effectsg.Name = "Eff"
  1629.  
  1630. effectsg.Locked = true
  1631.  
  1632. effectsg.Anchored = true
  1633.  
  1634. effectsg.Size = Vector3.new(Prop.LegLength/4,Prop.LegLength/5,Prop.LegLength/4)
  1635.  
  1636. effectsg.Parent = pack
  1637.  
  1638. effectsmsh.Parent = effectsg
  1639.  
  1640. effectsg.BrickColor = BrickColor.new("Really black")
  1641.  
  1642. effectsg.Reflectance = 0.25
  1643.  
  1644. local LP = From
  1645.  
  1646. local point1 = To
  1647.  
  1648. local mg = (LP - point1).magnitude
  1649.  
  1650. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  1651.  
  1652. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1653.  
  1654. coroutine.resume(coroutine.create(function()
  1655.  
  1656. for i = 0 , 1 , 0.2 do
  1657.  
  1658. wait()
  1659.  
  1660. effectsg.Transparency = 1*i
  1661.  
  1662. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  1663.  
  1664. end
  1665.  
  1666. effectsg.Parent = nil
  1667.  
  1668. end))
  1669.  
  1670. end
  1671.  
  1672. local newpos = pos1.Position
  1673.  
  1674. local inc = rangepower
  1675.  
  1676. repeat
  1677.  
  1678. wait()
  1679.  
  1680. rangepos = rangepos - 10
  1681.  
  1682. dir = dir
  1683.  
  1684. hit2,pos = rayCast(newpos,dir,inc,pack)
  1685.  
  1686. drawtrail(newpos,pos)
  1687.  
  1688. newpos = newpos + (dir * inc)
  1689.  
  1690. if alt==1 then
  1691.  
  1692. inc = 10
  1693.  
  1694. if inc >= 20 then
  1695.  
  1696. inc = inc - 10
  1697.  
  1698. end
  1699.  
  1700. end
  1701.  
  1702. if hit2 ~= nil then
  1703.  
  1704. rangepos = 0
  1705.  
  1706. end
  1707.  
  1708. until rangepos <= 0
  1709.  
  1710. if hit2 ~= nil then
  1711.  
  1712. local effectsmsh = Instance.new("SpecialMesh")
  1713.  
  1714. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1715.  
  1716. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  1717.  
  1718. effectsmsh.Scale = Vector3.new(3,3,3)
  1719.  
  1720. local effectsg = Instance.new("Part")
  1721.  
  1722. effectsg.formFactor = 3
  1723.  
  1724. effectsg.CanCollide = false
  1725.  
  1726. effectsg.Name = "Arrow"
  1727.  
  1728. effectsg.Locked = true
  1729.  
  1730. effectsg.Transparency = 1
  1731.  
  1732. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1733.  
  1734. effectsg.Parent = pack
  1735.  
  1736. effectsg.BrickColor = BrickColor.new("Really black")
  1737.  
  1738. effectsmsh.Parent = effectsg
  1739.  
  1740. effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2
  1741.  
  1742. local efwel = Instance.new("Weld")
  1743.  
  1744. efwel.Parent = effectsg
  1745.  
  1746. efwel.Part0 = effectsg
  1747.  
  1748. efwel.Part1 = hit2
  1749.  
  1750. efwel.Parent = nil
  1751.  
  1752. effectsg.Anchored = true
  1753.  
  1754. local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75
  1755.  
  1756. --local HitPos = prt1.Position + CFrame.new(newpos,pos).lookVector*0.75
  1757.  
  1758. --local HitPos = prt1.Position + (prt1.CFrame.lookVector * .5)
  1759.  
  1760. local CJ = CFrame.new(HitPos)
  1761.  
  1762. local C0 = effectsg.CFrame:inverse() * CJ
  1763.  
  1764. local C1 = hit2.CFrame:inverse() * CJ
  1765.  
  1766. --efwel.C0 = C0
  1767.  
  1768. --efwel.C1 = C1
  1769.  
  1770. --efwel.Parent = effectsg
  1771.  
  1772. Damg = Prop.LegLength*5
  1773.  
  1774. coroutine.resume(coroutine.create(function()
  1775.  
  1776. boomsound(1)
  1777.  
  1778. coroutine.resume(coroutine.create(function()
  1779.  
  1780. local c = game.Workspace:GetChildren();
  1781.  
  1782. for i = 1, #c do
  1783.  
  1784. local hum = c:findFirstChild("Humanoid")
  1785.  
  1786. if hum ~= nil and hum.Health ~= 0 then
  1787.  
  1788. local head = c:findFirstChild("Head");
  1789.  
  1790. if head ~= nil then
  1791.  
  1792. local targ = head.Position - effectsg.Position;
  1793.  
  1794. local mag = targ.magnitude;
  1795.  
  1796. if mag <= Prop.LegLength*3 then
  1797.  
  1798. wait()
  1799.  
  1800. DBHit(head,effectsg,Prop.LegLength)
  1801.  
  1802. end
  1803.  
  1804. end
  1805.  
  1806. end
  1807.  
  1808. end
  1809.  
  1810. end))
  1811.  
  1812. EVENMOARMAGIX(effectsg,Prop.LegLength*3,Prop.LegLength*2,Prop.LegLength*3,0,0,0,0,0,0,BrickColor.new("Black"))
  1813.  
  1814. for i = 0,5 do
  1815.  
  1816. wait()
  1817.  
  1818. MMMAGIC(effectsg,Prop.LegLength*3,Prop.LegLength*2,Prop.LegLength*3,0,0,0,BrickColor.new("Black"))
  1819.  
  1820. end
  1821.  
  1822. end))
  1823.  
  1824. coroutine.resume(coroutine.create(function()
  1825.  
  1826. wait(3)
  1827.  
  1828. effectsg.Parent = nil
  1829.  
  1830. end))
  1831.  
  1832. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  1833.  
  1834. hum = hit2.Parent.Humanoid
  1835.  
  1836. attackdebounce = false
  1837.  
  1838. Damagefunc1(hit2,Damg,50)
  1839.  
  1840. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1841.  
  1842. hum = hit2.Parent.Parent.Humanoid
  1843.  
  1844. attackdebounce = false
  1845.  
  1846. Damagefunc1(hit2,Damg,50)
  1847.  
  1848. end
  1849.  
  1850. end
  1851.  
  1852. end))
  1853.  
  1854. end
  1855.  
  1856. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants
  1857.  
  1858. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1859.  
  1860. end
  1861.  
  1862. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1863.  
  1864. local msh1 = Instance.new("BlockMesh")
  1865.  
  1866. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1867.  
  1868. S=Instance.new("Part")
  1869.  
  1870. S.Name="Effect"
  1871.  
  1872. S.formFactor=0
  1873.  
  1874. S.Size=Vector3.new(x1,y1,z1)
  1875.  
  1876. S.BrickColor=color
  1877.  
  1878. S.Reflectance = 0
  1879.  
  1880. S.TopSurface=0
  1881.  
  1882. S.BottomSurface=0
  1883.  
  1884. S.Transparency=0
  1885.  
  1886. S.Anchored=true
  1887.  
  1888. S.CanCollide=false
  1889.  
  1890. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1891.  
  1892. S.Parent=pack
  1893.  
  1894. msh1.Parent = S
  1895.  
  1896. 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)
  1897.  
  1898. end
  1899.  
  1900. function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1901.  
  1902. local msh1 = Instance.new("BlockMesh")
  1903.  
  1904. msh1.Scale = Vector3.new(x1,y1,z1)
  1905.  
  1906. S=Instance.new("Part")
  1907.  
  1908. S.Name="Effect"
  1909.  
  1910. S.formFactor=0
  1911.  
  1912. S.Size=Vector3.new(1,1,1)
  1913.  
  1914. S.BrickColor=color
  1915.  
  1916. S.Reflectance = 0
  1917.  
  1918. S.TopSurface=0
  1919.  
  1920. S.BottomSurface=0
  1921.  
  1922. S.Transparency=0
  1923.  
  1924. S.Anchored=true
  1925.  
  1926. S.CanCollide=false
  1927.  
  1928. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1929.  
  1930. S.Parent=pack
  1931.  
  1932. msh1.Parent = S
  1933.  
  1934. 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)
  1935.  
  1936. end
  1937.  
  1938. function MOREMAGIX(part,cframe,x,y,z,color)
  1939.  
  1940. p2=Instance.new("Part")
  1941.  
  1942. p2.Name="Blast"
  1943.  
  1944. p2.TopSurface=0
  1945.  
  1946. p2.BottomSurface=0
  1947.  
  1948. p2.CanCollide=false
  1949.  
  1950. p2.Anchored=true
  1951.  
  1952. p2.BrickColor=color
  1953.  
  1954. p2.Size=Vector3.new(x,y,z)
  1955.  
  1956. p2.formFactor="Symmetric"
  1957.  
  1958. p2.CFrame=part.CFrame*CFrame.new(0,cframe,0)
  1959.  
  1960. p2.Parent=pack
  1961.  
  1962. m=Instance.new("BlockMesh")
  1963.  
  1964. m.Parent=p2
  1965.  
  1966. m.Name="BlastMesh"
  1967.  
  1968. 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))
  1969.  
  1970. end
  1971.  
  1972. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1973.  
  1974. local msh1 = Instance.new("SpecialMesh")
  1975.  
  1976. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1977.  
  1978. msh1.MeshType = "Sphere"
  1979.  
  1980. S=Instance.new("Part")
  1981.  
  1982. S.Name="Effect"
  1983.  
  1984. S.formFactor=0
  1985.  
  1986. S.Size=Vector3.new(x1,y1,z1)
  1987.  
  1988. S.BrickColor=color
  1989.  
  1990. S.Reflectance = 0
  1991.  
  1992. S.TopSurface=0
  1993.  
  1994. S.BottomSurface=0
  1995.  
  1996. S.Transparency=0
  1997.  
  1998. S.Anchored=true
  1999.  
  2000. S.CanCollide=false
  2001.  
  2002. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  2003.  
  2004. S.Parent=pack
  2005.  
  2006. msh1.Parent = S
  2007.  
  2008. 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)
  2009.  
  2010. end
  2011.  
  2012. print("Y U NU GIVE CREDIT.")
  2013.  
  2014. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2015.  
  2016. local msh1 = Instance.new("SpecialMesh")
  2017.  
  2018. msh1.Scale = Vector3.new(x1,y1,z1)
  2019.  
  2020. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2021.  
  2022. S=Instance.new("Part")
  2023.  
  2024. S.Name="Effect"
  2025.  
  2026. S.formFactor=0
  2027.  
  2028. S.Size=Vector3.new(1,1,1)
  2029.  
  2030. S.BrickColor=color
  2031.  
  2032. S.Reflectance = 0
  2033.  
  2034. S.TopSurface=0
  2035.  
  2036. S.BottomSurface=0
  2037.  
  2038. S.Transparency=0
  2039.  
  2040. S.Anchored=true
  2041.  
  2042. S.CanCollide=false
  2043.  
  2044. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  2045.  
  2046. S.Parent=pack
  2047.  
  2048. msh1.Parent = S
  2049.  
  2050. 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)
  2051.  
  2052. end
  2053.  
  2054. function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2055.  
  2056. local msh1 = Instance.new("SpecialMesh")
  2057.  
  2058. msh1.Scale = Vector3.new(x1,y1,z1)
  2059.  
  2060. msh1.MeshId = "http://www.roblox.com/asset/?id=1323306"
  2061.  
  2062. S=Instance.new("Part")
  2063.  
  2064. S.Name="Effect"
  2065.  
  2066. S.formFactor=0
  2067.  
  2068. S.Size=Vector3.new(1,1,1)
  2069.  
  2070. S.BrickColor=color
  2071.  
  2072. S.Reflectance = 0
  2073.  
  2074. S.TopSurface=0
  2075.  
  2076. S.BottomSurface=0
  2077.  
  2078. S.Transparency=0
  2079.  
  2080. S.Anchored=true
  2081.  
  2082. S.CanCollide=false
  2083.  
  2084. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  2085.  
  2086. S.Parent=pack
  2087.  
  2088. msh1.Parent = S
  2089.  
  2090. 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)
  2091.  
  2092. end
  2093.  
  2094. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  2095.  
  2096. local msh1 = Instance.new("BlockMesh")
  2097.  
  2098. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  2099.  
  2100. S=Instance.new("Part")
  2101.  
  2102. S.Name="Effect"
  2103.  
  2104. S.formFactor=0
  2105.  
  2106. S.Size=Vector3.new(x1,y1,z1)
  2107.  
  2108. S.BrickColor=color
  2109.  
  2110. S.Reflectance = 0
  2111.  
  2112. S.TopSurface=0
  2113.  
  2114. S.BottomSurface=0
  2115.  
  2116. S.Transparency=0
  2117.  
  2118. S.Anchored=true
  2119.  
  2120. S.CanCollide=false
  2121.  
  2122. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2123.  
  2124. S.Parent=pack
  2125.  
  2126. msh1.Parent = S
  2127.  
  2128. 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)
  2129.  
  2130. end
  2131.  
  2132.  
  2133. function ss(pitch)
  2134.  
  2135. local SlashSound = Instance.new("Sound")
  2136.  
  2137. --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  2138.  
  2139. SlashSound.SoundId = "http://roblox.com/asset/?id=10209645"
  2140.  
  2141. SlashSound.Parent = workspace
  2142.  
  2143. SlashSound.Volume = .7
  2144.  
  2145. SlashSound.Pitch = pitch
  2146.  
  2147. SlashSound.PlayOnRemove = true
  2148.  
  2149. coroutine.resume(coroutine.create(function()
  2150.  
  2151. wait(0)
  2152.  
  2153. SlashSound.Parent = nil
  2154.  
  2155. end))
  2156.  
  2157. end
  2158.  
  2159. function equipsound(pitch)
  2160.  
  2161. local SlashSound = Instance.new("Sound")
  2162.  
  2163. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  2164.  
  2165. SlashSound.Parent = workspace
  2166.  
  2167. SlashSound.Volume = .5
  2168.  
  2169. SlashSound.Pitch = pitch
  2170.  
  2171. SlashSound.PlayOnRemove = true
  2172.  
  2173. coroutine.resume(coroutine.create(function()
  2174.  
  2175. wait(0)
  2176.  
  2177. SlashSound.Parent = nil
  2178.  
  2179. end))
  2180.  
  2181. end
  2182.  
  2183. function magicsound(pitch)
  2184.  
  2185. local SlashSound = Instance.new("Sound")
  2186.  
  2187. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  2188.  
  2189. SlashSound.Parent = workspace
  2190.  
  2191. SlashSound.Volume = .5
  2192.  
  2193. SlashSound.Pitch = pitch
  2194.  
  2195. SlashSound.PlayOnRemove = true
  2196.  
  2197. coroutine.resume(coroutine.create(function()
  2198.  
  2199. wait(0)
  2200.  
  2201. SlashSound.Parent = nil
  2202.  
  2203. end))
  2204.  
  2205. end
  2206.  
  2207. function critsound(pitch)
  2208.  
  2209. local SlashSound = Instance.new("Sound")
  2210.  
  2211. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  2212.  
  2213. SlashSound.Parent = workspace
  2214.  
  2215. SlashSound.Volume = .7
  2216.  
  2217. SlashSound.Pitch = pitch
  2218.  
  2219. SlashSound.PlayOnRemove = true
  2220.  
  2221. coroutine.resume(coroutine.create(function()
  2222.  
  2223. wait(0)
  2224.  
  2225. SlashSound.Parent = nil
  2226.  
  2227. end))
  2228.  
  2229. end
  2230.  
  2231. function spikesound(pitch)
  2232.  
  2233. local SlashSound = Instance.new("Sound")
  2234.  
  2235. SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793"
  2236.  
  2237. SlashSound.Parent = workspace
  2238.  
  2239. SlashSound.Volume = .7
  2240.  
  2241. SlashSound.Pitch = pitch
  2242.  
  2243. SlashSound.PlayOnRemove = true
  2244.  
  2245. coroutine.resume(coroutine.create(function()
  2246.  
  2247. wait(0)
  2248.  
  2249. SlashSound.Parent = nil
  2250.  
  2251. end))
  2252.  
  2253. end
  2254.  
  2255. function boomsound(pitch)
  2256.  
  2257. local SlashSound = Instance.new("Sound")
  2258.  
  2259. SlashSound.SoundId = "http://www.roblox.com/asset?id=2101148"
  2260.  
  2261. SlashSound.Parent = workspace
  2262.  
  2263. SlashSound.Volume = .7
  2264.  
  2265. SlashSound.Pitch = pitch
  2266.  
  2267. SlashSound.PlayOnRemove = true
  2268.  
  2269. coroutine.resume(coroutine.create(function()
  2270.  
  2271. wait(0)
  2272.  
  2273. SlashSound.Parent = nil
  2274.  
  2275. end))
  2276.  
  2277. end
  2278.  
  2279. function lasersound(pitch)
  2280.  
  2281. local SlashSound = Instance.new("Sound")
  2282.  
  2283. SlashSound.SoundId = "rbxasset://sounds/Launching rocket.wav"
  2284.  
  2285. SlashSound.Parent = workspace
  2286.  
  2287. SlashSound.Volume = .5
  2288.  
  2289. SlashSound.Pitch = pitch
  2290.  
  2291. SlashSound.PlayOnRemove = true
  2292.  
  2293. coroutine.resume(coroutine.create(function()
  2294.  
  2295. wait(0)
  2296.  
  2297. SlashSound.Parent = nil
  2298.  
  2299. end))
  2300.  
  2301. end
  2302.  
  2303. function omnomnom(pitch)
  2304.  
  2305. local SlashSound = Instance.new("Sound")
  2306.  
  2307. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12544690"
  2308.  
  2309. SlashSound.Parent = workspace
  2310.  
  2311. SlashSound.Volume = .5
  2312.  
  2313. SlashSound.Pitch = pitch
  2314.  
  2315. SlashSound.PlayOnRemove = true
  2316.  
  2317. coroutine.resume(coroutine.create(function()
  2318.  
  2319. wait(0)
  2320.  
  2321. SlashSound.Parent = nil
  2322.  
  2323. end))
  2324.  
  2325. end
  2326.  
  2327. function boomsound(pitch)
  2328.  
  2329. local SlashSound = Instance.new("Sound")
  2330.  
  2331. SlashSound.SoundId = "http://www.roblox.com/asset?id=2101148"
  2332.  
  2333. SlashSound.Parent = workspace
  2334.  
  2335. SlashSound.Volume = .7
  2336.  
  2337. SlashSound.Pitch = pitch
  2338.  
  2339. SlashSound.PlayOnRemove = true
  2340.  
  2341. coroutine.resume(coroutine.create(function()
  2342.  
  2343. wait(0)
  2344.  
  2345. SlashSound.Parent = nil
  2346.  
  2347. end))
  2348.  
  2349. end
  2350.  
  2351. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  2352.  
  2353. local msh1 = Instance.new("BlockMesh")
  2354.  
  2355. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  2356.  
  2357. S=Instance.new("Part")
  2358.  
  2359. S.Name="Effect"
  2360.  
  2361. S.formFactor=0
  2362.  
  2363. S.Size=Vector3.new(x1,y1,z1)
  2364.  
  2365. S.BrickColor=color
  2366.  
  2367. S.Reflectance = 0
  2368.  
  2369. S.TopSurface=0
  2370.  
  2371. S.BottomSurface=0
  2372.  
  2373. S.Transparency=0
  2374.  
  2375. S.Anchored=true
  2376.  
  2377. S.CanCollide=false
  2378.  
  2379. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2380.  
  2381. S.Parent=workspace
  2382.  
  2383. msh1.Parent = S
  2384.  
  2385. 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)
  2386.  
  2387. end
  2388.  
  2389. attackdebounce = false
  2390.  
  2391. Damagefunc1=function(hit,Damage,Knockback)
  2392.  
  2393. if hit.Parent==nil then
  2394.  
  2395. return
  2396.  
  2397. end
  2398.  
  2399. CPlayer=Bin
  2400.  
  2401. h=hit.Parent:FindFirstChild("Humanoid")
  2402.  
  2403. if h~=nil and hit.Parent.Name~=Char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2404.  
  2405. if attackdebounce == false then
  2406.  
  2407. critsound(2)
  2408.  
  2409. attackdebounce = true
  2410.  
  2411. coroutine.resume(coroutine.create(function()
  2412.  
  2413. wait(0.1)
  2414.  
  2415. attackdebounce = false
  2416.  
  2417. end))
  2418.  
  2419. Damage=Damage
  2420.  
  2421. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2422.  
  2423. return
  2424.  
  2425. end]]
  2426.  
  2427. c=Instance.new("ObjectValue")
  2428.  
  2429. c.Name="creator"
  2430.  
  2431. c.Value=game.Players.LocalPlayer
  2432.  
  2433. c.Parent=h
  2434.  
  2435. game:GetService("Debris"):AddItem(c,.5)
  2436.  
  2437. -- print(c.Value)
  2438.  
  2439. if math.random(0,99)+math.random()<=5 then
  2440.  
  2441. CRIT=true
  2442.  
  2443. Damage=Damage*150
  2444.  
  2445. --[[ Knockback=Knockback*2
  2446.  
  2447. r=Instance.new("BodyAngularVelocity")
  2448.  
  2449. r.P=3000
  2450.  
  2451. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2452.  
  2453. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2454.  
  2455. r.Parent=hit.Parent.Torso]]
  2456.  
  2457. --critsound(2)
  2458.  
  2459. end
  2460.  
  2461. Damage=Damage+math.random(50,100)
  2462.  
  2463. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/20))
  2464.  
  2465. h:TakeDamage(Damage)
  2466.  
  2467. showDamage(hit.Parent,Damage,50)
  2468.  
  2469. vp=Instance.new("BodyVelocity")
  2470.  
  2471. vp.P=500
  2472.  
  2473. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2474.  
  2475. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2476.  
  2477. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  2478.  
  2479. if Knockback>0 then
  2480.  
  2481. vp.Parent=hit.Parent.Torso
  2482.  
  2483. end
  2484.  
  2485. game:GetService("Debris"):AddItem(vp,.25)
  2486.  
  2487. --[[ r=Instance.new("BodyAngularVelocity")
  2488.  
  2489. r.P=3000
  2490.  
  2491. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2492.  
  2493. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2494.  
  2495. r.Parent=hit.Parent.Torso]]
  2496.  
  2497. game:GetService("Debris"):AddItem(r,.5)
  2498.  
  2499. c=Instance.new("ObjectValue")
  2500.  
  2501. c.Name="creator"
  2502.  
  2503. c.Value=Player
  2504.  
  2505. c.Parent=h
  2506.  
  2507. game:GetService("Debris"):AddItem(c,.5)
  2508.  
  2509. CRIT=false
  2510.  
  2511. hitDeb=true
  2512.  
  2513. AttackPos=6
  2514.  
  2515. end
  2516.  
  2517. end
  2518.  
  2519. end
  2520.  
  2521. Damagefunc2=function(hit,Damage,Knockback)
  2522.  
  2523. if hit.Parent==nil then
  2524.  
  2525. return
  2526.  
  2527. end
  2528.  
  2529. CPlayer=Bin
  2530.  
  2531. h=hit.Parent:FindFirstChild("Humanoid")
  2532.  
  2533. if h~=nil and hit.Parent.Name~=Char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2534.  
  2535. if attackdebounce == false then
  2536.  
  2537. critsound(1)
  2538.  
  2539. attackdebounce = true
  2540.  
  2541. coroutine.resume(coroutine.create(function()
  2542.  
  2543. wait(0.1)
  2544.  
  2545. attackdebounce = false
  2546.  
  2547. end))
  2548.  
  2549. Damage=Damage
  2550.  
  2551. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2552.  
  2553. return
  2554.  
  2555. end]]
  2556.  
  2557. c=Instance.new("ObjectValue")
  2558.  
  2559. c.Name="creator"
  2560.  
  2561. c.Value=game.Players.LocalPlayer
  2562.  
  2563. c.Parent=h
  2564.  
  2565. game:GetService("Debris"):AddItem(c,.5)
  2566.  
  2567. -- print(c.Value)
  2568.  
  2569. if math.random(0,99)+math.random()<=5 then
  2570.  
  2571. CRIT=true
  2572.  
  2573. Damage=Damage*100
  2574.  
  2575. --[[ Knockback=Knockback*2
  2576.  
  2577. r=Instance.new("BodyAngularVelocity")
  2578.  
  2579. r.P=3000
  2580.  
  2581. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2582.  
  2583. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2584.  
  2585. r.Parent=hit.Parent.Torso]]
  2586.  
  2587. --critsound(2)
  2588.  
  2589. end
  2590.  
  2591. Damage=Damage+math.random(50,100)
  2592.  
  2593. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/20))
  2594.  
  2595. h:TakeDamage(Damage)
  2596.  
  2597. showDamage(hit.Parent,Damage,50)
  2598.  
  2599. vp=Instance.new("BodyVelocity")
  2600.  
  2601. vp.P=500
  2602.  
  2603. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2604.  
  2605. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2606.  
  2607. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  2608.  
  2609. rl=Instance.new("BodyAngularVelocity")
  2610.  
  2611. rl.P=3000
  2612.  
  2613. rl.maxTorque=Vector3.new(5000,5000,5000)*500000000
  2614.  
  2615. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2616.  
  2617. rl.Parent=t
  2618.  
  2619. game:GetService("Debris"):AddItem(rl,.2)
  2620.  
  2621. vl=Instance.new("BodyVelocity")
  2622.  
  2623. vl.P=4500
  2624.  
  2625. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2626.  
  2627. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,10,0)
  2628.  
  2629. vl.Parent=t
  2630.  
  2631. game:GetService("Debris"):AddItem(vl,.2)
  2632.  
  2633. if Knockback>0 then
  2634.  
  2635. vp.Parent=hit.Parent.Torso
  2636.  
  2637. end
  2638.  
  2639. game:GetService("Debris"):AddItem(vp,.25)
  2640.  
  2641. --[[ r=Instance.new("BodyAngularVelocity")
  2642.  
  2643. r.P=3000
  2644.  
  2645. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2646.  
  2647. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2648.  
  2649. r.Parent=hit.Parent.Torso]]
  2650.  
  2651. game:GetService("Debris"):AddItem(r,.5)
  2652.  
  2653. c=Instance.new("ObjectValue")
  2654.  
  2655. c.Name="creator"
  2656.  
  2657. c.Value=Player
  2658.  
  2659. c.Parent=h
  2660.  
  2661. game:GetService("Debris"):AddItem(c,.5)
  2662.  
  2663. CRIT=false
  2664.  
  2665. hitDeb=true
  2666.  
  2667. AttackPos=6
  2668.  
  2669. end
  2670.  
  2671. end
  2672.  
  2673. end
  2674.  
  2675. slashdamage1=function(hit,Damage,Knockback)
  2676.  
  2677. if hit.Parent==nil then
  2678.  
  2679. return
  2680.  
  2681. end
  2682.  
  2683. CPlayer=Bin
  2684.  
  2685. h=hit.Parent:FindFirstChild("Humanoid")
  2686.  
  2687. if h~=nil and hit.Parent.Name~=Char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2688.  
  2689. if attackdebounce == false then
  2690.  
  2691. attackdebounce = true
  2692.  
  2693. coroutine.resume(coroutine.create(function()
  2694.  
  2695. wait(0.1)
  2696.  
  2697. attackdebounce = false
  2698.  
  2699. end))
  2700.  
  2701. Damage=Damage
  2702.  
  2703. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2704.  
  2705. return
  2706.  
  2707. end]]
  2708.  
  2709. c=Instance.new("ObjectValue")
  2710.  
  2711. c.Name="creator"
  2712.  
  2713. c.Value=game.Players.LocalPlayer
  2714.  
  2715. c.Parent=h
  2716.  
  2717. game:GetService("Debris"):AddItem(c,.5)
  2718.  
  2719. -- print(c.Value)
  2720.  
  2721. if math.random(0,99)+math.random()<=5 then
  2722.  
  2723. Damage=Damage*50
  2724.  
  2725. --[[ Knockback=Knockback*2
  2726.  
  2727. r=Instance.new("BodyAngularVelocity")
  2728.  
  2729. r.P=3000
  2730.  
  2731. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2732.  
  2733. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2734.  
  2735. r.Parent=hit.Parent.Torso]]
  2736.  
  2737. --critsound(2)
  2738.  
  2739. end
  2740.  
  2741. Damage=Damage+math.random(65,90)
  2742.  
  2743. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/20))
  2744.  
  2745. h:TakeDamage(Damage)
  2746.  
  2747. showDamage(hit.Parent,Damage,50)
  2748.  
  2749. vp=Instance.new("BodyVelocity")
  2750.  
  2751. vp.P=500
  2752.  
  2753. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2754.  
  2755. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2756.  
  2757. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  2758.  
  2759. if Knockback>0 then
  2760.  
  2761. vp.Parent=hit.Parent.Torso
  2762.  
  2763. end
  2764.  
  2765. game:GetService("Debris"):AddItem(vp,.25)
  2766.  
  2767. --[[ r=Instance.new("BodyAngularVelocity")
  2768.  
  2769. r.P=3000
  2770.  
  2771. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2772.  
  2773. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2774.  
  2775. r.Parent=hit.Parent.Torso]]
  2776.  
  2777. game:GetService("Debris"):AddItem(r,.5)
  2778.  
  2779. c=Instance.new("ObjectValue")
  2780.  
  2781. c.Name="creator"
  2782.  
  2783. c.Value=Player
  2784.  
  2785. c.Parent=h
  2786.  
  2787. game:GetService("Debris"):AddItem(c,.5)
  2788.  
  2789. CRIT=false
  2790.  
  2791. hitDeb=true
  2792.  
  2793. AttackPos=6
  2794.  
  2795. end
  2796.  
  2797. end
  2798.  
  2799. end
  2800.  
  2801. DBHit=function(hit,DB,Dmg) --credits to turdulator for making this function :D
  2802.  
  2803. if hit.Parent==nil then
  2804.  
  2805. return
  2806.  
  2807. end
  2808.  
  2809. h=hit.Parent:FindFirstChild("Humanoid")
  2810.  
  2811. if h==nil then
  2812.  
  2813. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2814.  
  2815. end
  2816.  
  2817. t=hit.Parent:FindFirstChild("Torso")
  2818.  
  2819. if h~=nil and t~=nil then
  2820.  
  2821. --[[ if h.Parent==Character then
  2822.  
  2823. return
  2824.  
  2825. end]]
  2826.  
  2827. critsound(1.5)
  2828.  
  2829. Damage=Dmg+math.random(20,100)
  2830.  
  2831. h:TakeDamage(Damage)
  2832.  
  2833. c=Instance.new("ObjectValue")
  2834.  
  2835. c.Name="creator"
  2836.  
  2837. c.Value=game.Players.LocalPlayer
  2838.  
  2839. c.Parent=h
  2840.  
  2841. game:GetService("Debris"):AddItem(c,.5)
  2842.  
  2843. showDamage(hit.Parent,Damage,59)
  2844.  
  2845. vl=Instance.new("BodyVelocity")
  2846.  
  2847. vl.P=4500
  2848.  
  2849. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2850.  
  2851. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,10,0)
  2852.  
  2853. vl.Parent=t
  2854.  
  2855. game:GetService("Debris"):AddItem(vl,.2)
  2856.  
  2857. rl=Instance.new("BodyAngularVelocity")
  2858.  
  2859. rl.P=3000
  2860.  
  2861. rl.maxTorque=Vector3.new(5000,5000,5000)*500000000
  2862.  
  2863. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2864.  
  2865. rl.Parent=t
  2866.  
  2867. game:GetService("Debris"):AddItem(rl,.2)
  2868.  
  2869. else
  2870.  
  2871. if hit.CanCollide==false then
  2872.  
  2873. return
  2874.  
  2875. end
  2876.  
  2877. MagicCom:disconnect()
  2878.  
  2879. -- DBExplode(DB)
  2880.  
  2881. CRIT=false
  2882.  
  2883. end
  2884.  
  2885. end
  2886.  
  2887. showDamage=function(Char,Dealt,du)
  2888.  
  2889. m=Instance.new("Model")
  2890.  
  2891. m.Name=tostring(Dealt)
  2892.  
  2893. h=Instance.new("Humanoid")
  2894.  
  2895. h.Health=math.huge
  2896.  
  2897. h.MaxHealth=math.huge
  2898.  
  2899. h.Parent=m
  2900.  
  2901. c=Instance.new("Part")
  2902.  
  2903. c.Transparency=0
  2904.  
  2905. c.BrickColor=BrickColor:Red()
  2906.  
  2907. c.Name="Head"
  2908.  
  2909. c.TopSurface=0
  2910.  
  2911. c.BottomSurface=0
  2912.  
  2913. c.formFactor="Plate"
  2914.  
  2915. c.Size=Vector3.new(1,.4,1)
  2916.  
  2917. ms=Instance.new("CylinderMesh")
  2918.  
  2919. ms.Bevel=.1
  2920.  
  2921. ms.Scale=Vector3.new(.8,.8,.8)
  2922.  
  2923. ms.Parent=c
  2924.  
  2925. c.Reflectance=0
  2926.  
  2927. Instance.new("BodyGyro").Parent=c
  2928.  
  2929. c.Parent=m
  2930.  
  2931. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2932.  
  2933. f=Instance.new("BodyPosition")
  2934.  
  2935. f.P=2000
  2936.  
  2937. f.D=100
  2938.  
  2939. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2940.  
  2941. f.position=c.Position+Vector3.new(0,3,0)
  2942.  
  2943. f.Parent=c
  2944.  
  2945. game:GetService("Debris"):AddItem(m,.5+du)
  2946.  
  2947. c.CanCollide=false
  2948.  
  2949. m.Parent=workspace
  2950.  
  2951. c.CanCollide=false
  2952.  
  2953. end
  2954.  
  2955. Anims.Walking = function()
  2956.  
  2957. derpcon1=Spider.LRa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  2958.  
  2959. derpcon2=Spider.LLa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  2960.  
  2961. derpcon3=Spider.URa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  2962.  
  2963. derpcon4=Spider.ULa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end)
  2964.  
  2965. for i=0,1,difficulty do
  2966.  
  2967. if act.Jumping ~= true then
  2968.  
  2969. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+(20*i)),math.rad(-40-(40*i)),0)
  2970.  
  2971. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-(20*i)),math.rad(0),0)
  2972.  
  2973. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-(20*i)),math.rad(-40-(40*i)),0)
  2974.  
  2975. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+(20*i)),math.rad(0),0)
  2976.  
  2977. wait()
  2978.  
  2979. end
  2980.  
  2981. end
  2982.  
  2983. coroutine.resume(coroutine.create(function()
  2984.  
  2985. for i=0,1,difficulty do
  2986.  
  2987. if act.Jumping ~= true then
  2988.  
  2989. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+(20*i)),math.rad(40+(40*i)),0)
  2990.  
  2991. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-(20*i)),math.rad(0),0)
  2992.  
  2993. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-(20*i)),math.rad(40+(40*i)),0)
  2994.  
  2995. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+(20*i)),math.rad(0),0)
  2996.  
  2997. wait()
  2998.  
  2999. end
  3000.  
  3001. end
  3002.  
  3003. for i=1,0,-difficulty do
  3004.  
  3005. if act.Jumping ~= true then
  3006.  
  3007. Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+(20*i)),math.rad(40+(40*i)),0)
  3008.  
  3009. Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-(20*i)),math.rad(0),0)
  3010.  
  3011. Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-(20*i)),math.rad(40+(40*i)),0)
  3012.  
  3013. Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+(20*i)),math.rad(0),0)
  3014.  
  3015. wait()
  3016.  
  3017. end
  3018.  
  3019. end
  3020.  
  3021. end))
  3022.  
  3023. for i=1,0,-difficulty do
  3024.  
  3025. if act.Jumping ~= true then
  3026.  
  3027. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+(20*i)),math.rad(-40-(40*i)),0)
  3028.  
  3029. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-(20*i)),math.rad(0),0)
  3030.  
  3031. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-(20*i)),math.rad(-40-(40*i)),0)
  3032.  
  3033. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+(20*i)),math.rad(0),0)
  3034.  
  3035. wait()
  3036.  
  3037. end
  3038.  
  3039. end
  3040.  
  3041. derpcon1:disconnect()
  3042.  
  3043. derpcon2:disconnect()
  3044.  
  3045. derpcon3:disconnect()
  3046.  
  3047. derpcon4:disconnect()
  3048.  
  3049. if act.Jumping ~= true then
  3050.  
  3051. Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40),0)
  3052.  
  3053. Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100),math.rad(0),0)
  3054.  
  3055. Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0)
  3056.  
  3057. Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0)
  3058.  
  3059. end
  3060.  
  3061. end
  3062.  
  3063.  
  3064. --[[while true do
  3065.  
  3066. wait()
  3067.  
  3068. if act.Walking == true then return end
  3069.  
  3070. if Torso.Velocity.magnitude >= 19 then
  3071.  
  3072. act.Walking = true
  3073.  
  3074. Anims.Walking()
  3075.  
  3076. act.Walking = false
  3077.  
  3078. end
  3079.  
  3080. end ]]
  3081.  
  3082. t = it("Tool")
  3083.  
  3084. t.Equipped:connect(function(mouse) t:Remove()
  3085.  
  3086. Mouse = mouse
  3087.  
  3088. mouse.KeyDown:connect(function(k) act.keydown = true
  3089.  
  3090. pcall(function() act.key[k:lower()] = true end)
  3091.  
  3092. local kk = k:lower()
  3093.  
  3094. if kk == "w" or kk == "a" or kk == "s" or kk == "d" then
  3095.  
  3096. if act.Walking == true then return end
  3097.  
  3098. while act.key["w"] == true or act.key["a"] == true or act.key["s"] == true or act.key["d"] == true do
  3099.  
  3100. act.Walking = true
  3101.  
  3102. Anims.Walking()
  3103.  
  3104. wait()
  3105.  
  3106. end
  3107.  
  3108. act.Walking = false
  3109.  
  3110. end
  3111.  
  3112. if kk == "q" then
  3113.  
  3114. if roflcopter==false then
  3115.  
  3116. roflcopter=true
  3117.  
  3118. RoflCopter()
  3119.  
  3120. elseif roflcopter==true then
  3121.  
  3122. roflcopter=false
  3123.  
  3124. end
  3125.  
  3126. --[[if roflcopter==false then
  3127.  
  3128. roflcopter=true
  3129.  
  3130. Anim()
  3131.  
  3132. elseif roflcopter==true then
  3133.  
  3134. roflcopter=false
  3135.  
  3136. end]]
  3137.  
  3138. end
  3139.  
  3140. if kk == "e" then
  3141.  
  3142. bodypos.position=bodypos.position+Vector3.new(0,10,0)
  3143.  
  3144. end
  3145.  
  3146. if kk == "r" then
  3147.  
  3148. bodypos.position=bodypos.position-Vector3.new(0,10,0)
  3149.  
  3150. end
  3151.  
  3152. if attack == true then return end
  3153.  
  3154. if kk == "f" then
  3155.  
  3156. Shoot()
  3157.  
  3158. end
  3159.  
  3160. if kk == "g" then
  3161.  
  3162. Shoot2()
  3163.  
  3164. end
  3165.  
  3166. if kk == "h" then
  3167.  
  3168. Shoot3()
  3169.  
  3170. end
  3171.  
  3172. if kk == "j" then
  3173.  
  3174. Shoot4()
  3175.  
  3176. end
  3177.  
  3178. if kk == "z" then
  3179.  
  3180. Attack()
  3181.  
  3182. end
  3183.  
  3184. if kk == "x" then
  3185.  
  3186. DualAttack()
  3187.  
  3188. end
  3189.  
  3190. if kk == "c" then
  3191.  
  3192. MegaBonk()
  3193.  
  3194. end
  3195.  
  3196. if kk == "v" then
  3197.  
  3198. Stomp()
  3199.  
  3200. end
  3201.  
  3202. if kk == " " then
  3203.  
  3204. Jump()
  3205.  
  3206. end
  3207.  
  3208. end)
  3209.  
  3210. mouse.KeyUp:connect(function(k) act.keydown = false
  3211.  
  3212. pcall(function() act.key[k:lower()] = false end)
  3213.  
  3214. end)
  3215.  
  3216.  
  3217. end)
  3218.  
  3219. wait(0.1)
  3220.  
  3221. t.Parent = Char
  3222.  
  3223. --lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement