Advertisement
GabeTheDog

BEPIS script (Broken)

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