Hey everyone. So im stuck with my own little pewny brain trying to think on how to make a auto reloading map script just likes the ones from Destruction Simulator. So if anyone has a idea or script of it, feel free to reply with it.
Well, the way I would do it would be to store the map in ServerStorage, then every (insert time here) I would destroy the old map, then clone the new map from ServerStorage and parent it to workspace.
while true do
task.wait(60) --idk any amount of time works fine
workspace.MapNameHere:Destroy()
local Clone = game.ServerStorage.MapNameHere:Clone()
Clone.Parent = workspace
end
Something like this, although the code will vary depending on your situation the general idea is the same. Destroy the old map, clone a new map from ServerStorage then parent it to workspace.
Also Btw I have a few questions, where do you put the script in?
You should place the script in ServerScriptService
Alright thanks for the information
Hey so uh im kinda running into a problem. Whenever i add new buildings to the game, when it reloads it dosent load the new buildings and it still didnt work when i anchor them. Is there any fix to that?
You have to update the model in ServerStorage each time you add new things. You could probably have a script that clones the children automatically and inserts them into ServerStorage each time.
Oh that probably makes sense i havent gotten to think about that lol. Thanks for the help.