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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|