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

Previous Thread :: Next Thread 
ivanloi0 is not online. ivanloi0
Joined: 08 May 2012
Total Posts: 345
07 Jul 2013 09:40 AM
Hi, I'm trying to move an obejct to a random SpawnPoint (I have "SpawnPoint0" through to "SpawnPoint8").
Here is my script:

local x = (math.random(0,8))
Object:MoveTo(Workspace.SpawnLocations "SpawnPoint" .. x.Position
As you can probably guess, I want the object to be moved to the position of the spawnpoint that has the random number "x" at the end, can anyone fix this for me?
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
07 Jul 2013 09:43 AM
math.randomseed(tick())
local x = math.random(0,8)
Object:MoveTo(Workspace.SpawnLocations["SpawnPoint"..x].Position)
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
07 Jul 2013 09:45 AM
Question^

What does the first line of your script do?
Report Abuse
ivanloi0 is not online. ivanloi0
Joined: 08 May 2012
Total Posts: 345
07 Jul 2013 09:45 AM
You are clearly another evil genius! Would you like to help me in my quest for world dominominoation?
Report Abuse
TannerLeighGhosen is not online. TannerLeighGhosen
Joined: 22 Nov 2012
Total Posts: 154
07 Jul 2013 09:47 AM
ivan
can't tell if trolling
or too young for the forums.
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