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: Print ___ for every 4 studs moved

Previous Thread :: Next Thread 
LOLDarth is not online. LOLDarth
Joined: 19 Jun 2012
Total Posts: 59
30 Sep 2012 08:22 PM
How can I do this? You know how in Pokemon, they have the tall grass... I want to do something like that buuuut the script I wrote is really buggy... So instead of checking to see if the humanoid is running, I want to make it so it detects every 4 studs I move. 4 FULL STUDS..
Just tell me the events, properties, methods, etc for doing this; I can do the rest.
Report Abuse
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
30 Sep 2012 08:24 PM
Just use a mesh? Or you can put 4 in a model, put a model on a script, and add a debounce, so ontouched each of them and make them all move?
Report Abuse
LOLDarth is not online. LOLDarth
Joined: 19 Jun 2012
Total Posts: 59
30 Sep 2012 08:26 PM
I am putting the script inside my right leg to reduce the amount of scripts
Report Abuse
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
30 Sep 2012 08:28 PM
Either way you only need one

Model
.Script
..Part1
..Part2
..Part3
..Part4

Script.Source:

function Grass()
--Code
end

script.Parent["Part1"].Touched:connect(Grass)
script.Parent["Part2"].Touched:connect(Grass)
script.Parent["Part3"].Touched:connect(Grass)
script.Parent["Part4"].Touched:connect(Grass)
Report Abuse
LOLDarth is not online. LOLDarth
Joined: 19 Jun 2012
Total Posts: 59
30 Sep 2012 08:30 PM
Well I'm gonna have like a lot of grass... so would that be the best option? a script in each patch of grass?
AND I'm gonna make the leg detect the town/area it's in soon - which is the easier part.
Report Abuse
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
30 Sep 2012 08:32 PM
I forgot about the debounce. prevent glitches
Report Abuse
LOLDarth is not online. LOLDarth
Joined: 19 Jun 2012
Total Posts: 59
30 Sep 2012 08:34 PM
Yeah I know that. But is it the best option? I'm gonna have a lot of grass and I prefer one big patch of grass with a texture on it instead of multiple patches
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