Just like in the title. I wanted to know, how do I make something like "if NPC tripped or sits make it jump". I don't want it to be for a player, I want it for a specific NPC. Thanks.
COMMUNITY QUESTION
How do I make an npc jump if it's on a seat?
1 answer
You should want your humanoid to change state. If you want it to be a specific NPC, then put this script inside.
local Humanoid = script.Parent:FindFirstChild("Humanoid")
if Humanoid:GetState() == Enum.HumanoidStateType.Seated then
Humanoid:ChangeState(Enum.HumanoidStateType.Jump)
end
The :GetState() method is used to find what the current humanoid state is in, the :ChangeState method is used to change the humanoid state.
This discussion is preserved as it was. New answers, comments, and votes are closed.
