|
| 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
|
  |
| Joined: 18 Feb 2014 |
| Total Posts: 232 |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 19 Feb 2014 08:06 PM |
| All that script above is place it right in the middle of the two parts |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2014 08:15 PM |
| Bump, Help i don't know how to get this to work right |
|
|
| Report Abuse |
|
|