Problem with random

hello guys i new scripter and i want spawn random model with delay like 10 15 seconds in one position but i dont know how make randomized models this all

file of project:
system.rbxl (146.4 KB)

(sorry for bad english)

1 Like

Make a new Folder in ServerStorage and name it Models. Insert all of your models into that folder.

In ServerScriptService, insert a Script:

local models = game:GetService("ServerStorage"):FindFirstChild("Models")
assert(models, "Missing Models!")
assert(#models:GetChildren() > 0, "No models!")
while task.wait(Random.new():NextInteger(10, 15)) do
    models:GetChildren()[Random.new():NextInteger(1, #models:GetChildren())]:Clone().Parent = workspace
end
1 Like

this works thanks you now i can make cool game! :smiley:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.