Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Can someone help me with a random generator script? PLEASE HELP!

Asked by
Dr_Doge 100
10 years ago

So I know how to clone stuff, and I know basic commands, but Im not that good at the Random math stuff, or at cframeing by script. Dont get me wrong, I can cframe, I just dont know how to cframe with a script. So can someone write me a code that dose this:

I want to have a randomly generated forest. I will have meany different trees stored inside the directory "game.lighting.Trees" . I want a script that randomly chooses a tree from "game.workspace.lighting.Trees" then clones it into workspace, then randomily places it on top of the baseplate, but I also want it to be spaced out.

I forgot to add this, but all the trees are going to be Unions. so that way they all have there own posisition.

Please Help. Sorry if this is too much. Im a beginner to LUA.

0
If you are just a beginner and don't understand how to do basic stuff, why would you ask for an intermediate script from scratch to learn from? Also if this is just to have a forest made for you, you could just clone the trees in manually and put them where you want VariadicFunction 335 — 10y
0
Well I know I could do that, but then the map would always be the same... Also I think I forgot to mention that the Trees are all going to be unions, so they can have a position for themselfs. Dr_Doge 100 — 10y
0
Also, I understand basic stuff, but the reason Im asking how to do intermediate stuff is because Im a beginner... Duaaaa... Dr_Doge 100 — 10y
0
I suggest that you LEARN to script on your own time. Scripting Helpers is not a request site. It's for fixing scripts and specific issues. RedCombee 585 — 10y
0
ok fine. Dr_Doge 100 — 10y

Answer this question