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 » Scripters
Home Search
 

Re: Random positioning on a specified object?

Previous Thread :: Next Thread 
rockerslamtwo is not online. rockerslamtwo
Joined: 27 Mar 2011
Total Posts: 34
23 May 2016 10:02 AM
Hey, I'm trying to get an object to spawn on a brick that is..

Position: 1, 0.1, 52
Size 10, 0.2, 6

What I'm trying to do is get a mass of objects to spawn on-top of this brick in random places of it, Is anyone able to help me out with this?

I'm also trying to figure out a limiter so it detects a certain number of spawned objects and stops.
Report Abuse
Aeureaus is online. Aeureaus
Joined: 05 Nov 2011
Total Posts: 109
23 May 2016 10:47 AM
Vector3 Places the block on top of the target

Try CFrame

EG: If I want a part called "blue" to be in the exact same position as "red" then type this:

game.Workspace.blue.CFrame = game.Workspace.red.CFrame

I'm not sure about size though. Maybe do the size THEN the CFraming.




#code roblox.Servers:Destroy()
Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
23 May 2016 11:18 AM
https://www.roblox.com/Random-Spawn-Position-item?id=236450177
Learn from this script ;)
Report Abuse
rockerslamtwo is not online. rockerslamtwo
Joined: 27 Mar 2011
Total Posts: 34
23 May 2016 09:48 PM
Thanks guys.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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