Advertisement
Guest User

armored titan updapted

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