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: Did I miss something?

Previous Thread :: Next Thread 
utabon is not online. utabon
Joined: 12 Aug 2009
Total Posts: 900
21 Jun 2014 09:52 AM
I'm not that "great" at scripting yet. I have this table and I am trying to randomly spawn a objects at 2 positions. But when I test it, nothing happens. Any help would be appreciated :)

PlayerPoint = game.Workspace.PlayerPoint

Positions = {Vector3.new(115.3, 178.9, 133.5, 166.8, 362.3); Vector3.new(3,2,1)}
PlayerPoint:Clone().Position = Positions[ math.random ( 1, #Positions ) ]
Report Abuse
utabon is not online. utabon
Joined: 12 Aug 2009
Total Posts: 900
21 Jun 2014 09:59 AM
I fixed part of it, but it still doesen't work :/

PlayerPoint = game.Workspace.PlayerPoint

Positions = {Vector3.new(133.6, 187.6, 361.8); Vector3.new(108.6, 182.8, 242.2)}
PlayerPoint:Clone().Position = Positions[ math.random ( 1, #Positions ) ]
Report Abuse
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
21 Jun 2014 10:08 AM
yea. you missed me bby.
Report Abuse
utabon is not online. utabon
Joined: 12 Aug 2009
Total Posts: 900
21 Jun 2014 10:12 AM
Dude...Do I know you? I dont think so...
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
21 Jun 2014 10:14 AM
Anything you clone, by using the Clone method, has its parent property set to nil unless otherwise set. Aka, you need to set the cloned item's parent property to Workspace.

Report Abuse
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
21 Jun 2014 10:17 AM
howdu forget me bby.
Report Abuse
utabon is not online. utabon
Joined: 12 Aug 2009
Total Posts: 900
21 Jun 2014 10:25 AM
1. Look at your name
2. I don't know you
3. Stop trying to make me look like an online dater.
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