I'm making a game where there needs to be randomly generated formats where models can be in certain places but are randomly generated
✓ ANSWER ACCEPTED
Is there a way to make models you can put into lighting and make a random genareated map?
1 answer
✓ Accepted answer
Putting things in ReplicatedStorage is a better alternative which was made as an alternative to using lighting for storage
You could randomize a model and clone it to workspace using the following code
The following code is expecting your maps/models to be inside a folder named "Models" in ReplicatedStorage.
local rs = game:GetService("ReplicatedStorage")
local models = rs.Models:GetChildren()
local selected = math.random(1,#models)
local model = models[selected]:Clone()
model.Parent = workspace
This would bring the model to the workspace but it wouldn't move it, you'd have to CFrame/Position it yourself to the desired position.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Why would you put it in lighting?