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

Help with GetState()?

Asked by 10 years ago

How do I use GetState() to print the humanoid's current state?

1 answer

Log in to vote
0
Answered by
Redbullusa 1580 Moderation Voter
10 years ago

Simply:

print(Humanoid:GetState())

The function will return an enumeration.

0
Is it possible to isolate that enumeration? ex, if the state is 'FreeFalling' instead of printing enum.HumanoidStateType.FreeFalling, it prints 'FreeFalling' ? killerkill29 35 — 10y
0
Simply make a function that if the humanoid is in a certain state, it will return a string. Redbullusa 1580 — 10y
Ad

Answer this question