cr8brooo

Untitled

Feb 4th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.42 KB | None | 0 0
  1. pcall(function() script.Parent.aotScript:Destroy() end)
  2. script.Name = "aotScript"
  3. wait()
  4. script:ClearAllChildren()
  5. function lerp(a,b,c)
  6. return a+(b-a)*c
  7. end
  8.  
  9. function ctlerp(c1,c2,al)
  10. local com1 = {c1:components()}
  11. local com2 = {c2:components()}
  12. for i,v in pairs(com1) do
  13. com1[i] = lerp(v,com2[i],al)
  14. end
  15. return CFrame.new(unpack(com1))
  16. end
  17.  
  18. do
  19. local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end
  20.  
  21. local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs 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)) end
  22.  
  23. local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end 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 end
  24.  
  25. function clerp(a,b,t)
  26. local qa = {QuaternionFromCFrame(a)}
  27. local qb = {QuaternionFromCFrame(b)}
  28. local ax, ay, az = a.x, a.y, a.z
  29. local bx, by, bz = b.x, b.y, b.z
  30.  
  31. local _t = 1-t
  32. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  33. end
  34. end
  35.  
  36. local MaxGrappleRange = 500
  37.  
  38.  
  39. local plr = game.Players.LocalPlayer
  40. cam = Game.Workspace.CurrentCamera
  41. local m = plr:GetMouse()
  42. local char = plr.Character
  43. if not char:FindFirstChild("Body Colors") then wait(3) end
  44. local oc = oc or function(a) return a end
  45. pcall(function() char.Animate:Destroy() end)
  46. local tor = char.Torso
  47. for i,v in pairs(tor:GetChildren()) do
  48. if v:IsA("BodyMover") then
  49. v:Destroy()
  50. end
  51. end
  52. local head = char.Head
  53. local ra = char["Right Arm"]
  54. local la = char["Left Arm"]
  55. local rl = char["Right Leg"]
  56. local ll = char["Left Leg"]
  57. local hum = char["Humanoid"]
  58.  
  59. local runservice = game:service'RunService'
  60. local state = "idle"
  61. local kd = {}
  62.  
  63. local ochar = char:FindFirstChild("")
  64. char.archivable = true
  65. local fchar = char:Clone()
  66. fchar:BreakJoints()
  67. wait()
  68. fchar.Name = ""
  69. char.archivable = false
  70. local hshirt = false
  71. for i,v in pairs(fchar:GetChildren()) do
  72. pcall(tor.BreakJoints,v)
  73. if v.Name ~= "Torso" and v.Name ~= "Head" and not v:IsA("CharacterAppearance") and not v.Name:find("Leg") then
  74. v:Destroy()
  75. elseif v:IsA("BasePart") then
  76. v.TopSurface,v.BottomSurface = 0,0
  77. for i,v in pairs(v:GetChildren()) do
  78. if v:IsA("JointInstance") then
  79. v.Part0 = nil
  80. v:Destroy()
  81. end
  82. end
  83. elseif v:IsA("Shirt") then
  84. hshirt = true
  85. end
  86. end
  87. fchar.Parent = char
  88. wait()
  89. fchar:BreakJoints()
  90. wait()
  91. local ftor = fchar.Torso
  92. ftor.FormFactor = "Custom"
  93. ftor.Size = Vector3.new(.2,.2,.2)
  94. if not hshirt then
  95. local sm = Instance.new("BlockMesh",ftor)
  96. sm.Scale = Vector3.new(2,2,1)*5
  97. end
  98. local fhead = fchar.Head
  99. local fll = fchar:FindFirstChild("Left Leg")
  100. local frl = fchar:FindFirstChild("Right Leg")
  101.  
  102. --for i,v in pairs(head:GetChildren()) do
  103. -- if v:IsA("JointInstance") and v.Part1 and v.Part1.Parent and v.Part1.Parent:IsA("Hat") then
  104. -- v.Part0 = fhead
  105. ---- v.Part1.CanCollide = false
  106. -- end
  107. --end
  108.  
  109. head.Transparency = math.max(head.Transparency,.98)
  110. tor.Transparency = 1
  111. fhead.Transparency = 0
  112. ftor.Transparency = 0
  113.  
  114. local fhat = Instance.new("Hat")
  115. local p = Instance.new("Part",fhat)
  116. p.Material = "SmoothPlastic"
  117. p.Name = "Handle"
  118. p.CanCollide = false
  119. p.FormFactor = "Custom"
  120. p.Transparency = 1
  121. fhat.Parent = char
  122. char.ChildAdded:connect(function(c)
  123. if c:IsA("Hat") and c ~= fhat then
  124. c:Destroy()
  125. end
  126. end)
  127. char.ChildRemoved:connect(function(c)
  128. if c == p then
  129. c.Parent = char
  130. end
  131. end)
  132.  
  133. if frl and fll then
  134. rl.Transparency = 1
  135. ll.Transparency = 1
  136. frl.Transparency = 0
  137. fll.Transparency = 0
  138. rl.CanCollide = true
  139. ll.CanCollide = true
  140. else
  141. rl.Transparency = 0
  142. ll.Transparency = 0
  143. end
  144.  
  145. local c0 = {
  146. rs = CFrame.new(1,.5,0),
  147. ls = CFrame.new(-1,.5,0),
  148. rh = CFrame.new(.5,-1,0),
  149. lh = CFrame.new(-.5,-1,0),
  150. nk = CFrame.new(0,1,0),
  151. }
  152. local c1 = {
  153. rs = CFrame.new(-.5,.5,0),
  154. ls = CFrame.new(.5,.5,0),
  155. rh = CFrame.new(0,1,0),
  156. lh = CFrame.new(0,1,0),
  157. nk = CFrame.new(0,-.5,0),
  158. }
  159.  
  160. local rs = tor["Right Shoulder"]
  161. local ls = tor["Left Shoulder"]
  162. local rh = tor["Right Hip"]
  163. local lh = tor["Left Hip"]
  164. local nk = tor["Neck"]
  165. for i,v in pairs(tor:GetChildren()) do
  166. if v:IsA("Motor6D") then
  167. v.DesiredAngle = 0
  168. v.MaxVelocity = 0
  169. v.CurrentAngle = 0
  170. end
  171. end
  172. rs.C0,rs.C1 = c0.rs,c1.rs
  173. ls.C0,ls.C1 = c0.ls,c1.ls
  174. rh.C0,rh.C1 = c0.rh,c1.rh
  175. lh.C0,lh.C1 = c0.lh,c1.lh
  176. nk.C0,nk.C1 = c0.nk,c1.nk
  177.  
  178. local fnk = nk:Clone()
  179. fnk.Part0,fnk.Part1 = ftor,fhead
  180. fnk.Parent = fchar
  181. local tw = Instance.new("Motor6D",ftor)
  182. tw.Part0,tw.Part1 = tor,ftor
  183.  
  184. local h = Instance.new("Humanoid")
  185. h.MaxHealth = 0
  186. h.PlatformStand = true
  187. h.Parent = fchar
  188.  
  189. rs.Part0 = ftor
  190. ls.Part0 = ftor
  191. if frl and fll then
  192. rh = rh:Clone()
  193. lh = lh:Clone()
  194. rh.Part0 = ftor
  195. rh.Part1 = frl
  196. lh.Part0 = ftor
  197. lh.Part1 = fll
  198. rh.Parent = ftor
  199. lh.Parent = ftor
  200. else
  201. pcall(game.Destroy,frl)
  202. pcall(game.Destroy,fll)
  203. rh.Part0 = ftor
  204. lh.Part0 = ftor
  205. end
  206.  
  207. if ochar then
  208. for i,v in pairs(ochar:GetChildren()) do
  209. if v:IsA("Hat") then
  210. v.Parent = fchar
  211. end
  212. end
  213. ochar:Destroy()
  214. end
  215.  
  216. for i,v in pairs(char:GetChildren()) do
  217. if v:IsA("Hat") and v ~= fhat then
  218. v.Parent = fchar
  219. end
  220. end
  221.  
  222. nk.C1 = CFrame.new()
  223.  
  224. while false and runservice.Stepped:wait() do
  225. tw.C0 = CFrame.new(0,-3,0)*CFrame.Angles(math.sin(tick()*2)*1.3,0,0)*CFrame.new(0,3,0)
  226. nk.C0 = tor.CFrame:toObjectSpace(fhead.CFrame)
  227. end
  228.  
  229. for i,v in pairs(ra:GetChildren()) do
  230. if v:IsA("JointInstance") then
  231. v:Destroy()
  232. end
  233. end
  234.  
  235. function damage(hit,damage,cooldown)
  236. for i,v in pairs(hit:GetChildren()) do
  237. if v:IsA("Humanoid") and hit.Name ~= char.Name then
  238. local find = v:FindFirstChild("Hitz")
  239. if not find then
  240. if v.Parent:findFirstChild("Head") then
  241. local BillG = Instance.new("BillboardGui",v.Parent.Head)BillG.Size = UDim2.new(1,0,1,0)
  242. BillG.Adornee = v.Parent.Head BillG.StudsOffset = Vector3.new(math.random(-3,3),math.random(3,5),math.random(-3,3))
  243. local TL = Instance.new("TextLabel",BillG)TL.Size = UDim2.new(1,0,1,0)
  244. TL.BackgroundTransparency = 1 TL.Text = tostring(damage).."-"
  245. TL.TextColor3 = BrickColor.new("Dark stone grey").Color TL.TextStrokeColor3 = BrickColor.new("Silver").Color
  246. TL.TextStrokeTransparency = 0 TL.TextXAlignment = Enum.TextXAlignment.Center
  247. TL.TextYAlignment = Enum.TextYAlignment.Center TL.FontSize = Enum.FontSize.Size18
  248. TL.Font = "ArialBold"
  249. coroutine.resume(coroutine.create(function()
  250. wait(1)
  251. for i = 0,1,.1 do wait(.1) BillG.StudsOffset = BillG.StudsOffset+Vector3.new(0,.1,0) end
  252. BillG:Destroy()
  253. end))
  254. end
  255. v.Health = v.Health - damage local bool = Instance.new("BoolValue",v)bool.Name = 'Hitz'game:GetService("Debris"):AddItem(bool,cooldown)
  256. end
  257. end
  258. end
  259. end
  260.  
  261. function weld(a,b,c,d)
  262. local w = Instance.new("Weld",a)
  263. w.Part0 = a
  264. w.Part1 = b
  265. w.C0 = c or CFrame.new()
  266. w.C1 = d or CFrame.new()
  267. return w
  268. end
  269.  
  270.  
  271.  
  272. pcall(game.Destroy,char:FindFirstChild("AoT"))
  273. local model = Instance.new("Model",char)
  274. model.Name = "AoT"
  275.  
  276. local BasePart = Instance.new("Part")
  277. BasePart.Material = "SmoothPlastic"
  278. BasePart.CanCollide = false
  279. BasePart.FormFactor = "Custom"
  280. BasePart.Size = Vector3.new()
  281. BasePart.TopSurface,BasePart.BottomSurface,BasePart.LeftSurface,BasePart.RightSurface,BasePart.FrontSurface,BasePart.BackSurface = 10,10,10,10,10,10
  282. BasePart:BreakJoints()
  283.  
  284. function NP(par)
  285. local p = BasePart:Clone()
  286. p.Parent = par or model
  287. return p
  288. end
  289.  
  290. local bllen = 11*.3
  291. function createBlade(a,b,c)
  292. local sm = Instance.new("Model",model)
  293. sm.Name = "Blade"
  294. local cc = BasePart.CanCollide
  295. BasePart.CanCollide = false
  296. local han = NP(sm)
  297. han.Size = Vector3.new(.2,.2,.25)
  298. han.BrickColor = BrickColor.new("Light grey")
  299. han.Name = "Handle"
  300. Instance.new("BlockMesh",han).Scale = Vector3.new(.2,.75,1)
  301. local hanw = weld(a,han,b,c)
  302. hanw.Parent = han
  303. local p = NP(sm)
  304. p.Size = Vector3.new(.2,.2,.2)
  305. p.BrickColor = BrickColor.new("Light grey")
  306. Instance.new("BlockMesh",p).Scale = Vector3.new(.2,.6,.25)
  307. weld(han,p,CFrame.new(0,-.125,.05))
  308. local p = NP(sm)
  309. p.Size = Vector3.new(.2,.2,.2)
  310. p.BrickColor = BrickColor.new("Light grey")
  311. Instance.new("BlockMesh",p).Scale = Vector3.new(.2,.6,.25)
  312. weld(han,p,CFrame.new(0,-.125,-.05))
  313. local p = NP(sm)
  314. p.Size = Vector3.new(.2,.2,.27)
  315. p.BrickColor = BrickColor.new("Light grey")
  316. Instance.new("BlockMesh",p).Scale = Vector3.new(.225,.25,1)
  317. weld(han,p,CFrame.new(0,-.05,0))
  318.  
  319. local p = NP(sm)
  320. p.Size = Vector3.new(.2,bllen,.2)
  321. p.BrickColor = BrickColor.new("White")
  322. Instance.new("BlockMesh",p).Scale = Vector3.new(.1,1,1)
  323. weld(han,p,CFrame.new(0,bllen/2+.075,0.02))
  324. local hs1 = Instance.new("Sound",ra)
  325. hs1.SoundId = "rbxassetid://10209583"
  326.  
  327. p.Touched:connect(function(hit)
  328. pcall(function()
  329. if attacktype and hit.Name == "Vulnerable" and hit.Parent.Alive.Value then
  330. hit.Parent.Alive.Value = false
  331. hs1.Pitch = 1
  332. hs1:Play()
  333. end
  334. end)
  335. end)
  336.  
  337. local f = p:Clone()
  338. f.Parent = p.Parent
  339. f.Size = f.Size * f.Mesh.Scale
  340. f.Mesh:Destroy()
  341. f.CanCollide = false
  342. f.Transparency = 1
  343. weld(p,f,CFrame.new(.088,-.05,0))
  344. local Var = f.Touched:connect(function(Hit) damage(Hit.Parent,math.random(30,45),1) end)
  345. local t = Instance.new("Texture",f)
  346. t.StudsPerTileU = .3
  347. t.StudsPerTileV = .3
  348. t.Transparency = .5
  349. t.Texture = "rbxassetid://5752880"
  350. t.Face = "Left"
  351.  
  352. local f = p:Clone()
  353. f.Parent = p.Parent
  354. f.Size = f.Size * f.Mesh.Scale
  355. f.Mesh:Destroy()
  356. f.CanCollide = false
  357. f.Transparency = 1
  358. weld(p,f,CFrame.new(-.088,.05,0))
  359. local t = Instance.new("Texture",f)
  360. t.StudsPerTileU = .3
  361. t.StudsPerTileV = .3
  362. t.Transparency = .5
  363. t.Texture = "rbxassetid://5752880"
  364. t.Face = "Right"
  365.  
  366. lp = p
  367.  
  368. for i=0,(bllen/.3)-1 do
  369. local p = NP(sm)
  370. p.Transparency = .6
  371. p.BrickColor = BrickColor.new("Really black")
  372. p.Size = Vector3.new(.2,.2,.2)
  373. Instance.new("BlockMesh",p).Scale = Vector3.new(.102,.1,.01)
  374. weld(lp,p,CFrame.new(0,-bllen/2+.05+i*.3,.1))
  375. end
  376.  
  377. local p = NP(sm)
  378. p.Size = Vector3.new(.2,.2,.2)
  379. p.BrickColor = BrickColor.new("White")
  380. local mesh = Instance.new("SpecialMesh",p)
  381. mesh.MeshType = "Wedge"
  382. mesh.Scale = Vector3.new(.1,1,1)
  383. weld(lp,p,CFrame.new(0,bllen/2+.1,0)*CFrame.Angles(0,math.pi,0))
  384.  
  385. local md = Vector3.new(0,.1,-.14)
  386. local b = NP(sm)
  387. b.Size = Vector3.new(.2,bllen+.2,.2)
  388. b.BrickColor = BrickColor.new("White")
  389. b.Reflectance = .5
  390. Instance.new("BlockMesh",b).Scale = Vector3.new(0,1,math.sqrt(.01^2+.04^2)*5)
  391. weld(lp,b,CFrame.new(Vector3.new(.01,.1,-.1):Lerp(md,.5),md))
  392.  
  393. local b = NP(sm)
  394. b.Size = Vector3.new(.2,bllen+.2,.2)
  395. b.BrickColor = BrickColor.new("White")
  396. b.Reflectance = .5
  397. Instance.new("BlockMesh",b).Scale = Vector3.new(0,1,math.sqrt(.01^2+.04^2)*5)
  398. weld(lp,b,CFrame.new(Vector3.new(-.01,.1,-.1):Lerp(md,.5),md))
  399. BasePart.CanCollide = cc
  400. return sm,hanw
  401. end
  402.  
  403. local holdylen = 3.5
  404.  
  405. lH = NP()
  406. lH.Size = Vector3.new(.3,.8,holdylen)
  407. lH.BrickColor = BrickColor.new("Light grey")
  408. lHw = weld(fll,lH,CFrame.new(-.6,.2,.6)*CFrame.Angles(.2,.05,0))
  409.  
  410. leg = NP()
  411. leg.Size = Vector3.new(1.05,.25,1.05)
  412. leg.BrickColor = BrickColor.new("Black")
  413. weld(fll,leg,CFrame.new(0,.55,0))
  414.  
  415. leg = NP()
  416. leg.Size = Vector3.new(1.05,.25,1.05)
  417. leg.BrickColor = BrickColor.new("Black")
  418. weld(fll,leg,CFrame.new(0,.2,0))
  419.  
  420. p = NP()
  421. p.Size = Vector3.new(.2,.7,.2)
  422. p.BrickColor = BrickColor.new("Really black")
  423. Instance.new("BlockMesh",p).Scale = Vector3.new(.35,1,.05)
  424. weld(lH,p,CFrame.new(.065,0,-holdylen/2))
  425.  
  426. p = NP()
  427. p.Size = Vector3.new(.2,.7,.2)
  428. p.BrickColor = BrickColor.new("Really black")
  429. Instance.new("BlockMesh",p).Scale = Vector3.new(.35,1,.05)
  430. weld(lH,p,CFrame.new(-.065,0,-holdylen/2))
  431.  
  432. lH2 = NP()
  433. lH2.Size = Vector3.new(.3,.8,holdylen)
  434. lH2.BrickColor = BrickColor.new("Light grey")
  435. weld(lH,lH2,CFrame.new(-.304,0,0))
  436.  
  437. p = NP()
  438. p.Size = Vector3.new(.2,.7,.2)
  439. p.BrickColor = BrickColor.new("Really black")
  440. Instance.new("BlockMesh",p).Scale = Vector3.new(.35,1,.05)
  441. weld(lH2,p,CFrame.new(.065,0,-holdylen/2))
  442.  
  443. p = NP()
  444. p.Size = Vector3.new(.2,.7,.2)
  445. p.BrickColor = BrickColor.new("Really black")
  446. Instance.new("BlockMesh",p).Scale = Vector3.new(.35,1,.05)
  447. weld(lH2,p,CFrame.new(-.065,0,-holdylen/2))
  448.  
  449. p = NP()
  450. p.Size = Vector3.new(.2,.2,.2)
  451. p.BrickColor = BrickColor.new("Dark stone grey")
  452. Instance.new("BlockMesh",p).Scale = Vector3.new(.5,1,.5)
  453. weld(lH,p,CFrame.new(-.152,.5,-1.5))
  454. lp = p
  455. p = NP()
  456. p.Size = Vector3.new(.2,.2,.2)
  457. p.BrickColor = BrickColor.new("Dark stone grey")
  458. Instance.new("CylinderMesh",p).Scale = Vector3.new(.5,1.5,.5)
  459. weld(lp,p,CFrame.new(0,.1,0)*CFrame.Angles(math.pi/2,0,math.pi/2))
  460. p = NP()
  461. p.Size = Vector3.new(.2,.2,.2)
  462. p.BrickColor = BrickColor.new("Medium stone grey")
  463. Instance.new("CylinderMesh",p).Scale = Vector3.new(.5,1.5,.5)
  464. weld(lp,p,CFrame.new(0,.075,.125)*CFrame.Angles(math.pi/2,0,0))
  465. p = NP()
  466. p.Reflectance = .3
  467. p.Size = Vector3.new(.5,2.75,.5)
  468. p.BrickColor = BrickColor.new("White")
  469. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,1,1)
  470. weld(lH,p,CFrame.new(-.152,.6,.1)*CFrame.Angles(-math.pi/2,0,0))
  471. s = NP()
  472. s.Reflectance = .3
  473. s.Size = Vector3.new(.5,.5,.5)
  474. s.BrickColor = BrickColor.new("White")
  475. mesh = Instance.new("SpecialMesh",s)
  476. mesh.MeshType = "Sphere"
  477. mesh.Scale = Vector3.new(1,.35,1)
  478. weld(p,s,CFrame.new(0,-p.Size.Y/2,0)*CFrame.Angles(0,0,0))
  479. s = NP()
  480. s.Reflectance = .3
  481. s.Size = Vector3.new(.5,.5,.5)
  482. s.BrickColor = BrickColor.new("White")
  483. mesh = Instance.new("SpecialMesh",s)
  484. mesh.MeshType = "Sphere"
  485. mesh.Scale = Vector3.new(1,.35,1)
  486. weld(p,s,CFrame.new(0,p.Size.Y/2,0)*CFrame.Angles(0,0,0))
  487. lp = p
  488. p = NP()
  489. p.Size = Vector3.new(.65,.35,1.3)
  490. p.BrickColor = BrickColor.new("Dark stone grey")
  491. Instance.new("BlockMesh",p).Scale = Vector3.new(1,1,1)
  492. weld(lp,p,CFrame.new(0,.8,-0.375))
  493. p = NP()
  494. p.Size = Vector3.new(.65,.35,1.3)
  495. p.BrickColor = BrickColor.new("Dark stone grey")
  496. Instance.new("BlockMesh",p).Scale = Vector3.new(1,1,1)
  497. weld(lp,p,CFrame.new(0,0,-0.375))
  498. p = NP()
  499. p.Size = Vector3.new(.65,.35,1.3)
  500. p.BrickColor = BrickColor.new("Dark stone grey")
  501. Instance.new("BlockMesh",p).Scale = Vector3.new(1,1,1)
  502. weld(lp,p,CFrame.new(0,-.8,-0.375))
  503.  
  504.  
  505. rH = NP()
  506. rH.Size = Vector3.new(.3,.8,holdylen)
  507. rH.BrickColor = BrickColor.new("Light grey")
  508. rHw = weld(frl,rH,CFrame.new(.6,.2,.6)*CFrame.Angles(.2,-.05,0))
  509.  
  510. leg = NP()
  511. leg.Size = Vector3.new(1.05,.25,1.05)
  512. leg.BrickColor = BrickColor.new("Black")
  513. weld(frl,leg,CFrame.new(0,.55,0))
  514.  
  515. leg = NP()
  516. leg.Size = Vector3.new(1.05,.25,1.05)
  517. leg.BrickColor = BrickColor.new("Black")
  518. weld(frl,leg,CFrame.new(0,.2,0))
  519.  
  520. p = NP()
  521. p.Size = Vector3.new(.2,.7,.2)
  522. p.BrickColor = BrickColor.new("Really black")
  523. Instance.new("BlockMesh",p).Scale = Vector3.new(.35,1,.05)
  524. weld(rH,p,CFrame.new(.065,0,-holdylen/2))
  525.  
  526. p = NP()
  527. p.Size = Vector3.new(.2,.7,.2)
  528. p.BrickColor = BrickColor.new("Really black")
  529. Instance.new("BlockMesh",p).Scale = Vector3.new(.35,1,.05)
  530. weld(rH,p,CFrame.new(-.065,0,-holdylen/2))
  531.  
  532. rH2 = NP()
  533. rH2.Size = Vector3.new(.3,.8,holdylen)
  534. rH2.BrickColor = BrickColor.new("Light grey")
  535. weld(rH,rH2,CFrame.new(.304,0,0))
  536.  
  537. p = NP()
  538. p.Size = Vector3.new(.2,.7,.2)
  539. p.BrickColor = BrickColor.new("Really black")
  540. Instance.new("BlockMesh",p).Scale = Vector3.new(.35,1,.05)
  541. weld(rH2,p,CFrame.new(.065,0,-holdylen/2))
  542.  
  543. p = NP()
  544. p.Size = Vector3.new(.2,.7,.2)
  545. p.BrickColor = BrickColor.new("Really black")
  546. Instance.new("BlockMesh",p).Scale = Vector3.new(.35,1,.05)
  547. weld(rH2,p,CFrame.new(-.065,0,-holdylen/2))
  548.  
  549. p = NP()
  550. p.Size = Vector3.new(.2,.2,.2)
  551. p.BrickColor = BrickColor.new("Dark stone grey")
  552. Instance.new("BlockMesh",p).Scale = Vector3.new(.5,1,.5)
  553. weld(rH,p,CFrame.new(.152,.5,-1.5))
  554. lp = p
  555. p = NP()
  556. p.Size = Vector3.new(.2,.2,.2)
  557. p.BrickColor = BrickColor.new("Dark stone grey")
  558. Instance.new("CylinderMesh",p).Scale = Vector3.new(.5,1.5,.5)
  559. weld(lp,p,CFrame.new(0,.1,0)*CFrame.Angles(math.pi/2,0,math.pi/2))
  560. p = NP()
  561. p.Size = Vector3.new(.2,.2,.2)
  562. p.BrickColor = BrickColor.new("Medium stone grey")
  563. Instance.new("CylinderMesh",p).Scale = Vector3.new(.5,1.5,.5)
  564. weld(lp,p,CFrame.new(0,.075,.125)*CFrame.Angles(math.pi/2,0,0))
  565. p = NP()
  566. p.Size = Vector3.new(.5,2.75,.5)
  567. p.Reflectance = .3
  568. p.BrickColor = BrickColor.new("White")
  569. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,1,1)
  570. weld(rH,p,CFrame.new(.152,.6,.1)*CFrame.Angles(-math.pi/2,0,0))
  571. s = NP()
  572. s.Size = Vector3.new(.5,.5,.5)
  573. s.Reflectance = .3
  574. s.BrickColor = BrickColor.new("White")
  575. mesh = Instance.new("SpecialMesh",s)
  576. mesh.MeshType = "Sphere"
  577. mesh.Scale = Vector3.new(1,.35,1)
  578. weld(p,s,CFrame.new(0,-p.Size.Y/2,0)*CFrame.Angles(0,0,0))
  579. s = NP()
  580. s.Size = Vector3.new(.5,.5,.5)
  581. s.Reflectance = .3
  582. s.BrickColor = BrickColor.new("White")
  583. mesh = Instance.new("SpecialMesh",s)
  584. mesh.MeshType = "Sphere"
  585. mesh.Scale = Vector3.new(1,.35,1)
  586. weld(p,s,CFrame.new(0,p.Size.Y/2,0)*CFrame.Angles(0,0,0))
  587. s,mesh = nil,nil
  588. lp = p
  589. p = NP()
  590. p.Size = Vector3.new(.65,.35,1.3)
  591. p.BrickColor = BrickColor.new("Dark stone grey")
  592. Instance.new("BlockMesh",p).Scale = Vector3.new(1,1,1)
  593. weld(lp,p,CFrame.new(0,.8,-0.375))
  594. p = NP()
  595. p.Size = Vector3.new(.65,.35,1.3)
  596. p.BrickColor = BrickColor.new("Dark stone grey")
  597. Instance.new("BlockMesh",p).Scale = Vector3.new(1,1,1)
  598. weld(lp,p,CFrame.new(0,0,-0.375))
  599. p = NP()
  600. p.Size = Vector3.new(.65,.35,1.3)
  601. p.BrickColor = BrickColor.new("Dark stone grey")
  602. Instance.new("BlockMesh",p).Scale = Vector3.new(1,1,1)
  603. weld(lp,p,CFrame.new(0,-.8,-0.375))
  604.  
  605.  
  606. rhan = NP()
  607. rhan.Size = Vector3.new(.26,1.1,.2)
  608. rhan.BrickColor = BrickColor.new("Black")
  609. Instance.new("BlockMesh",rhan).Scale = Vector3.new(.5,1,1)
  610. rhanw = weld(ra,rhan,CFrame.new(0,-.95,0)*CFrame.Angles(-math.pi/2,0,0))
  611.  
  612. p = NP()
  613. p.Size = Vector3.new(.25,1.3,.2)
  614. p.Reflectance = .2
  615. p.BrickColor = BrickColor.new("Light grey")
  616. Instance.new("BlockMesh",p).Scale = Vector3.new(.5,1,1)
  617. weld(rhan,p,CFrame.new(0,0,.09-.1))
  618. lp = p
  619. p = NP()
  620. p.Size = Vector3.new(.25,.2,.25)
  621. p.Reflectance = .2
  622. p.BrickColor = BrickColor.new("Light grey")
  623. Instance.new("BlockMesh",p).Scale = Vector3.new(.52,1,1)
  624. weld(lp,p,CFrame.new(0,-.675,-.02)*CFrame.Angles(.1,0,0))
  625. p = NP()
  626. p.Size = Vector3.new(.2,.2,.25)
  627. p.Reflectance = .2
  628. p.BrickColor = BrickColor.new("Light grey")
  629. Instance.new("BlockMesh",p).Scale = Vector3.new(.513,.25,1)
  630. weld(lp,p,CFrame.new(0,.55,-.1))
  631. p = NP()
  632. p.Size = Vector3.new(.2,.2,.25)
  633. p.Reflectance = .2
  634. p.BrickColor = BrickColor.new("Light grey")
  635. Instance.new("BlockMesh",p).Scale = Vector3.new(.51,.25,1)
  636. weld(lp,p,CFrame.new(0,.4,-.085))
  637. p = NP()
  638. p.Size = Vector3.new(.2,.2,.25)
  639. p.Reflectance = .2
  640. p.BrickColor = BrickColor.new("Light grey")
  641. Instance.new("BlockMesh",p).Scale = Vector3.new(.513,.25,1)
  642. weld(lp,p,CFrame.new(0,.25,-.07))
  643. p = NP()
  644. p.Size = Vector3.new(.2,.2,.2)
  645. p.Reflectance = .2
  646. p.BrickColor = BrickColor.new("Light grey")
  647. Instance.new("BlockMesh",p).Scale = Vector3.new(.515,1,.25)
  648. weld(lp,p,CFrame.new(0,.324,-.195)*CFrame.Angles(-.1,0,0))
  649. p = NP()
  650. p.Size = Vector3.new(.2,.2,.2)
  651. p.Reflectance = .2
  652. p.BrickColor = BrickColor.new("Light grey")
  653. Instance.new("BlockMesh",p).Scale = Vector3.new(.514,1,.25)
  654. weld(lp,p,CFrame.new(0,.5185,-.2044)*CFrame.Angles(0,0,0))
  655.  
  656. p = NP()
  657. p.Size = Vector3.new(.25,.2,.25)
  658. p.Reflectance = .2
  659. p.BrickColor = BrickColor.new("Light grey")
  660. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,.4,1)
  661. weld(lp,p,CFrame.new(0,.605,-.125)*CFrame.Angles(0,0,0))
  662.  
  663. p = NP()
  664. p.Size = Vector3.new(.2,.2,.3)
  665. p.Reflectance = .2
  666. p.BrickColor = BrickColor.new("Light grey")
  667. Instance.new("BlockMesh",p).Scale = Vector3.new(.75,.5,1)
  668. weld(lp,p,CFrame.new(0,.675,-.05)*CFrame.Angles(0,0,0))
  669. lp = p
  670. p = NP()
  671. p.Size = Vector3.new(.2,.2,.3)
  672. p.Reflectance = .1
  673. p.BrickColor = BrickColor.new("Medium stone grey")
  674. Instance.new("BlockMesh",p).Scale = Vector3.new(.752,.1,1.02)
  675. weld(lp,p,CFrame.new(0,.025,0)*CFrame.Angles(0,0,0))
  676. p = NP()
  677. p.Size = Vector3.new(.2,.2,.3)
  678. p.Reflectance = .1
  679. p.BrickColor = BrickColor.new("Medium stone grey")
  680. Instance.new("BlockMesh",p).Scale = Vector3.new(.752,.1,1.02)
  681. weld(lp,p,CFrame.new(0,-.025,0)*CFrame.Angles(0,0,0))
  682. p = NP()
  683. p.Size = Vector3.new(.2,.2,.3)
  684. p.BrickColor = BrickColor.new("Really black")
  685. Instance.new("BlockMesh",p).Scale = Vector3.new(.3,0.05,.95)
  686. weld(lp,p,CFrame.new(0,.05,0)*CFrame.Angles(0,0,0))
  687. p = NP()
  688. p.Size = Vector3.new(.2,.2,.2)
  689. p.Reflectance = .2
  690. p.BrickColor = BrickColor.new("Light grey")
  691. Instance.new("BlockMesh",p).Scale = Vector3.new(.35,1,.2)
  692. weld(lp,p,CFrame.new(0,-.1,-.175)*CFrame.Angles(.45,0,0),CFrame.new(0,.1,0))
  693. lp = p
  694. p = NP()
  695. p.Size = Vector3.new(.2,.2,.2)
  696. p.Reflectance = .2
  697. p.BrickColor = BrickColor.new("Light grey")
  698. Instance.new("BlockMesh",p).Scale = Vector3.new(.3505,1,.2)
  699. weld(lp,p,CFrame.new(0,-.1,-.02)*CFrame.Angles(-.65,0,0)*CFrame.new(0,0,.02),CFrame.new(0,.1,0))
  700. lp = p
  701. p = NP()
  702. p.Size = Vector3.new(.2,.2,.2)
  703. p.Reflectance = .2
  704. p.BrickColor = BrickColor.new("Light grey")
  705. Instance.new("BlockMesh",p).Scale = Vector3.new(.3505,1,.2)
  706. weld(lp,p,CFrame.new(0,-.1,.02)*CFrame.Angles(.25,0,0)*CFrame.new(0,0,-.02),CFrame.new(0,.1,0))
  707. lp = p
  708. p = NP()
  709. p.Size = Vector3.new(.2,.2,.2)
  710. p.Reflectance = .2
  711. p.BrickColor = BrickColor.new("Light grey")
  712. Instance.new("BlockMesh",p).Scale = Vector3.new(.3505,1,.2)
  713. weld(lp,p,CFrame.new(0,-.1,.02)*CFrame.Angles(.05,0,0)*CFrame.new(0,0,-.02),CFrame.new(0,.1,0))
  714. lp = p
  715. p = NP()
  716. p.Size = Vector3.new(.2,.2,.2)
  717. p.Reflectance = .2
  718. p.BrickColor = BrickColor.new("Light grey")
  719. Instance.new("BlockMesh",p).Scale = Vector3.new(.3505,1,.2)
  720. weld(lp,p,CFrame.new(0,-.1,.02)*CFrame.Angles(.15,0,0)*CFrame.new(0,0,-.02),CFrame.new(0,.1,0))
  721.  
  722.  
  723.  
  724. lhan = NP()
  725. lhan.Size = Vector3.new(.26,1.1,.2)
  726. lhan.BrickColor = BrickColor.new("Black")
  727. Instance.new("BlockMesh",lhan).Scale = Vector3.new(.5,1,1)
  728. lhanw = weld(la,lhan,CFrame.new(0,-.95,0)*CFrame.Angles(-math.pi/2,0,0))
  729.  
  730. p = NP()
  731. p.Size = Vector3.new(.25,1.3,.2)
  732. p.Reflectance = .2
  733. p.BrickColor = BrickColor.new("Light grey")
  734. Instance.new("BlockMesh",p).Scale = Vector3.new(.5,1,1)
  735. weld(lhan,p,CFrame.new(0,0,.09-.1))
  736. lp = p
  737. p = NP()
  738. p.Size = Vector3.new(.25,.2,.25)
  739. p.Reflectance = .2
  740. p.BrickColor = BrickColor.new("Light grey")
  741. Instance.new("BlockMesh",p).Scale = Vector3.new(.52,1,1)
  742. weld(lp,p,CFrame.new(0,-.675,-.02)*CFrame.Angles(.1,0,0))
  743. p = NP()
  744. p.Size = Vector3.new(.2,.2,.25)
  745. p.Reflectance = .2
  746. p.BrickColor = BrickColor.new("Light grey")
  747. Instance.new("BlockMesh",p).Scale = Vector3.new(.513,.25,1)
  748. weld(lp,p,CFrame.new(0,.55,-.1))
  749. p = NP()
  750. p.Size = Vector3.new(.2,.2,.25)
  751. p.Reflectance = .2
  752. p.BrickColor = BrickColor.new("Light grey")
  753. Instance.new("BlockMesh",p).Scale = Vector3.new(.51,.25,1)
  754. weld(lp,p,CFrame.new(0,.4,-.085))
  755. p = NP()
  756. p.Size = Vector3.new(.2,.2,.25)
  757. p.Reflectance = .2
  758. p.BrickColor = BrickColor.new("Light grey")
  759. Instance.new("BlockMesh",p).Scale = Vector3.new(.513,.25,1)
  760. weld(lp,p,CFrame.new(0,.25,-.07))
  761. p = NP()
  762. p.Size = Vector3.new(.2,.2,.2)
  763. p.Reflectance = .2
  764. p.BrickColor = BrickColor.new("Light grey")
  765. Instance.new("BlockMesh",p).Scale = Vector3.new(.515,1,.25)
  766. weld(lp,p,CFrame.new(0,.324,-.195)*CFrame.Angles(-.1,0,0))
  767. p = NP()
  768. p.Size = Vector3.new(.2,.2,.2)
  769. p.Reflectance = .2
  770. p.BrickColor = BrickColor.new("Light grey")
  771. Instance.new("BlockMesh",p).Scale = Vector3.new(.514,1,.25)
  772. weld(lp,p,CFrame.new(0,.5185,-.2044)*CFrame.Angles(0,0,0))
  773.  
  774. p = NP()
  775. p.Size = Vector3.new(.25,.2,.25)
  776. p.Reflectance = .2
  777. p.BrickColor = BrickColor.new("Light grey")
  778. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,.4,1)
  779. weld(lp,p,CFrame.new(0,.605,-.125)*CFrame.Angles(0,0,0))
  780.  
  781. p = NP()
  782. p.Size = Vector3.new(.2,.2,.3)
  783. p.Reflectance = .2
  784. p.BrickColor = BrickColor.new("Light grey")
  785. Instance.new("BlockMesh",p).Scale = Vector3.new(.75,.5,1)
  786. weld(lp,p,CFrame.new(0,.675,-.05)*CFrame.Angles(0,0,0))
  787. lp = p
  788. p = NP()
  789. p.Size = Vector3.new(.2,.2,.3)
  790. p.Reflectance = .1
  791. p.BrickColor = BrickColor.new("Medium stone grey")
  792. Instance.new("BlockMesh",p).Scale = Vector3.new(.752,.1,1.02)
  793. weld(lp,p,CFrame.new(0,.025,0)*CFrame.Angles(0,0,0))
  794. p = NP()
  795. p.Size = Vector3.new(.2,.2,.3)
  796. p.Reflectance = .1
  797. p.BrickColor = BrickColor.new("Medium stone grey")
  798. Instance.new("BlockMesh",p).Scale = Vector3.new(.752,.1,1.02)
  799. weld(lp,p,CFrame.new(0,-.025,0)*CFrame.Angles(0,0,0))
  800. p = NP()
  801. p.Size = Vector3.new(.2,.2,.3)
  802. p.BrickColor = BrickColor.new("Really black")
  803. Instance.new("BlockMesh",p).Scale = Vector3.new(.3,0.05,.95)
  804. weld(lp,p,CFrame.new(0,.05,0)*CFrame.Angles(0,0,0))
  805. p = NP()
  806. p.Size = Vector3.new(.2,.2,.2)
  807. p.Reflectance = .2
  808. p.BrickColor = BrickColor.new("Light grey")
  809. Instance.new("BlockMesh",p).Scale = Vector3.new(.35,1,.2)
  810. weld(lp,p,CFrame.new(0,-.1,-.175)*CFrame.Angles(.45,0,0),CFrame.new(0,.1,0))
  811. lp = p
  812. p = NP()
  813. p.Size = Vector3.new(.2,.2,.2)
  814. p.Reflectance = .2
  815. p.BrickColor = BrickColor.new("Light grey")
  816. Instance.new("BlockMesh",p).Scale = Vector3.new(.3505,1,.2)
  817. weld(lp,p,CFrame.new(0,-.1,-.02)*CFrame.Angles(-.65,0,0)*CFrame.new(0,0,.02),CFrame.new(0,.1,0))
  818. lp = p
  819. p = NP()
  820. p.Size = Vector3.new(.2,.2,.2)
  821. p.Reflectance = .2
  822. p.BrickColor = BrickColor.new("Light grey")
  823. Instance.new("BlockMesh",p).Scale = Vector3.new(.3505,1,.2)
  824. weld(lp,p,CFrame.new(0,-.1,.02)*CFrame.Angles(.25,0,0)*CFrame.new(0,0,-.02),CFrame.new(0,.1,0))
  825. lp = p
  826. p = NP()
  827. p.Size = Vector3.new(.2,.2,.2)
  828. p.Reflectance = .2
  829. p.BrickColor = BrickColor.new("Light grey")
  830. Instance.new("BlockMesh",p).Scale = Vector3.new(.3505,1,.2)
  831. weld(lp,p,CFrame.new(0,-.1,.02)*CFrame.Angles(.05,0,0)*CFrame.new(0,0,-.02),CFrame.new(0,.1,0))
  832. lp = p
  833. p = NP()
  834. p.Size = Vector3.new(.2,.2,.2)
  835. p.Reflectance = .2
  836. p.BrickColor = BrickColor.new("Light grey")
  837. Instance.new("BlockMesh",p).Scale = Vector3.new(.3505,1,.2)
  838. weld(lp,p,CFrame.new(0,-.1,.02)*CFrame.Angles(.15,0,0)*CFrame.new(0,0,-.02),CFrame.new(0,.1,0))
  839.  
  840. p = NP()
  841. p.Size = Vector3.new(.25,1.3,.2)
  842. p.Reflectance = .2
  843. p.BrickColor = BrickColor.new("Light grey")
  844. Instance.new("BlockMesh",p).Scale = Vector3.new(.5,1,1)
  845. weld(lhan,p,CFrame.new(0,0,.09-.1))
  846. lp = p
  847. p = NP()
  848. p.Size = Vector3.new(.25,.2,.25)
  849. p.Reflectance = .2
  850. p.BrickColor = BrickColor.new("Light grey")
  851. Instance.new("BlockMesh",p).Scale = Vector3.new(.52,1,1)
  852. weld(lp,p,CFrame.new(0,-.675,-.02)*CFrame.Angles(.1,0,0))
  853. p = NP()
  854. p.Size = Vector3.new(.2,.2,.25)
  855. p.Reflectance = .2
  856. p.BrickColor = BrickColor.new("Light grey")
  857. Instance.new("BlockMesh",p).Scale = Vector3.new(.513,.25,1)
  858. weld(lp,p,CFrame.new(0,.55,-.1))
  859. p = NP()
  860. p.Size = Vector3.new(.2,.2,.25)
  861. p.Reflectance = .2
  862. p.BrickColor = BrickColor.new("Light grey")
  863. Instance.new("BlockMesh",p).Scale = Vector3.new(.51,.25,1)
  864. weld(lp,p,CFrame.new(0,.4,-.085))
  865. p = NP()
  866. p.Size = Vector3.new(.2,.2,.25)
  867. p.Reflectance = .2
  868. p.BrickColor = BrickColor.new("Light grey")
  869. Instance.new("BlockMesh",p).Scale = Vector3.new(.513,.25,1)
  870. weld(lp,p,CFrame.new(0,.25,-.07))
  871. p = NP()
  872. p.Size = Vector3.new(.2,.2,.2)
  873. p.Reflectance = .2
  874. p.BrickColor = BrickColor.new("Light grey")
  875. Instance.new("BlockMesh",p).Scale = Vector3.new(.515,1,.25)
  876. weld(lp,p,CFrame.new(0,.324,-.195)*CFrame.Angles(-.1,0,0))
  877. p = NP()
  878. p.Size = Vector3.new(.2,.2,.2)
  879. p.Reflectance = .2
  880. p.BrickColor = BrickColor.new("Light grey")
  881. Instance.new("BlockMesh",p).Scale = Vector3.new(.514,1,.25)
  882. weld(lp,p,CFrame.new(0,.5185,-.2044)*CFrame.Angles(0,0,0))
  883.  
  884. p = NP()
  885. p.Size = Vector3.new(.25,.2,.25)
  886. p.Reflectance = .2
  887. p.BrickColor = BrickColor.new("Light grey")
  888. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,.4,1)
  889. weld(lp,p,CFrame.new(0,.605,-.125)*CFrame.Angles(0,0,0))
  890.  
  891. p = NP()
  892. p.Size = Vector3.new(.2,.2,.3)
  893. p.Reflectance = .2
  894. p.BrickColor = BrickColor.new("Light grey")
  895. Instance.new("BlockMesh",p).Scale = Vector3.new(.75,.5,1)
  896. weld(lp,p,CFrame.new(0,.675,-.05)*CFrame.Angles(0,0,0))
  897. lp = p
  898. p = NP()
  899. p.Size = Vector3.new(.2,.2,.3)
  900. p.Reflectance = .1
  901. p.BrickColor = BrickColor.new("Medium stone grey")
  902. Instance.new("BlockMesh",p).Scale = Vector3.new(.752,.1,1.02)
  903. weld(lp,p,CFrame.new(0,.025,0)*CFrame.Angles(0,0,0))
  904. p = NP()
  905. p.Size = Vector3.new(.2,.2,.3)
  906. p.Reflectance = .1
  907. p.BrickColor = BrickColor.new("Medium stone grey")
  908. Instance.new("BlockMesh",p).Scale = Vector3.new(.752,.1,1.02)
  909. weld(lp,p,CFrame.new(0,-.025,0)*CFrame.Angles(0,0,0))
  910. p = NP()
  911. p.Size = Vector3.new(.2,.2,.3)
  912. p.BrickColor = BrickColor.new("Really black")
  913. Instance.new("BlockMesh",p).Scale = Vector3.new(.3,0.05,.95)
  914. weld(lp,p,CFrame.new(0,.05,0)*CFrame.Angles(0,0,0))
  915.  
  916. belt = NP()
  917. belt.Size = Vector3.new(2.05,.4,1.05)
  918. belt.BrickColor = BrickColor.new("Black")
  919. Instance.new("BlockMesh",belt).Scale = Vector3.new(1,1,1)
  920. weld(ftor,belt,CFrame.new(0,-.75,0)*CFrame.Angles(0,0,0))
  921.  
  922. lSM = Instance.new("Model",model)
  923. lSH = Instance.new("Humanoid",lSM)
  924. lSH.PlatformStand = true
  925. lSH.MaxHealth = 0
  926. lSL = Instance.new("SelectionPointLasso",lSH)
  927. lSL.Humanoid = lSH
  928. lSL.Color = BrickColor.new("Really black")
  929. lSL.Visible = false
  930. lS = NP()
  931. lS.Size = Vector3.new(.25,.3,1.5)
  932. lS.BrickColor = BrickColor.new("Really black")
  933. Instance.new("BlockMesh",lS).Scale = Vector3.new(1,1,1)
  934. weld(belt,lS,CFrame.new(-1.05,0,0)*CFrame.Angles(.2,0,0)+Vector3.new(0,.05,0))
  935. p = NP()
  936. p.Size = Vector3.new(lS.Size.X,lS.Size.Z,lS.Size.X)
  937. p.BrickColor = BrickColor.new("Really black")
  938. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,1,1)
  939. weld(lS,p,CFrame.new(0,lS.Size.Y/2,0)*CFrame.Angles(-math.pi/2,0,0))
  940.  
  941. p = NP()
  942. p.Size = Vector3.new(.28,.32,.2)
  943. p.Reflectance = .8
  944. p.BrickColor = BrickColor.new("Light grey")
  945. Instance.new("BlockMesh",p).Scale = Vector3.new(1,1,.5)
  946. weld(lS,p,CFrame.new(0,0,-.65))
  947. lp = p
  948. p = NP(lSM)
  949. p.Name = "Torso"
  950. wait(.5)
  951. p.Size = Vector3.new(lp.Size.X,lp.Size.Z,lp.Size.X)
  952. p.Reflectance = .8
  953. p.BrickColor = BrickColor.new("Light grey")
  954. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,.5,1)
  955. weld(lp,p,CFrame.new(0,lp.Size.Y/2,0)*CFrame.Angles(-math.pi/2,0,0))
  956.  
  957. rSM = Instance.new("Model",model)
  958. rSH = Instance.new("Humanoid",rSM)
  959. rSH.PlatformStand = true
  960. rSH.MaxHealth = 0
  961. rSL = Instance.new("SelectionPointLasso",rSH)
  962. rSL.Color = BrickColor.new("Really black")
  963. rSL.Humanoid = rSH
  964. rSL.Visible = false
  965. rS = NP(rSM)
  966. rS.Size = Vector3.new(.25,.3,1.5)
  967. rS.BrickColor = BrickColor.new("Really black")
  968. Instance.new("BlockMesh",rS).Scale = Vector3.new(1,1,1)
  969. weld(belt,rS,CFrame.new(1.05,0,0)*CFrame.Angles(.2,0,0)+Vector3.new(0,.05,0))
  970. p = NP()
  971. p.Size = Vector3.new(rS.Size.X,rS.Size.Z,rS.Size.X)
  972. p.BrickColor = BrickColor.new("Really black")
  973. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,1,1)
  974. weld(rS,p,CFrame.new(0,rS.Size.Y/2,0)*CFrame.Angles(-math.pi/2,0,0))
  975.  
  976. p = NP()
  977. p.Size = Vector3.new(.28,.32,.2)
  978. p.Reflectance = .8
  979. p.BrickColor = BrickColor.new("Light grey")
  980. Instance.new("BlockMesh",p).Scale = Vector3.new(1,1,.5)
  981. weld(rS,p,CFrame.new(0,0,-.65))
  982. lp = p
  983. p = NP(rSM)
  984. p.Name = "Torso"
  985. wait(.5)
  986. p.Size = Vector3.new(lp.Size.X,lp.Size.Z,lp.Size.X)
  987. p.Reflectance = .8
  988. p.BrickColor = BrickColor.new("Light grey")
  989. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,.5,1)
  990. weld(lp,p,CFrame.new(0,lp.Size.Y/2,0)*CFrame.Angles(-math.pi/2,0,0))
  991.  
  992. p = NP()
  993. p.Size = Vector3.new(.65,.2,.65)
  994. p.Reflectance = .3
  995. p.BrickColor = BrickColor.new("Light grey")
  996. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,1,1)
  997. btw = weld(belt,p,CFrame.new(0,.2,.8)*CFrame.Angles(.45,0,0))
  998. lb = p
  999. lp = p
  1000. p = NP()
  1001. p.Size = Vector3.new(.4,.45,.4)
  1002. p.BrickColor = BrickColor.new("Black")
  1003. Instance.new("BlockMesh",p).Scale = Vector3.new(1,1,1)
  1004. weld(lp,p,CFrame.new(0,-.2,-.225)*CFrame.Angles(.45,0,0))
  1005.  
  1006. p = NP()
  1007. p.Size = Vector3.new(.2,.2,.2)
  1008. p.Reflectance = .3
  1009. p.BrickColor = BrickColor.new("Light grey")
  1010. Instance.new("BlockMesh",p).Scale = Vector3.new(1,.5,1)
  1011. weld(lp,p,CFrame.new(0,.025,.3)*CFrame.Angles(.15,0,0))
  1012.  
  1013. p = NP()
  1014. p.Size = Vector3.new(.2,.2,.2)
  1015. p.Reflectance = .3
  1016. p.BrickColor = BrickColor.new("Light grey")
  1017. Instance.new("BlockMesh",p).Scale = Vector3.new(1.75,.25,1.75)
  1018. weld(lp,p,CFrame.new(0,-.025,.4)*CFrame.Angles(.25,0,0))
  1019.  
  1020. p = NP()
  1021. p.Size = Vector3.new(.2,.2,.2)
  1022. p.Reflectance = .3
  1023. p.BrickColor = BrickColor.new("Light grey")
  1024. Instance.new("BlockMesh",p).Scale = Vector3.new(1.1,.2,2)
  1025. weld(lp,p,CFrame.new(.35,-.125,.15)*CFrame.Angles(0,1.4,0)*CFrame.Angles(.7,0,0))
  1026. lp = p
  1027.  
  1028. p = NP()
  1029. p.Size = Vector3.new(.2,.4,.2)
  1030. p.Reflectance = .3
  1031. p.BrickColor = BrickColor.new("Light grey")
  1032. Instance.new("CylinderMesh",p).Scale = Vector3.new(.7,1,.7)
  1033. weld(lp,p,CFrame.new(0,.2,.1))
  1034. lp = p
  1035.  
  1036. p = NP()
  1037. p.Size = Vector3.new(.8,.2,.8)
  1038. p.Reflectance = .3
  1039. p.BrickColor = BrickColor.new("Medium stone grey")
  1040. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,.75,1)
  1041. weld(lp,p,CFrame.new(0,.2,0))
  1042. lp = p
  1043. p = NP()
  1044. p.Size = Vector3.new(.4,.2,.4)
  1045. p.Reflectance = .3
  1046. p.BrickColor = BrickColor.new("Dark stone grey")
  1047. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,.05,1)
  1048. weld(lp,p,CFrame.new(0,.075,0))
  1049.  
  1050. p = NP()
  1051. p.Size = Vector3.new(.2,.2,.2)
  1052. p.Reflectance = .3
  1053. p.BrickColor = BrickColor.new("Light grey")
  1054. Instance.new("BlockMesh",p).Scale = Vector3.new(.75,.1,1)
  1055. weld(lp,p,CFrame.Angles(0,-2.8,0)*CFrame.new(0,.075,-.45))
  1056. lp = p
  1057. p = NP()
  1058. p.Size = Vector3.new(.2,.2,.2)
  1059. p.Reflectance = .3
  1060. p.BrickColor = BrickColor.new("Light grey")
  1061. Instance.new("BlockMesh",p).Scale = Vector3.new(.75,.5,.1)
  1062. weld(lp,p,CFrame.new(0,-.05,-.1+.01))
  1063. p = NP()
  1064. p.Size = Vector3.new(.2,.2,.2)
  1065. p.Reflectance = .3
  1066. p.BrickColor = BrickColor.new("Light grey")
  1067. Instance.new("BlockMesh",p).Scale = Vector3.new(.75,.1,.3)
  1068. weld(lp,p,CFrame.new(0,-.1+.01,-.1+.03))
  1069.  
  1070.  
  1071. p = NP()
  1072. p.Size = Vector3.new(.2,.2,.2)
  1073. p.Reflectance = .3
  1074. p.BrickColor = BrickColor.new("Light grey")
  1075. Instance.new("BlockMesh",p).Scale = Vector3.new(1.1,.2,2)
  1076. weld(lb,p,CFrame.new(-.35,-.125,.15)*CFrame.Angles(0,-1.4,0)*CFrame.Angles(.7,0,0))
  1077. lp = p
  1078.  
  1079. p = NP()
  1080. p.Size = Vector3.new(.2,.4,.2)
  1081. p.Reflectance = .3
  1082. p.BrickColor = BrickColor.new("Light grey")
  1083. Instance.new("CylinderMesh",p).Scale = Vector3.new(.7,1,.7)
  1084. weld(lp,p,CFrame.new(0,.2,.1))
  1085. lp = p
  1086.  
  1087. p = NP()
  1088. p.Size = Vector3.new(.8,.2,.8)
  1089. p.Reflectance = .3
  1090. p.BrickColor = BrickColor.new("Medium stone grey")
  1091. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,.75,1)
  1092. weld(lp,p,CFrame.new(0,.2,0))
  1093. lp = p
  1094. p = NP()
  1095. p.Size = Vector3.new(.4,.2,.4)
  1096. p.Reflectance = .3
  1097. p.BrickColor = BrickColor.new("Dark stone grey")
  1098. Instance.new("CylinderMesh",p).Scale = Vector3.new(1,.05,1)
  1099. weld(lp,p,CFrame.new(0,.075,0))
  1100.  
  1101. p = NP()
  1102. p.Size = Vector3.new(.2,.2,.2)
  1103. p.Reflectance = .3
  1104. p.BrickColor = BrickColor.new("Light grey")
  1105. Instance.new("BlockMesh",p).Scale = Vector3.new(.75,.1,1)
  1106. weld(lp,p,CFrame.Angles(0,-2.8,0)*CFrame.new(0,.075,-.45))
  1107. lp = p
  1108. p = NP()
  1109. p.Size = Vector3.new(.2,.2,.2)
  1110. p.Reflectance = .3
  1111. p.BrickColor = BrickColor.new("Light grey")
  1112. Instance.new("BlockMesh",p).Scale = Vector3.new(.75,.5,.1)
  1113. weld(lp,p,CFrame.new(0,-.05,-.1+.01))
  1114. p = NP()
  1115. p.Size = Vector3.new(.2,.2,.2)
  1116. p.Reflectance = .3
  1117. p.BrickColor = BrickColor.new("Light grey")
  1118. Instance.new("BlockMesh",p).Scale = Vector3.new(.75,.1,.3)
  1119. weld(lp,p,CFrame.new(0,-.1+.01,-.1+.03))
  1120.  
  1121.  
  1122. rLine = NP()
  1123. rLine.Size = Vector3.new(.2,.2,.2)
  1124. rLine.Anchored = true
  1125. rLine.CanCollide = false
  1126. rLine.BrickColor = BrickColor.new("Really black")
  1127. rLineM = Instance.new("SpecialMesh",rLine)
  1128. rLineM.MeshType = "Cylinder"
  1129. rLineM.Scale = Vector3.new(.5,.5,1)
  1130. rLine0 = CFrame.new(0,rS.Size.Y/2,-rS.Size.Z/2)
  1131.  
  1132. lLine = NP()
  1133. lLine.Size = Vector3.new(.2,.2,.2)
  1134. lLine.Anchored = true
  1135. lLine.CanCollide = false
  1136. lLine.BrickColor = BrickColor.new("Really black")
  1137. lLineM = Instance.new("SpecialMesh",lLine)
  1138. lLineM.MeshType = "Cylinder"
  1139. lLineM.Scale = Vector3.new(.5,.5,1)
  1140. lLine0 = CFrame.new(0,lS.Size.Y/2,-lS.Size.Z/2)
  1141.  
  1142. local rTar,rTarP;
  1143. local lTar,lTarP;
  1144.  
  1145.  
  1146. local rbld,rbldw = createBlade(rhan,CFrame.new(0,.775,-.061))
  1147.  
  1148. local lbld,lbldw = createBlade(lhan,CFrame.new(0,.775,-.061))
  1149.  
  1150.  
  1151.  
  1152. local sdist = -holdylen/2-.2
  1153. local bBlades = {
  1154. createBlade(lH2,CFrame.new(.065,0,sdist)*CFrame.Angles(math.pi/2,math.pi,0)),
  1155. createBlade(rH2,CFrame.new(-.065,0,sdist)*CFrame.Angles(math.pi/2,math.pi,0)),
  1156. createBlade(lH,CFrame.new(-.065,0,sdist)*CFrame.Angles(math.pi/2,math.pi,0)),
  1157. createBlade(rH,CFrame.new(.065,0,sdist)*CFrame.Angles(math.pi/2,math.pi,0)),
  1158. createBlade(lH,CFrame.new(.065,0,sdist)*CFrame.Angles(math.pi/2,math.pi,0)),
  1159. createBlade(rH,CFrame.new(-.065,0,sdist)*CFrame.Angles(math.pi/2,math.pi,0)),
  1160. }
  1161.  
  1162.  
  1163. local ss1 = Instance.new("Sound",lS)
  1164. ss1.SoundId = "rbxassetid://101064941"
  1165. ss1.Pitch = 2
  1166. local ss2 = Instance.new("Sound",lS)
  1167. ss2.SoundId = "rbxassetid://130849509"
  1168. ss2.Pitch = 5
  1169.  
  1170. local gs1 = Instance.new("Sound",tor)
  1171. gs1.SoundId = "rbxassetid://130849509"
  1172. gs1.Pitch = 3
  1173.  
  1174. m.KeyDown:connect(oc(function(k)
  1175. local now = tick()
  1176. kd[k] = now
  1177. if k == "0" then
  1178. running = not running
  1179. end
  1180. if k == "e" and not rInAir then
  1181. rInAir = true
  1182. coroutine.wrap(function()
  1183. ss2.Parent = rS
  1184. wait(.05)
  1185. ss2.Pitch = 5
  1186. ss2:Play()
  1187. end)()
  1188. local p = (rS.CFrame*rLine0).p
  1189. local rang = 0
  1190. local dir = (m.Hit.p-p).unit
  1191. local one = MaxGrappleRange/15
  1192. local hit;
  1193. while rang < MaxGrappleRange and kd[k] do
  1194. dir = dir - Vector3.new(0,0.002,0)
  1195. hit,rTarP = workspace:FindPartOnRayWithIgnoreList(Ray.new(p,dir.unit*math.min(one,MaxGrappleRange-rang)),{char})
  1196. rang = rang + one
  1197. if hit and hit.CanCollide then
  1198. rTar,rTarP = hit,hit.CFrame:toObjectSpace(CFrame.new(rTarP))
  1199. ss1.Parent = rS
  1200. ss1.Pitch = 2
  1201. ss1:Play()
  1202. break
  1203. end
  1204. p = rTarP
  1205. wait(-1)
  1206. end
  1207. rInAir = false
  1208. while rTar and kd[k] and wait() do
  1209. end
  1210. rTar,rTarP = nil,nil
  1211. end
  1212. if k == " " and state ~= "inair" then
  1213. kd[k] = nil
  1214. elseif k == " " and state == "inair" and (lTar or rTar) then
  1215. gs1:Play()
  1216. --tor.Velocity = Vector3.new(tor.Velocity.X,math.max(80,tor.Velocity.Y),tor.Velocity.Z)
  1217. end
  1218. if k == "q" and not lInAir then
  1219. lInAir = true
  1220. coroutine.wrap(function()
  1221. ss2.Parent = lS
  1222. wait(.05)
  1223. ss2.Pitch = 5
  1224. ss2:Play()
  1225. end)()
  1226. local p = (lS.CFrame*lLine0).p
  1227. local rang = 0
  1228. local dir = (m.Hit.p-p).unit
  1229. local one = MaxGrappleRange/15
  1230. local hit;
  1231. while rang < MaxGrappleRange and kd[k] do
  1232. dir = dir - Vector3.new(0,0.002,0)
  1233. hit,lTarP = workspace:FindPartOnRayWithIgnoreList(Ray.new(p,dir.unit*math.min(one,MaxGrappleRange-rang)),{char})
  1234. rang = rang + one
  1235. if hit and hit.CanCollide then
  1236. lTar,lTarP = hit,hit.CFrame:toObjectSpace(CFrame.new(lTarP))
  1237. ss1.Parent = lS
  1238. ss1.Pitch = 2
  1239. ss1:Play()
  1240. break
  1241. end
  1242. p = lTarP
  1243. wait(-1)
  1244. end
  1245. lInAir = false
  1246. while lTar and kd[k] and wait() do
  1247. end
  1248. lTar,lTarP = nil,nil
  1249. end
  1250. end))
  1251. m.KeyUp:connect(oc(function(k)
  1252. kd[k] = nil
  1253. end))
  1254.  
  1255. m.Button2Down:connect(oc(function()
  1256. kd.m2 = tick()
  1257. end))
  1258.  
  1259. m.Button2Up:connect(oc(function()
  1260. kd.m2 = nil
  1261. end))
  1262.  
  1263. local as1 = Instance.new("Sound",ra)
  1264. as1.SoundId = "rbxassetid://54587039"
  1265. local as2 = Instance.new("Sound",la)
  1266. as2.SoundId = "rbxassetid://54587039"
  1267.  
  1268. m.Button1Down:connect(oc(function()
  1269. kd.m1 = tick()
  1270. local now = time()
  1271. if now-(lastattack or 0) < .3 then return end
  1272. lastattack = now
  1273. attacktype = attacktype and attacktype%2+1 or 1
  1274. coroutine.wrap(function()
  1275. wait(.05)
  1276. as1.Pitch = 1.1+math.random()*.2
  1277. as1:Play()
  1278. wait(.04)
  1279. as2.Pitch = 1.3+math.random()*.2
  1280. as2:Play()
  1281. game:service'Debris':AddItem(s,2)
  1282. end)()
  1283. wait(.6)
  1284. if lastattack == now then
  1285. attacktype = nil
  1286. end
  1287. end))
  1288.  
  1289. m.Button1Up:connect(oc(function()
  1290. kd.m1 = nil
  1291. end))
  1292.  
  1293. local humspd = 0
  1294.  
  1295. hum.Running:connect(function(spd)
  1296. humspd = spd
  1297. state = spd > 0 and "walk" or "idle"
  1298. end)
  1299.  
  1300. hum.Changed:connect(function()
  1301. if state == "inair" or tick()-(lastair or 0) < .2 then
  1302. hum.Jump = false
  1303. end
  1304. end)
  1305.  
  1306. hum.FreeFalling:connect(function()
  1307. state = "inair"
  1308. end)
  1309. hum.FallingDown:connect(function()
  1310. state = "inair"
  1311. end)
  1312.  
  1313. m.TargetFilter = nil
  1314.  
  1315.  
  1316. if game.PlaceId ~= 21053234 and false then
  1317. pcall(function() workspace.testModel:Destroy() end)
  1318. local tm = Instance.new("Model",workspace)
  1319. tm.Name = "testModel"
  1320. local p = NP(tm)
  1321. p.CanCollide = true
  1322. p.Anchored = true
  1323. p.Size = Vector3.new(7,10,7)
  1324. p.CFrame = CFrame.new(100,135,0)
  1325. local p = NP(tm)
  1326. p.Name = "Vulnerable"
  1327. p.CanCollide = true
  1328. p.BrickColor = BrickColor.Red()
  1329. p.Anchored = true
  1330. p.Size = Vector3.new(5,4,3)
  1331. p.CFrame = CFrame.new(100,131,2.05)
  1332.  
  1333.  
  1334. local v = Instance.new("BoolValue",tm)
  1335. v.Name = "Alive"
  1336. v.Value = true
  1337. v.Changed:connect(function(s)
  1338. if s == "Value" or s == false then
  1339. v.Parent.Vulnerable.Transparency = 1
  1340. local b = p.Parent.Body
  1341. local t = b.CFrame
  1342. b.Growl:Play()
  1343. b.Yell:Play()
  1344. local i = 0
  1345. local pl = false
  1346. while i < 1 do
  1347. i = math.min(1,i+(math.abs(i-.3) < .1 and .005 or i<.5 and .01 or .06))
  1348. b.CFrame = t * CFrame.new(0,-b.Size.Y/2,-b.Size.Z/2) * CFrame.Angles(-i*math.pi/2,0,0) * CFrame.new(0,b.Size.Y/2,b.Size.Z/2)
  1349. if not pl and i > .95 then
  1350. b.Parent.Boom:Play()
  1351. print("Played")
  1352. pl = true
  1353. end
  1354. wait()
  1355. end
  1356. wait(6)
  1357. v.Value = true
  1358. b.CFrame = t
  1359. v.Parent.Vulnerable.Transparency = 0
  1360. end
  1361. end)
  1362. local p = NP(tm)
  1363. p.Name = "Body"
  1364. p.CanCollide = true
  1365. p.Anchored = true
  1366. p.Size = Vector3.new(16,130,8)
  1367. p.CFrame = CFrame.new(100,65,0)
  1368. local d1 = Instance.new("Sound",p.Parent)
  1369. d1.Name = "Boom"
  1370. d1.Pitch = .8
  1371. d1.SoundId = "rbxassetid://11984254"
  1372. d1:Play()
  1373. local ms1 = Instance.new("Sound",p)
  1374. ms1.SoundId = "rbxassetid://36431384"
  1375. ms1.Name = "Growl"
  1376. ms1.Pitch = .7
  1377. local ms2 = Instance.new("Sound",p)
  1378. ms2.SoundId = "rbxassetid://105374058"
  1379. ms2.Name = "Yell"
  1380. ms2.Pitch =.3
  1381.  
  1382. local p = NP(tm)
  1383. p.CanCollide = true
  1384. p.Anchored = true
  1385. p.Size = Vector3.new(1000,2,150)
  1386. p.CFrame = CFrame.new(400+500,100,0)
  1387.  
  1388. end
  1389.  
  1390. tar = NP()
  1391. tar.Anchored = true
  1392. tar.CanCollide = false
  1393. tar.Size = Vector3.new(1,1,1)
  1394. tar.Transparency = 1
  1395. tar.BrickColor = BrickColor.Yellow()
  1396. tar:BreakJoints()
  1397.  
  1398. tor.Touched:connect(function(hit)
  1399. if hit and hit:GetMass() > tor:GetMass()*2 then
  1400. --tor.Velocity = tor.Velocity*.5
  1401. end
  1402. end)
  1403.  
  1404.  
  1405.  
  1406. local t = tick()
  1407. while true do
  1408. local delta = wait(-1)
  1409. h.PlatformStand = true
  1410. local p = {}
  1411. if (lTar or lInAir) and lTarP then
  1412. local p1 = lTar and (lTar.CFrame*lTarP).p or lTarP
  1413. lSL.Visible = true
  1414. lSL.Point = p1
  1415. if lTar then
  1416. table.insert(p,p1)
  1417. end
  1418. else
  1419. lSL.Visible = false
  1420. end
  1421. if (rTar or rInAir) and rTarP then
  1422. local p1 = rTar and (rTar.CFrame*rTarP).p or rTarP
  1423. rSL.Visible = true
  1424. rSL.Point = p1
  1425. if rTar then
  1426. table.insert(p,p1)
  1427. end
  1428. else
  1429. rSL.Visible = false
  1430. end
  1431.  
  1432.  
  1433. --+math.min(0,tor.Velocity.Y*delta*.6)
  1434. local hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3+math.min(0,tor.Velocity.Y*delta),0)),{char})
  1435. if hit and #p == 0 and tor.Velocity.Y < .5 then
  1436. if state == "inair" then
  1437. state = humspd > 0 and "walk" or "idle"
  1438. tor.Velocity = Vector3.new()
  1439. end
  1440. end
  1441.  
  1442. if state == "inair" then
  1443. lastair = tick()
  1444. if not rotater and not rp then
  1445. rotater = Instance.new("BodyGyro",tor)
  1446. rotater.D = 250
  1447. rotater.maxTorque = Vector3.new(1,1,1)*4e5
  1448. rotater.cframe = tor.CFrame
  1449. elseif rotater and rp then
  1450. rotater:Destroy()
  1451. rotater = nil
  1452. end
  1453. hum.PlatformStand = true
  1454. local clv = workspace.CurrentCamera.CoordinateFrame.lookVector
  1455.  
  1456. local vel = tor.Velocity
  1457. if vel.magnitude < .5 then
  1458. vel = tor.CFrame.lookVector
  1459. end
  1460. if rotater then
  1461. local p = tor.Position
  1462. local hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(p,Vector3.new(0,-50+math.min(0,vel.y)*delta,0)),{char})
  1463. if hit then
  1464. if (vel*Vector3.new(1,0,1)).magnitude < .5 then
  1465. vel = tor.CFrame.lookVector
  1466. end
  1467. rotater.cframe = ctlerp(rotater.cframe,CFrame.new(p,p+vel*Vector3.new(1,0,1)),.2)
  1468. else
  1469. rotater.cframe = ctlerp(rotater.cframe,CFrame.new(p,p+vel),.05)
  1470. end
  1471. local dir = workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(Vector3.new((kd.a and -1 or 0)+(kd.d and 1 or 0),0,(kd.w and -1 or 0)+(kd.s and 1 or 0))) * Vector3.new(1,0,1)
  1472. if dir.magnitude > 0 then
  1473. tor.Velocity = tor.Velocity + dir.unit*delta*5
  1474. end
  1475. end
  1476. else
  1477. lastpos = nil
  1478. if rotater then
  1479. rotater:Destroy()
  1480. rotater = nil
  1481. end
  1482. if hum.PlatformStand then
  1483. tor.Velocity = Vector3.new()
  1484. end
  1485. hum.PlatformStand = false
  1486. end
  1487.  
  1488. if state == "inair" and #p > 0 then
  1489. local f = Vector3.new()
  1490. for i,v in pairs(p) do
  1491. local dif = (v-tor.Position)
  1492. f = f + dif
  1493. end
  1494. f = f / #p
  1495. tar.CFrame = CFrame.new(tor.Position+f)
  1496. if not rp then
  1497. rp = Instance.new("RocketPropulsion",tor)
  1498. end
  1499. if rotater then
  1500. rotater:Destroy()
  1501. rotater = nil
  1502. end
  1503. rp.MaxSpeed = 600
  1504. rp.MaxThrust = 1e5
  1505. rp.CartoonFactor = 0.2
  1506. rp.ThrustP = 40
  1507. rp.ThrustD = 2
  1508. rp.MaxTorque = Vector3.new(1,1,1)*20000
  1509. rp.TurnD = 30
  1510. rp.TurnP = 250
  1511. rp.Target = tar
  1512. rp.TargetOffset = Vector3.new(0,-2,0)
  1513. rp.TargetRadius = 1
  1514. if tar.CFrame == lasttarcf then
  1515. rp:Abort()
  1516. rp:Fire()
  1517. end
  1518. lasttarcf = tar.CFrame
  1519. else
  1520. bvel = nil
  1521. mdist = nil
  1522. if rp then
  1523. rp:Destroy()
  1524. rp = nil
  1525. end
  1526. end
  1527.  
  1528. if tor.Velocity.magnitude > 200 then
  1529. tor.Velocity = tor.Velocity.unit * 200
  1530. end
  1531. if state == "idle" then
  1532. local breathing = math.sin(tick()*2)
  1533. local alpha = .2
  1534. local tilt = 0
  1535. tw.C0 = clerp(tw.C0,CFrame.Angles(.02+breathing*.03,0,0),alpha)
  1536. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(-.01-breathing*.03,-.2-breathing*.03,.15),alpha)
  1537. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-.01-breathing*.03,.2+breathing*.03,-.15),alpha)
  1538. fnk.C0 = clerp(fnk.C0,c0.nk*CFrame.Angles(breathing*.05-.03,0,0),alpha)
  1539. btw.C1 = clerp(btw.C1,CFrame.Angles(tilt,0,0),alpha/2)
  1540. if attacktype == 1 then
  1541. local since = time()-lastattack
  1542. local a = since < .1 and since/.1 or 0
  1543. local b = since > .1 and math.min(1,(since-.1)/.2) or 0
  1544. alpha = .6
  1545. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+1.2,math.pi/2,0)*CFrame.Angles(.5-2.3*b,0,0),alpha)
  1546. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+1.5,-math.pi/2,0)*CFrame.Angles(.5+-2.3*b,0,0),alpha)
  1547. elseif attacktype == 2 then
  1548. local since = time()-lastattack
  1549. local a = since < .1 and since/.1 or 0
  1550. local b = since > .1 and math.min(1,(since-.1)/.2) or 0
  1551. alpha = .6
  1552. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+.7,.35,0)*CFrame.Angles(1.8-2.9*b,0,0),alpha)
  1553. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+.7,-.35,0)*CFrame.Angles(1.6+-2.7*b,0,0),alpha)
  1554. else
  1555. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-.03-breathing*.1,-.35,.25),alpha)
  1556. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-.03-breathing*.1,.35,-.25),alpha)
  1557. end
  1558. elseif state == "walk" then
  1559. if running then
  1560. hum.WalkSpeed = 45
  1561. local breathing = math.sin(tick()*3)
  1562. local move = math.cos(tick()*12.5)
  1563. local move2 = math.cos(tick()*25)
  1564. local alpha = .4
  1565. local tilt = .02+breathing*.03+move2*-.25-.6
  1566. tw.C0 = clerp(tw.C0,CFrame.Angles(tilt,move*.05,0)+Vector3.new(0,-.2,0),alpha)
  1567. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(-tilt+move*.6-.2,-.05-breathing*.03,.05),alpha)
  1568. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-tilt+-move*.6-.2,.05+breathing*.03,-.05),alpha)
  1569. fnk.C0 = clerp(fnk.C0,c0.nk*CFrame.Angles(-tilt+move2*.03-.3,0,0),alpha)
  1570. btw.C1 = clerp(btw.C1,CFrame.Angles(tilt,0,0),alpha/2)
  1571. if attacktype == 1 then
  1572. local since = time()-lastattack
  1573. local a = since < .1 and since/.1 or 0
  1574. local b = since > .1 and math.min(1,(since-.1)/.2) or 0
  1575. alpha = .6
  1576. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+1.2,math.pi/2,0)*CFrame.Angles(.5-2.3*b,0,0),alpha)
  1577. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+1.5,-math.pi/2,0)*CFrame.Angles(.5+-2.3*b,0,0),alpha)
  1578. elseif attacktype == 2 then
  1579. local since = time()-lastattack
  1580. local a = since < .1 and since/.1 or 0
  1581. local b = since > .1 and math.min(1,(since-.1)/.2) or 0
  1582. alpha = .6
  1583. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+.7,.35,0)*CFrame.Angles(1.8-2.9*b,0,0),alpha)
  1584. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+.7,-.35,0)*CFrame.Angles(1.6+-2.7*b,0,0),alpha)
  1585. else
  1586. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+-move*.05-1.2,-.75-move*.05,.35),alpha)
  1587. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+move*.05-1.2,.75-move*.05,-.35),alpha)
  1588. end
  1589. else
  1590. hum.WalkSpeed = 16
  1591. local breathing = math.sin(tick()*2)
  1592. local move = math.cos(tick()*hum.WalkSpeed/2)
  1593. local move2 = math.cos(tick()*hum.WalkSpeed)
  1594. local alpha = .4
  1595. local tilt = .02+breathing*.03+move2*-.05-.05
  1596. tw.C0 = clerp(tw.C0,CFrame.Angles(tilt,move*.05,0),alpha)
  1597. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(-tilt+move*.3,-.05-breathing*.03,.05),alpha)
  1598. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-tilt+-move*.3,.05+breathing*.03,-.05),alpha)
  1599. fnk.C0 = clerp(fnk.C0,c0.nk*CFrame.Angles(move2*.03,0,0),alpha)
  1600. btw.C1 = clerp(btw.C1,CFrame.Angles(tilt,0,0),alpha/2)
  1601. if attacktype == 1 then
  1602. local since = time()-lastattack
  1603. local a = since < .1 and since/.1 or 0
  1604. local b = since > .1 and math.min(1,(since-.1)/.2) or 0
  1605. alpha = .6
  1606. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+1.2,math.pi/2,0)*CFrame.Angles(.5-2.3*b,0,0),alpha)
  1607. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+1.5,-math.pi/2,0)*CFrame.Angles(.5+-2.3*b,0,0),alpha)
  1608. elseif attacktype == 2 then
  1609. local since = time()-lastattack
  1610. local a = since < .1 and since/.1 or 0
  1611. local b = since > .1 and math.min(1,(since-.1)/.2) or 0
  1612. alpha = .6
  1613. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+.7,.35,0)*CFrame.Angles(1.8-2.9*b,0,0),alpha)
  1614. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+.7,-.35,0)*CFrame.Angles(1.6+-2.7*b,0,0),alpha)
  1615. else
  1616. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+-move*.4,-.05-move*.05,.25),alpha)
  1617. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+move*.4,.05-move*.05,-.25),alpha)
  1618. end
  1619. end
  1620. elseif state == "inair" then
  1621. local breathing = math.sin(tick()*3)
  1622. local alpha = .1
  1623. local tilt = .02+breathing*.03+.3
  1624. tw.C0 = clerp(tw.C0,CFrame.Angles(tilt,0,0)+Vector3.new(0,0,0),alpha)
  1625. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(-tilt-.3,-.05-breathing*.03,.05),alpha)
  1626. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-tilt-.4,.05+breathing*.03,-.05),alpha)
  1627. fnk.C0 = clerp(fnk.C0,c0.nk*CFrame.Angles(-tilt*.8,0,0),alpha)
  1628. btw.C1 = clerp(btw.C1,CFrame.Angles(tilt,0,0),alpha/2)
  1629. if attacktype == 1 then
  1630. local since = time()-lastattack
  1631. local a = since < .1 and since/.1 or 0
  1632. local b = since > .1 and math.min(1,(since-.1)/.2) or 0
  1633. alpha = .6
  1634. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+1.2,math.pi/2,0)*CFrame.Angles(.5-2.3*b,0,0),alpha)
  1635. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+1.5,-math.pi/2,0)*CFrame.Angles(.5+-2.3*b,0,0),alpha)
  1636. elseif attacktype == 2 then
  1637. local since = time()-lastattack
  1638. local a = since < .1 and since/.1 or 0
  1639. local b = since > .1 and math.min(1,(since-.1)/.2) or 0
  1640. alpha = .6
  1641. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+.7,.35,0)*CFrame.Angles(1.8-2.9*b,0,0),alpha)
  1642. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+.7,-.35,0)*CFrame.Angles(1.6+-2.7*b,0,0),alpha)
  1643. else
  1644. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+2.8,.45,.25),alpha)
  1645. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+2.7,-.45,-.25),alpha)
  1646. end
  1647. end
  1648. nk.C0 = tor.CFrame:toObjectSpace(fhead.CFrame)
  1649. end
Add Comment
Please, Sign In to add comment