Making custom movement system

  1. What do you want to achieve? Keep it simple and clear!
    So just curious question, i’m doing some crouch animation where player can move, all tutorials i found about movement animations is literally copy player animator script and change id’s, but i literally need to animation happen only after C keycode, this is small video about what i need Crouch System Glitch - YouTube
  2. What is the issue? Include screenshots / videos if possible!
    Literally no idea how to do that
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? Looked though tons of youtube videos


local UIS = game:GetService("UserInputService")
local CrouchKeycode = "C"
local CrouchStart ="Animation")
CrouchStart.AnimationId = "rbxassetid://11929520919"
local CrouchMovement ="Animation")
CrouchMovement.AnimationId = "rbxassetid://11929836057"
local player = game:GetService("Players").LocalPlayer
local char = player.Character
local humanoid = char:WaitForChild("Humanoid")
local Animator = humanoid:FindFirstChild("Animator")

UIS.InputBegan:Connect(function(key, GPE)
	if GPE then return end
	print("Player Triggerred"..key.KeyCode.Name)
	if key.KeyCode == Enum.KeyCode[CrouchKeycode] then
		local track = Animator:LoadAnimation(CrouchStart)
		humanoid.WalkSpeed = 7
		local moveTrack = Animator:LoadAnimation(CrouchMovement)

So as i checked a lot of videos, that’s a problem of my animation, because i made something wrong in it settings, because i found clearly same system on youtube, but about crawl, and there animation don’t continue to play when player is idle,it just stops. When i used there my own animation it literally done the same thing as in my script

Alright i found solution in AdjustSpeed

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.