|
| 29 Oct 2017 06:41 PM |
| So I want to make it so coins randomly appear in my map. I already made the coins. I already made it so you can collect them. But I want to make it so they appear around my map and NOT in the lobby. |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2017 06:43 PM |
Get the general bounds of your map by placing some part over the entirety of it. Get its position and size.
The boundaries the coins can spawn in are: (position.X + random(-size.X/2, size.X/2), (whatever height you want them to be), position.Z + random (-size.Z/2, size.Z/2))
(Pseudocode - do not copy word for word.)
|
|
|
| Report Abuse |
|
|
|
| 29 Oct 2017 06:45 PM |
| Is there a script for it??? |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2017 06:46 PM |
Here are 2 hints:
- Use :Clone(). It will save you from having to set the properties in the script. - The position of the coin will be as I described earlier.
|
|
|
| Report Abuse |
|
|
|
| 29 Oct 2017 06:48 PM |
| Why dont u just give the script? |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2017 06:48 PM |
You said you made it so you can collect them, so I trust you will know how to script that. This is not a forum to request scripts to be made for you (unless you are hiring a scripter.)
|
|
|
| Report Abuse |
|
|
| |
|