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

Having trouble making AI's. Help! Please?

Asked by 10 years ago

My friend has made AI's (humanoids that move around randomly and jump by themselves) and it's really cool, but I have tried to replicate it and not getting results! Help! 1. How do I make the Humanoid (just a model of me) move (actually walk) to a certain point? 2. How do I make the Humanoid actually jump? I know basic stuff, just don't know this. I would appreciate help!

2 answers

Log in to vote
1
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
10 years ago

Randomness is the opposite of intelligence.

Humanoid:MoveTo(Vector3 location, Part part) will cause the character of the humanoid to walk to the location.

Humanoid.Jump=true causes the character to jump once and is set to false immediately after.

Ad
Log in to vote
0
Answered by 10 years ago

http://wiki.roblox.com/index.php?title=Humanoid

Look at the different methods and properties. If you want a humanoid to move just put this in:

humanoid = script.Parent:findFirstChild("Humanoid") humanoid:MoveTo(Vector3)

If I remember right, if you want a humanoid to jump you do:

humanoid.Jump = true

I may be wrong because this is just off the top of my head but those are the answers you were looking for correct?

Answer this question