I guys,
I am trying to make a script that transfers all the contents of Server Storage to the Workplace. Any ideas how I would achieve this?
Thanks
local serverstorage = game:GetService(“ServerStorage”)
for _, v in pairs(serverstorage:GetDesendents()) do
local Clone = v:Clone()
Clone.Parent = workspace
end
1 Like
It says that Get Descendants is not a valid member of server storage?
I may have spelled something wrong since I am on mobile.
Ah yes. Sorry. It’s pretty much right
Can you post your existing code please?
Wait?? It still isn’t working. But there are no errors
Try GetChildren instead of GetDescendants.
1 Like
In addition to @ceylores’s suggestion, add a wait() between each iteration (after parenting the child would be best). Potentially cloning multiple Instances could cause a loss in framrate or even a crash.
1 Like
Sorry it was nothing to do with your code. My fault