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

How can I stop my NPC from falling down?

Ever since I added a HumanoidRootPart, so I can add custom animations, my NPC has been tripping more often if it runs into something or it gets hit hard. It's really annoying because they can't get up even after 10 seconds, and by then, the enemy NPC would have killed him!

Is there any way I can maybe edit it's humanoidstate so it can get up faster?

My Attempt:

while wait(1) do
if script.Parent.Humanoid.PlatformStand = true
script.Parent.Humanoid.PlatformStand = false
end

Help guys!

1 answer

this is what your script says every second if the npc is standing then make it fall it loops that so it would stand - fall the reason it couldnt stand again is because you need to add this under "script.Parent.Humanoid.PlatFormStand" Add this wait(2) script.Parent.Humanoid.PlatformStand = true

2 comments

0

no, just no.

0

tried to help you :/ no just no at scripting jerk

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