I’ve made auto run for pc, But how do you make auto run for mobile and console? how do they make auto run for pc and mobile?
My script is like when u pressed W button it will automatically run, but how do I make it for console/mobile?
I’ve made auto run for pc, But how do you make auto run for mobile and console? how do they make auto run for pc and mobile?
My script is like when u pressed W button it will automatically run, but how do I make it for console/mobile?
you could just make a while loop that checks for MoveDirection, but to be honest, I would make a more optimized approach
you can simply check if their humanoid state is set to a whitelisted state and If it is then make them run
local RunningStates = {
[Enum.HumanoidStateType.Running] = true,
[Enum.HumanoidStateType.Jumping] = true,
[Enum.HumanoidStateType.Freefall] = true,
[Enum.HumanoidStateType.Landed] = true,
}
local RunSpeed = 25
local WalkingSpeed = 16
Humanoid.StateChanged:Connect(function(State)
Humanoid.WalkSpeed = RunningStates[State] and RunSpeed or WalkingSpeed
end)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.