I have all of my Objects in ServerStorage in a folder called “Trash” this script is supposed to put them all in workspace, but it doesn’t
local ServerStorage = game.ServerStorage
local Trash = game.ServerStorage.Trash
while true do
local bins = Trash:GetChildren("P2")
bins.Parent = game.Workspace
wait(300)
end
local ServerStorage = game:GetService("ServerStorage")
local Trash = game.ServerStorage:WaitForChild("Trash")
while task.wait() do
local bins = Trash:WaitForChild("P2")
bins.Parent = game.Workspace
task.wait(300)
end
local ServerStorage = game:GetService("ServerStorage")
local Trash = game.ServerStorage:WaitForChild("Trash")
while task.wait() do
local bins = Trash:GetChildren()
for i, v in pairs(bins) do
if v.Name == "P2" then
v.Parent = game.Workspace
task.wait(300)
end
end
end
local ServerStorage = game:GetService("ServerStorage")
local Trash = game.ServerStorage:WaitForChild("Trash")
while task.wait() do
local bins = Trash:GetChildren()
for i, v in pairs(bins) do
if v.Name == "P2" then
v.Parent = game.Workspace
end
end
task.wait(300)
end