Advertisement
cat568

Untitled

May 19th, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local mouse = p:GetMouse()
  4. local larm = char["Left Arm"]
  5. local rarm = char["Right Arm"]
  6. local lleg = char["Left Leg"]
  7. local rleg = char["Right Leg"]
  8. local hed = char.Head
  9. local torso = char.Torso
  10. local hum = char.Humanoid
  11. local cam = game.Workspace.CurrentCamera
  12. local root = char.HumanoidRootPart
  13. local deb = false
  14. local shot = 0
  15. NoAnims = false
  16. local debris=game:service"Debris"
  17. local l = game:GetService("Lighting")
  18. local rs = game:GetService("RunService").RenderStepped
  19. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  20. math.randomseed(os.time())
  21. for i,v in pairs (hed:GetChildren()) do
  22. if v:IsA("Sound") then
  23. v:Destroy()
  24. end
  25. end
  26. ----------------------------------------------------
  27. local Touche = {char.Name, }
  28. ----------------------------------------------------
  29.  
  30. hum.MaxHealth = 150
  31.  
  32. ----------------------------------------------------
  33. function lerp(a, b, t) -- Linear interpolation
  34. return a + (b - a)*t
  35. end
  36.  
  37. function slerp(a, b, t) --Spherical interpolation
  38. dot = a:Dot(b)
  39. if dot > 0.99999 or dot < -0.99999 then
  40. return t <= 0.5 and a or b
  41. else
  42. r = math.acos(dot)
  43. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  44. end
  45. end
  46.  
  47. function matrixInterpolate(a, b, t)
  48. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  49. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  50. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  51. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  52. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  53. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  54. local t = v1:Dot(v2)
  55. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  56. return CFrame.new()
  57. end
  58. return CFrame.new(
  59. v0.x, v0.y, v0.z,
  60. v1.x, v1.y, v1.z,
  61. v2.x, v2.y, v2.z,
  62. v3.x, v3.y, v3.z)
  63. end
  64. ----------------------------------------------------
  65. function genWeld(a,b)
  66. local w = Instance.new("Weld",a)
  67. w.Part0 = a
  68. w.Part1 = b
  69. return w
  70. end
  71. function weld(a, b)
  72. local weld = Instance.new("Weld")
  73. weld.Name = "W"
  74. weld.Part0 = a
  75. weld.Part1 = b
  76. weld.C0 = a.CFrame:inverse() * b.CFrame
  77. weld.Parent = a
  78. return weld;
  79. end
  80. ----------------------------------------------------
  81. function Lerp(c1,c2,al)
  82. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  83. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  84. for i,v in pairs(com1) do
  85. com1[i] = v+(com2[i]-v)*al
  86. end
  87. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  88. end
  89. ----------------------------------------------------
  90. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  91. local wld = Instance.new("Weld", wp1)
  92. wld.Part0 = wp0
  93. wld.Part1 = wp1
  94. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  95. end
  96. ----------------------------------------------------
  97. function weld5(part0, part1, c0, c1)
  98. weeld=Instance.new("Weld", part0)
  99. weeld.Part0=part0
  100. weeld.Part1=part1
  101. weeld.C0=c0
  102. weeld.C1=c1
  103. return weeld
  104. end
  105. ----------------------------------------------------
  106. function HasntTouched(plrname)
  107. local ret = true
  108. for _, v in pairs(Touche) do
  109. if v == plrname then
  110. ret = false
  111. end
  112. end
  113. return ret
  114. end
  115. ----------------------------------------------------
  116. gavehp = false
  117.  
  118. local ends = {"alive","rip"}
  119. result = ""
  120.  
  121. local g = Instance.new("Part",larm)
  122. g.Material = "Neon"
  123. g.CanCollide = false
  124. g.Size = Vector3.new(1,1,1)
  125. local gm = Instance.new("SpecialMesh",g)
  126. gm.MeshId = "rbxassetid://483388971"
  127. gm.TextureId = "rbxassetid://520016684"
  128. gm.Scale = Vector3.new(0.005,0.005,0.005)
  129.  
  130. local cor = Instance.new("Weld")
  131. cor.Part1 = g
  132. cor.Part0 = larm
  133. cor.Parent = char
  134. cor.C1 = CFrame.new(0.2,1.8,0)
  135.  
  136. ----------------------------------------------------
  137. newWeld(torso, larm, -1.5, 0.5, 0)
  138. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  139. newWeld(torso, rarm, 1.5, 0.5, 0)
  140. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  141. newWeld(torso, hed, 0, 1.5, 0)
  142. newWeld(torso, lleg, -0.5, -1, 0)
  143. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  144. newWeld(torso, rleg, 0.5, -1, 0)
  145. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  146. newWeld(root, torso, 0, -1, 0)
  147. torso.Weld.C1 = CFrame.new(0, -1, 0)
  148. ----------------------------------------------------
  149. attack = false
  150. local m = 0
  151. ----------------------------------------------------
  152. char.Health:Destroy()
  153. mouse.KeyDown:connect(function(key)
  154. if key == "e" then
  155. if attack == false then
  156. attack = true
  157. NoAnims = true
  158. hum.Health = 150
  159.  
  160. result = ends[math.random(1,#ends)]
  161.  
  162. local s = Instance.new("Sound",torso)
  163. s.SoundId = "rbxassetid://140923474"
  164. s.Volume = 1
  165. s.Pitch = 1
  166. s.Looped = true
  167. s:Play()
  168.  
  169. coroutine.wrap(function()
  170. s:Remove()
  171. end)()
  172. local s = Instance.new("Sound",torso)
  173. s.SoundId = "rbxassetid://212887982"
  174. s.Volume = 1
  175. s.Pitch = 1
  176. s:Play()
  177.  
  178. cor.Part0 = hed
  179. pcall(function()
  180. for i = 1, 20 do
  181.  
  182. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  183.  
  184. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(30)), 0.2)
  185.  
  186. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  187.  
  188. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
  189.  
  190. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  191.  
  192. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  193.  
  194. cor.C0 = Lerp(cor.C0, CFrame.new(0.6,0,0)*CFrame.Angles(math.rad(50),0,0),0.2)
  195. rs:wait()
  196.  
  197. end
  198. end)
  199.  
  200. local pgui = p.PlayerGui
  201.  
  202. local sc = Instance.new("ScreenGui",pgui)
  203. local w1 = Instance.new("TextLabel",sc)
  204. w1.Size = UDim2.new(1,0,1,0)
  205. w1.Text = "wo kalm dwn m8 u r gon gt rkt"
  206. w1.TextScaled = true
  207. w1.BackgroundColor3 = Color3.new(1,1,1)
  208. w1.BorderSizePixel = 0
  209.  
  210. coroutine.wrap(function()
  211. for i = 1, 20 do
  212. w1.BackgroundTransparency = i/10
  213. w1.TextTransparency = i/10
  214. end
  215. end)()
  216.  
  217. pcall(function()
  218. for i = 1, 100 do
  219. rs:wait()
  220. m = m + 0.004
  221. hum.Health = hum.Health-1
  222. cor.C0 = Lerp(cor.C0, CFrame.new(0.6,0+m/2,0-m/2)*CFrame.Angles(math.rad(50) + m,0,0),0.2)
  223.  
  224. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5+m,0-m/3.5)*CFrame.Angles(math.rad(120) + m,math.rad(0),math.rad(30)), 0.2)
  225.  
  226. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5+m,0+m/3.5)*CFrame.Angles(math.rad(0) - m,math.rad(0),math.rad(0) + m), 0.2)
  227.  
  228. end
  229. end)
  230.  
  231. if result == "rip" then
  232.  
  233. coroutine.wrap(function()
  234. wait(0.15)
  235. for i = 1, 60 do
  236. cor.Part0 = torso
  237. cor.C0 = Lerp(cor.C0,CFrame.new(9,-0.15,0)*CFrame.Angles(0,0,200),0.1)
  238. rs:wait()
  239. end
  240. end)()
  241.  
  242. s:Remove()
  243. hum.WalkSpeed = 0
  244. pcall(function()
  245. hum.JumpPower = 0
  246. end)
  247.  
  248. pcall(function()
  249. for i = 1, 20 do
  250.  
  251. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(30),math.rad(30)), 0.2)
  252.  
  253. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(-10),math.rad(-10)), 0.2)
  254.  
  255. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)), 0.2)
  256.  
  257. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.5, 0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)), 0.2)
  258.  
  259. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(-10),math.rad(-5)), 0.4)
  260.  
  261. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(20)), 0.4)
  262.  
  263. rs:wait()
  264. end
  265. end)
  266.  
  267. wait(3)
  268.  
  269. coroutine.wrap(function()
  270. while true do
  271. wait(0.07)
  272. pcall(function()
  273.  
  274. rarm.Weld.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.random(0,3),math.random(0,7),math.random(30,45))
  275.  
  276. larm.Weld.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.random(0,5),math.random(10,20),math.random(10,20))
  277.  
  278. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.random(20,30),math.random(0,4),math.random(0,3))
  279.  
  280. lleg.Weld.C0 = CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.random(0,5),math.random(10,15),math.random(5,10))
  281.  
  282. rleg.Weld.C0 = CFrame.new(0.5, -1, 0)*CFrame.Angles(math.random(0,4),math.random(20,30),math.random(20,30))
  283.  
  284. end)
  285. end
  286. end)()
  287.  
  288.  
  289. cor:Destroy()
  290.  
  291. g.Anchored = true
  292.  
  293. for i,v in pairs(char:GetChildren()) do
  294. if v:IsA("Part") then
  295. v.Anchored = true
  296. elseif v:IsA("Accoutrement") then
  297. v.Handle.Anchored = true
  298. end
  299. end
  300.  
  301. cor.Part0 = larm
  302. m = 0
  303. hum.MaxHealth = 0
  304.  
  305. local k = Instance.new("Sound",torso)
  306. k.SoundId = "rbxassetid://154872806"
  307. k.Volume = 10
  308. k.Pitch = 1
  309. k:Play()
  310.  
  311. local cf = torso.CFrame -Vector3.new(0,0.55,0)
  312. cf = cf*CFrame.Angles(math.rad(88.5),0,0)
  313.  
  314. local b = Instance.new("Part",torso)
  315. b.BrickColor = BrickColor.new("Really red")
  316. b.Material = "Neon"
  317. b.Anchored = true
  318. b.CanCollide = false
  319. b.Size = Vector3.new(2,0.01,2)
  320. b.CFrame = cf
  321.  
  322. local bm = Instance.new("CylinderMesh",b)
  323.  
  324. local cf2 = b.CFrame -Vector3.new(3,0,0)
  325.  
  326. local b2 = Instance.new("Part",torso)
  327. b2.BrickColor = BrickColor.new("Really red")
  328. b2.Material = "Neon"
  329. b2.Anchored = true
  330. b2.CanCollide = false
  331. b2.Size = Vector3.new(2,0.01,2)
  332. b2.CFrame = cf2
  333.  
  334. local bm2 = Instance.new("CylinderMesh",b2)
  335.  
  336.  
  337. for i = 1, 40 do
  338. wait()
  339. b.Size = Vector3.new(i/5,0,i/5)
  340. b.CFrame = cf
  341.  
  342. b2.Size = Vector3.new(i/10,0,i/10)
  343. b2.CFrame = cf2
  344. end
  345.  
  346. local bg = Instance.new("BillboardGui", torso)
  347. bg.Name = "rip"
  348. bg.Adornee = torso
  349. bg.Size = UDim2.new(1, 0, 1, 0)
  350. bg.StudsOffset = Vector3.new(0, 2, 0)
  351.  
  352. local fr1 = Instance.new("TextLabel", bg)
  353. fr1.Size = UDim2.new(1, 0, 1, 0)
  354. fr1.BorderSizePixel = 0
  355. fr1.TextTransparency = 1
  356. fr1.BackgroundTransparency = 1
  357. fr1.Text = "r.i.p"
  358. fr1.TextScaled = true
  359.  
  360. coroutine.wrap(function()
  361. for i = 1, 20 do
  362. rs:wait()
  363. fr1.TextTransparency = fr1.TextTransparency - 1/20
  364. fr1.BackgroundTransparency = fr1.BackgroundTransparency - 1/20
  365. end
  366. end)()
  367.  
  368. coroutine.wrap(function()
  369. while true do
  370.  
  371. for i = 0.01, 0.2 do
  372. fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(255,0,0),i)
  373. rs:wait()
  374. end
  375.  
  376. for i = 0.01, 0.2 do
  377. fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(0,255,0),i)
  378. rs:wait()
  379. end
  380.  
  381. for i = 0.01, 0.2 do
  382. fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(0,0,255),i)
  383. rs:wait()
  384. end
  385.  
  386. wait()
  387. end
  388. end)()
  389.  
  390. local x = Instance.new("Sound",torso)
  391. x.SoundId = "rbxassetid://397069204"
  392. x.Looped = true
  393. x:Play()
  394. wait(9)
  395.  
  396. local txts = {"R.I.P "..p.Name.." Died drinking his favorite soda","R.I.P "..p.Name.." Died because of the anime called bleach - i mean the drink.","R.I.P "..p.Name.." probably died from some dumb reason","Potato"}
  397.  
  398. local t1 = Instance.new("Part",workspace.Base)
  399. t1.Name = "tombstone_dirt"
  400. t1.BrickColor = BrickColor.new("Reddish brown")
  401. t1.CanCollide = false
  402. t1.CFrame = root.CFrame - Vector3.new(0,3.25,0)
  403. t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  404. t1.Material = "Grass"
  405. t1.Size = Vector3.new(4,1,8)
  406.  
  407. local tw = Instance.new("Weld")
  408.  
  409. local t2 = Instance.new("Part",t1)
  410. t2.Name = "tombstone_stone"
  411. t2.CanCollide = false
  412. t2.BrickColor = BrickColor.new("")
  413. t2.Anchored = false
  414. t2.CFrame = t1.CFrame + Vector3.new(0,0,-4)
  415. t2.Size = Vector3.new(4.2,5,1.2)
  416.  
  417. local sg = Instance.new("SurfaceGui",t2)
  418. sg.Enabled = true
  419. sg.Face = "Back"
  420. sg.Adornee = t2
  421. local txts = txts[math.random(1,#txts)]
  422.  
  423. local txt = Instance.new("TextLabel",sg)
  424. txt.TextScaled = true
  425. txt.Text = txts
  426. txt.BackgroundTransparency = 1
  427. txt.BorderSizePixel = 0
  428. txt.Size = UDim2.new(1,0,1,0)
  429.  
  430. txt.TextColor3 = Color3.new(1,1,1)
  431. if txts == "666" then
  432. txt.TextColor3 = Color3.new(1,0,0)
  433. end
  434.  
  435.  
  436. tw.Part1 = t2
  437. tw.Part0 = t1
  438. tw.Parent = char
  439. tw.C0 = CFrame.new(0,2.5,-4)
  440.  
  441. coroutine.wrap(function()
  442. t1.CFrame = root.CFrame - Vector3.new(0,3.2,0)
  443. t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  444. wait(0.1)
  445. t1.CFrame = root.CFrame - Vector3.new(0,3.2,0)
  446. t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  447. t1.Anchored = true
  448. t2.Anchored = true
  449. t1.CanCollide = true
  450. t2.CanCollide = true
  451. end)()
  452.  
  453. char:BreakJoints()
  454.  
  455. elseif result == "alive" then
  456. attack = false
  457. NoAnims = false
  458. cor.Part0 = larm
  459. m = 0
  460. end
  461. end
  462. end
  463. end)
  464.  
  465. pcall(function()
  466. ----------------------------------------------------
  467. mouse.KeyDown:connect(function(key)
  468. if string.byte(key) == 50 then
  469. char.Humanoid.WalkSpeed = 60
  470. end
  471. end)
  472. mouse.KeyUp:connect(function(key)
  473. if string.byte(key) == 50 then
  474. char.Humanoid.WalkSpeed = 16
  475. end
  476. end)
  477. -------------------------------
  478. local animpose = "Idle"
  479. local lastanimpose = "Idle"
  480. local sine = 0
  481. local change = 1
  482. local val = 0
  483. local ffing = false
  484. -------------------------------
  485. game:GetService("RunService").RenderStepped:connect(function()
  486. --[[if char.Humanoid.Jump == true then
  487. jump = true
  488. else
  489. jump = false
  490. end]]
  491. char.Humanoid.FreeFalling:connect(function(f)
  492. if f then
  493. ffing = true
  494. else
  495. ffing = false
  496. end
  497. end)
  498. sine = sine + change
  499. if jumpn == true then
  500. animpose = "Jumping"
  501. elseif ffing == true then
  502. animpose = "Freefalling"
  503. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  504. animpose = "Idle"
  505. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  506. animpose = "Walking"
  507. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  508. animpose = "Running"
  509. end
  510. if animpose ~= lastanimpose then
  511. sine = 0
  512. if animpose == "Idle" then
  513. for i = 1, 2 do
  514. if NoAnims == false then
  515.  
  516. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5+math.sin(sine/14)/9,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(30)), 0.2)
  517.  
  518. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5 + math.sin(sine/14)/9,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(30)), 0.2)
  519.  
  520. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  521.  
  522. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
  523.  
  524. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  525.  
  526. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  527.  
  528. end
  529. end
  530.  
  531. elseif animpose == "Walking" then
  532. for i = 1, 2 do
  533. if NoAnims == false then
  534.  
  535. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.7,0.5,-0.35)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-90)), 0.1)
  536.  
  537. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.7,0.5,-0.35)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(80)), 0.1)
  538.  
  539. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  540.  
  541. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
  542.  
  543. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  544.  
  545. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  546.  
  547. end
  548. end
  549. elseif animpose == "Running" then
  550. for i = 1, 2 do
  551. if NoAnims == false then
  552. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  553.  
  554. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  555.  
  556. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  557.  
  558. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.05)
  559.  
  560. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  561.  
  562. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  563.  
  564. wait()
  565. end
  566. end
  567. else
  568. end
  569. end
  570. lastanimpose = animpose
  571. if animpose == "Idle" then
  572. if NoAnims == false then
  573. change = 0.5
  574.  
  575. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.4+math.sin(sine/14)/9,0.2)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-30)), 0.2)
  576.  
  577. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.4 + math.sin(sine/14)/9,-0.2)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(30)), 0.2)
  578.  
  579. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  580.  
  581. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
  582.  
  583. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  584.  
  585. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
  586.  
  587. cor.C0 = Lerp(cor.C0, CFrame.new(0,0.1,0.2)*CFrame.Angles(math.rad(10),math.pi,0),0.2)
  588.  
  589. end
  590.  
  591. elseif animpose == "Walking" then
  592. if NoAnims == false then
  593. change = 1
  594. cor.C0 = Lerp(cor.C0, CFrame.new(0,0.1,0.2)*CFrame.Angles(math.rad(10),-math.pi/2,0),0.2)
  595.  
  596. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0) + math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1)
  597.  
  598. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0) +- math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1)
  599.  
  600. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.07)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)), 0.2)
  601.  
  602. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
  603.  
  604. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0) + math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1)
  605.  
  606. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0) +- math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1)
  607.  
  608. end
  609.  
  610. elseif animpose == "Running" then
  611. if NoAnims == false then
  612. change = 0.5
  613.  
  614. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.7 ,0.5,-0.5)*CFrame.Angles(math.rad(90)+ math.sin(sine/2.5)/2,0,.05), 0.2)
  615.  
  616. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.7,0.5,-0.5)*CFrame.Angles(math.rad(90)+ -math.sin(sine/2.5)/2,0,-.05), 0.2)
  617.  
  618. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0.5)*CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)),0.2)
  619.  
  620. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(-90), 0, math.rad(0)), 0.2)
  621.  
  622. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(85) + math.sin(sine/2.5)/2, 0, 0.05), .4)
  623.  
  624. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(85) + -math.sin(sine/2.5)/2, 0.05, 0), .4)
  625.  
  626. end
  627. end
  628. end)
  629. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement