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

Help with GetState()?

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

1 answer

✓ Accepted answer

Simply:

print(Humanoid:GetState())

The function will return an enumeration.

2 comments

0

Is it possible to isolate that enumeration? ex, if the state is 'FreeFalling' instead of printing enum.HumanoidStateType.FreeFalling, it prints 'FreeFalling' ?

0

Simply make a function that if the humanoid is in a certain state, it will return a string.

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