Advertisement
JRKPastesBins

Untitled

Aug 19th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.72 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("Maroon")
  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 = 5000000
  26. wait(0.1)
  27. hum.Health = 5000000
  28. z = Instance.new("Sound", char.Torso)
  29. z.SoundId = "rbxassetid://174039148"
  30. z.Looped = true
  31. z.Pitch = 1
  32. z.Volume = 1
  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("Deep orange")
  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("Deep orange")
  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 = 1
  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=160041570"
  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://785301837"
  98. v.Parent = torso
  99. v.Looped = false
  100. v.Pitch = 0.8
  101. v.Volume = 1
  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("White")
  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 = "rbxassetid://62246019"
  231. M.Scale = Vector3.new(5,5,5)
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Dark red")
  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("Really black")
  637. Eye2.CanCollide = false
  638. Eye2.TopSurface = 0
  639. Eye2.BottomSurface = 0
  640. local Eye22 = Instance.new("SpecialMesh",Eye2)
  641. Eye22.MeshType = "Sphere"
  642. Eye22.Scale = Vector3.new(1.2,0.6,0.1)
  643. local Eye32 = Instance.new("Weld",Eye2)
  644. Eye32.Part0 = hed
  645. Eye32.Part1 = Eye2
  646. Eye32.C0 = CFrame.new(1.3,0.5,-3)*CFrame.Angles(0,0,0.3)
  647. local Eye = Instance.new("Part",char)
  648. Eye.Size = Vector3.new(1,1,1)
  649. Eye.BrickColor = BrickColor.new("Really black")
  650. Eye.CanCollide = false
  651. Eye.TopSurface = 0
  652. Eye.BottomSurface = 0
  653. local Eye212 = Instance.new("SpecialMesh",Eye)
  654. Eye212.MeshType = "Sphere"
  655. Eye212.Scale = Vector3.new(1.2,0.6,0.1)
  656. local Eye3 = Instance.new("Weld",Eye)
  657. Eye3.Part0 = hed
  658. Eye3.Part1 = Eye
  659. Eye3.C0 = CFrame.new(-1.3,0.5,-3)*CFrame.Angles(0,0,-0.3)
  660.  
  661. local Glow = Instance.new("Part",char)
  662. Glow.Size = Vector3.new(1,1,1)
  663. Glow.BrickColor = BrickColor.new("Really red")
  664. Glow.CanCollide = false
  665. Glow.TopSurface = 0
  666. Glow.Material = "Neon"
  667. Glow.BottomSurface = 0
  668. local Glow2 = Instance.new("SpecialMesh",Glow)
  669. Glow2.MeshType = "Sphere"
  670. Glow2.Scale = Vector3.new(0.5,0.5,0.5)
  671. local Glow3 = Instance.new("Weld",Glow)
  672. Glow3.Part0 = Eye
  673. Glow3.Part1 = Glow
  674. Glow3.C0 = CFrame.new(0,0,-0.2)*CFrame.Angles(0,0,0)
  675.  
  676. local Glow = Instance.new("Part",char)
  677. Glow.Size = Vector3.new(1,1,1)
  678. Glow.BrickColor = BrickColor.new("Really red")
  679. Glow.CanCollide = false
  680. Glow.TopSurface = 0
  681. Glow.Material = "Neon"
  682. Glow.BottomSurface = 0
  683. local Glow2 = Instance.new("SpecialMesh",Glow)
  684. Glow2.MeshType = "Sphere"
  685. Glow2.Scale = Vector3.new(0.5,0.5,0.5)
  686. local Glow3 = Instance.new("Weld",Glow)
  687. Glow3.Part0 = Eye2
  688. Glow3.Part1 = Glow
  689. Glow3.C0 = CFrame.new(0,0,-0.2)*CFrame.Angles(0,0,0)
  690. -----------------------------------------------------
  691.  
  692. function weld5(part0, part1, c0, c1)
  693. weeld=Instance.new("Weld", part0)
  694. weeld.Part0=part0
  695. weeld.Part1=part1
  696. weeld.C0=c0
  697. weeld.C1=c1
  698. return weeld
  699. end
  700. ----------------------------------------------------
  701. function newRay(start,face,range,wat)
  702. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  703. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  704. return rey,hit,pos
  705. end
  706. ----------------------------------------------------
  707. mod5 = Instance.new("Model",char)
  708.  
  709. function FindNearestTorso(Position,Distance,SinglePlayer)
  710. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  711. local List = {}
  712. for i,v in pairs(workspace:GetChildren())do
  713. if v:IsA("Model")then
  714. if v:findFirstChild("Torso")then
  715. if v ~= char then
  716. if(v.Torso.Position -Position).magnitude <= Distance then
  717. table.insert(List,v)
  718. end
  719. end
  720. end
  721. end
  722. end
  723. return List
  724. end
  725.  
  726. function Landing()
  727. part=Instance.new('Part',mod5)
  728. part.Anchored=true
  729. part.CanCollide=false
  730. part.FormFactor='Custom'
  731. part.Size=Vector3.new(.2,.2,.2)
  732. part.CFrame=root.CFrame*CFrame.new(0,-2,0)
  733. part.Transparency=.7
  734. part.BrickColor=BrickColor.new('Really black')
  735. mesh=Instance.new('SpecialMesh',part)
  736. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  737. mesh.Scale=Vector3.new(10,5,10)
  738.  
  739. for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
  740. if v:FindFirstChild('Humanoid') then
  741. v.Humanoid:TakeDamage(math.random(20,30))
  742. v.Humanoid.PlatformStand = true
  743. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  744. end
  745. end
  746.  
  747. coroutine.resume(coroutine.create(function()
  748. for i=0,3.8,0.05 do
  749. wait()
  750. part.CFrame=part.CFrame
  751. part.Transparency=i
  752. mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
  753. end
  754. part.Parent = nil
  755. end))
  756. end
  757. ----------------------------------------------------
  758. mod4 = Instance.new("Model",char)
  759.  
  760. ptez = {0.7, 0.8, 0.9, 1}
  761.  
  762. function FindNearestTorso(Position,Distance,SinglePlayer)
  763. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  764. local List = {}
  765. for i,v in pairs(workspace:GetChildren())do
  766. if v:IsA("Model")then
  767. if v:findFirstChild("Torso")then
  768. if v ~= char then
  769. if(v.Torso.Position -Position).magnitude <= Distance then
  770. table.insert(List,v)
  771. end
  772. end
  773. end
  774. end
  775. end
  776. return List
  777. end
  778.  
  779. ----------------------------------------------------
  780.  
  781. local acos = math.acos
  782. local sqrt = math.sqrt
  783. local Vec3 = Vector3.new
  784. local fromAxisAngle = CFrame.fromAxisAngle
  785.  
  786. local function toAxisAngle(CFr)
  787. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  788. local Angle = math.acos((R00+R11+R22-1)/2)
  789. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  790. A = A == 0 and 0.00001 or A
  791. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  792. B = B == 0 and 0.00001 or B
  793. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  794. C = C == 0 and 0.00001 or C
  795. local x = (R21-R12)/sqrt(A)
  796. local y = (R02-R20)/sqrt(B)
  797. local z = (R10-R01)/sqrt(C)
  798. return Vec3(x,y,z),Angle
  799. end
  800.  
  801. function ApplyTrig(Num,Func)
  802. local Min,Max = Func(0),Func(1)
  803. local i = Func(Num)
  804. return (i-Min)/(Max-Min)
  805. --[[if Func == "sin" then
  806. return (math.sin((1-Num)*math.pi)+1)/2
  807. elseif Func == "cos" then
  808. return (math.cos((1-Num)*math.pi)+1)/2
  809. end]]
  810. end
  811.  
  812. function LerpCFrame(CFrame1,CFrame2,Num)
  813. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  814. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  815. end
  816. mouse.KeyDown:connect(function(key)
  817. if key == "b" then
  818. if Debounces.CanAttack == true then
  819. Debounces.CanAttack = false
  820. Debounces.on = true
  821. Debounces.NoIdl = true
  822. for i = 1,20 do
  823. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(9,4,1) * CFrame.Angles(0.3,-0.5,1.55),.3)
  824. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-9,4,1) * CFrame.Angles(0.3,0.5,-1.55),.3)
  825. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0.4,0,0),.3)
  826. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.3,0,0),.3)
  827. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,1) *CFrame.Angles(-0.3,0,-0.1),.3)
  828. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,1) * CFrame.Angles(-0.3,0,0.1),.3)
  829. if Debounces.on == false then break end
  830. wait()
  831. end
  832. v = Instance.new("Sound")
  833. v.SoundId = "rbxassetid://785301837"
  834. v.Parent = torso
  835. v.Looped = false
  836. v.Pitch = 0.8
  837. v.Volume = math.huge
  838. wait(.01)
  839. v:Play()
  840. coroutine.resume(coroutine.create(function()
  841. for i = 1,80 do
  842. local H = Instance.new("Part",torso)
  843. H.Size = Vector3.new(1,1,1)
  844. H.BrickColor = BrickColor.new("White")
  845. H.CanCollide = false
  846. H.Anchored = true
  847. H.CFrame = torso.CFrame*CFrame.new(0,-13,0)*CFrame.Angles(1.3,0,0)
  848. local H2 = Instance.new("SpecialMesh",H)
  849. H2.MeshId = "rbxassetid://3270017"
  850. coroutine.resume(coroutine.create(function()
  851. for i = 1,200 do
  852. H2.Scale = H2.Scale + Vector3.new(5,5,5)
  853. H.Transparency = H.Transparency + 0.05
  854. wait(0.05)
  855. end
  856. H:remove()
  857. end))
  858. wait(0.005)
  859. end
  860. if Debounces.CanAttack == false then
  861. Debounces.CanAttack = true
  862. Debounces.on = false
  863. Debounces.NoIdl = false
  864. end
  865. end))
  866. end
  867. end
  868. end)
  869. mouse.KeyDown:connect(function(key)
  870. if key == "z" then
  871. if Debounces.CanAttack == true then
  872. Debounces.CanAttack = false
  873. Debounces.on = true
  874. Debounces.NoIdl = true
  875. for i = 1,20 do
  876. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.55,0,0),.3)
  877. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,-3) * CFrame.Angles(1.55,0,0),.3)
  878. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  879. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -6, 0) * CFrame.Angles(-1.5,0,0),.3)
  880. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -7.6,-2) *CFrame.Angles(1.55,0,0),.3)
  881. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,-2) * CFrame.Angles(1.55,0,0),.3)
  882. if Debounces.on == false then break end
  883. wait()
  884. end
  885. local Rock = Instance.new("Part",char)
  886. Rock.Size = Vector3.new(1,1,1)
  887. local Rock22 = Instance.new("SpecialMesh",Rock)
  888. Rock22.MeshId = "rbxassetid://433651599"
  889. Rock22.Scale = Vector3.new(0.5,0.5,0.5)
  890. local Rock2 = Instance.new("Weld",Rock)
  891. Rock2.Part0 = hed
  892. Rock2.Part1 = Rock
  893. Rock2.C0 = CFrame.new(0,40,0)*CFrame.Angles(0,-1.55,0)
  894. local PPA = Instance.new("Part",Rock)
  895. PPA.Size = Vector3.new(30,30,30)
  896. PPA.CanCollide = false
  897. local PPA2 = Instance.new("Weld",PPA)
  898. PPA2.Part0 = Rock
  899. PPA2.Part1 = PPA
  900. PPA2.C0 = CFrame.new(0,0,0)
  901. PPA.Touched:connect(function(hit)
  902. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  903. if not FA then FA = true
  904. hit.Parent.Humanoid.PlatformStand = true
  905. hit.Parent.Humanoid:TakeDamage(30)
  906. local Fly = Instance.new("BodyVelocity",hit.Parent.Torso)
  907. Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  908. Fly.velocity = mouse.hit.lookVector*560
  909. wait(0.1)
  910. Fly:remove()
  911. wait(3)
  912. FA = false
  913. end
  914. end
  915. end)
  916. wait(0.5)
  917. for i = 1,20 do
  918. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,5.5,0) * CFrame.Angles(3.1,0,0),.3)
  919. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,5.5,0) * CFrame.Angles(3.1,0,0),.3)
  920. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  921. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0,0,0),.3)
  922. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,0) *CFrame.Angles(0,0,0),.3)
  923. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,0) * CFrame.Angles(0,0,0),.3)
  924. if Debounces.on == false then break end
  925. wait()
  926. end
  927. Rock2:remove()
  928. local Fly = Instance.new("BodyVelocity",Rock)
  929. Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  930. Fly.velocity = mouse.hit.lookVector*200
  931. for i = 1,20 do
  932. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1.5,-1) * CFrame.Angles(1.55,0,0),.3)
  933. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1.5,-1) * CFrame.Angles(1.55,0,0),.3)
  934. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.3,0,0),.3)
  935. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.3,0,0),.3)
  936. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,0) *CFrame.Angles(0,0,0),.3)
  937. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,-2) * CFrame.Angles(0.5,0,0),.3)
  938. if Debounces.on == false then break end
  939. wait()
  940. end
  941. if Debounces.CanAttack == false then
  942. Debounces.CanAttack = true
  943. Debounces.on = false
  944. Debounces.NoIdl = false
  945. end
  946. wait(2)
  947. Fly:remove()
  948. local SFXZ = Instance.new("Sound",Rock)
  949. SFXZ.SoundId = "rbxassetid://134854740"
  950. SFXZ.Volume = math.huge
  951. SFXZ.Pitch = 1
  952. SFXZ.Looped = false
  953. wait(0.01)
  954. SFXZ:Play()
  955. wait(3)
  956. Rock:remove()
  957. end
  958. end
  959. end)
  960. mouse.KeyDown:connect(function(key)
  961. if key == "e" then
  962. if Debounces.CanAttack == true then
  963. Debounces.CanAttack = false
  964. Debounces.on = true
  965. Debounces.NoIdl = true
  966. for i = 1,20 do
  967. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.3,0,0),.3)
  968. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  969. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  970. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  971. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  972. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  973. if Debounces.on == false then break end
  974. wait()
  975. end
  976. local HitBox = Instance.new("Part",char)
  977. HitBox.Size = Vector3.new(5,5,5)
  978. HitBox.CanCollide = false
  979. HitBox.Transparency = math.huge
  980. local HitBox2 = Instance.new("Weld",HitBox)
  981. HitBox2.Part0 = rarm
  982. HitBox2.Part1 = HitBox
  983. HitBox2.C0 = CFrame.new(0,-4.5,0)
  984. HitBox.Touched:connect(function(hit)
  985. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  986. if not DD then DD = true
  987. HitBox:remove()
  988. hit.Parent.Humanoid.PlatformStand = true
  989. local We = Instance.new("Weld",hit.Parent.Torso)
  990. We.Part0 = rarm
  991. We.Part1 = hit.Parent.Torso
  992. We.C0 = CFrame.new(0,-5,0)*CFrame.Angles(-1.55,0,0)
  993. wait(1)
  994. for i = 1,20 do
  995. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,4,0) * CFrame.Angles(3.1,0,1),.3)
  996. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,4,0) * CFrame.Angles(-3.1,0,-1),.3)
  997. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(1,0,0),.3)
  998. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  999. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1000. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1001. if Debounces.on == false then break end
  1002. wait()
  1003. end
  1004. hit.Parent.Humanoid:TakeDamage(20)
  1005. for i = 1,20 do
  1006. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(6,4,-1) * CFrame.Angles(1.55,0,-1),.3)
  1007. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-6,4,-1) * CFrame.Angles(1.55,0,1),.3)
  1008. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  1009. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  1010. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1011. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1012. if Debounces.on == false then break end
  1013. wait()
  1014. end
  1015. for i = 1,20 do
  1016. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,4,-1) * CFrame.Angles(1.55,0,-1.3),.3)
  1017. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-5,4,-1) * CFrame.Angles(1.55,0,1.3),.3)
  1018. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  1019. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  1020. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  1021. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  1022. if Debounces.on == false then break end
  1023. wait()
  1024. end
  1025. local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
  1026. partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
  1027. partasdeff.LightEmission = .1
  1028. partasdeff.Size = NumberSequence.new(0.2)
  1029. partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823"
  1030. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1031. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1032. partasdeff.Transparency = bbb
  1033. partasdeff.Size = aaa
  1034. partasdeff.ZOffset = .9
  1035. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  1036. partasdeff.LockedToPart = false
  1037. partasdeff.EmissionDirection = "Top"
  1038. partasdeff.Lifetime = NumberRange.new(1, 2)
  1039. partasdeff.Rate = 1000
  1040. partasdeff.Rotation = NumberRange.new(-100, 100)
  1041. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  1042. partasdeff.Speed = NumberRange.new(10)
  1043. partasdeff.VelocitySpread = 300
  1044. partasdeff.Enabled = true
  1045. wait(1.5)
  1046. hit.Parent:BreakJoints()
  1047. We:remove()
  1048. partasdeff.Enabled = false
  1049. if Debounces.CanAttack == false then
  1050. Debounces.CanAttack = true
  1051. Debounces.on = false
  1052. Debounces.NoIdl = false
  1053. end
  1054. wait(3)
  1055. DD = false
  1056. end
  1057. end
  1058. end)
  1059. wait(5)
  1060. if Debounces.CanAttack == false then
  1061. Debounces.CanAttack = true
  1062. Debounces.on = false
  1063. Debounces.NoIdl = false
  1064. end
  1065. end
  1066. end
  1067. end)
  1068. mouse.KeyDown:connect(function(key)
  1069. if key == "r" then
  1070. if Debounces.CanAttack == true then
  1071. Debounces.CanAttack = false
  1072. Debounces.on = true
  1073. Debounces.NoIdl = true
  1074. for i = 1,20 do
  1075. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  1076. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  1077. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  1078. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.5,0,0),.3)
  1079. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -2) *CFrame.Angles(0.5,0,0),.3)
  1080. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, 1.2) * CFrame.Angles(-1.5,0,0),.3)
  1081. if Debounces.on == false then break end
  1082. wait()
  1083. end
  1084. local HitBox = Instance.new("Part",char)
  1085. HitBox.Size = Vector3.new(5,5,5)
  1086. HitBox.CanCollide = false
  1087. HitBox.Transparency = math.huge
  1088. local HitBox2 = Instance.new("Weld",HitBox)
  1089. HitBox2.Part0 = rleg
  1090. HitBox2.Part1 = HitBox
  1091. HitBox2.C0 = CFrame.new(0,-1.1,0)
  1092. local SFXZ = Instance.new("Sound",torso)
  1093. SFXZ.SoundId = "rbxassetid://169259383"
  1094. SFXZ.Volume = math.huge
  1095. SFXZ.Pitch = 0.5
  1096. SFXZ.Looped = false
  1097. wait(0.01)
  1098. SFXZ:Play()
  1099. HitBox.Touched:connect(function(hit)
  1100. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  1101. local SFXZ = Instance.new("Sound",torso)
  1102. SFXZ.SoundId = "rbxassetid://743886825"
  1103. SFXZ.Volume = 1
  1104. SFXZ.Pitch = 0.5
  1105. SFXZ.Looped = false
  1106. SFXZ:Play()
  1107. HitBox:remove()
  1108. hit.Parent.Humanoid:TakeDamage(44)
  1109. hit.Parent.Humanoid.PlatformStand = true
  1110. local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
  1111. Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1112. Fl.velocity = rleg.CFrame.lookVector*350
  1113. wait(0.1)
  1114. Fl:remove()
  1115. end
  1116. end)
  1117. for i = 1,20 do
  1118. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  1119. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  1120. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  1121. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.5,0,0),.3)
  1122. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, 2) *CFrame.Angles(-0.5,0,0),.3)
  1123. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, -1.2) * CFrame.Angles(1.5,0,0),.3)
  1124. if Debounces.on == false then break end
  1125. wait()
  1126. end
  1127. if Debounces.CanAttack == false then
  1128. Debounces.CanAttack = true
  1129. Debounces.on = false
  1130. Debounces.NoIdl = false
  1131. HitBox:remove()
  1132. end
  1133. end
  1134. end
  1135. end)
  1136. ----------------------------------------------------
  1137. mouse.KeyDown:connect(function(key)
  1138. if string.byte(key) == 48 then
  1139. char.Humanoid.WalkSpeed = 30
  1140. end
  1141. end)
  1142. mouse.KeyUp:connect(function(key)
  1143. if string.byte(key) == 60 then
  1144. char.Humanoid.WalkSpeed = 5
  1145. end
  1146. end)
  1147. ----------------------------------------------------
  1148. local animpose = "Idle"
  1149. local lastanimpose = "Idle"
  1150. local sine = 0
  1151. local change = 1
  1152. local val = 0
  1153. local ffing = false
  1154. ----------------------------------------------------
  1155. local x = Instance.new("Sound", char.Torso)
  1156. x.SoundId = "http://www.roblox.com/asset/?id=273962540"
  1157. x.Looped = true
  1158. x.Volume = 5
  1159. x.Pitch = 1
  1160. local footsteps = false
  1161. -------------------------------
  1162. game:GetService("RunService").RenderStepped:connect(function()
  1163. rarm.BrickColor = ASD
  1164. larm.BrickColor = ASD
  1165. rleg.BrickColor = ASD
  1166. lleg.BrickColor = ASD
  1167. hed.BrickColor = ASD
  1168. torso.BrickColor = ASD
  1169. --[[if char.Humanoid.Jump == true then
  1170. jump = true
  1171. else
  1172. jump = false
  1173. end]]
  1174. char.Humanoid.FreeFalling:connect(function(f)
  1175. if f then
  1176. ffing = true
  1177. else
  1178. ffing = false
  1179. end
  1180. end)
  1181. sine = sine + change
  1182. if jumpn == true then
  1183. animpose = "Jumping"
  1184. elseif ffing == true then
  1185. animpose = "Freefalling"
  1186. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1187. animpose = "Idle"
  1188. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1189. animpose = "Walking"
  1190. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1191. animpose = "Running"
  1192. end
  1193. if animpose ~= lastanimpose then
  1194. sine = 0
  1195. if Debounces.NoIdl == false then
  1196. if animpose == "Idle" then
  1197. for i = 1, 2 do
  1198. 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)
  1199. 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)
  1200. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  1201. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  1202. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  1203. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  1204. end
  1205. elseif animpose == "Walking" then
  1206. for i = 1, 2 do
  1207. 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)
  1208. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
  1209. 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)
  1210. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
  1211. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  1212. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  1213. end
  1214. elseif animpose == "Running" then
  1215. for i = 1, 2 do
  1216. 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)
  1217. 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)
  1218. 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)
  1219. 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)
  1220. 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)
  1221. 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)
  1222. end
  1223. wait()
  1224. end
  1225. else
  1226. end
  1227. end
  1228. lastanimpose = animpose
  1229. if Debounces.NoIdl == false then
  1230. if animpose == "Idle" then
  1231. if stanceToggle == "Normal" then
  1232. change = 0.5
  1233. 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)
  1234. 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)
  1235. 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)
  1236. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  1237. 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)
  1238. 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)
  1239. elseif stanceToggle == "Sitting" then
  1240. 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)
  1241. 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)
  1242. 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)
  1243. 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)
  1244. 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)
  1245. 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)
  1246. end
  1247. elseif animpose == "Walking" then
  1248. if stanceToggle == "Normal" then
  1249. change = 1
  1250. 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)
  1251. 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)
  1252. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(-0.2,0,0),.3)
  1253. 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)
  1254. 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)
  1255. 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)
  1256. end
  1257. elseif animpose == "Running" then
  1258. change = 1
  1259. 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)
  1260. 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)
  1261. 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)
  1262. 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)
  1263. 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)
  1264. 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)
  1265. end
  1266. end
  1267. if animpose == "Walking" then
  1268. if footsteps == false then
  1269. x:Play()
  1270. footsteps = true
  1271. end
  1272. x.Pitch = 1.1
  1273. elseif animpose == "Idle" then
  1274. x:Stop()
  1275. footsteps = false
  1276. elseif animpose == "Running" then
  1277. x.Pitch = 1.2
  1278. if footsteps == false then
  1279. x:Play()
  1280. footsteps = true
  1281. end
  1282. end
  1283. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement