Advertisement
copra50

erens titan

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