This is a script inside StarterCharacter, a normal script. I'm trying to print something but for some reason this script isn't working. Any ideas?
local Humanoid = script.Parent:WaitForChild("Humanoid")
Humanoid.StateChanged:Connect(function(PreviousState, NewState)
if NewState == Enum.HumanoidStateType.FallingDown then
print("falling")
elseif NewState == Enum.HumanoidStateType.Landed then
print("landed")
end
end

4 comments
I’ve edited the answer, try it out and see if it works.
hello?
use Run Service instead
also you forgot to change end to "end)" at the end