I would like to tell when a player is walking backwards so that I can stop a running animation. Any suggestions?
Hi!
This is the normal way. This should be a LocalScript
inside StarterPlayer.PlayerScripts
or wherever.
Here.
local plr = game.Players.LocalPlayer local mouse = plr:GetMouse() local target = game.Workspace:WaitForChild("--your username ") local anim = target.WalkAnim --or whatever the path is. Just run the game, open the explorer and go to workspace, your avatar model then find the anim and put the path here mouse.KeyDown:Connect(function(key) if key == "s" then anim:Pause() end end)
I stole the script, beside the anim part, here: https://scriptinghelpers.org/questions/15487/how-to-detect-if-a-player-presses-a-key-answered
I got the anim bit from here: My Brain
Closed as Not Constructive by LennyPlayzYT, imKirda, and JesseSong
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?