if RoundsPassed >= 1 then
if DoubleStarter then DoubleStarter:Destroy() end
DoubleStarter = StarterMap:Clone()
StarterMap:Destroy()
DoubleStarter.Parent = workspace
for i,v in pairs(workspace:GetChildren()) do
wait()
if v.Name == "Door" or v.Name == "Button" or v.Name == "ActionButton" then
v:Destroy()
end
end
there's just a flawed logic and I can't seem to get it
Roundspassed gets +1 added for everyone round that goes by, and when 1 map goes by the roundspassed should be 1 and then I try to refresh the map and remove any objects from it that belong in workspace but it just doesn't work, sometimes the map is empty sometimes I can't set parent. I just want to refresh the map.
Startermap = original map
DoubleStarter = trying to make clone of orig map and keep refreshing it every round. |