How To Make Crouch System In Roblox Studio

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025
  • Welcome to my video, today i want to make tutorial How to make Tool in Roblox Studio.
    Follow me on roblox
    • www.roblox.com...
    • Twitter: @DearenR
    • Discord: dearen#3793
    • RUclips: @dearenrasendrya9093
    linktr.ee/dear...
    Spport Me!
    sociabuzz.com/...
    www.paypal.me/...
    Thank you for watching
    Subscribe :D

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

  • @finjer5018
    @finjer5018 8 месяцев назад +3

    Also a little off topic, your accent sounds a lot like indonesia, or you are?

  • @nguyenle-p8t7f
    @nguyenle-p8t7f 6 месяцев назад +3

    don't try that scipt it didnot work try this script :
    local TweenService = game:GetService("TweenService")
    local player = game:GetService("Players").LocalPlayer
    local character = player.Character or player.CharacterAdded:Wait()
    local Humanoid = character:FindFirstChildWhichIsA("Humanoid")
    local HumanoidRootPart = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
    local CrouchAnimation = script.CrouchAnimation
    local CrouchTrack = Humanoid:LoadAnimation(CrouchAnimation)
    local CameraInfo = TweenInfo.new(
    0.3,
    Enum.EasingStyle.Quint,
    Enum.EasingDirection.Out,
    0,
    false,
    0
    )
    local CrouchedGoal = {CameraOffset = Vector3.new(0,-1.75,0)}
    local UncrouchedGoal = {CameraOffset = Vector3.new(0,0,0)}
    local CrouchedTween = TweenService:Create(Humanoid, CameraInfo, CrouchedGoal)
    local UncrouchedTween = TweenService:Create(Humanoid, CameraInfo, UncrouchedGoal)
    local inCrouch = false
    local function Crouch()
    if inCrouch == false then
    inCrouch = true
    CrouchedTween:Play()
    Humanoid.WalkSpeed = 8
    CrouchTrack:Play()
    HumanoidRootPart.CanCollide = false

    else
    inCrouch = false
    UncrouchedTween:Play()
    Humanoid.WalkSpeed = 16
    CrouchTrack:Stop()

    HumanoidRootPart.CanCollide = true

    end
    end
    game:GetService("UserInputService").InputBegan:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.C then
    Crouch()
    end
    end)

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

    bro can u help me? I have a problem where my crouch animation works normally in Roblox Studio, but when I open the game in roblox, when I click on crouch my character only slows down, but does not crouch.

    • @nguyenle-p8t7f
      @nguyenle-p8t7f 6 месяцев назад

      don't try that scipt it didnot work try this script :
      local TweenService = game:GetService("TweenService")
      local player = game:GetService("Players").LocalPlayer
      local character = player.Character or player.CharacterAdded:Wait()
      local Humanoid = character:FindFirstChildWhichIsA("Humanoid")
      local HumanoidRootPart = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
      local CrouchAnimation = script.CrouchAnimation
      local CrouchTrack = Humanoid:LoadAnimation(CrouchAnimation)
      local CameraInfo = TweenInfo.new(
      0.3,
      Enum.EasingStyle.Quint,
      Enum.EasingDirection.Out,
      0,
      false,
      0
      )
      local CrouchedGoal = {CameraOffset = Vector3.new(0,-1.75,0)}
      local UncrouchedGoal = {CameraOffset = Vector3.new(0,0,0)}
      local CrouchedTween = TweenService:Create(Humanoid, CameraInfo, CrouchedGoal)
      local UncrouchedTween = TweenService:Create(Humanoid, CameraInfo, UncrouchedGoal)
      local inCrouch = false
      local function Crouch()
      if inCrouch == false then
      inCrouch = true
      CrouchedTween:Play()
      Humanoid.WalkSpeed = 8
      CrouchTrack:Play()
      HumanoidRootPart.CanCollide = false

      else
      inCrouch = false
      UncrouchedTween:Play()
      Humanoid.WalkSpeed = 16
      CrouchTrack:Stop()

      HumanoidRootPart.CanCollide = true

      end
      end
      game:GetService("UserInputService").InputBegan:Connect(function(input)
      if input.KeyCode == Enum.KeyCode.C then
      Crouch()
      end
      end)

  • @murilogamerzao_ofc
    @murilogamerzao_ofc 8 месяцев назад +1

    why this video show was if it has 0 views?

  • @DeadKingEditz-69
    @DeadKingEditz-69 8 месяцев назад +1

    Where is the story game part 2:(😢😢😢

    • @Caraqlo231
      @Caraqlo231 8 месяцев назад

      Yeah where is it?

  • @BushiX5
    @BushiX5 8 месяцев назад

    Can some paste the script so i can copy and paste it cause mine wont work

    • @sparky_mydog
      @sparky_mydog 7 месяцев назад +1

      local TweenService = game:GetService("TweenService")
      local Humanoid = game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid")
      local HumanoidRootPart = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
      local CrouchAnimation = script.CrouchAnimation
      local CrouchTrack = Humanoid.LoadAnimation(CrouchAnimation)
      local CameraInfo = TweenInfo.new(
      0.3,
      Enum.EasingStyle.Quint
      Enum.EasingDirection.Out,
      0,
      false,
      0
      )
      local CrouchedGoal = {CameraOffSet = Vector3.new(0, 1.75,0)}
      local UnCrouchedGoal = {CameraOffSet = Vector.new.(0,0,0)}
      local CrouchedTween = TweenService:Create(Humanoid, CameraInfo, CrouchedGoal)
      local UncrouchedTween = TweenService:Create(Humanoid, CameraInfo, UncrouchedGoal)
      local inCrouch = false
      local function Crouch()
      if InCrouch == false then
      inCrouch = true
      CrouchedTween:Play()
      Humanoid.Walkspeed = 8
      CrouchTrack:Play()

      HumanoidRootPart.CanColide = true

      else
      inCrouch = false
      UncrouchedTween:Play()
      Humanoid.WalkSpeed = 16
      CrouchTrack:Stop()

      HumanoidRootPart.CanColide = true
      end
      end
      game:GetService("UserInputService").InputBegan:Connect(function(input)
      if input.KeyCode == Enum.KeyCode.C then
      Crouch()
      end
      end)

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

      @@sparky_mydog W

  • @sparky_mydog
    @sparky_mydog 7 месяцев назад +1

    I Spent so much time scripting and coding.... and when i went to publish the animation IT DOESN'T WORK! I'M NEVER WATCHING YOUR VIDEOS AGAIN BECAUSE THIS IS A FAKE VIDEO!

    • @wackytrio4613
      @wackytrio4613 7 месяцев назад

      Ur raging lol

    • @Boogy-k2i
      @Boogy-k2i 7 месяцев назад

      YEA MINE DOSENT WORK

    • @Boogy-k2i
      @Boogy-k2i 7 месяцев назад

      THIS RUclipsR SUCKS

    • @Boogy-k2i
      @Boogy-k2i 7 месяцев назад

      @@wackytrio4613 be quiet

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

      ​@@Boogy-k2iLearn scripting ong 💀