my current script is this but idk how to make it pick a random item every 10 minutes
local SS = game.ServerStorage
local items = SS.Crates:GetChildren()
local randomItem = items[math.random(1, #items)]
my current script is this but idk how to make it pick a random item every 10 minutes
local SS = game.ServerStorage
local items = SS.Crates:GetChildren()
local randomItem = items[math.random(1, #items)]
Make a loop and put the variable for randomitem inside the loop so it will get repicked every 10 minutes.
while true do
local items = SS.Crates:GetChildren()
local randomItem = items[math.random(1, #items)]
randomItem.Parent = TheFolderWhereYouWantToPutTheItem
task.wait(600)
end
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.