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 » Scripting Helpers
Home Search
 

Re: How would I make an AI that can jump?

Previous Thread :: Next Thread 
SunTzu16 is not online. SunTzu16
Joined: 10 Jul 2012
Total Posts: 999
05 Aug 2014 03:46 AM
I've looked at jumping zombies... and I can't figure out what about them allows them to jump... but makes it impossible for me slime to jump... even with the same script?

while wait(1) do
script.Parent.Humanoid.Jump = true
end

Just an example of one of the scripts. If I can figure out what I'm doing wrong, then I'd make it jump only after finding someone to attack.

It has a Head and a Torso brick, and I added a Right Leg and a Left Leg. I don't think the arms or legs are the issue... After changing the names of the legs of a working zombie, it still worked.

Any ideas? The wiki doesn't mention any specific requirements...
Report Abuse
SunTzu16 is not online. SunTzu16
Joined: 10 Jul 2012
Total Posts: 999
05 Aug 2014 03:57 AM
I've attempted putting Body objects into it momentarily to cause it to "hop" into the air... but I am really bad with those types of objects...

Would an animation do the trick?
Report Abuse
zakarq is not online. zakarq
Joined: 10 Oct 2010
Total Posts: 883
05 Aug 2014 04:20 AM
Humanoid.Jump = true
Report Abuse
SunTzu16 is not online. SunTzu16
Joined: 10 Jul 2012
Total Posts: 999
05 Aug 2014 05:05 AM
It's not working... -_-

Which is why I'm confused.
Report Abuse
Mitko0o1 is not online. Mitko0o1
Joined: 30 Nov 2010
Total Posts: 5725
05 Aug 2014 05:39 AM
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

while true do
wait (math.random(2,10))
script.Parent.Humanoid.Jump = true
end

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Report Abuse
SunTzu16 is not online. SunTzu16
Joined: 10 Jul 2012
Total Posts: 999
05 Aug 2014 06:08 AM
Did nobody read the original post... It's not jumping when I set Humanoid.Jump to true. :/
Report Abuse
Mitko0o1 is not online. Mitko0o1
Joined: 30 Nov 2010
Total Posts: 5725
05 Aug 2014 06:17 AM
Are you sure the name is "Humanoid"? Sometimes people name the humanoid of zombies "Zombie".

☞ S&I Important post ☞ http://www.roblox.com/Forum/ShowPost.aspx?PostID=142663688

Report Abuse
SunTzu16 is not online. SunTzu16
Joined: 10 Jul 2012
Total Posts: 999
05 Aug 2014 06:38 AM
It's Humanoid. The output would have given me an error if not...

:/

I am honestly just... completely confused. I was hoping maybe someone else has had the problem and found a solution. Some people have some pretty clever tricks.
Report Abuse
SunTzu16 is not online. SunTzu16
Joined: 10 Jul 2012
Total Posts: 999
05 Aug 2014 06:42 AM
Started playing around with it...

I guess humanoids can't jump if their head is a Union... I switched the Torso and the Head around, so now the Torso is a Union, and the Head is a regular part.

I'll need to flip the head, but I got it jumping... Unions are strange, sometimes there's support, and other times there isn't.

Thanks for trying to help, everyone, I appreciate it.
Report Abuse
SunTzu16 is not online. SunTzu16
Joined: 10 Jul 2012
Total Posts: 999
05 Aug 2014 06:46 AM
But now it's name won't show up. -_-
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
05 Aug 2014 06:50 AM
Use a BillboardGui if you REALLY want a name.
Report Abuse
SunTzu16 is not online. SunTzu16
Joined: 10 Jul 2012
Total Posts: 999
05 Aug 2014 07:07 AM
Thinking about it...

:/

I'd just rather not need to.
Report Abuse
ArcticMage is not online. ArcticMage
Joined: 22 Nov 2010
Total Posts: 29384
05 Aug 2014 08:20 AM
Unanchor the Union and weld it to the torso
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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