ShutThefickUp

Untitled

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