Advertisement
Guest User

armored titan script

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