Crouch Animation | Roblox Studio

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 58

  • @Luhplush400
    @Luhplush400 Год назад +6

    bro your vids are actually so peak ive been looking for sooo many vids and yours are the only that works thx

  • @MithicalGoldav
    @MithicalGoldav 3 месяца назад +7

    People who are lazy to type
    GameMgr Script:
    local crouchAnim = script:WaitForChild("Crouch")
    game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAppearanceLoaded:Connect(function(char)
    local hum = char:WaitForChild("Humanoid")
    local animator = hum:WaitForChild("Animator")
    for i, v in pairs(animator:GetPlayingAnimatorTracks()) do
    v:Stop(0)
    end
    local animScript = char:WaitForChild("Animate")
    animScript.walk.WalkAnim.AnimationId = crouchAnim.AnimationId
    end)
    end)
    CrouchLoc LocalScript:
    local uis = game:GetService("UserInputService")
    local char = script.Parent
    local hum = char:WaitForChild("Humanoid")
    local hrp = char:WaitForChild("HumanoidRootPart")
    local runSnd = hrp:WaitForChild("Running")
    local isCrouch = false
    local vol = runSnd.Volume
    local pbs = runSnd.PlaybackSpeed
    local animator = hum:WaitForChild("Animator")
    local crouchIdle = script:WaitForChild("CrouchIdle")
    local track = animator:LoadAnimation(crouchIdle)
    uis.InputBegan:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.V then
    isCrouch = not isCrouch
    if isCrouch then
    track:Play()
    hum.WalkSpeed = 5
    runSnd.PlaybackSpeed = 1
    runSnd.Volume = .25
    else
    track:Stop()
    hum.WalkSpeed = 16
    runSnd.PlaybackSpeed = pbs
    runSnd.Volume = vol
    end
    end
    end)
    hum.Running:Connect(function(speed)
    if speed > 0 then
    track:Stop()
    elseif isCrouch and speed == 0 then
    track:Play()
    end
    end)
    I was typing it 1 hour tyysmm for this video!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    these are working all tysm bro!!

    • @banboo16
      @banboo16 Месяц назад

      thank you for this

  • @monstertrident1180
    @monstertrident1180 Год назад +1

    I needed this, thank you. I will suggest for maybe future videos maybe making some sort of spiderman system because I really want to know more about physics in roblox studio.

  • @Jamazie
    @Jamazie Год назад +2

    Why isnt UIS used in the server side script, this causes the crouch to play even if you don't press a button. This a script error?

  • @Namayee
    @Namayee Год назад +2

    Hi, I'm having an issue with roblox studio, I can't move an object while I'm in the animator, pressing the R key to switch between tools doesn't work either, google hasn't been helpful :/

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  Год назад

      I had that same thing not too long ago. I restarted studio and it worked but there was definitely a glitch

  • @TrashPlayer1Official
    @TrashPlayer1Official Год назад +1

    Can you make a tutorial on how to have a NPC follow you but to not get too close?

  • @Cody-gw4pq
    @Cody-gw4pq Год назад

    When i need u the most u appeared thank you so much bro🎉🎉

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  Год назад

      Awesome! I hope it helps!

    • @Cody-gw4pq
      @Cody-gw4pq Год назад

      @@SimTekGameDevelopment but i have 1 problem it cant go under an smaller object can u help

    • @miguelheisenberg7020
      @miguelheisenberg7020 Год назад

      @@Cody-gw4pq Probably something to do with collisions

  • @spookyh
    @spookyh Год назад +2

    Thank you for this!

  • @RoGoRBXStudio
    @RoGoRBXStudio 11 месяцев назад

    I can’t find the published button. I can see “Delete Local Instances” and it says “We recommend that you delete the local animation data to improve your experience’s loading performance. You will always be able to reimport the animation to continue working on it”.

    • @Bidombamb
      @Bidombamb 10 месяцев назад

      scroll down bruh or move the window up

  • @itsduncecap
    @itsduncecap Год назад +3

    script starts at 7:36 , hope this works for yall !

  • @MyStruckMusics
    @MyStruckMusics Год назад +1

    my crouch doesnt work... i think its clashing with my idle walking animation

  • @DLHDLH-lp4po
    @DLHDLH-lp4po 2 месяца назад +1

    Great video!!! I accidentally put the local script in starter player instead of starter character lol.

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  2 месяца назад

      @@DLHDLH-lp4po dude that’s a hard one, if you got that working you got some good skills!

  • @harip761
    @harip761 Год назад +1

    OOH maybe make a game like left 4 dead like a series

  • @dreykandreigamad6650
    @dreykandreigamad6650 Год назад

    i found a bug, if you have the sprint script and the crouch script, you dont slow down

    • @YorktownClass
      @YorktownClass Год назад

      that's for you to solve, make an if statment to check if the player is sprinting/crouching

  • @miguelheisenberg7020
    @miguelheisenberg7020 Год назад

    I got one question tho. you set the walkinganimation to the crouching animation. But what happened if the player decides to walk regularly will it play the crouching animation automatically.

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  Год назад

      If you break the speed threshold to the walk it’ll go to crouch. If you don’t want that, you’d need another way of doing it. But Roblox is flexible so there are many ways. You can give the crouch action priority and just trigger it with an input event if you want to.

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  Год назад

      I thought about doing that way for the video. I just picked that way.

  • @JoeWantsCookiee
    @JoeWantsCookiee 11 месяцев назад

    hey, good guy! can i get a script please? I believe you so much at scripting! And also, im getting orange line at line 6. with hum problem, it says it never can be at that place, where i can change it to?

  • @vueling102
    @vueling102 9 месяцев назад

    the crouch system works but the animation doesnt work, im using r6! any help?

    • @joan-alves
      @joan-alves 9 месяцев назад

      I think you have to use the R15 instead

  • @Mr.Mystery_1
    @Mr.Mystery_1 6 месяцев назад

    when i tried my animation wouldnt work

  • @kingcatalitzrblx
    @kingcatalitzrblx 3 месяца назад

    work with R6?

  • @limiz_YT
    @limiz_YT Год назад +3

    the crouching animation didnt play for me

    • @ItzNotGuest
      @ItzNotGuest 5 месяцев назад

      Prob you need to make your own crouching animation

    • @AzuresDiary
      @AzuresDiary 2 месяца назад

      @@ItzNotGueststill doesn't play

  • @SobiaGames
    @SobiaGames Год назад +2

    Wassup!

  • @Silly_Gamerblox
    @Silly_Gamerblox Год назад

    WHY SO LESS LIKES?!?!?

  • @luvcraftian
    @luvcraftian Год назад

    can this be done with r6?

  • @ChannelPro-Yt
    @ChannelPro-Yt Год назад

    Bro top work please make a maniquin members can edit ingame adding there own 😢😂 ill pay make discord

  • @FOXedits-vk7pv
    @FOXedits-vk7pv 6 месяцев назад

    My animation is not playing

    • @Snabze
      @Snabze 6 месяцев назад

      no shit it might be out dated

    • @MysteryStudio-z9k
      @MysteryStudio-z9k Месяц назад

      nahh it not. it worked for me but not r6

  • @NehaGupta-zo7li
    @NehaGupta-zo7li 3 месяца назад

    this took too long

  • @lol_naw
    @lol_naw Год назад +4

    yay mama im first

    • @SimTekGameDevelopment
      @SimTekGameDevelopment  Год назад +3

      Nice! Thanks man!

    • @lol_naw
      @lol_naw Год назад +5

      @@SimTekGameDevelopment AWESOME VIDEO btw you even showed use how to make the animations!

  • @drewchaboo719
    @drewchaboo719 Год назад +3

    Yay am 2nd

  • @tzvira
    @tzvira Год назад +1

    10th

  • @itsduncecap
    @itsduncecap Год назад +1

    does it matter exactly what the action priority is and if i didnt keep it looped ?because i have mine set to Action and i didnt loop it . and its not working , ive watched like 4 tutorial vids

    • @itsduncecap
      @itsduncecap Год назад

      it only slows down when i click V thats it

    • @saltsalted1528
      @saltsalted1528 Год назад

      action priority does matter.

  • @Rockonnor
    @Rockonnor Год назад

    Hey man! I'd love to connect via Facebook! Already send you a dm.

  • @Xrrorw
    @Xrrorw Год назад

    Why isnt UIS used in the server side script, this causes the crouch to play even if you don't press a button. This a script error?