I am trying to make a random items spawning system and did some test with one item but it didn't work Please Help.
local LootNodeBurrito = workspace.LootNodeBurrito
local Items = game.ReplicatedStorage.Items
function SpawnBurrito()
-- Burrito lol :)
local Burrito = game.RepicatedStorage.Items.Burrito:Clone()
Burrito.Parent = workspace
if game.Workspace.LootNodeBurrito.LVValue.Value == "Burrito" then
Burrito.Position = LootNodeBurrito.Position
wait(1250)
Burrito:Destroy()
end
end
while true do
SpawnBurrito()
wait(1250)
end

6 comments
BTW The error on line 6 was fixed but it still didn't work.
Oops, didn't see this! What does it say in the output?
If you didn't notice, you wait twice so it'll take 2500 seconds between each burrito spawn.
JoshRBX: It does not say anything in the output about this
Are you sure 2500 seconds is what you want? Have you tried experimenting with other periods of time? 2500 seconds is 41 Minutes 40 Seconds.
JoshRBX: I tried using 5 seconds and it still doesn't work .