-- / Functions / --

ResetMapModule.Reset = function()
	
	-- / Workspace / --
	GamemodesMapHolder:ClearAllChildren()
	GameAssetsHolder:ClearAllChildren()

	game.Workspace.Gravity = 196.2

	for _, TerrainObject in pairs(game.Workspace.Terrain:GetChildren()) do
		TerrainObject:Destroy()
	end

	local Clouds = Instance.new("Clouds")
	Clouds.Parent = game.Workspace.Terrain

	Clouds.Cover = 0.5
	Clouds.Density = 0.75

	Clouds.Color = Color3.fromRGB(255, 255, 255)
	
	-- / Lighting / --
	Lighting.Ambient = Color3.fromRGB(125, 84, 63)

	Lighting.Brightness = 3

	Lighting.ColorShift_Bottom = Color3.fromRGB(0, 0, 0)
	Lighting.ColorShift_Top = Color3.fromRGB(0, 0, 0)

	Lighting.EnvironmentDiffuseScale = 1
	Lighting.EnvironmentSpecularScale = 1

	Lighting.OutdoorAmbient = Color3.fromRGB(125, 125, 125)

	Lighting.ShadowSoftness = 0.1

	Lighting.GeographicLatitude = 0

	Lighting.ExposureCompensation = 0
		
	for _, LightingObject in pairs(Lighting:GetChildren()) do
		LightingObject:Destroy()
		
	end
	
	for _, DefaultMapObjectsHolder in pairs(DefaultMapConfiguration:GetChildren()) do
		for _, DefaultMapObject in pairs(DefaultMapObjectsHolder:GetChildren()) do
			local Object = DefaultMapObject:Clone()
			Object.Parent = game:FindFirstDescendant(DefaultMapObjectsHolder.Name)
			
		end
	end
end
