Just_A_Name

bleach test

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