|
| 04 Feb 2012 03:47 PM |
In those games like "Grow a slime!" or "Grow a brick!" They basicly put the Robot script in the brick/slime But how do they make it follow one specific person? |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 04 Feb 2012 03:49 PM |
There is a method for humanoids called MoveTo() so you can just do -
while true do script.Parent.Humanoid:MoveTo(TargetPlayer.Torso.Position, TargetPlayer.Torso) wait() end |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2012 03:52 PM |
Bump So If I put that in the brick it would follow the specific humanoid? |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 04 Feb 2012 03:53 PM |
| if you put that in a model that had a humanoid and defined the targetplayer then yes it should work. |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2012 04:28 PM |
@magnalite How would I do that? Bump |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 04 Feb 2012 04:29 PM |
| insert model, put a block in i, put a humanoid in it, put a script in it? |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2012 04:38 PM |
*facepalm* I mean how do I define it? Bump |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 04 Feb 2012 04:41 PM |
| Oh, are you going to have the "creature" already spawned when the person spawns or spawn when the person spawns? |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2012 04:46 PM |
When the person spawns the new brick spawns I already know how to make a brick spawn but I want to know how to make the brick follow the specific person Bump |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 04 Feb 2012 04:50 PM |
| Ok put a model of the "creature" containing the block, Humanoid, script and a string value. Clone it when the person comes in and change the string value to the players name. Now code the script to find the player by using that value then follow him. |
|
|
| Report Abuse |
|
|
| |
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 04 Feb 2012 04:51 PM |
| Could you give me your spawning script and i'll make it for you. |
|
|
| Report Abuse |
|
|