local remoteevent = game.ReplicatedStorage.ResetServer
local function ResetServer()
game.Lighting:ClearAllChildren()
game.Workspace:ClearAllChildren()
game.StarterPack:ClearAllChildren()
game.ServerStorage.Baseplate:Clone().Parent = workspace
end
remoteevent.OnServerEvent:Connect(ResetServer)
so i wanna clear all childern of workspace exepct train because that cant be cleared but how can i get around this issue

4 comments
a quick google search results in: game.Workspace.Terrain:clear()
i dont want to clear the trerrian i want to clear everything but the terrian
then just loop through everything in the workspace and if it isn't named terrain delete it
how would i do that?