Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to check when character is walking?

So I've been playing some games that now have these guns made by TurboFusion. I looked at all the animations and stuff and thought "Wow! I really want to try that for my guns!" So I started looking into the scripts and I got so confused after only 220 lines. So I thought I could at least try to make the animations for walking and stuff, but I have no idea how I would do that. Is there any easy (or hard) way to do this?

EDIT: So I just read a bit of the SH Blog and found that I could do

Player.Character.Humanoid.StateChanged:connect(function(oldState, newState)
	--But I'm not sure which Enum to do for walking. I know how to for jumping, but that's it.
end)

1 answer

✓ Accepted answer

If you have the autocomplete feature enabled in Studio, you can type Enum. and a list of all ROBLOX Enums will pop up.

The Enum you're looking for specifically is HumanoidStateType, and the specific value you're looking for is Running!

2 comments

0

Also, I found this by finding the StateChanged event on the wiki, which linked to this Enum.

0

Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.