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: How do i?

Previous Thread :: Next Thread 
Andrew1234567mmm is not online. Andrew1234567mmm
Joined: 14 Oct 2009
Total Posts: 691
19 Feb 2014 08:03 PM
Hello,
I am wanting to create a shooting star system and can't seem to figure out how to make it where i can have 2 bricks to create an area then have stars spawn within a math.random of the area

How do i get this to work correctly

NO I AM NOT ASKING FOR A SCRIPT
Report Abuse
Azirux is not online. Azirux
Joined: 18 Feb 2014
Total Posts: 232
19 Feb 2014 08:03 PM
Post the script...
Report Abuse
Andrew1234567mmm is not online. Andrew1234567mmm
Joined: 14 Oct 2009
Total Posts: 691
19 Feb 2014 08:04 PM
I don't have an issue can you not read i'm asking how can i do that specifically to make it math.random between to parts that form a square area
Report Abuse
Andrew1234567mmm is not online. Andrew1234567mmm
Joined: 14 Oct 2009
Total Posts: 691
19 Feb 2014 08:05 PM
On another note i thought this would work

local p = script.Parent
local position1x = Workspace.EventsScript.StarPosition1.X
local position1z = Workspace.EventsScript.StarPosition1.Z
local position2x = Workspace.EventsScript.StarPosition2.X
local position2z = Workspace.EventsScript.StarPosition2.Z

p.Position = Vector3.new((math.random(position1x, position2z)),800,(math.random(position2x, position1z)))
Report Abuse
Andrew1234567mmm is not online. Andrew1234567mmm
Joined: 14 Oct 2009
Total Posts: 691
19 Feb 2014 08:06 PM
All that script above is place it right in the middle of the two parts
Report Abuse
Andrew1234567mmm is not online. Andrew1234567mmm
Joined: 14 Oct 2009
Total Posts: 691
19 Feb 2014 08:15 PM
Bump, Help i don't know how to get this to work right
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