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

Previous Thread :: Next Thread 
RoboBlaster59 is not online. RoboBlaster59
Joined: 26 Feb 2011
Total Posts: 7116
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 is not online. 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
RoboBlaster59 is not online. RoboBlaster59
Joined: 26 Feb 2011
Total Posts: 7116
04 Feb 2012 03:52 PM
Bump
So If I put that in the brick
it would follow the specific humanoid?
Report Abuse
magnalite is not online. 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
RoboBlaster59 is not online. RoboBlaster59
Joined: 26 Feb 2011
Total Posts: 7116
04 Feb 2012 04:28 PM
@magnalite
How would I do that?
Bump
Report Abuse
magnalite is not online. 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
RoboBlaster59 is not online. RoboBlaster59
Joined: 26 Feb 2011
Total Posts: 7116
04 Feb 2012 04:38 PM
*facepalm*
I mean how do I define it?
Bump
Report Abuse
magnalite is not online. 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
RoboBlaster59 is not online. RoboBlaster59
Joined: 26 Feb 2011
Total Posts: 7116
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 is not online. 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
RoboBlaster59 is not online. RoboBlaster59
Joined: 26 Feb 2011
Total Posts: 7116
04 Feb 2012 04:51 PM
I give up
Report Abuse
magnalite is not online. 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
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