Advertisement
teotv202

🧢🧢🧢🧢🧢🧢🧢🧢🧢🧢🧢🧢🧢🧢FE Mario Script🧢🧢🧢🧢🧢🧢🧢🧢

Aug 8th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 23.53 KB | None | 0 0
  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. plr = owner
  84. Player = plr
  85. char = plr.Character
  86.  
  87. local cap = Instance.new("Part",char)
  88. cap.CanCollide = false
  89. local mesh = Instance.new("FileMesh",cap)
  90. mesh.MeshId = "rbxassetid://1401768294"
  91. mesh.TextureId = "rbxassetid://1401768475"
  92. mesh.Scale = Vector3.new(0.02,0.02,0.02)
  93. local weld = Instance.new("Weld",cap)
  94. weld.Part0 = cap
  95. weld.Part1 = char.Head
  96. weld.C0 = CFrame.new(0.000736236572, -0.606394291, 0.0590667725, 1, 0, 0, 0, 0.999990702, 0, 0, 0, 1)
  97.  
  98. local GrooveCubeRemix = Instance.new("Sound",char)
  99. GrooveCubeRemix.SoundId = "rbxassetid://493026875"
  100. GrooveCubeRemix.Volume = 4
  101. GrooveCubeRemix.Looped = true
  102. GrooveCubeRemix:Play()
  103.  
  104. for i,v in pairs(char:GetChildren()) do
  105.     if v.ClassName == "Accessory" then
  106.         v.Handle.Transparency = 1
  107.     end
  108. end
  109. for i,v in pairs(char:GetChildren()) do
  110.     if v.ClassName == "Shirt" or v.ClassName == "Pants" then
  111.         v:Destroy()
  112.     end
  113. end
  114. local shirt = Instance.new("Shirt",char)
  115. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1091821325"
  116. local pants = Instance.new("Pants",char)
  117. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1091821538"
  118. char.Head.face.Texture = "http://www.roblox.com/asset/?id=851872681"
  119.  
  120. local player = Player
  121.  
  122.  
  123. local chara = workspace:WaitForChild(player.Name)
  124. local human = chara.Humanoid
  125. local neck = Instance.new("Weld",char)
  126. neck.Part0 = char.Torso
  127. neck.Part1 = char.Head
  128. neck.C0 = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  129. local human2 = Instance.new("Weld",char)
  130. human2.Part0 = char.HumanoidRootPart
  131. human2.Part1 = char.Torso
  132. human2co = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  133. necc = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  134. local rhandweld = Instance.new("Weld", char.Torso)
  135. rhandweld.Part0 = char.Torso
  136. rhandweld.Part1 = char["Right Arm"]
  137. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  138. local lhandweld = Instance.new("Weld", char.Torso)
  139. lhandweld.Part0 = char.Torso
  140. lhandweld.Part1 = char["Left Arm"]
  141. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  142.  local llegweld = Instance.new("Weld", char.Torso)
  143.         llegweld.Part0 = char.Torso
  144.         llegweld.Part1 = char["Left Leg"]
  145.         llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
  146.         local rlegclone = char.Torso["Right Hip"]:Clone()
  147.         local rlegweld = Instance.new("Weld", char.Torso)
  148.         rlegweld.Part0 = char.Torso
  149.         rlegweld.Part1 = char["Right Leg"]
  150.         rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
  151. pose = "Standing"
  152.  
  153. cananimate = true
  154. abletolongjump = false
  155. crouching = false
  156. longjumping = false
  157. walking = false
  158.  
  159. local speed = 0
  160.  
  161. char.Humanoid.Running:connect(function(s)
  162.     speed = s
  163. end)
  164.  
  165. coroutine.wrap(function()
  166. while true do
  167.     wait()
  168.     local ray = Ray.new(chara.Torso.Position, (chara.Torso.Position - Vector3.new(0,9999999,0)).unit * 300)
  169.     local p, position = game.Workspace:FindPartOnRay(ray, char, true, false)
  170.     local dis = (chara.Torso.Position - position).magnitude
  171.     if dis > 3.8 and chara.Torso.Velocity.Y > 0 then
  172.         pose = "Jumping"
  173.         char.Humanoid.WalkSpeed = 16
  174.     end
  175.     if dis> 3.8 and chara.Torso.Velocity.Y < 0 then
  176.         pose = "Falling"
  177.         char.Humanoid.WalkSpeed = 16
  178.     end
  179.     if dis < 3.8 and speed == 0 then
  180.         pose = "Standing"
  181.        char.Humanoid.WalkSpeed = 16
  182.     end
  183.     if dis < 3.8 and speed > 0 then
  184.         pose = "Walking"
  185.         char.Humanoid.WalkSpeed = 16
  186.     end
  187.     if longjumping and crouching and walking then
  188.     pose = "LongJump"
  189.     char.Humanoid.WalkSpeed = 16
  190.     end
  191.     if crouching and dis < 3.8 and speed == 0 and not longjumping  then
  192.     pose = "CrouchIdle"
  193.     char.Humanoid.WalkSpeed = 8
  194.     end
  195.     if crouching and dis < 3.8 and speed > 0 and not longjumping  then
  196.     pose = "CrouchWalk"
  197.     char.Humanoid.WalkSpeed = 8
  198.     end
  199. end
  200. end)()
  201. local Jump = Instance.new("Sound",char)
  202. Jump.SoundId = "rbxassetid://158309736"
  203. Jump.Volume = 4
  204. jumping = false
  205. sound = Jump
  206. stage = 1
  207. hum = char.Humanoid
  208. function onJump(val)
  209.     jumping = val
  210.    
  211.     if jumping == true and stage > 1 and stage < 3 and not crouching then
  212.         --print("Triple jump!")
  213.         stage = 3
  214.          char.Torso.Velocity = char.Torso.CFrame.upVector * 125
  215.        
  216.         sound:Play()
  217.         wait(1)
  218.         stage = 0
  219.     elseif jumping == true and stage > 0 and stage < 2 and not crouching then
  220.         --print("Double jump!")
  221.         stage = 2
  222.         char.Torso.Velocity = char.Torso.CFrame.upVector * 85
  223.  
  224.         sound:Play()
  225.     elseif jumping == true and stage < 1 then
  226.         --print("Normal jump!")
  227.         stage = 1
  228.        
  229.         sound.Pitch = 1
  230.         sound:Play()
  231.     end
  232. end
  233. hum.Jumping:connect(onJump)
  234.  
  235.  
  236. -- Jump Timeout --
  237. function onFall(val)
  238.     falling = val
  239.     if val == false then    --When player lands...
  240.         wait(0.25)          --Next jump times out after .2 seconds.
  241.         if stage > 0 and falling == false then
  242.             stage = 0       --Resets jumps.
  243.         end
  244.     end
  245. end
  246. hum.FreeFalling:connect(onFall)
  247. stomp = Instance.new("Sound",char)
  248. stomp.SoundId = "rbxassetid://140439666"
  249. stomp.Volume = 10
  250.  
  251. -- Stomp
  252. char["Right Leg"].Touched:connect(function(part)
  253.     local human = part.Parent:FindFirstChildOfClass("Humanoid")
  254.     if human and human.Parent.Name ~= char.Name and part.Name == "Head" then
  255.         human:remove()
  256.         stomp:Play()
  257.         char.Torso.Velocity = char.Torso.CFrame.upVector * 100
  258.         char.Humanoid.Jump = true
  259.         stage = 3
  260.         pose = "Jumping"
  261.     end
  262. end)
  263.  
  264.  
  265. char["Left Leg"].Touched:connect(function(part)
  266.     local human = part.Parent:FindFirstChildOfClass("Humanoid")
  267.     if human and human.Parent.Name ~= char.Name and part.Name == "Head" then
  268.         human:remove()
  269.         stomp:Play()
  270.         char.Torso.Velocity = char.Torso.CFrame.upVector * 100
  271.         char.Humanoid.Jump = true
  272.         stage = 3
  273.         pose = "Jumping"
  274.     end
  275. end)
  276.  
  277. local Jump3 = Instance.new("Sound",char)
  278. Jump3.SoundId = "rbxassetid://1555685807"
  279. Jump3.Volume = 10
  280. function crouch()
  281.     if not crouching then
  282.     abletolongjump = true
  283.     crouching = true -- no anims yet but there will be soon
  284.     end
  285. end
  286.  
  287. function stopcrouching()
  288.     if crouching then
  289.         abletolongjump = false
  290.         crouching = false
  291.     end
  292. end
  293.  
  294. function longjump()
  295.     if not longjumping and abletolongjump and walking then
  296.         Jump3:Play()
  297.         char.Humanoid.Jump = true
  298.         char.Torso.Velocity = char.Torso.CFrame.lookVector * 100
  299.         char.Humanoid.JumpPower = 80
  300.         longjumping = true
  301.         wait(1)
  302.         longjumping = false
  303.         char.Humanoid.JumpPower = 50
  304.     end
  305. end
  306.  
  307.  
  308.  
  309.  
  310. Mouse.KeyDown:connect(function(k)
  311.     if string.byte(k) == 48 then
  312.         crouch()
  313.     end
  314.     if k == "q" and crouching and abletolongjump then
  315.     longjump()
  316.     end
  317. end)
  318.  
  319. Mouse.KeyUp:connect(function(k)
  320.     if string.byte(k) == 48 then
  321.         stopcrouching()
  322.     end
  323. end)
  324. local health = Instance.new("ScreenGui",plr.PlayerGui)
  325. health.Name = "HealthGui"
  326. local text = Instance.new("TextLabel",health)
  327. text.Position = UDim2.new(-0.005, 0, 0.755, 0)
  328. text.Size = UDim2.new(0, 200, 0, 50)
  329. text.Text = char.Humanoid.Health .. "/" .. char.Humanoid.MaxHealth
  330. text.TextScaled = true
  331. text.BackgroundTransparency = 1
  332. text.TextColor3 = Color3.new(1,1,1)
  333. local Warning = Instance.new("TextLabel",health)
  334. Warning.Position = UDim2.new(-0.003, 0,0.618, 0)
  335. Warning.Size = UDim2.new(0, 200, 0, 50)
  336. Warning.BackgroundTransparency = 1
  337. Warning.TextScaled = true
  338. Warning.TextTransparency = 1
  339. Warning.Text = "WARNING! LOW HEALTH"
  340. Warning.TextColor3 = BrickColor.new("Really red").Color
  341. Warning.TextStrokeColor3 = BrickColor.new("Really red").Color
  342. char.Humanoid.Health = "inf"
  343. char.Humanoid.MaxHealth = "inf"
  344. ouch = Instance.new("Sound",char)
  345. ouch.SoundId = "rbxassetid://131358789"
  346. ouch.Volume = 10
  347. low = Instance.new("Sound",char)
  348. low.SoundId = "rbxassetid://1366726134"
  349. low.Volume = 10
  350. lowhealth = false
  351. coroutine.wrap(function()
  352. while true do
  353.     wait()
  354.     for i,v in pairs(char:GetChildren()) do
  355.         if v.ClassName == "Part" and v.Name ~= "HumanoidRootPart" then
  356.             v.BrickColor = BrickColor.new("Pastel brown")
  357.         end
  358.     end
  359. end
  360. end)()
  361. coroutine.wrap(function()
  362. while true do
  363.     wait()
  364.     text.Text = char.Humanoid.Health .. "/" .. char.Humanoid.MaxHealth
  365.     if hum.Health < 0 then
  366.         low:Play()
  367.         lowhealth = true
  368.         Warning.TextTransparency = 0
  369.    end
  370.    if hum.Health > 10 then
  371.     lowhealth = false
  372.     Warning.TextTransparency = 1
  373.     end
  374.     if hum.Health < 50 then
  375.         ouch:Play()
  376.         for i = 1,30 do
  377.             wait()
  378.             char.Head.face.Transparency = 1
  379.             for i,v in pairs(char:GetChildren()) do
  380.                 if v.ClassName == "Part" then
  381.                     v.Transparency = 1
  382.                 end
  383.             end
  384.             wait(0.05)
  385.             for i,v in pairs(char:GetChildren()) do
  386.                 if v.ClassName == "Part" then
  387.                     v.Transparency = 0
  388.                 end
  389.             end
  390.             char.HumanoidRootPart.Transparency = 1
  391.             char.Head.face.Transparency = 0
  392.         end
  393.         char.Humanoid.Health = 50
  394.     end
  395. end
  396. end)()
  397. while true do
  398.     wait()
  399.     if pose == "Standing" and cananimate then
  400.         walking = false
  401.         for i = 0,1 , 0.07  do
  402.             lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  403.             rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  404.             llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.499999523, -2.00000048, -9.53674316e-07, 0.970465422, 0, -0.241240621, 0, 1, 0, 0.241240621, 0, 0.970465422),i)
  405.             rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499999523, -2.00000048, 0, 0.825716197, -3.35415825e-06, -0.564085841, -0.00202200096, 0.999993622, -0.00296577741, 0.564082265, 0.00358947273, 0.825710893),i)
  406.             human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 0.779511273, 0, 0.626388252, 0, 0.999997616, 0, -0.626388252, 0, 0.779511273):inverse(),i)
  407.             neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 0.726146579, 0, 0.687539995, 0, 1, 0, -0.687539995, 0, 0.726146579),i)
  408.             wait()
  409.         end  
  410.     end
  411.     if pose == "Walking" and cananimate then
  412.                    walking = true
  413.                    for i = 0,1 ,0.07  do
  414.                     lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.168842316, -0.374614239, 1, 0, 0, 0, 0.662306964, -0.74923259, 0, 0.74923259, 0.662307084),i)
  415.                     rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.12597847, 0.331827164, 1, 0, 0, 0, 0.748035073, 0.663659215, 0, -0.663659275, 0.748035014),i)
  416.                     rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i)
  417.                     llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i)
  418.                     human2.C0 = human2.C0:lerp(human2co,i)
  419.                     neck.C0 = neck.C0:lerp(necc,i)
  420.                     wait()
  421.             end
  422.             walking = true
  423.             for i = 0,1 ,0.07  do
  424.                     rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i)
  425.                     llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i)
  426.                     lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.216003418, 0.411518574, 1, 0, 0, 0, 0.567983389, 0.823040009, 0, -0.823040009, 0.567983389),i)
  427.                     rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.215018272, -0.41083622, 1, 0, 0, 0, 0.569954693, -0.821676135, 0, 0.821676135, 0.569954753),i)
  428.                     human2.C0 = human2.C0:lerp(human2co,i)
  429.                     neck.C0 = neck.C0:lerp(necc,i)
  430.                     wait()
  431.             end
  432.             walking = true
  433.     end
  434.     if pose == "Jumping" and cananimate and stage == 1 then
  435.            walking = false
  436.           for i = 0,1 , 0.07  do
  437.          rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, -0.0720152855, 0.193100929, 1, 0, 0, 0, 0.896007597, 0.444038779, 0, -0.444038779, 0.896007597),i)
  438.          lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.49999976, 0.95036602, -0.548690796, 1, 0, 0, 0, -0.866025984, -0.499998987, 0, 0.499998987, -0.866025984),i)
  439.          llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.98754525, -0.507376909, 1, 0, 0, 0, 0.878388762, -0.477946907, 0, 0.477946877, 0.878388762),i)
  440.          rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.91097617, 0.239589691, 1, 0, 0, 0, 0.93738246, 0.348301798, 0, -0.348301798, 0.93738246),i)
  441.          human2.C0 = human2.C0:lerp(human2co,i)
  442.          neck.C0 = neck.C0:lerp(necc,i)
  443.          wait()
  444.          end    
  445.     end
  446.     if pose == "Jumping" and cananimate and stage == 2 then
  447.           walking = false
  448.           for i = 0,1 , 0.07  do
  449.          rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.66472816, 0.166806221, 0, 0.840905726, -0.541181803, 0, 0.541181803, 0.840905726, 0, 0, 0, 1),i)
  450.          lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.69600487, 0.110276461, 0, 0.871529698, 0.490342826, 0, -0.490342826, 0.871529698, 0, 0, 0, 1),i)
  451.          llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.3247503, -0.419755459, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  452.          rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  453.          human2.C0 = human2.C0:lerp(human2co,i)
  454.          neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 0.917574883, -0.397562951, 0, 0.397562951, 0.917574883),i)
  455.          wait()
  456.          end    
  457.     end
  458.     if pose == "Jumping" and cananimate and stage == 3  then
  459.     walking = false
  460.     for i = 0,1 ,0.07 do
  461.         llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.499996185, -0.302403927, -1.00209022, 0.998795688, 1.07394217e-05, 0.0490646139, 0.0144870952, 0.955350697, -0.295119137, -0.0468770824, 0.295474499, 0.954199851),i)
  462.         rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.999998093, 0.401779056, -0.300704479, 0.995004237, 0.0998337567, 2.21675634e-07, -8.0173304e-05, 0.000801276532, -0.999999762, -0.0998337343, 0.995003879, 0.000805277436),i)
  463.         lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.999984741, 0.403417826, -0.400689125, 0.978886008, -0.198669523, -0.0480909608, -0.0489091128, 0.000789985002, -0.99880302, 0.198469713, 0.98006618, -0.00894344598),i)
  464.         rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499996185, -0.299546242, -1.00121045, 0.999991715, 1.10380352e-05, -3.05008143e-06, -1.13286078e-05, 0.955351293, -0.295472056, -2.51282472e-07, 0.295474589, 0.955343246),i)
  465.         human2.C0 = human2.C0 * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0))
  466.         neck.C0 = neck.C0:lerp(necc,i)
  467.         wait()
  468.         end
  469.     end
  470.     if pose == "Falling" and cananimate then
  471.         walking = false
  472.          for i = 0,1 , 0.07  do
  473.          rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.00721169, 0.966965914, 0, -0.554754853, -0.832013845, 0, 0.832013845, -0.554754853, 0, 0, 0, 1),i)
  474.          lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.87815094, 0.913155079, 0, -0.494452, 0.869204998, 0, -0.869204998, -0.494452, 0, 0, 0, 1),i)
  475.          llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  476.          rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  477.          human2.C0 = human2.C0:lerp(human2co,i)
  478.          neck.C0 = neck.C0:lerp(CFrame.new(0, 1.50154519, -0.248991966, 1, 0, 0, 0, 0.852542579, 0.522657752, 0, -0.522657752, 0.852542579),i)
  479.          wait()
  480.          end      
  481.     end
  482.     if pose == "LongJump" and cananimate then
  483.     for i = 0,1 ,0.07  do
  484.         lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.268796921, 0.378599167, 1, 0, 0, 0, 0.479244441, 0.877675295, 0, -0.877680123, 0.479247063),i)
  485.         llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.3865062, -0.938074112, 1, 0, 0, 0, 0.285262436, -0.958443761, 0, 0.958449006, 0.285263985),i)
  486.         rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.49999988, 0.223083735, 0.169561386, 1, 0, 0, 0, 0.60511744, 0.796129346, 0, -0.796133697, 0.605120778),i)
  487.         rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.53550446, -0.961566925, 1, 0, 0, 0, 0.407492548, -0.913202584, 0, 0.913207591, 0.407494754),i)
  488.         human2.C0 = human2.C0:lerp(human2co,i)
  489.         neck.C0 = neck.C0:lerp(necc,i)
  490.         wait()
  491.         end
  492.     end
  493.     if pose == "CrouchIdle" and cananimate then
  494.     walking = false
  495.     for i = 0,1 ,0.07  do
  496.         human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.0382479317, -0.999268353, 0, 0.999266207, 0.0382480137):inverse(),i)
  497.         lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.836666107, 1.21547508, 0.497126102, 0.782464266, -0.619657576, 0.0614301562, -0.106479198, -0.0359476209, 0.993664801, -0.61352396, -0.784048676, -0.0941083729),i)
  498.         llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.500001907, -0.912134171, -1.33790898, 0.999999821, 4.32133675e-07, 2.32458115e-06, 2.38418579e-06, 0.0123845953, -0.999923229, -4.60073352e-07, 0.999923527, 0.0123845842),i)
  499.         rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.06795311, 1.25440025, 0.391194582, -0.887933075, 0.459972352, -1.25467777e-05, -0.0143302083, -0.0276902169, -0.999513805, -0.459749311, -0.887501359, 0.0311785322),i)
  500.         rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499998093, -0.951980591, -1.32859886, 0.999999762, 3.56696546e-07, -6.85453415e-07, -6.85453415e-07, 0.0145149324, -0.999894559, -3.42726707e-07, 0.999894857, 0.0145149129),i)
  501.         neck.C0 = neck.C0:lerp(necc,i)
  502.         wait()
  503.         end
  504.     end
  505.     if pose == "CrouchWalk" and cananimate then
  506.     walking = true
  507.     for i = 0,1, 0.07  do
  508.         human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.0382479317, -0.999268353, 0, 0.999266207, 0.0382480137):inverse(),i)
  509.         llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.08789825, -1.2466166, 0.999999821, -6.70552254e-07, 2.29477882e-06, 2.38418579e-06, 0.460938156, -0.887432218, -4.60073352e-07, 0.887432396, 0.460938305),i)
  510.         rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499999046, 0.152124405, -1.14450228, 0.999999881, -5.96046448e-07, -1.16229057e-06, -1.22189522e-06, -0.641044497, -0.76750356, -3.22237611e-07, 0.767503738, -0.641044617),i)
  511.         rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.06795311, 1.25440025, 0.391194582, -0.887933075, 0.459972352, -1.25467777e-05, -0.0143302083, -0.0276902169, -0.999513805, -0.459749311, -0.887501359, 0.0311785322),i)
  512.         lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.836666107, 1.21547508, 0.497126102, 0.782464266, -0.619657576, 0.0614301562, -0.106479198, -0.0359476209, 0.993664801, -0.61352396, -0.784048676, -0.0941083729),i)
  513.         neck.C0 = neck.C0:lerp(necc,i)
  514.         wait()
  515.         end
  516.         for i = 0,1, 0.07  do
  517.         human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.0382479317, -0.999268353, 0, 0.999266207, 0.0382480137):inverse(),i)
  518.         llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.500027657, -0.210391998, -1.34505367, 0.999999762, 1.38282776e-05, 2.73883343e-05, 3.06665897e-05, -0.405213743, -0.914221942, -1.54413283e-06, 0.914222181, -0.405213833),i)
  519.         rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.500020981, -1.04758263, -1.2475245, 0.999999821, -2.4586916e-05, 5.15282154e-05, 5.70416451e-05, 0.470286787, -0.882513642, -2.55182385e-06, 0.882513881, 0.470286816),i)
  520.         rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.06795311, 1.25440025, 0.391194582, -0.887933075, 0.459972352, -1.25467777e-05, -0.0143302083, -0.0276902169, -0.999513805, -0.459749311, -0.887501359, 0.0311785322),i)
  521.         lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.836666107, 1.21547508, 0.497126102, 0.782464266, -0.619657576, 0.0614301562, -0.106479198, -0.0359476209, 0.993664801, -0.61352396, -0.784048676, -0.0941083729),i)
  522.         neck.C0 = neck.C0:lerp(necc,i)
  523.         wait()
  524.         end
  525.     end
  526. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement