You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I have this running script but when I use it plays the running animation well and stuff, but is there a way to bind the running script to a walking one so when you walk normally the walking plays, but when you press LeftShift the running plays? -
What is the issue? Include screenshots / videos if possible!
Trying to find a way to include a walking script to my running script.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Tried to get help and find other scripts but can’t find anything.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local Player = game.Players.LocalPlayer
local Character = Player.Character
UIS.InputBegan:Connect(function(input, gpe)
if input.KeyCode == Enum.KeyCode.LeftShift and not gpe then
Character.Humanoid.WalkSpeed = 23
local Anim = Instance.new('Animation')
Anim.AnimationId = 'rbxassetid://12027779021'
PlayAnim = Character.Humanoid:LoadAnimation(Anim)
PlayAnim:Play()
end
end)
UIS.InputEnded:connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftShift then
Character.Humanoid.WalkSpeed = 16
PlayAnim:Stop()
end
end)```