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

How can I stop my NPC from falling down?

Asked by 8 years ago

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

Log in to vote
0
Answered by 8 years ago

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

0
no, just no. laughablehaha 494 — 8y
0
tried to help you :/ no just no at scripting jerk Clakker200 5 — 8y
Ad

Answer this question