Advertisement
memberhero

Spider Bot

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