Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to check when character is walking?

Asked by 10 years ago

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

Log in to vote
2
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

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!

0
Also, I found this by finding the StateChanged event on the wiki, which linked to this Enum. adark 5487 — 10y
0
Thanks! lightpower26 399 — 10y
Ad

Answer this question