generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How do I make a humanoid npc walk?

Previous Thread :: Next Thread 
Raildex is not online. Raildex
Joined: 06 Dec 2009
Total Posts: 934
01 May 2016 06:36 PM
I have built a script that makes him follow a set path however theres no movement in his limbs, how do I fix this?

local waitForPoint = script.Parent.Parent.WalkPoints:WaitForChild("1")
local points = script.Parent.Parent.WalkPoints:GetChildren()

while true do
for i=1,#points do
repeat
script.Parent.Humanoid:MoveTo(script.Parent.Parent.WalkPoints[i].Position)
wait()
until (script.Parent.Torso.Position - script.Parent.Parent.WalkPoints[i].Position).magnitude <= 4
end
wait(5)
for i=1,#points do
repeat
script.Parent.Humanoid:MoveTo(script.Parent.Parent.WalkPoints[#points+1-i].Position)
wait()
until (script.Parent.Torso.Position - script.Parent.Parent.WalkPoints[#points+1-i].Position).magnitude <= 4
end
wait(5)
end
Report Abuse
Raildex is not online. Raildex
Joined: 06 Dec 2009
Total Posts: 934
01 May 2016 08:24 PM
bump, cmon guys. this isnt a hard question but I cant find anyone asking it
Report Abuse
Cyprus_Alexander is not online. Cyprus_Alexander
Joined: 09 Apr 2016
Total Posts: 725
01 May 2016 08:26 PM
"humanoid npc walk"
"humanoid npc"
humanoid"
q-q
Report Abuse
BlueSquib is not online. BlueSquib
Joined: 03 Apr 2016
Total Posts: 108
01 May 2016 10:47 PM
You need to put an animate script in the npc model
Try entering this into the command bar:
game:GetService("InsertService"):LoadAsset(82531598).Parent = game.Workspace
There should be a script named "Animate" or something in it
Copy that script into the npc and it should work

Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
01 May 2016 11:09 PM
Pathfinding
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
01 May 2016 11:54 PM
I love people who don't read the problem.

"however theres no movement in his limbs, how do I fix this?"

You're missing a working animation script, probably. Just copy the content of the local Animate script your default character spawns with in-game into a server-side script inside of the bot, then cut out lines 512-527 [player chatted emotes] from it.
Report Abuse
scottmike0 is not online. scottmike0
Joined: 14 Sep 2008
Total Posts: 1073
02 May 2016 02:30 AM
yes
Report Abuse
Raildex is not online. Raildex
Joined: 06 Dec 2009
Total Posts: 934
02 May 2016 01:07 PM
Okay I did that however it still doesn't seem to be working, what other requirements need to be met to make it animate
Report Abuse
Raildex is not online. Raildex
Joined: 06 Dec 2009
Total Posts: 934
02 May 2016 01:30 PM
CLOSED: I was missing the hip and shoulder joints
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image