Just stop talking oruspu HAHAHA der arme vallah
i am currently trying stuff with this script, like making the folder with the map pre-existing, and fixing errors with the script like this:
print('destroy')
which should be:
print("destroy")
i found that when i run the game, it actually does copy everything, but interestingly, when i PLAY the game, the folder dissapears? wierd
i found that when i play then switch to server, the folder still exists. so you have done something right
it works, i had to play around with it though, and i made the folder pre-existing with the workspace copied to it
They both count as a string, not an error at all, plus i said it worked for me so i only had to know whats going on within your game, either way congratulations for getting your issue fixed!
You dont need the 3 seconds, when you really need the 3 seconds, so the Script should not fail then this Script is not good, also the Script calls “FindFirstChild”, when the second script calls it first it will never clone, with this Script it will clone everytime:
local clickDetector = "Where your ClickDetector is located at."
local resetFolder = Instance.new("Folder")
resetFolder.Parent = game:GetService("ServerStorage")
for index, value in pairs(workspace:GetChildren()) do
if not value:IsA("Camera") and not value:IsA("Terrain") and not value:FindFirstChild("Humanoid") then
local clonedInstance = value:Clone()
clonedInstance.Parent = resetFolder
end
end
clickDetector.MouseClick:Connect(function()
for index, value in pairs(workspace:GetChildren()) do
if not value:IsA("Camera") and not value:IsA("Terrain") and not value:FindFirstChild("Humanoid") then
value:Destroy()
end
end
for index, value in pairs(resetFolder:GetChildren()) do
local clonedValue = value:Clone()
clonedValue.Parent = workspace
end
script.Enabled = false
script.Enabled = true
end)
the second script will never call it first, the first script (copies workspace to a folder in ServerStorage
) runs as soon as the game starts, and the second script (Clears workspace
and copies everything from the folder in ServerStorage
to workspace
) is ran whenever I need.
What do you mean? How you would know which Script would call first? Where you can see which Script will run?
You dont need 3 sec waiting and 2 scripts for this easy script
the 3 seconds wait is added because he wants to see if a difference has been made.
he already helped me, it works for me, and i take what works, not above there
[ replied to wrong person, i was trying to reply to @Pegagittt ]
i see the difference when the map is reloaded, so i probably will remove that wait
i already reduced it to 0.1
the second script is ran after the startup fail, meltdown, etc, the first script is ran as soon as the game starts and only runs once since it only needs to run once
his script out of the box didnt even work, and i played around with it so it did work
i put the copy and reload scripts (the reload script was disabled because ill copy that to the main script) under terrain so they were not copied over, and it still works
You can stop talking i just told him what would be better not to have a Sulotion icon on my post, im not fighting for a Icon like you nobody talked with you oruspu yallah raus mit dir
The two works but you are to dumb to understand that you can also stop talking now olm
you are the one continuing to talk, we are just responding,
notice i didnt say reacting