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: Making a zebra move

Previous Thread :: Next Thread 
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
13 Aug 2015 06:15 PM
Do I just weld all the other parts to the torso and MoveTo the torso and unanchor all the parts?

never really worked with non-human AI before


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
13 Aug 2015 06:16 PM
*MoveTo the humanoid with the torso


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
13 Aug 2015 06:18 PM
well it may get a little bit wonky since your ai has more than 2 legs

try giving your zebra a humanoid and using humanoid:MoveTo (assuming it has joints)

and for pathfinding in general, use the pathfinding service
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
13 Aug 2015 06:20 PM
Don't know how to use joints since I've never used them, will try to figure them out.

IK about pathfinding, don't really need it since it's mostly just going to be walking randomly and running away, though it's still an option.

Might just copy paste steal some free model code to do this if it's annoying.

The way another zebra works is that it welds everything to the torso. But it has math and stuff IDK.


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
13 Aug 2015 06:21 PM
*But it has math and stuff IDK, seems unecessary and you should just be able to do it with MoveTo


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
13 Aug 2015 06:24 PM
weld all objects to the previous object before unanchoring everything

local pTab,last = {}
local function re(a)
for _,v in pairs(a:GetChildren()) do
if v:IsA"BasePart" then
if last then
local w = Instance.new("Weld",last)
w.Part0,w.Part1 = last,v
w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
end
last = v
table.insert(pTab,v)
end
end
end
re(script.Parent)
for _,v in pairs(pTab) do v.Anchored = false end
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
13 Aug 2015 06:27 PM
Okay I'll do that, thanks.


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
22 Aug 2015 02:14 AM
did what u said

zebra no move

zebra.Humanoid:MoveTo(Vector3.new(math.random(1, 100), 0, 0))

know its a problem with it being a zebra but what


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
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