Advertisement
Mr-Shadow_Cat

titan

Dec 1st, 2017
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.79 KB | None | 0 0
  1. ---
  2. local p = game.Players.LocalPlayer
  3. local char = p.Character
  4. local mouse = p:GetMouse()
  5. local larm = char["Left Arm"]
  6. local rarm = char["Right Arm"]
  7. local lleg = char["Left Leg"]
  8. local rleg = char["Right Leg"]
  9. local hed = char.Head
  10. local torso = char.Torso
  11. local ASD = BrickColor.new("Dark indigo")
  12. local hum = char.Humanoid
  13. local cam = game.Workspace.CurrentCamera
  14. local root = char.HumanoidRootPart
  15. local DD = false
  16. local FA = false
  17. local deb = false
  18. local shot = 0
  19. local l = game:GetService("Lighting")
  20. local rs = game:GetService("RunService").RenderStepped
  21. local stanceToggle = "Normal"
  22. math.randomseed(os.time())
  23. hum.WalkSpeed = 7
  24. char.Health:Destroy()
  25. hum.MaxHealth = math.huge
  26. wait(0.1)
  27. hum.Health = math.huge
  28. z = Instance.new("Sound", char.Torso)
  29. z.SoundId = "rbxassetid://1027400793"
  30. z.Looped = true
  31. z.Pitch = 1
  32. z.Volume = 50
  33. ----------------------------------------------------
  34. local SM = Instance.new("Smoke",torso)
  35. SM.Size = 15
  36. local S = Instance.new("Part",char)
  37. S.Size = Vector3.new(1,1,1)
  38. S.Material = "Neon"
  39. S.BrickColor = BrickColor.new("Dark indigo")
  40. S.Transparency = 0
  41. S.Anchored = true
  42. S.CFrame = torso.CFrame*CFrame.new(0,0,0)
  43. local Ring = Instance.new("Part",S)
  44. Ring.Size = Vector3.new(1,1,1)
  45. Ring.BrickColor = BrickColor.new("Dark indigo")
  46. Ring.Anchored = true
  47. Ring.CanCollide = false
  48. Ring.CFrame = S.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0)
  49. local Ring2 = Instance.new("SpecialMesh",Ring)
  50. Ring2.MeshId = "rbxassetid://3270017"
  51. Ring2.Scale = Vector3.new(0.1,0.1,0.1)
  52. local S2 = Instance.new("SpecialMesh",S)
  53. S2.MeshType = "Sphere"
  54. S2.Scale = Vector3.new(1,1,1)
  55. v = Instance.new("Sound")
  56. v.SoundId = "rbxassetid://821439273"
  57. v.Parent = char.Torso
  58. v.Looped = false
  59. v.Pitch = 1
  60. v.Volume = 5
  61. wait(.01)
  62. v:Play()
  63. local partasdeff = Instance.new("ParticleEmitter",S)
  64. partasdeff.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(204,130,2))
  65. partasdeff.LightEmission = .1
  66. partasdeff.Size = NumberSequence.new(0.2)
  67. partasdeff.Texture = "http://www.roblox.com/asset/?ID=300899516"
  68. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  69. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  70. partasdeff.Transparency = bbb
  71. partasdeff.Size = aaa
  72. partasdeff.ZOffset = .9
  73. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  74. partasdeff.LockedToPart = false
  75. partasdeff.EmissionDirection = "Top"
  76. partasdeff.Lifetime = NumberRange.new(1, 2)
  77. partasdeff.Rate = 1000
  78. partasdeff.Rotation = NumberRange.new(-100, 100)
  79. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  80. partasdeff.Speed = NumberRange.new(10)
  81. partasdeff.VelocitySpread = 300
  82. partasdeff.Enabled = true
  83. for i = 1,100 do
  84. Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
  85. Ring.Transparency = Ring.Transparency + 0.01
  86. S2.Scale = S2.Scale + Vector3.new(0.3,0.3,0.3)
  87. S.Transparency = S.Transparency + 0.01
  88. game:GetService("RunService").RenderStepped:wait()
  89. end
  90. S:remove()
  91. wait(1)
  92. SM:remove()
  93. hed.face:remove()
  94. char.Shirt:remove()
  95. char.Pants:remove()
  96. v = Instance.new("Sound")
  97. v.SoundId = "rbxassetid://889016272"
  98. v.Parent = torso
  99. v.Looped = false
  100. v.Pitch = 1
  101. v.Volume = math.huge
  102. wait(.01)
  103. v:Play()
  104. z:Play()
  105. ----------------------------------------------------
  106. Debounces = {
  107. on = false;
  108. ks = false;
  109. CanAttack = true;
  110. CanJoke = true;
  111. NoIdl = false;
  112. Slashing = false;
  113. Slashed = false;
  114. Grabbing = false;
  115. Grabbed = false;
  116. }
  117. local Touche = {char.Name, }
  118. ----------------------------------------------------
  119. function lerp(a, b, t) -- Linear interpolation
  120. return a + (b - a)*t
  121. end
  122.  
  123. function slerp(a, b, t) --Spherical interpolation
  124. dot = a:Dot(b)
  125. if dot > 0.99999 or dot < -0.99999 then
  126. return t <= 0.5 and a or b
  127. else
  128. r = math.acos(dot)
  129. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  130. end
  131. end
  132.  
  133. function matrixInterpolate(a, b, t)
  134. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  135. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  136. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  137. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  138. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  139. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  140. local t = v1:Dot(v2)
  141. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  142. return CFrame.new()
  143. end
  144. return CFrame.new(
  145. v0.x, v0.y, v0.z,
  146. v1.x, v1.y, v1.z,
  147. v2.x, v2.y, v2.z,
  148. v3.x, v3.y, v3.z)
  149. end
  150. ----------------------------------------------------
  151. function genWeld(a,b)
  152. local w = Instance.new("Weld",a)
  153. w.Part0 = a
  154. w.Part1 = b
  155. return w
  156. end
  157. function weld(a, b)
  158. local weld = Instance.new("Weld")
  159. weld.Name = "W"
  160. weld.Part0 = a
  161. weld.Part1 = b
  162. weld.C0 = a.CFrame:inverse() * b.CFrame
  163. weld.Parent = a
  164. return weld;
  165. end
  166. ----------------------------------------------------
  167. function Lerp(c1,c2,al)
  168. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  169. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  170. for i,v in pairs(com1) do
  171. com1[i] = v+(com2[i]-v)*al
  172. end
  173. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  174. end
  175. ----------------------------------------------------
  176. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  177. local wld = Instance.new("Weld", wp1)
  178. wld.Part0 = wp0
  179. wld.Part1 = wp1
  180. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  181. end
  182. ----------------------------------------------------
  183. for i,v in pairs(char:children()) do
  184. if v:IsA("Hat") then
  185. v:Destroy()
  186. end
  187. end
  188. for i,v in pairs(hed:children()) do
  189. if v:IsA("Sound") then
  190. v:Destroy()
  191. end
  192. end
  193. ----------------------------------------------------
  194. function HasntTouched(plrname)
  195. local ret = true
  196. for _, v in pairs(Touche) do
  197. if v == plrname then
  198. ret = false
  199. end
  200. end
  201. return ret
  202. end
  203. ----------------------------------------------------
  204. larm.Size = larm.Size * 5
  205. rarm.Size = rarm.Size * 5
  206. lleg.Size = lleg.Size * 5
  207. rleg.Size = rleg.Size * 5
  208. torso.Size = torso.Size * 5
  209. hed.Size = hed.Size * 5
  210. root.Size = root.Size * 5
  211. ----------------------------------------------------
  212. newWeld(torso, larm, -1.5, 0.5, 0)
  213. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  214. newWeld(torso, rarm, 1.5, 0.5, 0)
  215. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  216. newWeld(torso, hed, 0, 1.5, 0)
  217. newWeld(torso, lleg, -0.5, -1, 0)
  218. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  219. newWeld(torso, rleg, 0.5, -1, 0)
  220. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  221. newWeld(root, torso, 0, -1, 0)
  222. torso.Weld.C1 = CFrame.new(0, -1, 0)
  223. ----------------------------------------------------
  224. local Part = Instance.new("Part",hed)
  225. Part.BrickColor = BrickColor.new("Really black")
  226. Part.Size = Vector3.new(1,1,1)
  227. Part.CanCollide = false
  228. Part.Material = "Neon"
  229. local M = Instance.new("SpecialMesh",Part)
  230. M.MeshId = "http://www.roblox.com/asset/?id=444444876"
  231. M.Scale = Vector3.new(10,10,10)
  232. local Part2 = Instance.new("Weld",Part)
  233. Part2.Part0 = hed
  234. Part2.Part1 = Part
  235. Part2.C0 = CFrame.new(-0.2,1.5,0.8)
  236. ----------------------------------------------------
  237. -----Armored titan parts nibs
  238. local Arm = Instance.new("Part",char)
  239. Arm.Size = Vector3.new(1,1,1)
  240. Arm.BrickColor = BrickColor.new("Really black")
  241. Arm.TopSurface = 0
  242. Arm.BottomSurface = 0
  243. Arm.CanCollide = false
  244. local Arm2 = Instance.new("SpecialMesh",Arm)
  245. Arm2.MeshType = "Brick"
  246. Arm2.Scale = Vector3.new(5,8.5,0.3)
  247. local Arm3 = Instance.new("Weld",Arm)
  248. Arm3.Part0 = rarm
  249. Arm3.Part1 = Arm
  250. Arm3.C0 = CFrame.new(0,0,2.5)
  251. local ArmR = Instance.new("Part",char)
  252. ArmR.Size = Vector3.new(1,1,1)
  253. ArmR.BrickColor = BrickColor.new("Really black")
  254. ArmR.TopSurface = 0
  255. ArmR.BottomSurface = 0
  256. ArmR.CanCollide = false
  257. local Arm2R = Instance.new("SpecialMesh",ArmR)
  258. Arm2R.MeshType = "Brick"
  259. Arm2R.Scale = Vector3.new(5,8.5,0.3)
  260. local Arm3R = Instance.new("Weld",ArmR)
  261. Arm3R.Part0 = rarm
  262. Arm3R.Part1 = ArmR
  263. Arm3R.C0 = CFrame.new(0,0,-2.5)
  264. local ArmRS = Instance.new("Part",char)
  265. ArmRS.Size = Vector3.new(1,1,1)
  266. ArmRS.BrickColor = BrickColor.new("Really black")
  267. ArmRS.TopSurface = 0
  268. ArmRS.BottomSurface = 0
  269. ArmRS.CanCollide = false
  270. local Arm2RS = Instance.new("SpecialMesh",ArmRS)
  271. Arm2RS.MeshType = "Brick"
  272. Arm2RS.Scale = Vector3.new(0.3,8.5,4.5)
  273. local Arm3RS = Instance.new("Weld",ArmRS)
  274. Arm3RS.Part0 = rarm
  275. Arm3RS.Part1 = ArmRS
  276. Arm3RS.C0 = CFrame.new(2.5,0,0)*CFrame.Angles(0,0,0)
  277. local TopRS = Instance.new("Part",char)
  278. TopRS.Size = Vector3.new(1,1,1)
  279. TopRS.BrickColor = BrickColor.new("Really black")
  280. TopRS.TopSurface = 0
  281. TopRS.BottomSurface = 0
  282. TopRS.CanCollide = false
  283. local Top2RS = Instance.new("SpecialMesh",TopRS)
  284. Top2RS.MeshType = "Brick"
  285. Top2RS.Scale = Vector3.new(4.7,0.3,4.7)
  286. local Top3RS = Instance.new("Weld",TopRS)
  287. Top3RS.Part0 = rarm
  288. Top3RS.Part1 = TopRS
  289. Top3RS.C0 = CFrame.new(0,5,0)*CFrame.Angles(0,0,0)
  290. local BotRS = Instance.new("Part",char)
  291. BotRS.Size = Vector3.new(1,1,1)
  292. BotRS.BrickColor = BrickColor.new("Really black")
  293. BotRS.BottomSurface = 0
  294. BotRS.TopSurface = 0
  295. BotRS.CanCollide = false
  296. local Bot2RS = Instance.new("SpecialMesh",BotRS)
  297. Bot2RS.MeshType = "Brick"
  298. Bot2RS.Scale = Vector3.new(4.7,0.3,4.7)
  299. local Bot3RS = Instance.new("Weld",BotRS)
  300. Bot3RS.Part0 = rarm
  301. Bot3RS.Part1 = BotRS
  302. Bot3RS.C0 = CFrame.new(0,-5,0)*CFrame.Angles(0,0,0)
  303. ----------------------------------------------------
  304.  
  305. local Arm = Instance.new("Part",char)
  306. Arm.Size = Vector3.new(1,1,1)
  307. Arm.BrickColor = BrickColor.new("Really black")
  308. Arm.TopSurface = 0
  309. Arm.BottomSurface = 0
  310. Arm.CanCollide = false
  311. local Arm2 = Instance.new("SpecialMesh",Arm)
  312. Arm2.MeshType = "Brick"
  313. Arm2.Scale = Vector3.new(5,8.5,0.3)
  314. local Arm3 = Instance.new("Weld",Arm)
  315. Arm3.Part0 = larm
  316. Arm3.Part1 = Arm
  317. Arm3.C0 = CFrame.new(0,0,2.5)
  318. local ArmR = Instance.new("Part",char)
  319. ArmR.Size = Vector3.new(1,1,1)
  320. ArmR.BrickColor = BrickColor.new("Really black")
  321. ArmR.TopSurface = 0
  322. ArmR.BottomSurface = 0
  323. ArmR.CanCollide = false
  324. local Arm2R = Instance.new("SpecialMesh",ArmR)
  325. Arm2R.MeshType = "Brick"
  326. Arm2R.Scale = Vector3.new(5,8.5,0.3)
  327. local Arm3R = Instance.new("Weld",ArmR)
  328. Arm3R.Part0 = larm
  329. Arm3R.Part1 = ArmR
  330. Arm3R.C0 = CFrame.new(0,0,-2.5)
  331. local ArmRS = Instance.new("Part",char)
  332. ArmRS.Size = Vector3.new(1,1,1)
  333. ArmRS.BrickColor = BrickColor.new("Really black")
  334. ArmRS.TopSurface = 0
  335. ArmRS.BottomSurface = 0
  336. ArmRS.CanCollide = false
  337. local Arm2RS = Instance.new("SpecialMesh",ArmRS)
  338. Arm2RS.MeshType = "Brick"
  339. Arm2RS.Scale = Vector3.new(0.3,8.5,4.5)
  340. local Arm3RS = Instance.new("Weld",ArmRS)
  341. Arm3RS.Part0 = larm
  342. Arm3RS.Part1 = ArmRS
  343. Arm3RS.C0 = CFrame.new(-2.5,0,0)*CFrame.Angles(0,0,0)
  344. local TopRS = Instance.new("Part",char)
  345. TopRS.Size = Vector3.new(1,1,1)
  346. TopRS.BrickColor = BrickColor.new("Really black")
  347. TopRS.TopSurface = 0
  348. TopRS.BottomSurface = 0
  349. TopRS.CanCollide = false
  350. local Top2RS = Instance.new("SpecialMesh",TopRS)
  351. Top2RS.MeshType = "Brick"
  352. Top2RS.Scale = Vector3.new(4.7,0.3,4.7)
  353. local Top3RS = Instance.new("Weld",TopRS)
  354. Top3RS.Part0 = larm
  355. Top3RS.Part1 = TopRS
  356. Top3RS.C0 = CFrame.new(0,5,0)*CFrame.Angles(0,0,0)
  357. local BotRS = Instance.new("Part",char)
  358. BotRS.Size = Vector3.new(1,1,1)
  359. BotRS.BrickColor = BrickColor.new("Really black")
  360. BotRS.BottomSurface = 0
  361. BotRS.TopSurface = 0
  362. BotRS.CanCollide = false
  363. local Bot2RS = Instance.new("SpecialMesh",BotRS)
  364. Bot2RS.MeshType = "Brick"
  365. Bot2RS.Scale = Vector3.new(4.7,0.3,4.7)
  366. local Bot3RS = Instance.new("Weld",BotRS)
  367. Bot3RS.Part0 = larm
  368. Bot3RS.Part1 = BotRS
  369. Bot3RS.C0 = CFrame.new(0,-5,0)*CFrame.Angles(0,0,0)
  370. ----------------------------------------------------
  371. local Long = Instance.new("Part",char)
  372. Long.Size = Vector3.new(1,1,1)
  373. Long.CanCollide = false
  374. Long.BrickColor = BrickColor.new("Really black")
  375. Long.TopSurface = 0
  376. Long.BottomSurface = 0
  377. local Long2 = Instance.new("SpecialMesh",Long)
  378. Long2.MeshType = "Brick"
  379. Long2.Scale = Vector3.new(9.5,0.3,4.5)
  380. local Long3 = Instance.new("Weld",Long)
  381. Long3.Part0 = torso
  382. Long3.Part1 = Long
  383. Long3.C0 = CFrame.new(0,4.95,0)
  384. ----------------------------------------------------
  385. local Back = Instance.new("Part",char)
  386. Back.Size = Vector3.new(1,1,1)
  387. Back.CanCollide = false
  388. Back.BrickColor = BrickColor.new("Really black")
  389. Back.TopSurface = 0
  390. Back.BottomSurface = 0
  391. local Back2 = Instance.new("SpecialMesh",Back)
  392. Back2.MeshType = "Brick"
  393. Back2.Scale = Vector3.new(9.5,9.3,0.3)
  394. local Back3 = Instance.new("Weld",Back)
  395. Back3.Part0 = torso
  396. Back3.Part1 = Back
  397. Back3.C0 = CFrame.new(0,0,2.5)
  398. ----------------------------------------------------
  399. ----------------------------------------------------
  400. local Leg = Instance.new("Part",char)
  401. Leg.Size = Vector3.new(1,1,1)
  402. Leg.BrickColor = BrickColor.new("Really black")
  403. Leg.TopSurface = 0
  404. Leg.BottomSurface = 0
  405. Leg.CanCollide = false
  406. local Leg2 = Instance.new("SpecialMesh",Leg)
  407. Leg2.MeshType = "Brick"
  408. Leg2.Scale = Vector3.new(5,8.5,0.3)
  409. local Leg3 = Instance.new("Weld",Leg)
  410. Leg3.Part0 = rleg
  411. Leg3.Part1 = Leg
  412. Leg3.C0 = CFrame.new(0,0,2.5)
  413. local LegR = Instance.new("Part",char)
  414. LegR.Size = Vector3.new(1,1,1)
  415. LegR.BrickColor = BrickColor.new("Really black")
  416. LegR.TopSurface = 0
  417. LegR.BottomSurface = 0
  418. LegR.CanCollide = false
  419. local Leg2R = Instance.new("SpecialMesh",LegR)
  420. Leg2R.MeshType = "Brick"
  421. Leg2R.Scale = Vector3.new(5,8.5,0.3)
  422. local Leg3R = Instance.new("Weld",LegR)
  423. Leg3R.Part0 = rleg
  424. Leg3R.Part1 = LegR
  425. Leg3R.C0 = CFrame.new(0,0,-2.5)
  426. local LegRS = Instance.new("Part",char)
  427. LegRS.Size = Vector3.new(1,1,1)
  428. LegRS.BrickColor = BrickColor.new("Really black")
  429. LegRS.TopSurface = 0
  430. LegRS.BottomSurface = 0
  431. LegRS.CanCollide = false
  432. local Leg2RS = Instance.new("SpecialMesh",LegRS)
  433. Leg2RS.MeshType = "Brick"
  434. Leg2RS.Scale = Vector3.new(0.3,8.5,4.5)
  435. local Leg3RS = Instance.new("Weld",LegRS)
  436. Leg3RS.Part0 = rleg
  437. Leg3RS.Part1 = LegRS
  438. Leg3RS.C0 = CFrame.new(2.5,0,0)*CFrame.Angles(0,0,0)
  439. local TopRS = Instance.new("Part",char)
  440. TopRS.Size = Vector3.new(1,1,1)
  441. TopRS.BrickColor = BrickColor.new("Really black")
  442. TopRS.TopSurface = 0
  443. TopRS.BottomSurface = 0
  444. TopRS.CanCollide = false
  445. local BotRS = Instance.new("Part",char)
  446. BotRS.Size = Vector3.new(1,1,1)
  447. BotRS.BrickColor = BrickColor.new("Really black")
  448. BotRS.BottomSurface = 0
  449. BotRS.TopSurface = 0
  450. BotRS.CanCollide = false
  451. local Bot2RS = Instance.new("SpecialMesh",BotRS)
  452. Bot2RS.MeshType = "Brick"
  453. Bot2RS.Scale = Vector3.new(4.7,0.3,4.7)
  454. local Bot3RS = Instance.new("Weld",BotRS)
  455. Bot3RS.Part0 = rleg
  456. Bot3RS.Part1 = BotRS
  457. Bot3RS.C0 = CFrame.new(0,-5,0)*CFrame.Angles(0,0,0)
  458. -----------------------------------------------------------
  459. local Arm = Instance.new("Part",char)
  460. Arm.Size = Vector3.new(1,1,1)
  461. Arm.BrickColor = BrickColor.new("Really black")
  462. Arm.TopSurface = 0
  463. Arm.BottomSurface = 0
  464. Arm.CanCollide = false
  465. local Arm2 = Instance.new("SpecialMesh",Arm)
  466. Arm2.MeshType = "Brick"
  467. Arm2.Scale = Vector3.new(5,8.5,0.3)
  468. local Arm3 = Instance.new("Weld",Arm)
  469. Arm3.Part0 = lleg
  470. Arm3.Part1 = Arm
  471. Arm3.C0 = CFrame.new(0,0,2.5)
  472. local ArmR = Instance.new("Part",char)
  473. ArmR.Size = Vector3.new(1,1,1)
  474. ArmR.BrickColor = BrickColor.new("Really black")
  475. ArmR.TopSurface = 0
  476. ArmR.BottomSurface = 0
  477. ArmR.CanCollide = false
  478. local Arm2R = Instance.new("SpecialMesh",ArmR)
  479. Arm2R.MeshType = "Brick"
  480. Arm2R.Scale = Vector3.new(5,8.5,0.3)
  481. local Arm3R = Instance.new("Weld",ArmR)
  482. Arm3R.Part0 = lleg
  483. Arm3R.Part1 = ArmR
  484. Arm3R.C0 = CFrame.new(0,0,-2.5)
  485. local ArmRS = Instance.new("Part",char)
  486. ArmRS.Size = Vector3.new(1,1,1)
  487. ArmRS.BrickColor = BrickColor.new("Really black")
  488. ArmRS.TopSurface = 0
  489. ArmRS.BottomSurface = 0
  490. ArmRS.CanCollide = false
  491. local Arm2RS = Instance.new("SpecialMesh",ArmRS)
  492. Arm2RS.MeshType = "Brick"
  493. Arm2RS.Scale = Vector3.new(0.3,8.5,4.5)
  494. local Arm3RS = Instance.new("Weld",ArmRS)
  495. Arm3RS.Part0 = lleg
  496. Arm3RS.Part1 = ArmRS
  497. Arm3RS.C0 = CFrame.new(-2.5,0,0)*CFrame.Angles(0,0,0)
  498. local BotRS = Instance.new("Part",char)
  499. BotRS.Size = Vector3.new(1,1,1)
  500. BotRS.BrickColor = BrickColor.new("Really black")
  501. BotRS.BottomSurface = 0
  502. BotRS.TopSurface = 0
  503. BotRS.CanCollide = false
  504. local Bot2RS = Instance.new("SpecialMesh",BotRS)
  505. Bot2RS.MeshType = "Brick"
  506. Bot2RS.Scale = Vector3.new(4.7,0.3,4.7)
  507. local Bot3RS = Instance.new("Weld",BotRS)
  508. Bot3RS.Part0 = lleg
  509. Bot3RS.Part1 = BotRS
  510. Bot3RS.C0 = CFrame.new(0,-5,0)*CFrame.Angles(0,0,0)
  511. ----------------------------------------------------
  512. local Pec = Instance.new("Part",char)
  513. Pec.Size = Vector3.new(1,1,1)
  514. Pec.BrickColor = BrickColor.new("Really black")
  515. Pec.CanCollide = false
  516. Pec.TopSurface = 0
  517. Pec.BottomSurface = 0
  518. local Pec2 = Instance.new("SpecialMesh",Pec)
  519. Pec2.MeshType = "Brick"
  520. Pec2.Scale = Vector3.new(5,3,0.3)
  521. local Pec3 = Instance.new("Weld",Pec)
  522. Pec3.Part0 = torso
  523. Pec3.Part1 = Pec
  524. Pec3.C0 = CFrame.new(2,2.8,-2.8)*CFrame.Angles(0,0,0.1)
  525. local PecA = Instance.new("Part",char)
  526. PecA.Size = Vector3.new(1,1,1)
  527. PecA.BrickColor = BrickColor.new("Really black")
  528. PecA.CanCollide = false
  529. PecA.TopSurface = 0
  530. PecA.BottomSurface = 0
  531. local Pec2A = Instance.new("SpecialMesh",PecA)
  532. Pec2A.MeshType = "Brick"
  533. Pec2A.Scale = Vector3.new(5,3,0.3)
  534. local Pec3A = Instance.new("Weld",PecA)
  535. Pec3A.Part0 = torso
  536. Pec3A.Part1 = PecA
  537. Pec3A.C0 = CFrame.new(-2,2.8,-2.8)*CFrame.Angles(0,0,-0.1)
  538. ---------------------------------------------------
  539. local Abs = Instance.new("Part",char)
  540. Abs.Size = Vector3.new(1,1,1)
  541. Abs.BrickColor = BrickColor.new("Really black")
  542. Abs.CanCollide = false
  543. Abs.TopSurface = 0
  544. Abs.BottomSurface = 0
  545. local Abs2 = Instance.new("SpecialMesh",Abs)
  546. Abs2.MeshType = "Brick"
  547. Abs2.Scale = Vector3.new(2,2,0.3)
  548. local Abs3 = Instance.new("Weld",Abs)
  549. Abs3.Part0 = torso
  550. Abs3.Part1 = Abs
  551. Abs3.C0 = CFrame.new(1.4,0,-2.8)*CFrame.Angles(0,0,0.1)
  552. local Abs = Instance.new("Part",char)
  553. Abs.Size = Vector3.new(1,1,1)
  554. Abs.BrickColor = BrickColor.new("Really black")
  555. Abs.CanCollide = false
  556. Abs.TopSurface = 0
  557. Abs.BottomSurface = 0
  558. local Abs2 = Instance.new("SpecialMesh",Abs)
  559. Abs2.MeshType = "Brick"
  560. Abs2.Scale = Vector3.new(2,2,0.3)
  561. local Abs3 = Instance.new("Weld",Abs)
  562. Abs3.Part0 = torso
  563. Abs3.Part1 = Abs
  564. Abs3.C0 = CFrame.new(-1.4,0,-2.8)*CFrame.Angles(0,0,-0.1)
  565.  
  566. local Abs = Instance.new("Part",char)
  567. Abs.Size = Vector3.new(1,1,1)
  568. Abs.BrickColor = BrickColor.new("Really black")
  569. Abs.CanCollide = false
  570. Abs.TopSurface = 0
  571. Abs.BottomSurface = 0
  572. local Abs2 = Instance.new("SpecialMesh",Abs)
  573. Abs2.MeshType = "Brick"
  574. Abs2.Scale = Vector3.new(2,2,0.3)
  575. local Abs3 = Instance.new("Weld",Abs)
  576. Abs3.Part0 = torso
  577. Abs3.Part1 = Abs
  578. Abs3.C0 = CFrame.new(1.4,-2.1,-2.8)*CFrame.Angles(0,0,0.1)
  579. local Abs = Instance.new("Part",char)
  580. Abs.Size = Vector3.new(1,1,1)
  581. Abs.BrickColor = BrickColor.new("Really black")
  582. Abs.CanCollide = false
  583. Abs.TopSurface = 0
  584. Abs.BottomSurface = 0
  585. local Abs2 = Instance.new("SpecialMesh",Abs)
  586. Abs2.MeshType = "Brick"
  587. Abs2.Scale = Vector3.new(2,2,0.3)
  588. local Abs3 = Instance.new("Weld",Abs)
  589. Abs3.Part0 = torso
  590. Abs3.Part1 = Abs
  591. Abs3.C0 = CFrame.new(-1.4,-2.1,-2.8)*CFrame.Angles(0,0,-0.1)
  592.  
  593. local Abs = Instance.new("Part",char)
  594. Abs.Size = Vector3.new(1,1,1)
  595. Abs.BrickColor = BrickColor.new("Really black")
  596. Abs.CanCollide = false
  597. Abs.TopSurface = 0
  598. Abs.BottomSurface = 0
  599. local Abs2 = Instance.new("SpecialMesh",Abs)
  600. Abs2.MeshType = "Brick"
  601. Abs2.Scale = Vector3.new(2,2,0.3)
  602. local Abs3 = Instance.new("Weld",Abs)
  603. Abs3.Part0 = torso
  604. Abs3.Part1 = Abs
  605. Abs3.C0 = CFrame.new(1.4,-4.1,-2.8)*CFrame.Angles(0,0,0.1)
  606. local Abs = Instance.new("Part",char)
  607. Abs.Size = Vector3.new(1,1,1)
  608. Abs.BrickColor = BrickColor.new("Really black")
  609. Abs.CanCollide = false
  610. Abs.TopSurface = 0
  611. Abs.BottomSurface = 0
  612. local Abs2 = Instance.new("SpecialMesh",Abs)
  613. Abs2.MeshType = "Brick"
  614. Abs2.Scale = Vector3.new(2,2,0.3)
  615. local Abs3 = Instance.new("Weld",Abs)
  616. Abs3.Part0 = torso
  617. Abs3.Part1 = Abs
  618. Abs3.C0 = CFrame.new(-1.4,-4.1,-2.8)*CFrame.Angles(0,0,-0.1)
  619. -----------------------------------------------------
  620. local Head = Instance.new("Part",char)
  621. Head.Size = Vector3.new(1,1,1)
  622. Head.BrickColor = BrickColor.new("Really black")
  623. Head.CanCollide = false
  624. Head.TopSurface = 0
  625. Head.BottomSurface = 0
  626. local Head2 = Instance.new("SpecialMesh",Head)
  627. Head2.MeshType = "Head"
  628. Head2.Scale = Vector3.new(11.5,6.5,6.5)
  629. local Head3 = Instance.new("Weld",Head)
  630. Head3.Part0 = hed
  631. Head3.Part1 = Head
  632. Head3.C0 = CFrame.new(0,0,0)
  633. -----------------------------------------------------
  634. local Eye2 = Instance.new("Part",char)
  635. Eye2.Size = Vector3.new(1,1,1)
  636. Eye2.BrickColor = BrickColor.new("Royal purple")
  637. Eye2.CanCollide = false
  638. Eye2.Material = "Neon"
  639. Eye2.TopSurface = 0
  640. Eye2.BottomSurface = 0
  641. local Eye22 = Instance.new("SpecialMesh",Eye2)
  642. Eye22.MeshType = "Sphere"
  643. Eye22.Scale = Vector3.new(1.2,0.6,0.1)
  644. local Eye32 = Instance.new("Weld",Eye2)
  645. Eye32.Part0 = hed
  646. Eye32.Part1 = Eye2
  647. Eye32.C0 = CFrame.new(1.3,0.5,-3)*CFrame.Angles(0,0,0.3)
  648. local Eye = Instance.new("Part",char)
  649. Eye.Size = Vector3.new(1,1,1)
  650. Eye.BrickColor = BrickColor.new("Royal purple")
  651. Eye.Material = "Neon"
  652. Eye.CanCollide = false
  653. Eye.TopSurface = 0
  654. Eye.BottomSurface = 0
  655. local Eye212 = Instance.new("SpecialMesh",Eye)
  656. Eye212.MeshType = "Sphere"
  657. Eye212.Scale = Vector3.new(1.2,0.6,0.1)
  658. local Eye3 = Instance.new("Weld",Eye)
  659. Eye3.Part0 = hed
  660. Eye3.Part1 = Eye
  661. Eye3.C0 = CFrame.new(-1.3,0.5,-3)*CFrame.Angles(0,0,-0.3)
  662.  
  663. local Glow = Instance.new("Part",char)
  664. Glow.Size = Vector3.new(1,1,1)
  665. Glow.BrickColor = BrickColor.new("Dark indigo")
  666. Glow.CanCollide = false
  667. Glow.TopSurface = 0
  668. Glow.Transparency = 1
  669. Glow.Material = "Neon"
  670. Glow.BottomSurface = 0
  671. local Glow2 = Instance.new("SpecialMesh",Glow)
  672. Glow2.MeshType = "Sphere"
  673. Glow2.Scale = Vector3.new(0.5,0.5,0.5)
  674. local Glow3 = Instance.new("Weld",Glow)
  675. Glow3.Part0 = Eye
  676. Glow3.Part1 = Glow
  677. Glow3.C0 = CFrame.new(0,0,-0.2)*CFrame.Angles(0,0,0)
  678.  
  679. local Glow = Instance.new("Part",char)
  680. Glow.Size = Vector3.new(1,1,1)
  681. Glow.BrickColor = BrickColor.new("Dark indigo")
  682. Glow.CanCollide = false
  683. Glow.TopSurface = 0
  684. Glow.Transparency = 1
  685. Glow.Material = "Neon"
  686. Glow.BottomSurface = 0
  687. local Glow2 = Instance.new("SpecialMesh",Glow)
  688. Glow2.MeshType = "Sphere"
  689. Glow2.Scale = Vector3.new(0.5,0.5,0.5)
  690. local Glow3 = Instance.new("Weld",Glow)
  691. Glow3.Part0 = Eye2
  692. Glow3.Part1 = Glow
  693. Glow3.C0 = CFrame.new(0,0,-0.2)*CFrame.Angles(0,0,0)
  694. -----------------------------------------------------
  695.  
  696. function weld5(part0, part1, c0, c1)
  697. weeld=Instance.new("Weld", part0)
  698. weeld.Part0=part0
  699. weeld.Part1=part1
  700. weeld.C0=c0
  701. weeld.C1=c1
  702. return weeld
  703. end
  704. ----------------------------------------------------
  705. function newRay(start,face,range,wat)
  706. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  707. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  708. return rey,hit,pos
  709. end
  710. ----------------------------------------------------
  711. mod5 = Instance.new("Model",char)
  712.  
  713. function FindNearestTorso(Position,Distance,SinglePlayer)
  714. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  715. local List = {}
  716. for i,v in pairs(workspace:GetChildren())do
  717. if v:IsA("Model")then
  718. if v:findFirstChild("Torso")then
  719. if v ~= char then
  720. if(v.Torso.Position -Position).magnitude <= Distance then
  721. table.insert(List,v)
  722. end
  723. end
  724. end
  725. end
  726. end
  727. return List
  728. end
  729.  
  730. function Landing()
  731. part=Instance.new('Part',mod5)
  732. part.Anchored=true
  733. part.CanCollide=false
  734. part.FormFactor='Custom'
  735. part.Size=Vector3.new(.2,.2,.2)
  736. part.CFrame=root.CFrame*CFrame.new(0,-2,0)
  737. part.Transparency=.7
  738. part.BrickColor=BrickColor.new('Really black')
  739. mesh=Instance.new('SpecialMesh',part)
  740. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  741. mesh.Scale=Vector3.new(10,5,10)
  742.  
  743. for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
  744. if v:FindFirstChild('Humanoid') then
  745. v.Humanoid:TakeDamage(math.random(20,30))
  746. v.Humanoid.PlatformStand = true
  747. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  748. end
  749. end
  750.  
  751. coroutine.resume(coroutine.create(function()
  752. for i=0,3.8,0.05 do
  753. wait()
  754. part.CFrame=part.CFrame
  755. part.Transparency=i
  756. mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
  757. end
  758. part.Parent = nil
  759. end))
  760. end
  761. ----------------------------------------------------
  762. mod4 = Instance.new("Model",char)
  763.  
  764. ptez = {0.7, 0.8, 0.9, 1}
  765.  
  766. function FindNearestTorso(Position,Distance,SinglePlayer)
  767. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  768. local List = {}
  769. for i,v in pairs(workspace:GetChildren())do
  770. if v:IsA("Model")then
  771. if v:findFirstChild("Torso")then
  772. if v ~= char then
  773. if(v.Torso.Position -Position).magnitude <= Distance then
  774. table.insert(List,v)
  775. end
  776. end
  777. end
  778. end
  779. end
  780. return List
  781. end
  782.  
  783. ----------------------------------------------------
  784.  
  785. local acos = math.acos
  786. local sqrt = math.sqrt
  787. local Vec3 = Vector3.new
  788. local fromAxisAngle = CFrame.fromAxisAngle
  789.  
  790. local function toAxisAngle(CFr)
  791. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  792. local Angle = math.acos((R00+R11+R22-1)/2)
  793. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  794. A = A == 0 and 0.00001 or A
  795. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  796. B = B == 0 and 0.00001 or B
  797. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  798. C = C == 0 and 0.00001 or C
  799. local x = (R21-R12)/sqrt(A)
  800. local y = (R02-R20)/sqrt(B)
  801. local z = (R10-R01)/sqrt(C)
  802. return Vec3(x,y,z),Angle
  803. end
  804.  
  805. function ApplyTrig(Num,Func)
  806. local Min,Max = Func(0),Func(1)
  807. local i = Func(Num)
  808. return (i-Min)/(Max-Min)
  809. --[[if Func == "sin" then
  810. return (math.sin((1-Num)*math.pi)+1)/2
  811. elseif Func == "cos" then
  812. return (math.cos((1-Num)*math.pi)+1)/2
  813. end]]
  814. end
  815.  
  816. function LerpCFrame(CFrame1,CFrame2,Num)
  817. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  818. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  819. end
  820. mouse.KeyDown:connect(function(key)
  821. if key == "b" then
  822. if Debounces.CanAttack == true then
  823. Debounces.CanAttack = false
  824. Debounces.on = true
  825. Debounces.NoIdl = true
  826. for i = 1,20 do
  827. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(9,4,1) * CFrame.Angles(0.3,-0.5,1.55),.3)
  828. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-9,4,1) * CFrame.Angles(0.3,0.5,-1.55),.3)
  829. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0.4,0,0),.3)
  830. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.3,0,0),.3)
  831. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,1) *CFrame.Angles(-0.3,0,-0.1),.3)
  832. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,1) * CFrame.Angles(-0.3,0,0.1),.3)
  833. if Debounces.on == false then break end
  834. wait()
  835. end
  836. v = Instance.new("Sound")
  837. v.SoundId = "rbxassetid://889016272"
  838. v.Parent = torso
  839. v.Looped = false
  840. v.Pitch = 1
  841. v.Volume = math.huge
  842. wait(.01)
  843. v:Play()
  844. coroutine.resume(coroutine.create(function()
  845. for i = 1,80 do
  846. local H = Instance.new("Part",torso)
  847. H.Size = Vector3.new(1,1,1)
  848. H.BrickColor = BrickColor.new("White")
  849. H.CanCollide = false
  850. H.Anchored = true
  851. H.CFrame = torso.CFrame*CFrame.new(0,-13,0)*CFrame.Angles(1.3,0,0)
  852. local H2 = Instance.new("SpecialMesh",H)
  853. H2.MeshId = "rbxassetid://3270017"
  854. coroutine.resume(coroutine.create(function()
  855. for i = 1,200 do
  856. H2.Scale = H2.Scale + Vector3.new(5,5,5)
  857. H.Transparency = H.Transparency + 0.05
  858. wait(0.05)
  859. end
  860. H:remove()
  861. end))
  862. wait(0.005)
  863. end
  864. if Debounces.CanAttack == false then
  865. Debounces.CanAttack = true
  866. Debounces.on = false
  867. Debounces.NoIdl = false
  868. end
  869. end))
  870. end
  871. end
  872. end)
  873. mouse.KeyDown:connect(function(key)
  874. if key == "z" then
  875. if Debounces.CanAttack == true then
  876. Debounces.CanAttack = false
  877. Debounces.on = true
  878. Debounces.NoIdl = true
  879. for i = 1,20 do
  880. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.55,0,0),.3)
  881. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,-3) * CFrame.Angles(1.55,0,0),.3)
  882. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  883. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -6, 0) * CFrame.Angles(-1.5,0,0),.3)
  884. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -7.6,-2) *CFrame.Angles(1.55,0,0),.3)
  885. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,-2) * CFrame.Angles(1.55,0,0),.3)
  886. if Debounces.on == false then break end
  887. wait()
  888. end
  889. local Rock = Instance.new("Part",char)
  890. Rock.Size = Vector3.new(1,1,1)
  891. local Rock22 = Instance.new("SpecialMesh",Rock)
  892. Rock22.MeshId = "rbxassetid://433651599"
  893. Rock22.Scale = Vector3.new(0.5,0.5,0.5)
  894. local Rock2 = Instance.new("Weld",Rock)
  895. Rock2.Part0 = hed
  896. Rock2.Part1 = Rock
  897. Rock2.C0 = CFrame.new(0,40,0)*CFrame.Angles(0,-1.55,0)
  898. local PPA = Instance.new("Part",Rock)
  899. PPA.Size = Vector3.new(30,30,30)
  900. PPA.CanCollide = false
  901. local PPA2 = Instance.new("Weld",PPA)
  902. PPA2.Part0 = Rock
  903. PPA2.Part1 = PPA
  904. PPA2.C0 = CFrame.new(0,0,0)
  905. PPA.Touched:connect(function(hit)
  906. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  907. if not FA then FA = true
  908. hit.Parent.Humanoid.PlatformStand = true
  909. hit.Parent.Humanoid:TakeDamage(30)
  910. local Fly = Instance.new("BodyVelocity",hit.Parent.Torso)
  911. Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  912. Fly.velocity = mouse.hit.lookVector*560
  913. wait(0.1)
  914. Fly:remove()
  915. wait(3)
  916. FA = false
  917. end
  918. end
  919. end)
  920. wait(0.5)
  921. for i = 1,20 do
  922. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,5.5,0) * CFrame.Angles(3.1,0,0),.3)
  923. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,5.5,0) * CFrame.Angles(3.1,0,0),.3)
  924. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  925. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0,0,0),.3)
  926. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,0) *CFrame.Angles(0,0,0),.3)
  927. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,0) * CFrame.Angles(0,0,0),.3)
  928. if Debounces.on == false then break end
  929. wait()
  930. end
  931. Rock2:remove()
  932. local Fly = Instance.new("BodyVelocity",Rock)
  933. Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  934. Fly.velocity = mouse.hit.lookVector*200
  935. for i = 1,20 do
  936. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1.5,-1) * CFrame.Angles(1.55,0,0),.3)
  937. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1.5,-1) * CFrame.Angles(1.55,0,0),.3)
  938. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.3,0,0),.3)
  939. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.3,0,0),.3)
  940. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,0) *CFrame.Angles(0,0,0),.3)
  941. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,-2) * CFrame.Angles(0.5,0,0),.3)
  942. if Debounces.on == false then break end
  943. wait()
  944. end
  945. if Debounces.CanAttack == false then
  946. Debounces.CanAttack = true
  947. Debounces.on = false
  948. Debounces.NoIdl = false
  949. end
  950. wait(2)
  951. Fly:remove()
  952. local SFXZ = Instance.new("Sound",Rock)
  953. SFXZ.SoundId = "rbxassetid://134854740"
  954. SFXZ.Volume = math.huge
  955. SFXZ.Pitch = 1
  956. SFXZ.Looped = false
  957. wait(0.01)
  958. SFXZ:Play()
  959. wait(3)
  960. Rock:remove()
  961. end
  962. end
  963. end)
  964. mouse.KeyDown:connect(function(key)
  965. if key == "e" then
  966. if Debounces.CanAttack == true then
  967. Debounces.CanAttack = false
  968. Debounces.on = true
  969. Debounces.NoIdl = true
  970. for i = 1,20 do
  971. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.3,0,0),.3)
  972. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  973. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  974. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  975. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  976. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  977. if Debounces.on == false then break end
  978. wait()
  979. end
  980. local HitBox = Instance.new("Part",char)
  981. HitBox.Size = Vector3.new(5,5,5)
  982. HitBox.CanCollide = false
  983. HitBox.Transparency = math.huge
  984. local HitBox2 = Instance.new("Weld",HitBox)
  985. HitBox2.Part0 = rarm
  986. HitBox2.Part1 = HitBox
  987. HitBox2.C0 = CFrame.new(0,-4.5,0)
  988. HitBox.Touched:connect(function(hit)
  989. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  990. if not DD then DD = true
  991. HitBox:remove()
  992. hit.Parent.Humanoid.PlatformStand = true
  993. local We = Instance.new("Weld",hit.Parent.Torso)
  994. We.Part0 = rarm
  995. We.Part1 = hit.Parent.Torso
  996. We.C0 = CFrame.new(0,-5,0)*CFrame.Angles(-1.55,0,0)
  997. wait(1)
  998. for i = 1,20 do
  999. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,4,0) * CFrame.Angles(3.1,0,1),.3)
  1000. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,4,0) * CFrame.Angles(-3.1,0,-1),.3)
  1001. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(1,0,0),.3)
  1002. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  1003. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1004. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1005. if Debounces.on == false then break end
  1006. wait()
  1007. end
  1008. hit.Parent.Humanoid:TakeDamage(20)
  1009. for i = 1,20 do
  1010. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(6,4,-1) * CFrame.Angles(1.55,0,-1),.3)
  1011. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-6,4,-1) * CFrame.Angles(1.55,0,1),.3)
  1012. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  1013. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  1014. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1015. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1016. if Debounces.on == false then break end
  1017. wait()
  1018. end
  1019. for i = 1,20 do
  1020. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,4,-1) * CFrame.Angles(1.55,0,-1.3),.3)
  1021. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-5,4,-1) * CFrame.Angles(1.55,0,1.3),.3)
  1022. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  1023. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  1024. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1025. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1026. if Debounces.on == false then break end
  1027. wait()
  1028. end
  1029. local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
  1030. partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
  1031. partasdeff.LightEmission = .1
  1032. partasdeff.Size = NumberSequence.new(0.2)
  1033. partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823"
  1034. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1035. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1036. partasdeff.Transparency = bbb
  1037. partasdeff.Size = aaa
  1038. partasdeff.ZOffset = .9
  1039. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  1040. partasdeff.LockedToPart = false
  1041. partasdeff.EmissionDirection = "Top"
  1042. partasdeff.Lifetime = NumberRange.new(1, 2)
  1043. partasdeff.Rate = 1000
  1044. partasdeff.Rotation = NumberRange.new(-100, 100)
  1045. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  1046. partasdeff.Speed = NumberRange.new(10)
  1047. partasdeff.VelocitySpread = 300
  1048. partasdeff.Enabled = true
  1049. wait(1.5)
  1050. hit.Parent:BreakJoints()
  1051. We:remove()
  1052. partasdeff.Enabled = false
  1053. if Debounces.CanAttack == false then
  1054. Debounces.CanAttack = true
  1055. Debounces.on = false
  1056. Debounces.NoIdl = false
  1057. end
  1058. wait(3)
  1059. DD = false
  1060. end
  1061. end
  1062. end)
  1063. wait(5)
  1064. if Debounces.CanAttack == false then
  1065. Debounces.CanAttack = true
  1066. Debounces.on = false
  1067. Debounces.NoIdl = false
  1068. end
  1069. end
  1070. end
  1071. end)
  1072. mouse.KeyDown:connect(function(key)
  1073. if key == "r" then
  1074. if Debounces.CanAttack == true then
  1075. Debounces.CanAttack = false
  1076. Debounces.on = true
  1077. Debounces.NoIdl = true
  1078. for i = 1,20 do
  1079. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  1080. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  1081. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  1082. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.5,0,0),.3)
  1083. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -2) *CFrame.Angles(0.5,0,0),.3)
  1084. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, 1.2) * CFrame.Angles(-1.5,0,0),.3)
  1085. if Debounces.on == false then break end
  1086. wait()
  1087. end
  1088. local HitBox = Instance.new("Part",char)
  1089. HitBox.Size = Vector3.new(5,5,5)
  1090. HitBox.CanCollide = false
  1091. HitBox.Transparency = math.huge
  1092. local HitBox2 = Instance.new("Weld",HitBox)
  1093. HitBox2.Part0 = rleg
  1094. HitBox2.Part1 = HitBox
  1095. HitBox2.C0 = CFrame.new(0,-1.1,0)
  1096. local SFXZ = Instance.new("Sound",torso)
  1097. SFXZ.SoundId = "rbxassetid://169259383"
  1098. SFXZ.Volume = math.huge
  1099. SFXZ.Pitch = 0.5
  1100. SFXZ.Looped = false
  1101. wait(0.01)
  1102. SFXZ:Play()
  1103. HitBox.Touched:connect(function(hit)
  1104. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  1105. local SFXZ = Instance.new("Sound",torso)
  1106. SFXZ.SoundId = "rbxassetid://743886825"
  1107. SFXZ.Volume = 1
  1108. SFXZ.Pitch = 0.5
  1109. SFXZ.Looped = false
  1110. SFXZ:Play()
  1111. HitBox:remove()
  1112. hit.Parent.Humanoid:TakeDamage(44)
  1113. hit.Parent.Humanoid.PlatformStand = true
  1114. local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
  1115. Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1116. Fl.velocity = rleg.CFrame.lookVector*350
  1117. wait(0.1)
  1118. Fl:remove()
  1119. end
  1120. end)
  1121. for i = 1,20 do
  1122. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  1123. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  1124. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  1125. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.5,0,0),.3)
  1126. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, 2) *CFrame.Angles(-0.5,0,0),.3)
  1127. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, -1.2) * CFrame.Angles(1.5,0,0),.3)
  1128. if Debounces.on == false then break end
  1129. wait()
  1130. end
  1131. if Debounces.CanAttack == false then
  1132. Debounces.CanAttack = true
  1133. Debounces.on = false
  1134. Debounces.NoIdl = false
  1135. HitBox:remove()
  1136. end
  1137. end
  1138. end
  1139. end)
  1140. ----------------------------------------------------
  1141. mouse.KeyDown:connect(function(key)
  1142. if string.byte(key) == 48 then
  1143. char.Humanoid.WalkSpeed = 34
  1144. end
  1145. end)
  1146. mouse.KeyUp:connect(function(key)
  1147. if string.byte(key) == 48 then
  1148. char.Humanoid.WalkSpeed = 5
  1149. end
  1150. end)
  1151. ----------------------------------------------------
  1152. local animpose = "Idle"
  1153. local lastanimpose = "Idle"
  1154. local sine = 0
  1155. local change = 1
  1156. local val = 0
  1157. local ffing = false
  1158. ----------------------------------------------------
  1159. local x = Instance.new("Sound", char.Torso)
  1160. x.SoundId = "http://www.roblox.com/asset/?id=273962540"
  1161. x.Looped = true
  1162. x.Volume = 1
  1163. x.Pitch = 2
  1164. local footsteps = false
  1165. -------------------------------
  1166. CV="White"
  1167.  
  1168. p = game.Players.LocalPlayer
  1169. char = p.Character
  1170. local txt = Instance.new("BillboardGui", char)
  1171. txt.Adornee = char .Head
  1172. txt.Name = "_status"
  1173. txt.Size = UDim2.new(2, 0, 1.2, 0)
  1174. txt.StudsOffset = Vector3.new(-9, 8, 0)
  1175. local text = Instance.new("TextLabel", txt)
  1176. text.Size = UDim2.new(10, 0, 7, 0)
  1177. text.FontSize = "Size24"
  1178. text.TextScaled = true
  1179. text.TextTransparency = 0
  1180. text.BackgroundTransparency = 1
  1181. text.TextTransparency = 0
  1182. text.TextStrokeTransparency = 1
  1183. text.Font = "Antique"
  1184. text.TextStrokeColor3 = Color3.new(0,0,255)
  1185.  
  1186. v=Instance.new("Part")
  1187. v.Name = "ColorBrick"
  1188. v.Parent=p.Character
  1189. v.FormFactor="Symmetric"
  1190. v.Anchored=true
  1191. v.CanCollide=false
  1192. v.BottomSurface="Smooth"
  1193. v.TopSurface="Smooth"
  1194. v.Size=Vector3.new(20,15,13)
  1195. v.Transparency=1
  1196. v.CFrame=char.Torso.CFrame
  1197. v.BrickColor=BrickColor.new(CV)
  1198. v.Transparency=1
  1199. text.TextColor3 = Color3.new(255,0,255)
  1200. v.Shape="Block"
  1201. text.Text = "God Devourer"
  1202. coroutine.wrap(function()
  1203. while wait() do
  1204. wait(3)
  1205. text.Text = "Run"
  1206. wait()
  1207. text.Text = "God Devourer";
  1208. wait(2)
  1209. local str = ""
  1210. for i = 1, math.random(3,25) do
  1211. str = str..string.char(math.random(65,122))
  1212. end
  1213. text.Text = str
  1214. wait()
  1215. str = ""
  1216. for i = 1, math.random(12,25) do
  1217. str = str..string.char(math.random(48,122))
  1218. end
  1219. wait()
  1220. text.Text = str
  1221. wait()
  1222. text.Text = "God Devourer";
  1223. wait(1)
  1224. text.Text = "THE PAIN"
  1225. wait()
  1226. text.Text = "What do you want?"
  1227. wait()
  1228. text.Text = "God Devourer";
  1229. wait(2)
  1230. text.Text = "You made me do this.";
  1231. wait()
  1232. text.Text = "The end is here";
  1233. wait()
  1234. for i = 1, math.random(12,25) do
  1235. str = str..string.char(math.random(48,57))
  1236. end
  1237. text.Text = str
  1238. wait()
  1239. text.Text = "God Devourer";
  1240. wait(2)
  1241. end
  1242. end)()
  1243. ------------------------------
  1244. game:GetService("RunService").RenderStepped:connect(function()
  1245. rarm.BrickColor = ASD
  1246. larm.BrickColor = ASD
  1247. rleg.BrickColor = ASD
  1248. lleg.BrickColor = ASD
  1249. hed.BrickColor = ASD
  1250. torso.BrickColor = ASD
  1251. --[[if char.Humanoid.Jump == true then
  1252. jump = true
  1253. else
  1254. jump = false
  1255. end]]
  1256. char.Humanoid.FreeFalling:connect(function(f)
  1257. if f then
  1258. ffing = true
  1259. else
  1260. ffing = false
  1261. end
  1262. end)
  1263. sine = sine + change
  1264. if jumpn == true then
  1265. animpose = "Jumping"
  1266. elseif ffing == true then
  1267. animpose = "Freefalling"
  1268. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1269. animpose = "Idle"
  1270. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1271. animpose = "Walking"
  1272. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1273. animpose = "Running"
  1274. end
  1275. if animpose ~= lastanimpose then
  1276. sine = 0
  1277. if Debounces.NoIdl == false then
  1278. if animpose == "Idle" then
  1279. for i = 1, 2 do
  1280. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2)
  1281. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
  1282. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  1283. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  1284. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  1285. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  1286. end
  1287. elseif animpose == "Walking" then
  1288. for i = 1, 2 do
  1289. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2)
  1290. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
  1291. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
  1292. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
  1293. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  1294. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  1295. end
  1296. elseif animpose == "Running" then
  1297. for i = 1, 2 do
  1298. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2)
  1299. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
  1300. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  1301. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  1302. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  1303. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  1304. end
  1305. wait()
  1306. end
  1307. else
  1308. end
  1309. end
  1310. lastanimpose = animpose
  1311. if Debounces.NoIdl == false then
  1312. if animpose == "Idle" then
  1313. if stanceToggle == "Normal" then
  1314. change = 0.5
  1315. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,1,0)*CFrame.new(0,0-.3*math.sin(tick()*1),0)*CFrame.Angles(0,0,0)*CFrame.Angles(0,0,0.3),.2)
  1316. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,1,0)*CFrame.new(0,0-.3*math.sin(tick()*1),0)*CFrame.Angles(0,0,0)*CFrame.Angles(0,0,-0.3),.2)
  1317. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(0-.1*math.sin(tick()*1),0,0)*CFrame.Angles(-0.3,0,0), 0.2)
  1318. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1319. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  1320. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  1321. elseif stanceToggle == "Sitting" then
  1322. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
  1323. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
  1324. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
  1325. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
  1326. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
  1327. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
  1328. end
  1329. elseif animpose == "Walking" then
  1330. if stanceToggle == "Normal" then
  1331. change = 1
  1332. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,0.8,0)*CFrame.Angles(0-.2*math.sin(tick()*2.5),0,0.2),.3)
  1333. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,0.8,0)*CFrame.Angles(0+.2*math.sin(tick()*2.5),0,-0.2),.3)
  1334. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(-0.2,0,0),.3)
  1335. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0,-1.8,0)*CFrame.new(0,0-.1*math.sin(tick()*2),0)*CFrame.Angles(0,0,0),.3)
  1336. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4)
  1337. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4)
  1338. end
  1339. elseif animpose == "Running" then
  1340. change = 1
  1341. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.7,0.5,0)*CFrame.Angles(0-.5*math.sin(tick()*7),0,0),.3)
  1342. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.7,0.5,0)*CFrame.Angles(0+.5*math.sin(tick()*7),0,0),.3)
  1343. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  1344. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  1345. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.80*math.cos(sine/6)/2.4, -.15 + math.sin(sine/6)/1.5) * CFrame.Angles(math.rad(-10) + -math.sin(sine/6)/1.7, 0, 0), .4)
  1346. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.80*math.cos(sine/6)/2.4, -.15 + -math.sin(sine/6)/1.5) * CFrame.Angles(math.rad(-10) + math.sin(sine/6)/1.7, 0, 0), .4)
  1347. end
  1348. end
  1349. if animpose == "Walking" then
  1350. if footsteps == false then
  1351. x:Play()
  1352. footsteps = true
  1353. end
  1354. x.Pitch = 1.1
  1355. elseif animpose == "Idle" then
  1356. x:Stop()
  1357. footsteps = false
  1358. elseif animpose == "Running" then
  1359. x.Pitch = 1.2
  1360. if footsteps == false then
  1361. x:Play()
  1362. footsteps = true
  1363. end
  1364. end
  1365. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement