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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Checking if a car has been used? (Spawning cars in a city)

Previous Thread :: Next Thread 
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
06 Sep 2014 02:14 PM
I am going to make a script to spawn cars in around a city. What I need to know is how do I check if a car that was spawned 5 minutes ago hasn't been used yet, so I don't spawn another right on top of it.

On a sidenote, I also want to de-spawn cars. Like before, I need to check if it hasn't been used for, let's say, 10 minutes. Has roblox made a argument for this?
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
06 Sep 2014 02:32 PM
bump
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
06 Sep 2014 04:07 PM
please help
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
06 Sep 2014 04:54 PM
and if nothing is in the spot of where I want to spot a car
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
06 Sep 2014 05:04 PM
er
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
06 Sep 2014 05:48 PM
^
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
06 Sep 2014 05:52 PM
Have a script inside the car, where if it has someone driving it (which you can find out with the SeatWeld), then signal the spawn script to spawn where it was created.
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
06 Sep 2014 05:53 PM
Have an example?
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
06 Sep 2014 05:53 PM
No, I don't.

Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
06 Sep 2014 05:58 PM
I think seatweld dissapears so I'd have to make a boolvalue to see if someone has ever used it

but still they might of only sat in it, and the car could still be there
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
06 Sep 2014 06:14 PM
.ChildAdded may help here
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
06 Sep 2014 06:24 PM
Yep.

I may have to use Magnitude (or whatever the argument was) to make sure the already spawned car isn't right on the "spawn zone".
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
06 Sep 2014 06:35 PM
give up
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
06 Sep 2014 07:51 PM
no
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